Skip to content

Commit 4c04a69

Browse files
committed
feat: deployed iotex mainnet
1 parent b0b8674 commit 4c04a69

File tree

2 files changed

+71
-0
lines changed

2 files changed

+71
-0
lines changed

archive/2024-12-13-deploy-iotex.txt

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
+ declare -p KEY
2+
+ echo 'Using deployer private key from environment variable KEY'
3+
Using deployer private key from environment variable KEY
4+
+ export PROVIDER=https://babel-api.mainnet.iotex.one
5+
+ PROVIDER=https://babel-api.mainnet.iotex.one
6+
+ export EXPLORER=https://iotexscan.io
7+
+ EXPLORER=https://iotexscan.io
8+
+ export OUTPUT_FILE=iotex-address.txt
9+
+ OUTPUT_FILE=iotex-address.txt
10+
+ ./scripts/deploy-without-migrator.js
11+
Deploying contracts from 0x72ea90e2Fe101090fc44156cae3141527AE9F429
12+
Connected to network at https://babel-api.mainnet.iotex.one: {"name":"unknown","chainId":"4689"}
13+
Follow deployment: https://iotexscan.io/tx/0x371e71b0713113ad9e6188a0a0912a31f442b567304e2c9b43e4068108b61df2
14+
DATAv2 deployed to: 0x871a20C72d636A8C987e762616Ab047e1B52653e
15+
Follow grant minter role: https://iotexscan.io/tx/0x10c9a18a44fd7d5994689723a0b20b5787904b3b222e237e75b2e26c6248102c
16+
Follow grant admin role: https://iotexscan.io/tx/0xa53fd8b82141e135c11c139175914d431d8fd315d18082ab330f9684d5ad90cf
17+
++ cat iotex-address.txt
18+
+ npx hardhat verify --network iotex 0x871a20C72d636A8C987e762616Ab047e1B52653e
19+
[INFO] Sourcify Verification Skipped: Sourcify verification is currently disabled. To enable it, add the following entry to your Hardhat configuration:
20+
21+
sourcify: {
22+
enabled: true
23+
}
24+
25+
Or set 'enabled' to false to hide this message.
26+
27+
For more information, visit https://hardhat.org/hardhat-runner/plugins/nomicfoundation-hardhat-verify#verifying-on-sourcify
28+
hardhat-verify found one or more errors during the verification process:
29+
30+
Etherscan:
31+
The address 0x871a20C72d636A8C987e762616Ab047e1B52653e has no bytecode. Is the contract deployed to this network?
32+
The selected network is iotex.
33+
34+
35+
+ echo 'Retrying in 10 seconds...'
36+
Retrying in 10 seconds...
37+
+ sleep 10
38+
++ cat iotex-address.txt
39+
+ npx hardhat verify --network iotex 0x871a20C72d636A8C987e762616Ab047e1B52653e
40+
[INFO] Sourcify Verification Skipped: Sourcify verification is currently disabled. To enable it, add the following entry to your Hardhat configuration:
41+
42+
sourcify: {
43+
enabled: true
44+
}
45+
46+
Or set 'enabled' to false to hide this message.
47+
48+
For more information, visit https://hardhat.org/hardhat-runner/plugins/nomicfoundation-hardhat-verify#verifying-on-sourcify
49+
50+
Successfully verified contract DATAv2 on the block explorer.
51+
https://iotexscan.io/address/0x871a20C72d636A8C987e762616Ab047e1B52653e#code

scripts/2024-12-13-deploy-iotex.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env bash
2+
set -euxo pipefail
3+
4+
if declare -p KEY >/dev/null 2>&1; then
5+
echo "Using deployer private key from environment variable KEY"
6+
else
7+
read -p "Enter deployer private key: " KEY
8+
export KEY="$KEY"
9+
fi
10+
11+
export PROVIDER=https://babel-api.mainnet.iotex.one
12+
export EXPLORER=https://iotexscan.io
13+
export OUTPUT_FILE=iotex-address.txt
14+
./scripts/deploy-without-migrator.js
15+
16+
# might take a while for the iotexscan indexers to notice the contract...
17+
until npx hardhat verify --network iotex $(cat iotex-address.txt); do
18+
echo "Retrying in 10 seconds..."
19+
sleep 10
20+
done

0 commit comments

Comments
 (0)