Skip to content

Commit

Permalink
Merge pull request #67 from multiversx/added-bridge-executor-to-scripts
Browse files Browse the repository at this point in the history
Added bridge executor to compile scripts
  • Loading branch information
iulianpascalau authored Oct 8, 2024
2 parents 72df744 + 19b9c5b commit e32bce0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker/build.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@ RUN jq -r '.abi' artifacts/contracts/Proxy.sol/Proxy.json > artifacts/contracts/
RUN jq -r '.abi' artifacts/contracts/ERC20Safe.sol/ERC20Safe.json > artifacts/contracts/ERC20Safe.sol/ERC20Safe.abi.json
RUN jq -r '.abi' artifacts/contracts/GenericERC20.sol/GenericERC20.json > artifacts/contracts/GenericERC20.sol/GenericERC20.abi.json
RUN jq -r '.abi' artifacts/contracts/MintBurnERC20.sol/MintBurnERC20.json > artifacts/contracts/MintBurnERC20.sol/MintBurnERC20.abi.json
RUN jq -r '.abi' artifacts/contracts/BridgeExecutor.sol/BridgeExecutor.json > artifacts/contracts/BridgeExecutor.sol/BridgeExecutor.abi.json
RUN jq -r '.abi' artifacts/contracts/TestCaller.sol/TestCaller.json > artifacts/contracts/TestCaller.sol/TestCaller.abi.json

RUN jq -r '.bytecode' artifacts/contracts/Bridge.sol/Bridge.json > artifacts/contracts/Bridge.sol/Bridge.hex
RUN jq -r '.bytecode' artifacts/contracts/Proxy.sol/Proxy.json > artifacts/contracts/Proxy.sol/Proxy.hex
RUN jq -r '.bytecode' artifacts/contracts/ERC20Safe.sol/ERC20Safe.json > artifacts/contracts/ERC20Safe.sol/ERC20Safe.hex
RUN jq -r '.bytecode' artifacts/contracts/GenericERC20.sol/GenericERC20.json > artifacts/contracts/GenericERC20.sol/GenericERC20.hex
RUN jq -r '.bytecode' artifacts/contracts/MintBurnERC20.sol/MintBurnERC20.json > artifacts/contracts/MintBurnERC20.sol/MintBurnERC20.hex
RUN jq -r '.bytecode' artifacts/contracts/BridgeExecutor.sol/BridgeExecutor.json > artifacts/contracts/BridgeExecutor.sol/BridgeExecutor.hex
RUN jq -r '.bytecode' artifacts/contracts/TestCaller.sol/TestCaller.json > artifacts/contracts/TestCaller.sol/TestCaller.hex

FROM golang:1.20.7-bookworm AS go-builder
Expand All @@ -39,4 +41,5 @@ RUN abigen --abi=artifacts/contracts/Proxy.sol/Proxy.abi.json --pkg=contract --o
RUN abigen --abi=artifacts/contracts/ERC20Safe.sol/ERC20Safe.abi.json --pkg=contract --out=artifacts/contracts/ERC20Safe.sol/ERC20Safe.go --type=ERC20Safe
RUN abigen --abi=artifacts/contracts/GenericERC20.sol/GenericERC20.abi.json --pkg=contract --out=artifacts/contracts/GenericERC20.sol/GenericERC20.go --type=GenericERC20
RUN abigen --abi=artifacts/contracts/MintBurnERC20.sol/MintBurnERC20.abi.json --pkg=contract --out=artifacts/contracts/MintBurnERC20.sol/MintBurnERC20.go --type=MintBurnERC20
RUN abigen --abi=artifacts/contracts/BridgeExecutor.sol/BridgeExecutor.abi.json --pkg=contract --out=artifacts/contracts/BridgeExecutor.sol/BridgeExecutor.go --type=BridgeExecutor
RUN abigen --abi=artifacts/contracts/TestCaller.sol/TestCaller.abi.json --pkg=contract --out=artifacts/contracts/TestCaller.sol/TestCaller.go --type=TestCaller

0 comments on commit e32bce0

Please sign in to comment.