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

Deploy protocol contracts on new chains #1562

Merged
merged 27 commits into from
Feb 2, 2023
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
acaea95
deploy on bobaAvalanche
Ashar2shahid Nov 21, 2022
d78ffba
deploy on bobaBNB
Ashar2shahid Nov 22, 2022
3bca1b1
deploy on bobaMoonbeam
Ashar2shahid Nov 22, 2022
a6ec97b
deploy on arbitrum nova
Ashar2shahid Nov 22, 2022
6beac7f
deploy on nervos
Ashar2shahid Nov 22, 2022
4f054db
deploy on neon-devnet
Ashar2shahid Nov 22, 2022
02027bd
deploy on bobaEthereum
Ashar2shahid Nov 28, 2022
f9645b1
deploy on sxnetwork
Ashar2shahid Nov 28, 2022
2d2a3ec
deploy on aurora
Ashar2shahid Nov 28, 2022
ddfd98e
redeploy on sxNetwork undeterministic
Ashar2shahid Nov 28, 2022
29675ca
rename nervos to godwoken
Ashar2shahid Nov 28, 2022
a709c80
remove neon-devnet
Ashar2shahid Nov 28, 2022
b681038
add changeset
Ashar2shahid Nov 29, 2022
9186b6b
Merge branch 'master' into chain_deployments
Ashar2shahid Nov 29, 2022
5f06d50
PR suggestion
Ashar2shahid Dec 2, 2022
b7cc6c4
Merge branch 'master' into chain_deployments
Ashar2shahid Dec 2, 2022
83cdb28
remove neon-devnet from references
Ashar2shahid Dec 7, 2022
0174652
Merge branch 'master' into chain_deployments
Ashar2shahid Dec 14, 2022
b0ad766
add aurora-testnet
Ashar2shahid Dec 14, 2022
86c534a
deploy on godwoken-testnet
Ashar2shahid Dec 14, 2022
1b174c1
deploy on sx-network-testnet
Ashar2shahid Dec 14, 2022
038c49c
use generatedBytecode in veify-local assertion
Ashar2shahid Dec 14, 2022
16445f5
Merge branch 'master' into chain_deployments
Ashar2shahid Jan 24, 2023
4ccf2f2
change boba chains to kebab-case
Ashar2shahid Jan 24, 2023
145c0d2
update changeset
Ashar2shahid Jan 24, 2023
d1d1bef
sx-network-testnet undeterministic deployment
Ashar2shahid Jan 31, 2023
26494ab
Merge branch 'master' into chain_deployments
Ashar2shahid Feb 2, 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
5 changes: 5 additions & 0 deletions .changeset/happy-starfishes-tickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@api3/airnode-protocol': patch
Ashar2shahid marked this conversation as resolved.
Show resolved Hide resolved
---

Deployed protocol contracts on BobaEthereum,BobaBNB,BobaMonnbeam,ArbitrumNova,SX Network,Aurora and GodWoken
41 changes: 41 additions & 0 deletions packages/airnode-protocol/credentials.example.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"sepolia": "",
"arbitrumOne": "<arbitrum>",
"arbitrumTestnet": "<arbitrum-testnet>",
"aurora": "<aurora>",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is added but I'm seeing that the contracts are not verified on https://aurorascan.dev/

Copy link
Contributor Author

@Ashar2shahid Ashar2shahid Dec 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hardhat does support aurora but when I try to run the verify command I get the following error:

