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

Extract the dropdown menu from VRF v2 cost calculator #1

Open
wants to merge 33 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
e0ef3b4
wip
simkasss Jul 31, 2023
b32e43a
wip
simkasss Aug 1, 2023
9804f86
wip
simkasss Aug 1, 2023
0fbf083
wip
simkasss Aug 1, 2023
66ae4f2
wip
simkasss Aug 1, 2023
25d5000
wip
simkasss Aug 1, 2023
108e5f7
wip
simkasss Aug 1, 2023
d713208
wip
simkasss Aug 1, 2023
ade0ae4
wip
simkasss Aug 1, 2023
618066a
change to absolute imports
simkasss Aug 1, 2023
41d3393
update imports
simkasss Aug 1, 2023
86898d8
extract-dropdown
simkasss Aug 2, 2023
c470482
use URLSearchParams instead of qs
simkasss Aug 2, 2023
790f940
fix getsupportedNetworkShortcut
simkasss Aug 3, 2023
d8a1e69
extract options
simkasss Aug 3, 2023
dd40af7
select ethereum chain on first load
simkasss Aug 4, 2023
cd8d30c
fix typo
aelmanaa Jul 31, 2023
0c83ea3
Add ethereum mainet -> avalanche mainnet lane
aelmanaa Aug 1, 2023
9b21447
Update test-tokens.mdx
Zexuz Aug 2, 2023
99de6f5
Network rename (#1431)
dwightjl Aug 2, 2023
ef23c37
Fix typo EOA address by EOA in CCIP page
Aug 3, 2023
380bca1
Tutorial template (#1425)
dwightjl Aug 3, 2023
ace1196
CCIP conceptual doc edits (#1433)
dwightjl Aug 3, 2023
bdf2aa9
Add validation to frontmatter (#1376)
simkasss Aug 3, 2023
4078acf
Collapsible left nav bar (#1389)
simkasss Aug 3, 2023
175685c
Fix search indexing
dwightjl Aug 4, 2023
65e35e6
Fix search URL paths
dwightjl Aug 4, 2023
57b1a3c
Risk terminology update
dwightjl Aug 7, 2023
92967dd
Update packages and collections
dwightjl Aug 4, 2023
e7f3e0e
Add capability for feed notices (#1440)
dwightjl Aug 7, 2023
9429bf7
Move chain data (#1426)
simkasss Aug 8, 2023
adcd87f
BASE mainnet feeds (#1442)
dwightjl Aug 8, 2023
f139756
Update chain metadata (#1443)
dwightjl Aug 8, 2023
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
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ vercel.json
tsconfig.json

/src/pages/chainlink-functions/resources/example-source.js
/src/env.d.ts
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# build output
dist/
.astro/

# dependencies
node_modules/
Expand Down
4 changes: 4 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,9 @@ module.exports = {
transform: {
"^.+\\.ts?$": "ts-jest",
},
moduleNameMapper: {
"\\.(css)$": "<rootDir>/src/__mocks__/styleMock.ts",
"^~/(.*)$": "<rootDir>/src/$1",
},
transformIgnorePatterns: ["<rootDir>/node_modules/"],
}
4,073 changes: 2,190 additions & 1,883 deletions package-lock.json

Large diffs are not rendered by default.

23 changes: 11 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"dependencies": {
"@11ty/eleventy-fetch": "^4.0.0",
"@algolia/client-search": "^4.18.0",
"@algolia/client-search": "^4.19.1",
"@astro-community/astro-embed-youtube": "^0.2.2",
"@astrojs/partytown": "^1.2.3",
"@astrojs/prism": "^2.1.2",
Expand All @@ -43,34 +43,33 @@
"github-slugger": "^2.0.0",
"nanostores": "^0.8.1",
"preact": "^10.16.0",
"query-string": "^8.1.0",
"react-instantsearch-hooks-web": "^6.46.0"
"react-instantsearch-hooks-web": "^6.47.3"
},
"devDependencies": {
"@astrojs/mdx": "^0.19.7",
"@astrojs/preact": "^2.2.1",
"@astrojs/react": "^2.2.1",
"@astrojs/sitemap": "^1.3.3",
"@astrojs/sitemap": "^1.4.0",
"@chainlink/contracts": "^0.6.1",
"@chainlink/contracts-ccip": "^0.7.3",
"@chainlink/contracts-ccip": "^0.7.6",
"@chainlink/solana-sdk": "^0.2.2",
"@nomicfoundation/hardhat-toolbox": "^2.0.2",
"@nomiclabs/hardhat-ethers": "^2.2.3",
"@openzeppelin/contracts": "^4.9.2",
"@openzeppelin/contracts": "^4.9.3",
"@project-serum/anchor": "^0.26.0",
"@types/node": "^20.4.5",
"@types/node": "^20.4.7",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"astro": "^2.8.1",
"astro": "^2.10.1",
"dotenv": "^16.3.1",
"eslint": "^8.44.0",
"eslint-config-prettier": "^8.8.0",
"eslint": "^8.46.0",
"eslint-config-prettier": "^8.10.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-n": "^15.7.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-promise": "^6.1.1",
"hardhat": "^2.16.1",
"hardhat": "^2.17.1",
"husky": "^8.0.3",
"lint-staged": "^13.2.3",
"lodash": "^4.17.21",
Expand Down
Binary file modified public/images/ccip/architecture-intro.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/ccip/architecture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
126 changes: 89 additions & 37 deletions scripts/reference/chains.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
"networkId": 1,
"slip44": 60,
"ens": { "registry": "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e" },
"explorers": [{ "name": "etherscan", "url": "https://etherscan.io", "standard": "EIP3091" }]
"explorers": [
{ "name": "etherscan", "url": "https://etherscan.io", "standard": "EIP3091" },
{ "name": "blockscout", "url": "https://eth.blockscout.com", "icon": "blockscout", "standard": "EIP3091" }
]
},
{
"name": "Goerli",
Expand All @@ -42,19 +45,30 @@
"chainId": 5,
"networkId": 5,
"ens": { "registry": "0x112234455c3a32fd11230c42e7bccd4a84e02010" },
"explorers": [{ "name": "etherscan-goerli", "url": "https://goerli.etherscan.io", "standard": "EIP3091" }]
"explorers": [
{ "name": "etherscan-goerli", "url": "https://goerli.etherscan.io", "standard": "EIP3091" },
{
"name": "blockscout-goerli",
"url": "https://eth-goerli.blockscout.com",
"icon": "blockscout",
"standard": "EIP3091"
}
]
},
{
"name": "Optimism",
"name": "OP Mainnet",
"chain": "ETH",
"rpc": ["https://mainnet.optimism.io/"],
"rpc": ["https://mainnet.optimism.io", "https://optimism.publicnode.com"],
"faucets": [],
"nativeCurrency": { "name": "Ether", "symbol": "ETH", "decimals": 18 },
"infoURL": "https://optimism.io",
"shortName": "oeth",
"chainId": 10,
"networkId": 10,
"explorers": [{ "name": "etherscan", "url": "https://optimistic.etherscan.io", "standard": "EIP3091" }]
"explorers": [
{ "name": "etherscan", "url": "https://optimistic.etherscan.io", "standard": "EIP3091" },
{ "name": "blockscout", "url": "https://optimism.blockscout.com", "icon": "blockscout", "standard": "EIP3091" }
]
},
{
"name": "RSK Mainnet",
Expand All @@ -70,13 +84,13 @@
"explorers": [{ "name": "RSK Explorer", "url": "https://explorer.rsk.co", "standard": "EIP3091" }]
},
{
"name": "Binance Smart Chain Mainnet",
"name": "BNB Smart Chain Mainnet",
"chain": "BSC",
"rpc": [
"https://bsc-dataseed1.binance.org",
"https://bsc-dataseed2.binance.org",
"https://bsc-dataseed3.binance.org",
"https://bsc-dataseed4.binance.org",
"https://bsc-dataseed1.bnbchain.org",
"https://bsc-dataseed2.bnbchain.org",
"https://bsc-dataseed3.bnbchain.org",
"https://bsc-dataseed4.bnbchain.org",
"https://bsc-dataseed1.defibit.io",
"https://bsc-dataseed2.defibit.io",
"https://bsc-dataseed3.defibit.io",
Expand All @@ -89,29 +103,29 @@
"wss://bsc-ws-node.nariox.org"
],
"faucets": ["https://free-online-app.com/faucet-for-eth-evm-chains/"],
"nativeCurrency": { "name": "Binance Chain Native Gas Token", "symbol": "BNB", "decimals": 18 },
"infoURL": "https://www.binance.org",
"nativeCurrency": { "name": "BNB Chain Native Token", "symbol": "BNB", "decimals": 18 },
"infoURL": "https://www.bnbchain.org/en",
"shortName": "bnb",
"chainId": 56,
"networkId": 56,
"slip44": 714,
"explorers": [{ "name": "bscscan", "url": "https://bscscan.com", "standard": "EIP3091" }]
},
{
"name": "Binance Smart Chain Testnet",
"name": "BNB Smart Chain Testnet",
"chain": "BSC",
"rpc": [
"https://data-seed-prebsc-1-s1.binance.org:8545",
"https://data-seed-prebsc-2-s1.binance.org:8545",
"https://data-seed-prebsc-1-s2.binance.org:8545",
"https://data-seed-prebsc-2-s2.binance.org:8545",
"https://data-seed-prebsc-1-s3.binance.org:8545",
"https://data-seed-prebsc-2-s3.binance.org:8545",
"https://data-seed-prebsc-1-s1.bnbchain.org:8545",
"https://data-seed-prebsc-2-s1.bnbchain.org:8545",
"https://data-seed-prebsc-1-s2.bnbchain.org:8545",
"https://data-seed-prebsc-2-s2.bnbchain.org:8545",
"https://data-seed-prebsc-1-s3.bnbchain.org:8545",
"https://data-seed-prebsc-2-s3.bnbchain.org:8545",
"https://bsc-testnet.publicnode.com"
],
"faucets": ["https://testnet.binance.org/faucet-smart"],
"nativeCurrency": { "name": "Binance Chain Native Gas Token", "symbol": "tBNB", "decimals": 18 },
"infoURL": "https://testnet.binance.org/",
"faucets": ["https://testnet.bnbchain.org/faucet-smart"],
"nativeCurrency": { "name": "BNB Chain Native Token", "symbol": "tBNB", "decimals": 18 },
"infoURL": "https://www.bnbchain.org/en",
"shortName": "bnbt",
"chainId": 97,
"networkId": 97,
Expand Down Expand Up @@ -145,12 +159,7 @@
"slip44": 700,
"explorers": [
{ "name": "gnosisscan", "url": "https://gnosisscan.io", "standard": "EIP3091" },
{
"name": "blockscout",
"url": "https://blockscout.com/xdai/mainnet",
"icon": "blockscout",
"standard": "EIP3091"
}
{ "name": "blockscout", "url": "https://gnosis.blockscout.com", "icon": "blockscout", "standard": "EIP3091" }
]
},
{
Expand Down Expand Up @@ -191,13 +200,21 @@
{
"name": "Optimism Goerli Testnet",
"chain": "ETH",
"rpc": ["https://goerli.optimism.io/"],
"rpc": ["https://goerli.optimism.io", "https://optimism-goerli.publicnode.com"],
"faucets": [],
"nativeCurrency": { "name": "Goerli Ether", "symbol": "ETH", "decimals": 18 },
"infoURL": "https://optimism.io",
"shortName": "ogor",
"chainId": 420,
"networkId": 420
"networkId": 420,
"explorers": [
{
"name": "blockscout",
"url": "https://optimism-goerli.blockscout.com",
"icon": "blockscout",
"standard": "EIP3091"
}
]
},
{
"name": "Metis Andromeda Mainnet",
Expand Down Expand Up @@ -249,6 +266,23 @@
"icon": "fantom",
"explorers": [{ "name": "ftmscan", "url": "https://testnet.ftmscan.com", "icon": "ftmscan", "standard": "EIP3091" }]
},
{
"name": "Base",
"chain": "ETH",
"rpc": ["https://mainnet.base.org/"],
"faucets": [],
"nativeCurrency": { "name": "Ether", "symbol": "ETH", "decimals": 18 },
"infoURL": "https://base.org",
"shortName": "base",
"chainId": 8453,
"networkId": 8453,
"icon": "base",
"explorers": [
{ "name": "basescan", "url": "https://basescan.org", "standard": "none" },
{ "name": "basescout", "url": "https://base.blockscout.com", "icon": "blockscout", "standard": "EIP3091" }
],
"status": "active"
},
{
"name": "Arbitrum One",
"chainId": 42161,
Expand All @@ -259,7 +293,8 @@
"rpc": [
"https://arbitrum-mainnet.infura.io/v3/${INFURA_API_KEY}",
"https://arb-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}",
"https://arb1.arbitrum.io/rpc"
"https://arb1.arbitrum.io/rpc",
"https://arbitrum-one.publicnode.com"
],
"faucets": [],
"explorers": [
Expand Down Expand Up @@ -353,9 +388,10 @@
"shortName": "basegor",
"chainId": 84531,
"networkId": 84531,
"icon": "baseTestnet",
"explorers": [
{ "name": "basescan", "url": "https://goerli.basescan.org", "standard": "none" },
{ "name": "basescout", "url": "https://base-goerli.blockscout.com", "standard": "none" }
{ "name": "basescout", "url": "https://base-goerli.blockscout.com", "icon": "blockscout", "standard": "EIP3091" }
]
},
{
Expand All @@ -366,7 +402,7 @@
"chain": "ETH",
"networkId": 421613,
"nativeCurrency": { "name": "Arbitrum Goerli Ether", "symbol": "AGOR", "decimals": 18 },
"rpc": ["https://goerli-rollup.arbitrum.io/rpc/"],
"rpc": ["https://goerli-rollup.arbitrum.io/rpc", "https://arbitrum-goerli.publicnode.com"],
"faucets": [],
"infoURL": "https://arbitrum.io/",
"explorers": [
Expand All @@ -382,7 +418,14 @@
"name": "Sepolia",
"title": "Ethereum Testnet Sepolia",
"chain": "ETH",
"rpc": ["https://rpc.sepolia.org", "https://rpc2.sepolia.org", "https://rpc-sepolia.rockx.com"],
"rpc": [
"https://rpc.sepolia.org",
"https://rpc2.sepolia.org",
"https://rpc-sepolia.rockx.com",
"https://rpc.sepolia.ethpandaops.io",
"https://sepolia.infura.io/v3/${INFURA_API_KEY}",
"wss://sepolia.infura.io/v3/${INFURA_API_KEY}"
],
"faucets": ["http://fauceth.komputing.org?chain=11155111&address=${ADDRESS}"],
"nativeCurrency": { "name": "Sepolia Ether", "symbol": "ETH", "decimals": 18 },
"infoURL": "https://sepolia.otterscan.io",
Expand All @@ -397,10 +440,19 @@
{
"name": "Harmony Mainnet Shard 0",
"chain": "Harmony",
"rpc": ["https://api.harmony.one", "https://api.s0.t.hmny.io"],
"faucets": ["https://free-online-app.com/faucet-for-eth-evm-chains/"],
"rpc": [
"https://api.harmony.one",
"https://a.api.s0.t.hmny.io",
"https://api.s0.t.hmny.io",
"https://rpc.ankr.com/harmony",
"https://harmony.api.onfinality.io/public",
"https://1rpc.io/one"
],
"faucets": [],
"nativeCurrency": { "name": "ONE", "symbol": "ONE", "decimals": 18 },
"infoURL": "https://www.harmony.one/",
"slip44": 1023,
"ens": { "registry": "0x4cd2563118e57b19179d8dc033f2b0c5b5d69ff5" },
"shortName": "hmy-s0",
"chainId": 1666600000,
"networkId": 1666600000,
Expand All @@ -417,7 +469,7 @@
"chainId": 1666700000,
"networkId": 1666700000,
"explorers": [
{ "name": "Harmony Testnet Block Explorer", "url": "https://explorer.pops.one", "standard": "EIP3091" }
{ "name": "Harmony Testnet Block Explorer", "url": "https://explorer.testnet.harmony.one", "standard": "EIP3091" }
]
}
]
1 change: 1 addition & 0 deletions scripts/reference/linkNameSymbol.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"1285": { "name": "ChainLink Token", "symbol": "LINK" },
"1284": { "name": "ChainLink Token", "symbol": "LINK" },
"84531": { "name": "ChainLink Token", "symbol": "LINK" },
"8453": { "name": "ChainLink Token", "symbol": "LINK" },
"421613": { "name": "ChainLink Token", "symbol": "LINK" },
"42220": { "name": "ChainLink Token", "symbol": "LINK" },
"44787": { "name": "ChainLink Token", "symbol": "LINK" }
Expand Down
1 change: 1 addition & 0 deletions src/__mocks__/styleMock.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = {}
Loading