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

feat: added sepolia testnet #61

Merged
merged 2 commits into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ hh deploy-billing --network arbitrum-one \
--collector <COLLECTOR_ADDRESS> \
--token <GRT_ADDRESS> \
--governor <GOVERNOR_ADDRESS> \
--tokenGateway <L2GRAPHTOKENGATEWAY_ADDRESS>
--tokengateway <L2GRAPHTOKENGATEWAY_ADDRESS>
```

Then run this to verify on Etherscan:
Expand Down Expand Up @@ -103,7 +103,6 @@ hh verify --network mainnet \
<L2_BILLING_ADDRESS> \
<GRT_ADDRESS> \
<GOVERNOR_ADDRESS> \
<L2GRAPHTOKENGATEWAY_ADDRESS> \
<ARBITRUM_INBOX_ADDRESS>
```

Expand Down
15 changes: 15 additions & 0 deletions addresses.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,20 @@
"governor": "0xc6B8Dd6163a0d6E3Ff37Eb4306DeD0069FE4bF59",
"Billing": "0x2da5DF23869B05b6641C91297b7025029112abA7",
"BanxaWrapper": "0xDc4787B4c822a36F72A0084B02dA213A7291C35B"
},
"421614": {
"L2GraphToken": "0xf8c05dCF59E8B28BFD5eed176C562bEbcfc7Ac04",
"L2GraphTokenGateway": "0xB24Ce0f8c18c4DdDa584A7EeC132F49C966813bb",
"collector": "0x66FFdb62688deA21A0031Db7CD4C219C82e9B315",
"governor": "0x97B47D976b9ddD2608D61E77Ab10DAf05d17cbF9",
"Billing": "0xDb29A6dD3028e8cb8c7Db27E36701D533BE99EB6",
"BanxaWrapper": "0x08705a03C423124ea6Ab030FCdF20f1AdD7Ee266"
},
"11155111": {
"ArbitrumInbox": "0xaAe29B0366299461418F5324a79Afc425BE5ae21",
"GraphToken": "0xCA59cCeb39bE1808d7aA607153f4A5062daF3a83",
"L1GraphTokenGateway": "0x549DCB0b510Ee7C8d6E8e346ab9aC75E22DD78B3",
"governor": "0x20cFA0e7Db2ECd14032784075A4c686befc76758",
"BillingConnector": "0x12AF388f7e41c23702B5DE48C12A81f107d92391"
}
}
18 changes: 18 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,18 @@ interface NetworkConfig {
const networkConfigs: NetworkConfig[] = [
{ network: 'mainnet', chainId: 1 },
{ network: 'goerli', chainId: 5 },
{ network: 'sepolia', chainId: 11155111 },
{ network: 'arbitrum-one', chainId: 42161, url: 'https://arb1.arbitrum.io/rpc' },
{
network: 'arbitrum-goerli',
chainId: 421613,
url: 'https://goerli-rollup.arbitrum.io/rpc',
},
{
network: 'arbitrum-sepolia',
chainId: 421614,
url: 'https://sepolia-rollup.arbitrum.io/rpcblock',
},
{ network: 'polygon', chainId: 137, url: process.env.POLYGON_RPC_URL },
{ network: 'mumbai', chainId: 80001, url: process.env.POLYGON_MUMBAI_RPC_URL },
]
Expand Down Expand Up @@ -112,10 +118,22 @@ const config = {
apiKey: {
mainnet: process.env.ETHERSCAN_API_KEY,
goerli: process.env.ETHERSCAN_API_KEY,
sepolia: process.env.ETHERSCAN_API_KEY,
polygonMumbai: process.env.POLYGONSCAN_API_KEY,
arbitrumOne: process.env.ARBISCAN_API_KEY,
arbitrumGoerli: process.env.ARBISCAN_API_KEY,
arbitrumSepolia: process.env.ARBISCAN_API_KEY,
},
customChains: [
{
network: 'arbitrumSepolia',
chainId: 421614,
urls: {
apiURL: 'https://api-sepolia.arbiscan.io/api',
browserURL: 'https://sepolia.arbiscan.io',
},
},
],
},
abiExporter: {
path: './build/abis',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "graph-studio-billing-contracts",
"version": "1.0.1",
"version": "1.1.0",
"description": "Graph Studio Billing Contracts",
"main": "index.js",
"scripts": {
Expand Down
11 changes: 9 additions & 2 deletions scripts/deployAll
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,27 @@ if [[ "$L1_CHAINID" -eq "1" ]]; then
L1_NETWORK="mainnet"
elif [[ "$L1_CHAINID" -eq "5" ]]; then
L1_NETWORK="goerli"
elif [[ "$L1_CHAINID" -eq "11155111" ]]; then
L1_NETWORK="sepolia"
else
error_exit "Please set a valid L1_CHAINID in .env"
fi

if [[ "$L2_CHAINID" -eq "42161" ]]; then
if [[ "$L1_CHAINID" -ne "1" ]]; then
error_exit "Can't connect Arbitrum One to Goerli!"
error_exit "Should connect Arbitrum One to Mainnet!"
fi
L2_NETWORK="arbitrum-one"
elif [[ "$L2_CHAINID" -eq "421613" ]]; then
if [[ "$L1_CHAINID" -ne "5" ]]; then
error_exit "Can't connect Arbitrum Goerli to Mainnet!"
error_exit "Should connect Arbitrum Goerli to Goerli!"
fi
L2_NETWORK="arbitrum-goerli"
elif [[ "$L2_CHAINID" -eq "421614" ]]; then
if [[ "$L1_CHAINID" -ne "11155111" ]]; then
error_exit "Should connect Arbitrum Sepolia to Sepolia!"
fi
L2_NETWORK="arbitrum-sepolia"
else
error_exit "Please set a valid L2_CHAINID in .env"
fi
Expand Down
Loading