v0.2.4
What's Changed
- feat: add support for legacy bridge operator key by @minh-bq in #72
- feat: check if contract is paused before continue processing tasks by @minh-bq in #73
- chore: add FROM_BLOCK environment variable by @minh-bq in #74
- chore: bump golang to 1.18 version by @minh-bq in #75
Full Changelog: v0.2.3...v0.2.4
Upgrading guide
To upgrade, follow these steps:
- Update the .env file:
BRIDGE_IMAGE=http://ghcr.io/axieinfinity/bridge:v0.2.4-70568ab
BRIDGE_OPERATOR_PRIVATE_KEY=BRIDGE_OPERATOR_PRIVATE_KEY
BRIDGE_VOTER_PRIVATE_KEY=BRIDGE_VOTER_PRIVATE_KEY
RONIN_LEGACY_BRIDGE_OPERATOR_KEY=RONIN_LEGACY_BRIDGE_OPERATOR_KEY
Set your BRIDGE_IMAGE
to the latest version (0.2.4) by copying the value from the preceding code block.
Next, create new keys:
BRIDGE_OPERATOR_PRIVATE_KEY: Your new bridge operator private key without the 0x prefix.
BRIDGE_VOTER_PRIVATE_KEY: Your new bridge voter private key without the 0x prefix
RONIN_LEGACY_BRIDGE_OPERATOR_KEY: Your PoA node’s private key—you can copy the value from VALIDATOR_PRIVATE_KEY.
- Update the docker-compose.yaml file:
In docker-compose.yaml, delete RONIN_VALIDATOR_KEY from the bridge’s environment attribute:
bridge:
image: ${BRIDGE_IMAGE}
...
environment:
...
- RONIN_VALIDATOR_KEY=${VALIDATOR_PRIVATE_KEY} <-- delete this
Create three new keys under the bridge’s environment attribute:
bridge:
image: ${BRIDGE_IMAGE}
...
environment:
...
- RONIN_BRIDGE_OPERATOR_KEY=${BRIDGE_OPERATOR_PRIVATE_KEY}
- RONIN_BRIDGE_VOTER_KEY=${BRIDGE_VOTER_PRIVATE_KEY}
- RONIN_LEGACY_BRIDGE_OPERATOR_KEY=${RONIN_LEGACY_BRIDGE_OPERATOR_KEY}
...
- Pull the new image and restart the bridge container:
docker-compose up -d
- Verify that your bridge container is up and running with the correct address:
docker logs bridge
bridge | INFO [04-04|07:28:53.358] [RoninListener] Operator account address=0xD76B33A7ce5dbf374400A8Af6f825xxxxx
bridge | INFO [04-04|07:28:53.358] [RoninListener] Voter account address=0xB2106e0b921c682d824bd5276902axxxxx
bridge | INFO [04-04|07:28:53.359] [RoninListener] Legacy bridge operator account address=0xE6A695F7D96D549b0d176D591Dxxxx