generated from neow3j/neow3j-boilerplate-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Precondition: Deploy a simple NEP-17 token, register it in the bridge and allocate funds of the NEP-17 token to the bridge contract.
Successful
- Use
withdrawToken()with the deployed NEP-17 token andtoas an EOA (not a contract) -> check eventTokenWithdrawal - Use
withdrawToken()with the deployed NEP-17 token andtoa contract -> check eventTokenClaimable - Use
withdrawToken()with withdrawals that exceed the bridge's balance -> check eventTokenClaimable - Check event
GasWithdrawalRootUpdatefor a successful withdrawal - Check updated root and nonce after a successful withdrawal
Invalid Cases
- Fail to withdraw if token bridge is not registered
- Fail to withdraw if
withdrawalslist parameter has size 0 - Fail if first withdrawal in
withdrawalslist parameter has not the next nonce - Fail if withdrawals in
withdrawalslist parameter have no subsequent nonces - Fail if provided
withdrawalRootis not equal the computed new root - Fail if
verifyValidatorSignatures()returnsfalse(e.g., not enough signatures)
Reactions are currently unavailable