[SDK] buildFinalizeUnwrapCalldata + FinalizeUnwrapERC7984 explain/verify - #9513
Conversation
…pERC7984 Implement unshield phase-2 finalizeUnwrap calldata builder, tx type, classify, and Erc7984Token verify for direct and sendMultiSig shapes. Ticket: CHALO-1157 Co-authored-by: Cursor <cursoragent@cursor.com>
|
Claude finished @0xPrabh's task —— View job Code Review Analysis
|

Description
Adds
buildFinalizeUnwrapCalldata(requestId, cleartextAmount, decryptionProof)andFinalizeUnwrapERC7984transaction support for ERC-7984 unshield phase-2.finalizeUnwrap(bytes32,uint64,bytes)with selector0x5bb67a05requestId,cleartextAmount > 0and ≤ uint64, non-emptydecryptionProofTransactionType.FinalizeUnwrapERC7984with builder +classifyTransactionmappingErc7984Token.verifyTransactionfinalizeUnwrap branch (direct + sendMultiSig); optional amount match vs recipientsgasLimit(WP owns gas)Issue Number
CHALO-1157
Parent: CHALO-1135
Docs
yarn docsTests
buildFinalizeUnwrapCalldata/ decode round-trip and validation inabstract-ethFinalizeUnwrapERC7984transaction builder suite (wired viasdk-coin-eth)verifyTransactioncoverage for direct and sendMultiSig finalizeUnwrap shapesMade with Cursor