0xPolygonHermez/zkevm-contracts

Is there a way to get the smt proof for a "ClaimXXXX" call?

wellttllew opened this issue · 1 comments

Sorry for the duplication: I asked the same question in the zkevm-node repo: 0xPolygonHermez/zkevm-node#1980 . However I don't know whether it is better to ask it here.

HI, I am trying to send an L1 message to L2. I wonder if there is an API method to get the smt proof for the "claimXXX" calls.

   /**
     * @notice Verify merkle proof and execute message
     * If the receiving address is an EOA, the call will result as a success
     * Which means that the amount of ether will be transferred correctly, but the message
     * will not trigger any execution
     * @param smtProof Smt proof
     * @param index Index of the leaf
     * @param mainnetExitRoot Mainnet exit root
     * @param rollupExitRoot Rollup exit root
     * @param originNetwork Origin network
     * @param originAddress Origin address
     * @param destinationNetwork Network destination
     * @param destinationAddress Address destination
     * @param amount message value
     * @param metadata Abi encoded metadata if any, empty otherwise
     */
    function claimMessage(
        bytes32[_DEPOSIT_CONTRACT_TREE_DEPTH] calldata smtProof,
        uint32 index,
        bytes32 mainnetExitRoot,
        bytes32 rollupExitRoot,
        uint32 originNetwork,
        address originAddress,
        uint32 destinationNetwork,
        address destinationAddress,
        uint256 amount,
        bytes calldata metadata
    ) external ifNotEmergencyState {

I found "https://proof-generator.polygon.technology/" is requested when I use your bridge. But this is not what I want.
Or I have to walk through the branch nodes at specific block height by myself?
Or any other suggestions?

Thanks.

Hi, I am closing this issue because I have received a response from the zkevm-node repo: 0xPolygonHermez/zkevm-node#1980