Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Egochain RPC #109

Open
wants to merge 1,145 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1145 commits
Select commit Hold shift + click to select a range
51d4b65
Added Pollum Rpc for rollux mainnet and testnet (#724)
jonathanlmd Oct 13, 2023
8a8e3be
add lava ipRPC to evmos rpc list (#718)
KagemniKarimu Oct 13, 2023
54e8cc4
fix url
realdealshaman Oct 13, 2023
c36ae5b
add lava Evmos RPC endpoint as default (#735)
MalteHerrmann Oct 13, 2023
e488d8d
add lava privacy info
realdealshaman Oct 13, 2023
20ba3af
Update extraRpcs.js (#730)
0xx92 Oct 16, 2023
f151e38
fix syntax
realdealshaman Oct 16, 2023
c1e5bea
Update extraRpcs.js (#746)
aqeelVaival Oct 19, 2023
6fe0ae7
Update extraRpcs.js (#743)
mohitdhiman3145 Oct 19, 2023
67c56fe
added IcecreamSwap RPC for Scroll chain (#745)
simone1999 Oct 19, 2023
c80d33d
Update extraRpcs-add-1rpc-scroll-mainnet-support (#748)
shawntanth Oct 19, 2023
f2401be
fix syntax
realdealshaman Oct 19, 2023
d91f478
feat: LlamaNodes Base Chain support (#756)
brenopolanski Oct 21, 2023
773660c
Add 0base.vc's EVMOS json-rpc. (#754)
jjangg96 Oct 21, 2023
4da2db2
update bnb endpoints
realdealshaman Oct 21, 2023
dfcb9e9
Adding eth.merkle.io RPC service (#744)
Theo- Oct 21, 2023
e821db5
add new endpoints
realdealshaman Oct 21, 2023
478a552
remove duplicate endpoint
realdealshaman Oct 21, 2023
bac0539
remove duplicate
realdealshaman Oct 21, 2023
ee0ce4f
Add Evmos RPC by NodeStake (#752)
nodestake Oct 21, 2023
df7a32d
fix syntax
realdealshaman Oct 21, 2023
672a29b
add TC Network RPC to Evmos (#757)
trulacgc-tcnetwork Oct 23, 2023
a8d4c35
Add Evmos RPC by NodeStake (#759)
nodestake Oct 26, 2023
2b44e90
Update extraRpcs.js (#762)
antrixy Oct 26, 2023
74cf6e2
Update extraRpcs.js (#763)
qubelabsio Oct 26, 2023
abfc9bf
Update extraRpcs.js (#764)
dicv2 Oct 26, 2023
8a2630c
Update extraRpcs.js (#716)
iChainBlock Oct 26, 2023
699089a
Update extraRpcs.js (#769)
antrixy Oct 26, 2023
da74aa6
Adjusting the focus of the input (#758)
Oct 27, 2023
dfa2bdc
updates notadegen.com rpc endpoints (#753)
0xSalman Oct 28, 2023
63226fb
Update extraRpcs.js (#771)
AlexToTheMoon Oct 28, 2023
db0817a
1RPC now supports the following networks: Gnosis Mainnet, Ethereum Ho…
smilenow Oct 28, 2023
b8b0280
fix syntax
realdealshaman Oct 28, 2023
b806aa1
Update extraRpcs.js (#773)
0xx92 Oct 30, 2023
d37c54a
fix syntax
realdealshaman Oct 30, 2023
6f69473
add testnet rpc
realdealshaman Oct 30, 2023
8a07e09
Add Evmos testnet RPC by NodeStake (#776)
nodestake Nov 3, 2023
fd47e58
Add liquify fuse endpoint (#777)
Andrew-Pohl Nov 3, 2023
36431c5
add privacy statement
realdealshaman Nov 3, 2023
30db1e3
add new rpcs manually
realdealshaman Nov 3, 2023
fc13870
Updating POKT's Endpoints (#779)
jacklaing Nov 3, 2023
e40c7ec
Update extraRpcs.js (#780)
alkadeta Nov 3, 2023
1cd128f
Add 9000 and 9001 extra rpcs (#782)
dragonstake Nov 3, 2023
828ce51
Update extraRpcs.js (#785)
svv28 Nov 3, 2023
057b338
fix syntax
realdealshaman Nov 3, 2023
393ae87
Added jsonrpc for Evmos mainnet (#786)
mogoll92 Nov 4, 2023
8e85f31
Update extraRpcs.js (#787)
0xx92 Nov 4, 2023
ffd6d9b
Add XDEFI support (#781)
zdeadex Nov 4, 2023
ab1577b
add to translations
realdealshaman Nov 4, 2023
2d50d15
Remove deprecated Fuse RPCs (#783)
MusabShakeel576 Nov 7, 2023
798badf
Add AutoStake Evmos jsonrpc's (#789)
AutoStake-com Nov 8, 2023
a8dc5b2
Update extraRpcs.js (#795)
alkadeta Nov 8, 2023
a08adf8
add autostake privacy policy
realdealshaman Nov 8, 2023
f885059
Add Validatrium Evmos endpoint
Nov 7, 2023
8864716
remove rpc
realdealshaman Nov 8, 2023
2e29fc9
add new chains
realdealshaman Nov 8, 2023
bdf47c1
add privacy policy
realdealshaman Nov 9, 2023
cae50c6
fix/outdated-klaytn-extraRPC (#800)
ayo-klaytn Nov 9, 2023
fff8af6
add tracking details
realdealshaman Nov 9, 2023
268e635
add stakin
realdealshaman Nov 9, 2023
8c76ddb
Add lokibuilder (#802)
Nov 11, 2023
ab376e8
add cyphercore privacypolicy
realdealshaman Nov 12, 2023
b62046b
Add Cypher Core EVMOS JSONRPC (#804)
jim380 Nov 12, 2023
13bfccc
add privacyStatement to rpc
realdealshaman Nov 12, 2023
142f256
Update extraRpcs.js (#806)
JoGetBlock Nov 13, 2023
cc04b04
add rpc from pr #801
realdealshaman Nov 13, 2023
39691de
Update extraRpcs.js (#809)
alkadeta Nov 15, 2023
89d6e94
fix syntax
realdealshaman Nov 15, 2023
4edddfa
Update extraRpcs.js (#811)
alkadeta Nov 16, 2023
e8e56c0
add chain_id for conflux in chainIds.json (#824)
wangdayong228 Nov 21, 2023
8cf9e49
Update extraRpcs.js (#823)
DGSInfra Nov 21, 2023
6d95780
Update extraRpcs.js add mzonder endpoints (#822)
maxzonder Nov 21, 2023
b85fe55
Add Kalia json rpc (#821)
KaliaNetwork Nov 21, 2023
260709f
Add Allnodes RPC Endpoint for Bahamut (#820)
3eph1r0th Nov 21, 2023
5d2c1d8
add alphab evmos eth json rpc mainnet&testnet (#818)
Northa Nov 21, 2023
d32ee15
Update extraRpcs.js (#816)
Huginntech Nov 21, 2023
66c6c1c
Update extraRpcs.js (#815)
silentnoname Nov 21, 2023
76b9941
Update extraRpcs.js-add-1RPC-CORE-Support (#814)
shawntanth Nov 21, 2023
eec2c57
Update extraRpcs.js (#810)
qubelabsio Nov 21, 2023
4a60def
fix syntax
realdealshaman Nov 21, 2023
04692a8
Add Imperator Evmos RPC (#819)
imperator-co Nov 21, 2023
231a7e1
Update extraRpcs.js (#833)
VandaleCallender Nov 25, 2023
9069f89
add privacy policy
realdealshaman Nov 25, 2023
4520a0f
Update extraRpcs.js (#830)
0xx92 Nov 25, 2023
9fb0ba9
Update extraRpcs.js (#829)
DGSInfra Nov 25, 2023
d60cf91
Update extraRpcs.js (#828)
0xx92 Nov 25, 2023
5aa5246
fix syntax
realdealshaman Nov 25, 2023
494af23
Note Deprecated Chains 6, 62 (#838)
chris-mercer Nov 28, 2023
3d98ceb
Added NetZ's New RPC (#836)
solidityx Nov 28, 2023
3b3f60a
Update extraRpcs.js (#834)
VandaleCallender Nov 28, 2023
bc9857b
Rollux: Remove malfunctioning third-party RPC (#798)
bstr156 Nov 28, 2023
2a5b621
Add Scroll mainnet extra RPC URLs (#842)
isabellewei Nov 30, 2023
83873c7
Update extraRpcs.js (#841)
aditya-manit Nov 30, 2023
7e7d69b
feat(rpc): add defichain evm rpcs (#839)
gjj Nov 30, 2023
7edc7cd
Add ETC nodes and modify node information (#840)
HebeBlock Nov 30, 2023
528b491
Update: etc-network.info Limited Tracking setting (#837)
chris-mercer Dec 1, 2023
6d11465
Update extraRpcs.js (#850)
0xx92 Dec 8, 2023
949514a
add beam
realdealshaman Dec 11, 2023
b5cd426
Update Hybrid Chain 2468 Mainnet (#852)
hybridfoundation Dec 12, 2023
841b74d
Update extraRpcs.js (#805)
0xx92 Dec 12, 2023
c272580
add ankr rpc
denalimarsh Dec 12, 2023
484af4f
Update extraRpcs.js (#855)
0xx92 Dec 12, 2023
ed2eb45
push update
realdealshaman Dec 12, 2023
8022119
remove deprecated chains
0xngmi Dec 13, 2023
731b0b3
Merge pull request #857 from denalimarsh/main
0xngmi Dec 13, 2023
8f1c353
Merge pull request #858 from DefiLlama/deprecated
0xngmi Dec 13, 2023
de1dd49
Add tokenview RPC service (#861)
Tokenview Dec 14, 2023
a5b670c
Add Rivet's privacy policy (#859)
diega Dec 14, 2023
382c6bd
update order
realdealshaman Dec 14, 2023
439116a
Update extraRpcs.js (#862)
sunil301295 Dec 20, 2023
1fbc8d3
update logo
realdealshaman Dec 21, 2023
8a247cd
Add RPCs for JIBCHAIN (#863)
nanthanwa Dec 26, 2023
26fd68a
add redecoin
realdealshaman Dec 28, 2023
1111bbe
Update extraRpcs.js (#879)
0xx92 Dec 28, 2023
2b2e070
Update extraRpcs.js (#872)
BelialNarcissus Dec 28, 2023
0358114
add: Humans RPCs by ITRocket (#877)
tengokuvision Dec 31, 2023
9437844
fix syntax
realdealshaman Dec 31, 2023
0c99445
add rpc
realdealshaman Jan 3, 2024
bd974ed
Update extraRpcs.js (#884)
alkadeta Jan 3, 2024
651973f
Remove duplicate entries from Evmos rpc list v2 (#886)
alkadeta Jan 4, 2024
596ce3a
update fusion network rpc (#893)
fanbsb Jan 10, 2024
65f684b
Added OnFinality Eth Sepolia & Polygon Mumbai (#892)
Danielvul Jan 10, 2024
a7617e6
Add boba RPC (#890)
boyuan-chen Jan 10, 2024
a4972e9
add chainid 131 rpcs
realdealshaman Jan 10, 2024
cbe20eb
Update extraRpcs.js_add_1RPC_Telos_Kroma_Mode (#897)
shawntanth Jan 14, 2024
21dd58a
chore: remove dead nodes (#895)
molecula451 Jan 14, 2024
cc9309b
fix syntax
realdealshaman Jan 14, 2024
64b777c
update arb list
realdealshaman Jan 16, 2024
2c7708f
Update chainid=1501 rpc urls (#901)
icodezjb Jan 17, 2024
3454ee6
Update extraRpcs.js (#898)
bishal-kcalb Jan 17, 2024
bc04961
Update extraRpcs.js (#904)
MohitXDC Jan 18, 2024
a6a0e34
Update extraRpcs.js (#902)
0xx92 Jan 18, 2024
4e703a1
Update extraRpcs.js (#899)
mj-dcb Jan 18, 2024
950e0eb
Rename to ChainList, per #593
fulldecent Jan 19, 2024
63eee08
update: add rpc (#907)
aomwara Jan 23, 2024
04b5a71
Merge pull request #906 from fulldecent/patch-1
0xngmi Jan 23, 2024
c6eb98d
Update extraRpcs.js (#905)
mj-dcb Jan 23, 2024
09dbe08
Update kava rpcs (#910)
bfloresio Jan 24, 2024
27768cf
Update extraRpcs.js (#909)
0xGery Jan 24, 2024
8725854
Update extraRpcs.js (adding Privacy policy of Nocturnode.tech) (#913)
0xGery Jan 26, 2024
21fdd3b
add ankr endpoint kava (#912)
bfloresio Jan 26, 2024
2fbb4af
add polysplit privacy statement
realdealshaman Jan 27, 2024
1c0a343
add polysplit
realdealshaman Jan 27, 2024
b24af48
fix
realdealshaman Jan 27, 2024
f501db7
fix tracking
realdealshaman Jan 28, 2024
4e33482
rpc issue
realdealshaman Jan 28, 2024
9d631a2
Update IoTeX RPC (#911)
guo Jan 30, 2024
9be56cc
add reference url
realdealshaman Jan 30, 2024
96d4061
Update extraRpcs.js (#917)
0xx92 Jan 30, 2024
cbb7a94
Update extraRpcs.js (#919)
0xx92 Jan 31, 2024
2eef892
Update extraRpcs.js with new All That Node endpoints for ZetaChain (#…
ryujimin220 Jan 31, 2024
4030747
Update extraRpcs.js (#918)
0xx92 Jan 31, 2024
7bad8db
update tracking info for allthatnode
realdealshaman Jan 31, 2024
118f861
Update: ITRocket endpoints and Privacy Policy (#923)
tengokuvision Jan 31, 2024
eec8e64
Update extraRpcs.js (#924)
AM-979 Feb 2, 2024
25cb224
deprecate https://proxy.devnet.neonlabs.org/solana rpc (#926)
mnedelchev-vn Feb 3, 2024
d89834b
fix polysplit (#925)
kotsmile Feb 3, 2024
3917256
Add Ansybl Canto RPC (#933)
bford21 Feb 6, 2024
6d7a07f
Update extraRpcs.js (#932)
pertsevalexey Feb 6, 2024
4edc65a
Update extraRpcs.js (#930)
0xx92 Feb 6, 2024
e76f1d2
Update extraRpcs.js (#935)
alxnode Feb 7, 2024
3f1b8b3
Add Dymension Jsonrpc by NodeStake (#934)
nodestake Feb 7, 2024
f9adcce
Add dymension jsonrpc by Liquify (#937)
Andrew-Pohl Feb 9, 2024
c12d49d
Update extraRpcs.js (#939)
pertsevalexey Feb 10, 2024
faeba9c
Add zeta.rpcgrid.com RPCs (+WS) for ZetaChain (#931)
BitOfUniverse Feb 13, 2024
1d1a12c
Update extraRpcs.js (#941)
kynraze Feb 15, 2024
8059283
add extra rpc (#946)
ivanshukhov Feb 20, 2024
dac2efb
Update extraRpcs.js (#949)
0xx92 Feb 22, 2024
7fb2321
Add Areon Chain Rpc (#948)
mkdirken Feb 22, 2024
4d729b9
Lava eth mainnet (#952)
OfTheWolf Feb 23, 2024
26cf538
Add DRPC and POKT endpoints to Scroll (#951)
isabellewei Feb 23, 2024
6e87498
Update PublicNode (#954)
3eph1r0th Feb 23, 2024
8e1e6b7
add rpc (#953)
chenjia404 Feb 23, 2024
86477af
Update extraRpcs.js (#960)
JoGetBlock Feb 27, 2024
669282e
Update extraRpcs.js (#959)
robbieshadow Feb 27, 2024
8fe596a
add trackingdetails
realdealshaman Feb 27, 2024
0304484
add privacy statement for q org
realdealshaman Feb 27, 2024
9ca395e
Add Q Mainnet RPC (#958)
KyrylR Feb 27, 2024
144edbb
Update extraRpcs.js (#957)
0xx92 Feb 27, 2024
965ed21
Update extraRpcs.js - Add Stateless provider on ETH, Polygon, OP and …
jessicadaugherty Feb 27, 2024
cd33a37
fix syntax
realdealshaman Feb 27, 2024
3195423
Update extraRpcs.js (#962)
noirzz Feb 28, 2024
86061f0
Update extraRpcs.js (#967)
0xx92 Feb 29, 2024
0589f13
remove scam
0xngmi Feb 29, 2024
6abfab5
add ankr blast
0xngmi Feb 29, 2024
b00e30a
add blast rpcs
realdealshaman Mar 1, 2024
9758e7e
Add blast.gasswap.org
Mar 2, 2024
2dc3174
Merge pull request #971 from zerotwodao/main
0xngmi Mar 3, 2024
7d81bab
update blast.gasswap.org ws endpoint
Mar 3, 2024
eb6c66a
Merge pull request #972 from zerotwodao/main
0xngmi Mar 3, 2024
4c906c8
Remove wrong RPCs from Syscoin NEVM testnet list. (#973)
fernando-syslabs Mar 4, 2024
05bf5b6
make stateless URLs human readable (#980)
blockjoe Mar 7, 2024
fd62248
Update extraRpcs.js (#978)
0xx92 Mar 7, 2024
d4e624d
add new publicnode rpcs
realdealshaman Mar 7, 2024
a94ed0e
Update extraRpcs.js (#938)
DRIgnazGortngschirl Mar 8, 2024
e9a8bac
Update extraRpcs.js (#944)
JohnRising Mar 8, 2024
d557fca
fix syntax
realdealshaman Mar 8, 2024
a675755
Update extraRpcs.js (#979)
AmardeepSambaru Mar 10, 2024
f5a580e
feat: Upgrading to new HypeLab SDK. Preventing ad refresh on keyDown.
wengzilla Mar 1, 2024
3e6909d
fix: Undoing single quote lints. Removing other changes from yarn.loc…
wengzilla Mar 11, 2024
751a5de
Merge pull request #969 from wengzilla/hypelab-upgrade
charlie-eth Mar 11, 2024
a951327
Update extraRpcs.js (#985)
JoGetBlock Mar 11, 2024
218fefe
Update Allnodes RPC URLs for Syscoin Testnet and Mainnet (#988)
fernando-syslabs Mar 14, 2024
cff9d05
Update extraRpcs.js (#986)
JoGetBlock Mar 14, 2024
2a70777
Add Detroit Ledger Tech Telos EVM RPC Endpoint (#989)
eosiodetroit-adam Mar 15, 2024
3226fee
feat: add hubblenet (#977)
itsmnthn Mar 15, 2024
edf902a
add hypr network
realdealshaman Mar 15, 2024
bcb55e5
Add Manta Additional RPC URL (#993)
jincan39 Mar 19, 2024
28c2f0b
Update extraRpcs.js (#999)
0xx92 Mar 21, 2024
df0d490
Adding Tatum RPC - Aurora Mainnet (#997)
blockchaingirl1407 Mar 21, 2024
73abf57
Delist scam rpc ( tornadoeth.cash )
tornadocontrib Mar 21, 2024
4979f1f
Merge pull request #1000 from tornadocontrib/main
0xngmi Mar 22, 2024
172e5b4
add new chains
realdealshaman Mar 22, 2024
a3ed040
Add Egochain RPC
Ebrinix Mar 24, 2024
114659f
add new additionalChainRegistry folder
realdealshaman Mar 24, 2024
40633b4
Update extraRpcs.js (#1006)
sheenhx Mar 25, 2024
e6c04de
Update extraRpcs.js (#1002)
jbuice Mar 25, 2024
2b1ab2f
add Linea RPC urls (#995)
thedarkjester Mar 25, 2024
898dcc9
Added SubQuery RPC for Blast & Ethereum (#987)
Danielvul Mar 25, 2024
7e6b77c
fix syntax
realdealshaman Mar 25, 2024
19d8203
update info
realdealshaman Mar 26, 2024
456dbcf
Adding Tatum BSC RPC node (#1014)
blockchaingirl1407 Mar 26, 2024
8b2c5d3
Addidng Tatum BSC RPC Node (#1013)
blockchaingirl1407 Mar 26, 2024
d1a3031
Adding Tatum Avalanche C Chain Node (#1012)
blockchaingirl1407 Mar 26, 2024
e87cd12
Adding Tatum BCH RPC node (#1011)
blockchaingirl1407 Mar 26, 2024
18ecbe4
Adding Tatum RPC Arb Nova node (#1009)
blockchaingirl1407 Mar 26, 2024
011e0fc
Adding Tatum RPC Ethereum node (#1008)
blockchaingirl1407 Mar 26, 2024
4675d2f
fix syntax
realdealshaman Mar 26, 2024
1ae8c81
overwrite chains
0xngmi Mar 27, 2024
5fde514
add ronin
realdealshaman Mar 27, 2024
bb1ff81
fix imports
0xngmi Mar 28, 2024
e406e3b
fix imports
0xngmi Mar 28, 2024
7944e57
Update extraRpcs.js (#1037)
0xx92 Apr 2, 2024
90466f6
SubQuery Endpoint changes (#1036)
Danielvul Apr 2, 2024
5077683
Update Jelliedowl RPCs (#1033)
JelliedOwl Apr 2, 2024
fae374a
add zeta chain
realdealshaman Apr 2, 2024
5b95788
Adding Tatum RPC Celo Mainnet - removeing RPC Bitcoin Mainnet RPC bcs…
blockchaingirl1407 Apr 2, 2024
888c26c
Adding Tatum RPC Doge (#1016)
blockchaingirl1407 Apr 2, 2024
1583fd1
Addint Tatum RPC node - Fantom (#1017)
blockchaingirl1407 Apr 2, 2024
03840e4
Adding Tatum RPC node - Haqq (#1018)
blockchaingirl1407 Apr 2, 2024
4e1b3a0
Adding Tatum RPC node Gnosis (#1019)
blockchaingirl1407 Apr 2, 2024
163805f
Addint Tatum RPC node - Klaytn (#1020)
blockchaingirl1407 Apr 2, 2024
f302fc7
Adding Tatum RPC Polygon node (#1021)
blockchaingirl1407 Apr 2, 2024
134733c
Adding Tatum RPC node - OP (#1022)
blockchaingirl1407 Apr 2, 2024
a908ad0
Adding Tatum RPC Node - Palm (#1023)
blockchaingirl1407 Apr 2, 2024
544566b
Adding Tatum RPC Node - XDC (#1024)
blockchaingirl1407 Apr 2, 2024
166cf3e
Adding Tatum RPC node - Base (#1025)
blockchaingirl1407 Apr 2, 2024
f7879a5
Adding 2 RPC nodes - Cronos (#1028)
0xartcro Apr 2, 2024
0cf9b4e
Add new RPC | Bitrock chain (#1027)
BitrockChain Apr 2, 2024
55c656e
Merge branch 'main' into main
realdealshaman Apr 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ yarn-error.log*
.env.development.local
.env.test.local
.env.production.local
.env

# vercel
.vercel

# others
build.log
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
sitemap.xml.js
.next
out
public
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"trailingComma": "all",
"printWidth": 120,
"tabWidth": 2
}
149 changes: 74 additions & 75 deletions LICENCE.md

Large diffs are not rendered by default.

21 changes: 2 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).

## Getting Started

First, run the development server:
Expand All @@ -14,21 +12,6 @@ Open [http://localhost:3000](http://localhost:3000) with your browser to see the

You can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file.

[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.js`.

The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.

## Learn More

To learn more about Next.js, take a look at the following resources:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!

## Deploy on Vercel

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
## Adding your RPC

Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
If you wish to add your RPC, please follow this [PR template](https://github.com/DefiLlama/chainlist/blob/main/pull_request_template.md)
155 changes: 155 additions & 0 deletions components/AdBanner/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
import { useCallback, useEffect, useRef, useState } from "react";
import { Native } from "@hypelab/sdk-react";
import { HYPELAB_NATIVE_PLACEMENT_SLUG } from "../../constants/hypelab";

export const AdBanner = () => {
const [isSquare, setIsSquare] = useState(false);
const [hideNativeTextContent, setHideNativeTextContent] = useState(true);
const resizeObserver = useRef(null);

const imageRef = useCallback((node) => {
if (node) resizeObserver.current?.observe(node);
}, []);

useEffect(() => {
resizeObserver.current = new ResizeObserver((entries) => {
for (const entry of entries) {
if (entry.contentRect.width > 0 && entry.contentRect.height > 0) {
setIsSquare(entry.contentRect.width == entry.contentRect.height);
setHideNativeTextContent(entry.contentRect.height > 220);
}
}
});
}, [setIsSquare, setHideNativeTextContent]);

return (
<Native placement={HYPELAB_NATIVE_PLACEMENT_SLUG}>
<div className="flex flex-col w-full h-full items-center justify-center">
<div
className={`flex flex-col w-fit max-w-full bg-white dark:bg-[#0D0D0D] rounded-[10px] shadow overflow-hidden ${
isSquare ? "max-w-[260px] lg:max-w-[290px]" : ""
}`}
>
<div className="flex" ref={imageRef}>
<NativeLink>
<div className="relative">
<div data-ref="mediaContent" className="h-fit w-fit"></div>

<HypeLabOverlay />
</div>
</NativeLink>
</div>
<NativeTextContent hidden={isSquare || hideNativeTextContent} />
</div>
</div>
</Native>
);
};

const NativeTextContent = ({ hidden }) => {
const containerRef = useRef(null);
const [width, setWidth] = useState(0);

useEffect(() => {
const resizeObserver = new ResizeObserver((entries) => {
for (const entry of entries) {
setWidth(entry.contentRect.width);
}
});

const container = containerRef.current;

if (container) {
resizeObserver.observe(container);
}

return () => {
if (container) {
resizeObserver.unobserve(container);
}
};
}, [containerRef]);

return (
<div
className={`flex items-center justify-center px-3 py-3 w-full h-full ${hidden ? "hidden" : ""}`}
id="ctaContainer"
ref={containerRef}
>
<AdvertiserIcon small={width < 300} />
<div className="grow flex items-center justify-between overflow-hidden">
<div className="grow truncate">
<AdvertiserName small={width < 300} />
</div>
<div className="flex-none ml-4">
<AdvertiserCta small={width < 300} />
</div>
</div>
</div>
);
};

const AdvertiserIcon = ({ small = false }) => {
return (
<div className="flex-none mr-2">
<NativeLink>
<img data-ref="icon" className={`${small ? "w-8" : "w-10"} rounded-full`} alt="icon" />
</NativeLink>
</div>
);
};

const AdvertiserName = ({ small = false }) => {
return (
<div
className={`${
small ? "text-sm" : ""
} font-semibold overflow-hidden text-ellipsis relative top-[1px] dark:text-[#B3B3B3]`}
>
<NativeLink>
<span data-ref="advertiser"></span>
</NativeLink>
</div>
);
};

const AdvertiserCta = ({ ad, small = false }) => {
return (
<div className="flex-none">
<NativeLink>
<div
data-ref="ctaText"
className={`${
small ? "text-sm px-2 py-1" : "px-4 py-2"
} border dark:border-[#171717] border-[#EAEAEA] text-center rounded-[50px] dark:text-[#2F80ED] text-[#2F80ED] dark:hover:text-black hover:text-white dark:hover:bg-[#2F80ED] hover:bg-[#2F80ED] truncate`}
></div>
</NativeLink>
</div>
);
};

const NativeLink = ({ children }) => {
return (
<a data-ref="ctaLink" href="#!" target="_blank">
{children}
</a>
);
};

const HypeLabOverlay = () => {
const iconStyle = {
width: "18px",
height: "18px",
backgroundSize: "15px 15px",
backgroundPosition: "center",
backgroundRepeat: "no-repeat",
backgroundImage: `url('data:image/svg+xml,<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(%23clip0_466_1481)"><path fill-rule="evenodd" clip-rule="evenodd" d="M25.1879 2.89648C25.0902 2.89648 24.9994 2.94681 24.9476 3.02965L12.771 22.5122C12.712 22.6065 12.7799 22.7289 12.8911 22.7289H19.5615C19.6592 22.7289 19.75 22.6786 19.8018 22.5958L31.9784 3.11322C32.0374 3.01887 31.9695 2.89648 31.8583 2.89648H25.1879ZM12.4386 9.27098C12.3409 9.27098 12.2501 9.3213 12.1984 9.40414L0.0217591 28.8867C-0.0372113 28.981 0.0306218 29.1034 0.141887 29.1034H6.81229C6.90997 29.1034 7.00077 29.0531 7.05254 28.9703L19.2291 9.48772C19.2881 9.39337 19.2203 9.27098 19.109 9.27098H12.4386Z" fill="url(%23paint0_linear_466_1481)"/></g><defs><linearGradient id="paint0_linear_466_1481" x1="31.972" y1="2.89648" x2="12.6357" y2="22.7287" gradientUnits="userSpaceOnUse"><stop stop-color="%238235FF"/><stop offset="1" stop-color="%234330F2"/></linearGradient><clipPath id="clip0_466_1481"><rect width="32" height="32" fill="white"/></clipPath></defs></svg>')`,
};

return (
<div className="flex flex-row absolute top-0 right-0 bg-black/30 items-center pr-2 hover:translate-x-0 translate-x-[calc(100%-18px)] duration-500 transition-transform">
<div style={iconStyle}></div>
<div className="text-white text-xs h-[15px]">Ads by HypeLab</div>
</div>
);
};
74 changes: 74 additions & 0 deletions components/Layout/Logo.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading