Skip to content

Commit

Permalink
Merge pull request #174 from VenusProtocol/deploy/oracles-arbitrumSep…
Browse files Browse the repository at this point in the history
…olia

Oracles deployment on ArbitrumSepolia
  • Loading branch information
Debugger022 authored Apr 17, 2024
2 parents 1e32221 + 084e080 commit eb72b45
Show file tree
Hide file tree
Showing 24 changed files with 9,767 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ ARCHIVE_NODE_ethereum=https://eth-mainnet.nodereal.io/v1/<YOUR_KEY_HERE>
#ARCHIVE_NODE_ethereum=http://127.0.0.1:1248
#ARCHIVE_NODE_opbnbtestnet=https://opbnb-testnet.nodereal.io/v1/<YOUR_KEY_HERE>
#ARCHIVE_NODE_opbnbmainnet=https://opbnb-mainnet.nodereal.io/v1/<YOUR_KEY_HERE>
#ARCHIVE_NODE_arbitrumsepolia=https://sepolia-rollup.arbitrum.io/rpc
#ARCHIVE_NODE_arbitrumone=https://open-platform.nodereal.io/<YOUR_KEY_HERE>/arbitrum-nitro/

ETHERSCAN_API_KEY=
REPORT_GAS=
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ jobs:

- name: Export deployments
run: |
for NETWORK in bsctestnet bscmainnet ethereum sepolia opbnbtestnet opbnbmainnet; do
for NETWORK in bsctestnet bscmainnet ethereum sepolia opbnbtestnet opbnbmainnet arbitrumsepolia arbitrumone; do
EXPORT=true yarn hardhat export --network ${NETWORK} --export ./deployments/${NETWORK}.json
jq -M '{name, chainId, addresses: .contracts | map_values(.address)}' ./deployments/${NETWORK}.json > ./deployments/${NETWORK}_addresses.json
done
Expand Down
2 changes: 1 addition & 1 deletion deploy/1-deploy-oracles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const func: DeployFunction = async function ({ getNamedAccounts, deployments, ne
},
});

if (network.name === "arbitrum") {
if (network.name === "arbitrumone") {
await deploy("SequencerChainlinkOracle", {
contract: "SequencerChainlinkOracle",
from: deployer,
Expand Down
2 changes: 2 additions & 0 deletions deploy/2-deploy-redstone-oracle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,7 @@ const func: DeployFunction = async function ({ getNamedAccounts, deployments, ne
}
};

func.skip = async ({ network }: HardhatRuntimeEnvironment) =>
!["hardhat", "bscmainnet", "bsctestnet", "sepolia", "ethereum"].includes(network.name);
func.tags = ["deploy-redstone"];
export default func;
5 changes: 5 additions & 0 deletions deployments/arbitrumone.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "arbitrumone",
"chainId": "42161",
"contracts": {}
}
5 changes: 5 additions & 0 deletions deployments/arbitrumone_addresses.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "arbitrumone",
"chainId": "42161",
"addresses": {}
}
Loading

0 comments on commit eb72b45

Please sign in to comment.