airnode-protocol/deploy/2_verify.js:
: ENOENT: no such file or directory, open '/home/ashar/API3/airnode/packages/airnode-protocol/artifacts/build-info/37ae4407f650f87f7cba868b566e365f.json'
    at DeploymentsManager.executeDeployScripts (/home/ashar/API3/airnode/node_modules/hardhat-deploy/src/DeploymentsManager.ts:1222:19)
    at DeploymentsManager.runDeploy (/home/ashar/API3/airnode/node_modules/hardhat-deploy/src/DeploymentsManager.ts:1052:5)
    at SimpleTaskDefinition.action (/home/ashar/API3/airnode/node_modules/hardhat-deploy/src/index.ts:438:5)
    at Environment._runTaskDefinition (/home/ashar/API3/airnode/node_modules/hardhat/src/internal/core/runtime-environment.ts:219:14)
    at Environment.run (/home/ashar/API3/airnode/node_modules/hardhat/src/internal/core/runtime-environment.ts:131:14)
    at SimpleTaskDefinition.action (/home/ashar/API3/airnode/node_modules/hardhat-deploy/src/index.ts:584:32)
    at Environment._runTaskDefinition (/home/ashar/API3/airnode/node_modules/hardhat/src/internal/core/runtime-environment.ts:219:14)
    at Environment.run (/home/ashar/API3/airnode/node_modules/hardhat/src/internal/core/runtime-environment.ts:131:14)
    at SimpleTaskDefinition.action (/home/ashar/API3/airnode/node_modules/hardhat-deploy/src/index.ts:669:5)
    at Environment._runTaskDefinition (/home/ashar/API3/airnode/node_modules/hardhat/src/internal/core/runtime-environment.ts:219:14)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.Error:: command not found

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The contracts do get verified locally

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had all previous deployments verified on the etherscan/blockscout block explorers manually. You can find the flattened versions at ftmscan.com or flatten them yourself using hardhat flatten.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is needed for decoding of transactions and in the etherscan case to allow the user interact with the contract over etherscan, it's not necessarily about verification that the contract is correct (that's what deterministic deployments and verify-local are for).

"avalanche": "",
"avalancheFujiTestnet": "<avalanche-testnet>",
"bsc": "",
Expand Down Expand Up @@ -62,11 +63,21 @@
"chainId": 42161,
"url": "https://arb1.arbitrum.io/rpc"
},
"arbitrum-nova": {
"accounts": { "mnemonic": "" },
"chainId": 42170,
"url": "https://nova.arbitrum.io/rpc"
},
"arbitrum-testnet": {
"accounts": { "mnemonic": "" },
"chainId": 421613,
"url": "https://goerli-rollup.arbitrum.io/rpc"
},
"aurora": {
Ashar2shahid marked this conversation as resolved.
Show resolved Hide resolved
"accounts": { "mnemonic": "" },
"chainId": 1313161554,
"url": "https://mainnet.aurora.dev/"
},
"avalanche": {
"accounts": { "mnemonic": "" },
"chainId": 43114,
Expand All @@ -77,6 +88,26 @@
"chainId": 43113,
"url": "https://api.avax-test.network/ext/bc/C/rpc"
},
"bobaAvalanche": {
"accounts": { "mnemonic": "" },
"chainId": 43288,
"url": "https://replica.avax.boba.network/"
},
"bobaBNB": {
"accounts": { "mnemonic": "" },
"chainId": 56288,
"url": "https://replica.bnb.boba.network/"
},
"bobaEthereum": {
"accounts": { "mnemonic": "" },
"chainId": 288,
"url": "https://lightning-replica.boba.network/"
},
"bobaMoonbeam": {
"accounts": { "mnemonic": "" },
"chainId": 1294,
"url": "https://replica.bobabeam.boba.network/"
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use kebab-case here and in the directory names. So boba-avalanche, boba-bnb, etc. so that we can standardize this #1575

"bsc": {
"accounts": { "mnemonic": "" },
"chainId": 56,
Expand Down Expand Up @@ -142,6 +173,11 @@
"chainId": 1285,
"url": "https://rpc.api.moonriver.moonbeam.network"
},
"godwoken": {
Ashar2shahid marked this conversation as resolved.
Show resolved Hide resolved
"accounts": { "mnemonic": "" },
"chainId": 71402,
"url": "https://v1.mainnet.godwoken.io/rpc"
},
"optimism": {
"accounts": { "mnemonic": "" },
"chainId": 10,
Expand Down Expand Up @@ -171,6 +207,11 @@
"accounts": { "mnemonic": "" },
"chainId": 31,
"url": "https://public-node.testnet.rsk.co"
},
"sxNetwork": {
Ashar2shahid marked this conversation as resolved.
Show resolved Hide resolved
"accounts": { "mnemonic": "" },
"chainId": 416,
"url": "https://rpc.sx.technology"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
42170
Loading