Add a new end-point to bridge-service to return merkel-proof by GER: merkle-proof-by-ger?net_id=<net>&deposit_cnt=<deposit>&ger=<ger>. ger: is in hexadecimal without prefix '0x'
Errors:
To be able to calculate it the leaf deposit_cnt must be included. If not it returns an error like:
{"code":2,"message":"getting the proof failed (ROLLUP), error: height: 31, cur: 0x0000000000000000000000000000000000000000000000000000000000000000, error: parentHash: 0x0000000000000000000000000000000000000000000000000000000000000000, error: not found in the Storage, network: 1","details":[]}
The GlobalExitRoot must exists and be synced if your will recive an error like:
{"code":2,"message":"error getting GlobalExitRoot data for GER: 0xbbd4b810135ae3614c73bc646d8c9de1aae480f673a328758bd70d7223b74b6e. Err: not found in the Storage","details":[]}
What does this PR do?
merkle-proof-by-ger?net_id=<net>&deposit_cnt=<deposit>&ger=<ger>
.ger
: is in hexadecimal without prefix '0x'Errors:
To be able to calculate it the leaf
deposit_cnt
must be included. If not it returns an error like:The GlobalExitRoot must exists and be synced if your will recive an error like:
Example: