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

Rename Binance Smart Chain to BNB Chain #61

Open
wants to merge 1,192 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
1192 commits
Select commit Hold shift + click to select a range
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
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
a564c42
Add Egochain RPC (#1005)
Ebrinix Apr 2, 2024
f7586d8
chiliz chain integration (#961)
ersanyakit Apr 2, 2024
94144ca
update
realdealshaman Apr 2, 2024
02ac472
Add latest OMNIA RPCs (#1039)
dumitrucatalin Apr 6, 2024
fb7f7bc
Update extraRpcs.js (#1026)
NodifiAI Apr 6, 2024
4d58f25
fix syntax
realdealshaman Apr 6, 2024
dd7acf3
Update XDC Network RPCs (#1043)
AnilChinchawale Apr 9, 2024
4de50e3
Update extraRpcs.js (#1042)
0xx92 Apr 9, 2024
debb52f
Add boba Sepolia network (#1041)
boyuan-chen Apr 9, 2024
2fa2047
Add Polygon Bor Amoy (#1051)
3eph1r0th Apr 11, 2024
e266f9f
fix: remove broken blastapi.io url (#1050)
masterbd Apr 11, 2024
f16db22
Update extraRpcs.js (#1047)
0xx92 Apr 11, 2024
eb49d6f
Update extraRpcs.js (#1062)
Macaromswap Apr 16, 2024
429760c
Update extraRpcs.js (#1061)
0xx92 Apr 16, 2024
be3171b
Update extraRpcs.js (#1060)
0xx92 Apr 16, 2024
f8857a4
Update extraRpcs.js (#1059)
0xx92 Apr 16, 2024
408e177
Updated extraRpcs.js for Oasys. (#1055)
georgefuru Apr 16, 2024
d1567a8
Update extraRpcs.js (#1053)
0xx92 Apr 16, 2024
8c1d3e1
add chain to list
realdealshaman Apr 16, 2024
ffd15d4
Update extraRpcs.js, added new RPC for elastos (20) (#1068)
irzhywau Apr 21, 2024
a8f4cf5
Update extraRpcs.js (#1067)
intosKai Apr 21, 2024
392166a
Update extraRpcs.js (#1066)
JoGetBlock Apr 21, 2024
80c2e87
Update extraRpcs.js (#1065)
0xartcro Apr 21, 2024
0e0692c
add borachain rpc (#1064)
ericHwangMetabora Apr 21, 2024
a2c1e05
add rpc
realdealshaman Apr 21, 2024
10e056d
add rpc
realdealshaman Apr 21, 2024
dbe3a0f
Update extraRpcs.js (#1072)
coolestowl Apr 24, 2024
28dc9be
Update extraRpcs.js (#1076)
0xx92 Apr 30, 2024
c8a324f
add rpc
realdealshaman May 2, 2024
4568ea7
Added Pollum services Rpc for syscoin and rollux, mainnet and testnet…
jonathanlmd May 2, 2024
84d5d11
Create tr.json (#1082)
UmeyrFreezer May 6, 2024
3c8d699
Add SigmaCore RPC (#1080)
JordyDutch May 6, 2024
de3b1cb
Update extraRpcs.js (#1083)
Stonepapa May 7, 2024
eebfe0e
Update extraRpcs.js - Taiko.Tools (#1078)
Quevedin77 May 7, 2024
447db3b
Update extraRpcs.js lava eth (#1085)
mskutlu May 8, 2024
606d805
Update extraRpcs.js (#1088)
coolestowl May 10, 2024
7103a9d
Add Graffiti Full Node to Chainlist (#1087)
0xGraffiti May 10, 2024
f33edff
Update extraRpcs.js (#1071)
lthms May 10, 2024
e7446e7
Update extraRpcs.js (#1091)
Danielvul May 14, 2024
3c8c979
Update extraRpcs.js (#1090)
0xx92 May 14, 2024
1ae1f03
Update extraRpcs.js + NOWNodes BSC&ETH (#1093)
NOWNodes May 14, 2024
250e749
Add NOW RPC for NOW Chain (#1092)
nowchain May 14, 2024
ab82309
add ankr endpoint (#1096)
RogerLamTd May 18, 2024
80d1651
Add PLYR TAU Testnet (#1095)
iamcryptofennec May 21, 2024
0783e62
add rpcs
realdealshaman May 21, 2024
2b94dc3
add more amoy rpc (#1100)
codev911 May 23, 2024
d05f954
Add L3x Protocol (#1105)
michaelotis May 23, 2024
7c0d958
remove chain not yet listed at defillama
realdealshaman May 23, 2024
3017027
Envelop RPC for Blast Mainnet (#1107)
maxsiz May 23, 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)
93 changes: 93 additions & 0 deletions components/AdBanner/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
import * as Fathom from "fathom-client";
import { useEffect, useState } from "react";

import { FATHOM_ADS_ID } from "../../hooks/useAnalytics";
import { notTranslation as useTranslations, shuffleArray } from "../../utils";

const BANNERS = [
{
image: "brave.png",
name: "Brave",
url: "https://brave.com/wallet/?mtm_source=chainlist&mtm_medium=paid&mtm_campaign=q3wallet",
isActive: true,
},
{
image: "llamanodes.png",
name: "LlamaNodes",
url: "https://llamanodes.com",
isActive: true,
},
{
image: "gmx.png",
name: "GMX",
url: "https://app.gmx.io/#/trade/?ref=chainlist",
isActive: false,
},
].filter((banner) => banner.isActive);

export const AdBanner = () => {
const t = useTranslations("Common");
const [banner, setBanner] = useState();

// only render banner client-side to prevent hydration errors due to the random banners
useEffect(() => {
setBanner(BANNERS[Math.floor(Math.random() * BANNERS.length)]);
}, []);

if (!banner) {
return null;
}

const srcLarge = `./banners/large/${banner.image}`;
const srcSmall = `./banners/small/${banner.image}`;
const srcName = banner.name;

return (
<div className="flex flex-col w-full h-full justify-center gap-2">
<div className="w-full h-full rounded-[10px]">
<a
href={banner.url}
rel="noopener noreferrer"
target="_blank"
onClick={() => Fathom.trackGoal(FATHOM_ADS_ID[banner.name.toLowerCase()], 0)}
>
<picture className="rounded-[10px] duration-500 w-full h-full">
<source
srcSet={srcSmall}
media="(max-width: 420px)"
className="rounded-[10px] duration-500 w-full h-full"
/>
<source
srcSet={srcLarge}
media="(max-width: 639px)"
className="rounded-[10px] duration-500 w-full h-full"
/>
<source
srcSet={srcSmall}
media="(max-width: 1399px)"
className="rounded-[10px] duration-500 w-full h-full"
/>
<source
srcSet={srcLarge}
media="(max-width: 1679px)"
className="rounded-[10px] duration-500 w-full h-full"
/>
<source
srcSet={srcSmall}
media="(max-width: 2000px)"
className="rounded-[10px] duration-500 w-full h-full"
/>

<img src={srcLarge} alt={srcName} className="rounded-[10px] duration-500 w-full h-full" />
</picture>
</a>
</div>

<div className="w-full text-center text-xs text-gray-500 dark:text-[#B3B3B3] italic">
<a href="mailto:contact@llama-corp.com" rel="noopener noreferrer" target="_blank">
{`${t("your-ad-here")}, ${t("contact-us").toLowerCase()}`}
</a>
</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