Skip to content

Commit 2f61c4e

Browse files
feat(ethereum): add WrappedBitcoin ERC20 (#738)
1 parent 31552be commit 2f61c4e

18 files changed

+253
-62
lines changed

api/ethereum/BridgingPayment.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

api/ethereum/ERC20Manager.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

api/ethereum/IBridgingPayment.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

api/ethereum/IERC20Manager.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

api/ethereum/IMessageQueue.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

api/ethereum/MessageQueue.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

api/ethereum/WrappedEther.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

ethereum/.env.example

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ ETHERSCAN_API_KEY="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
99
# CIRCLE_TOKEN="0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48" # ethereum address
1010
# TETHER_TOKEN="0xdAC17F958D2ee523a2206206994597C13D831ec7" # ethereum address
1111
# WRAPPED_ETHER="0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2" # ethereum address
12+
# WRAPPED_BITCOIN="0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599" # ethereum address
1213
VFT_MANAGER="0x0000000000000000000000000000000000000000000000000000000000000000" # vara address
1314
GOVERNANCE_ADMIN="0x0000000000000000000000000000000000000000000000000000000000000000" # vara address
1415
GOVERNANCE_PAUSER="0x0000000000000000000000000000000000000000000000000000000000000000" # vara address
@@ -20,7 +21,13 @@ BRIDGING_PAYMENT_FEE="1" # value in wei
2021

2122
# ./script/upgrades/MessageQueue.s.sol
2223

23-
# ./script/upgrades/Verifier.s.sol
24+
# ./script/upgrades/VerifierMock.s.sol
25+
26+
# ./script/upgrades/VerifierMainnet.s.sol
27+
28+
# ./script/upgrades/VerifierTestnet.s.sol
29+
30+
# ./script/upgrades/WrappedVara.s.sol
2431

2532
# ./test/Base.sol
2633
# DEPLOYER_ADDRESS="0x0000000000000000000000000000000000000000" # ethereum address

ethereum/.env.example.hoodi

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# common environment variables
2+
MAINNET_RPC_URL="https://ethereum-rpc.publicnode.com"
3+
HOODI_RPC_URL="https://ethereum-hoodi-rpc.publicnode.com"
4+
PRIVATE_KEY="0x0000000000000000000000000000000000000000000000000000000000000000"
5+
ETHERSCAN_API_KEY="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
6+
7+
# ./script/Deployment.s.sol
8+
# override tokens to Ethereum Mainnet addresses (optional)
9+
# CIRCLE_TOKEN="0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48" # ethereum address
10+
# TETHER_TOKEN="0xdAC17F958D2ee523a2206206994597C13D831ec7" # ethereum address
11+
# WRAPPED_ETHER="0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2" # ethereum address
12+
# WRAPPED_BITCOIN="0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599" # ethereum address
13+
VFT_MANAGER="0x0000000000000000000000000000000000000000000000000000000000000000" # vara address
14+
GOVERNANCE_ADMIN="0x0000000000000000000000000000000000000000000000000000000000000000" # vara address
15+
GOVERNANCE_PAUSER="0x0000000000000000000000000000000000000000000000000000000000000000" # vara address
16+
EMERGENCY_STOP_ADMIN="0x0000000000000000000000000000000000000000" # ethereum address
17+
EMERGENCY_STOP_OBSERVERS="0x0000000000000000000000000000000000000000,0x0000000000000000000000000000000000000001" # comma-separated list of ethereum addresses
18+
BRIDGING_PAYMENT_FEE="1" # value in wei
19+
20+
# ./script/upgrades/ERC20Manager.s.sol
21+
22+
# ./script/upgrades/MessageQueue.s.sol
23+
24+
# ./script/upgrades/VerifierMock.s.sol
25+
26+
# ./script/upgrades/VerifierMainnet.s.sol
27+
28+
# ./script/upgrades/VerifierTestnet.s.sol
29+
30+
# ./script/upgrades/WrappedVara.s.sol
31+
32+
# ./test/Base.sol
33+
# https://wiki.vara.network/docs/bridge/developer_hub#ethereum-testnet-hoodi
34+
DEPLOYER_ADDRESS="0x2f69b8A55D62A92871804dc5f20C1DC9aa43E598" # ethereum address
35+
FORK_URL_OR_ALIAS="hoodi" # url or alias of the network to fork from, e.g. "mainnet", "sepolia", "holesky", "hoodi"
36+
GOVERNANCE_ADMIN_CONTRACT="0x3288b744ADbC25f07b636718d72ec07F8C77E5E9" # ethereum address
37+
GOVERNANCE_PAUSER_CONTRACT="0x384B68Fc08c59Df51694f7F6A24A112B8331eEb0" # ethereum address

ethereum/.env.example.mainnet

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# common environment variables
2+
MAINNET_RPC_URL="https://ethereum-rpc.publicnode.com"
3+
HOODI_RPC_URL="https://ethereum-hoodi-rpc.publicnode.com"
4+
PRIVATE_KEY="0x0000000000000000000000000000000000000000000000000000000000000000"
5+
ETHERSCAN_API_KEY="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
6+
7+
# ./script/Deployment.s.sol
8+
# override tokens to Ethereum Mainnet addresses (optional)
9+
# CIRCLE_TOKEN="0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48" # ethereum address
10+
# TETHER_TOKEN="0xdAC17F958D2ee523a2206206994597C13D831ec7" # ethereum address
11+
# WRAPPED_ETHER="0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2" # ethereum address
12+
# WRAPPED_BITCOIN="0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599" # ethereum address
13+
VFT_MANAGER="0x0000000000000000000000000000000000000000000000000000000000000000" # vara address
14+
GOVERNANCE_ADMIN="0x0000000000000000000000000000000000000000000000000000000000000000" # vara address
15+
GOVERNANCE_PAUSER="0x0000000000000000000000000000000000000000000000000000000000000000" # vara address
16+
EMERGENCY_STOP_ADMIN="0x0000000000000000000000000000000000000000" # ethereum address
17+
EMERGENCY_STOP_OBSERVERS="0x0000000000000000000000000000000000000000,0x0000000000000000000000000000000000000001" # comma-separated list of ethereum addresses
18+
BRIDGING_PAYMENT_FEE="1" # value in wei
19+
20+
# ./script/upgrades/ERC20Manager.s.sol
21+
22+
# ./script/upgrades/MessageQueue.s.sol
23+
24+
# ./script/upgrades/VerifierMock.s.sol
25+
26+
# ./script/upgrades/VerifierMainnet.s.sol
27+
28+
# ./script/upgrades/VerifierTestnet.s.sol
29+
30+
# ./script/upgrades/WrappedVara.s.sol
31+
32+
# ./test/Base.sol
33+
# https://wiki.vara.network/docs/bridge/developer_hub#ethereum-mainnet
34+
DEPLOYER_ADDRESS="0xa301086BD258a3cC2a73C77033DA40A53c065451" # ethereum address
35+
FORK_URL_OR_ALIAS="mainnet" # url or alias of the network to fork from, e.g. "mainnet", "sepolia", "holesky", "hoodi"
36+
GOVERNANCE_ADMIN_CONTRACT="0x3681A3e25F5652389B8f52504D517E96352830C3" # ethereum address
37+
GOVERNANCE_PAUSER_CONTRACT="0x257936C55518609E47eAab53f40a6e19437BEF47" # ethereum address

0 commit comments

Comments
 (0)