icon-project / xcall-multi

Apache License 2.0
10 stars 9 forks source link

Solidity Artifacts On Release #254

Closed izyak closed 8 months ago

izyak commented 8 months ago

When the solidity contracts are released, the release should contain the ABI of the contract. This can be achieved as:

# needs to be added here when new contracts are added

cd contracts/evm
forge build
cat out/CallService.sol/CallService.json | jq -r .abi  > xcall_abi.json
cat out/CentralizedAdapter.sol/XCallCentralizeConnection.json | jq -r .abi > centralized_connection_abi.json
cat out/LayerZeroAdapter.sol/LayerZeroAdapter.json | jq -r .abi > layer_zero_adapter_abi.json
cat out/WormholeAdapter.sol/WormholeAdapter.json | jq -r .abi > wormhole_adapter_abi.json

This needs to be integrated into the CI Pipeline.