ChainSafe / chainbridge-celo

GNU Lesser General Public License v3.0
3 stars 2 forks source link

add data-hash CLI command #99

Open P1sar opened 3 years ago

P1sar commented 3 years ago

Add data-hash commands for erc20 and erc721 CLI domains. cmd should build hash of the proposal data for an erc721/erc20 proposal

Implementation details

Implemented cmds for chaingbvrdige could be check here https://github.com/ChainSafe/chainbridge-deploy/blob/master/cb-sol-cli/cmd/erc20.js#L136 and here https://github.com/ChainSafe/chainbridge-deploy/blob/master/cb-sol-cli/cmd/erc721.js for erc20 and erc721 respectively The main problem is with the providing MPT proof and validators aggregated signature as could be found here https://github.com/ChainSafe/chainbridge-celo/blob/main/chain/writer/proposal_data.go#L51 So before implementing we should deal with these problems somehow...

Testing details

Test with E2E testing

Acceptance Criteria

Tests are pass