Skip to content

Commit

Permalink
Darwinia <=> Ethereum message protocol deployed! (#277)
Browse files Browse the repository at this point in the history
* update mainnet beacon light client bootstrap

* darwinia side deployed

* ethereum side deployed
  • Loading branch information
hujw77 committed Sep 28, 2022
1 parent 328bd69 commit 4eb444e
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 14 deletions.
18 changes: 16 additions & 2 deletions contracts/bridge/bin/addr/prod/darwinia.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
{
"DEPLOYER": "0x0f14341A7f464320319025540E8Fe48Ad0fe5aec"
}
"DEPLOYER": "0x7aE77149ed38c5dD313e9069d790Ce7085caf0A6",
"BridgeProxyAdmin": "0x86c85A9bf5DEAfdeD40D9C70517883D95F50Df03",
"ChainMessageCommitter": "0xEf5425b3B0111297e7178BAA8E7483430Ddc69D0",
"ChainMessageCommitterProxy": "0xea7d0fE22AF25d9655f7AdDd6a59E37e84B3AB5F",
"ethlive": {
"FeeMarket": "0xdaE9d5E41119EacEba2a12B1bE5825e2D39DaC3d",
"FeeMarketProxy": "0xcA927Df15afb7629b79dA4713a871190315c7409",
"BeaconLightClient": "0x9C266C48F07121181d8424768f0deD0170cC63A6",
"ExecutionLayer": "0xe50F1Ddf0C8778773f07Eb2759d045Ece19F6Cc1",
"BeaconLCMandatoryReward": "0xFB371c8B99ba0b239E66E0a66bB6296b00dCD09f",
"EthereumStorageVerifier": "0x1e0D6Ba9D7Ddd3f9bc121c51FA051E7826f12b9f",
"OutboundLane": "0xcA3749C8C3aF04278D596a3fBe461481B6aa1b01",
"InboundLane": "0xf1B8a9F8436800499DB8186f2da2fb3e78Ff7c2B",
"LaneMessageCommitter": "0x56746a8099a7e6D962802A23e01FeDdc1282cDAe"
}
}
13 changes: 12 additions & 1 deletion contracts/bridge/bin/addr/prod/ethlive.json
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
{}
{
"DEPLOYER": "0xa4FA5429544B225985F8438F2E013A9CCE7102f2",
"BridgeProxyAdmin": "0xBd1a110ec476b4775c43905000288881367B1a88",
"darwinia": {
"SimpleFeeMarket": "0xA546F42BeB3DEa617b0F3Ca6995C7Df5dfCaD29D",
"FeeMarketProxy": "0xCD97185B7d05f8ea91d241C8dfD51a2Cc9c0547a",
"POSALightClient": "0xf46349a32cA70C0B9fFbD19937Fb1623e7F3db19",
"DarwiniaMessageVerifier": "0x1632822223F75599daED9045FeaD2e93C6B41Cb7",
"OutboundLane": "0x169F28bfbfFCddFdc772A94Cf020bbB4CAdc8E01",
"InboundLane": "0x4E210866d089856a8A0435965FefEe19640487E5"
}
}
6 changes: 3 additions & 3 deletions contracts/bridge/bin/deploy-prod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if [[ -z ${INFURA_KEY} ]]; then
echo "INFURA_KEY not found, please set it and re-run the last command."
exit 1
fi
export ETH_GAS_PRICE=2000000000
. $(dirname $0)/deploy/prod/darwinia.sh
# export ETH_GAS_PRICE=1300000000
# . $(dirname $0)/deploy/prod/darwinia.sh
# export ETH_GAS_PRICE=2000000000
# . $(dirname $0)/deploy/prod/ethlive.sh
. $(dirname $0)/deploy/prod/ethlive.sh
12 changes: 6 additions & 6 deletions contracts/bridge/bin/deploy/prod/darwinia.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ FeeMarketProxy=$(deploy FeeMarketProxy \
# TODO: beacon light client config
# double check
BLS_PRECOMPILE=0x0000000000000000000000000000000000000800
SLOT=4648192
PROPOSER_INDEX=316902
PARENT_ROOT=0xfcedfe920b02c49b9ceb12fb6c65e7143cbdfec7801dfb7da0e17952606cc9e5
STATE_ROOT=0x0cb1396c057879dccad7f31108929540d52370a7ee5602b1b7fa0ef0979d9b53
BODY_ROOT=0xc06a1688effcf77ab5512e002dea9bc5157cac10bb65faab4a52d58b9df83494
CURRENT_SYNC_COMMITTEE_HASH=0x7136174c4e3f656371dfd1e33e0d2d2470b6e376bd365106c54566a5450f98a7
SLOT=4778944
PROPOSER_INDEX=35443
PARENT_ROOT=0xc2e07ff697bfc45ca9b8253175b62077d0fe6d748d1b85b346a6c7fb6cb2410d
STATE_ROOT=0x33aff789985de14f665691b742f4d50f90583aac26aabd20fc7210e7978e4837
BODY_ROOT=0x16635199ee0698bfcf0ed1dfbf866274d4d23b6a7c19572487c31c7f6f71a7e9
CURRENT_SYNC_COMMITTEE_HASH=0xb2520d951e21fd83c81cb89b919091ed253e664a1f996b70f9ef61d00d469a8d
GENESIS_VALIDATORS_ROOT=0x4b363db94e286120d76eb905340fdd4e54bfe9f06bf33ff6cf5ad27f511bfe95

BeaconLightClient=$(deploy BeaconLightClient \
Expand Down
1 change: 1 addition & 0 deletions contracts/bridge/bin/deploy/prod/ethlive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ echo "ETH_FROM: ${ETH_FROM}"
# import the deployment helpers
. $(dirname $0)/common.sh


BridgeProxyAdmin=$(deploy BridgeProxyAdmin)

export TARGET_CHAIN=darwinia
Expand Down
4 changes: 2 additions & 2 deletions contracts/bridge/e2e/helper/eth2client.t.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const Eth2Client = require('./eth2client').Eth2Client
// const beacon_endpoint = "http://127.0.0.1:5052"
const beacon_endpoint = "http://g2.dev.darwinia.network:9596"
// const beacon_endpoint = "https://lodestar-mainnet-rpc.darwinia.network/"
// const beacon_endpoint = "http://g2.dev.darwinia.network:9596"
const beacon_endpoint = "https://lodestar-mainnet-rpc.darwinia.network/"

const eth2Client = new Eth2Client(beacon_endpoint);

Expand Down

0 comments on commit 4eb444e

Please sign in to comment.