@across-protocol/contracts 5.0.27 → 6.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +140 -34
- package/contracts/chain-adapters/Solana_Adapter.sol +25 -11
- package/contracts/external/interfaces/CCTPInterfaces.sol +19 -0
- package/contracts/handlers/HyperliquidDepositHandler.sol +2 -2
- package/contracts/test/MockCCTP.sol +49 -1
- package/dist/evm/artifacts/Arbitrum_Adapter.sol/Arbitrum_Adapter.json +1 -1
- package/dist/evm/artifacts/Arbitrum_CustomGasToken_Adapter.sol/Arbitrum_CustomGasToken_Adapter.json +1 -1
- package/dist/evm/artifacts/Arbitrum_RescueAdapter.sol/Arbitrum_RescueAdapter.json +1 -1
- package/dist/evm/artifacts/Arbitrum_SendTokensAdapter.sol/Arbitrum_SendTokensAdapter.json +1 -1
- package/dist/evm/artifacts/Arbitrum_SpokePool.sol/Arbitrum_SpokePool.json +1 -1
- package/dist/evm/artifacts/Arbitrum_WithdrawalHelper.sol/Arbitrum_WithdrawalHelper.json +1 -1
- package/dist/evm/artifacts/Base_Adapter.sol/Base_Adapter.json +1 -1
- package/dist/evm/artifacts/CCTPInterfaces.sol/IMessageTransmitterV2.json +1 -1
- package/dist/evm/artifacts/Cher_SpokePool.sol/Cher_SpokePool.json +1 -1
- package/dist/evm/artifacts/CircleCCTPAdapter.sol/CircleDomainIds.json +1 -1
- package/dist/evm/artifacts/Constants.sol/Constants.json +1 -1
- package/dist/evm/artifacts/CounterfactualConfig.sol/CounterfactualConfig.json +1 -1
- package/dist/evm/artifacts/CounterfactualDepositVanillaCCTP.sol/CounterfactualDepositVanillaCCTP.json +1 -1
- package/dist/evm/artifacts/DeploymentUtils.sol/DeploymentUtils.json +1 -1
- package/dist/evm/artifacts/DoctorWho_Adapter.sol/DoctorWho_Adapter.json +1 -1
- package/dist/evm/artifacts/HubPoolTestBase.sol/HubPoolTestBase.json +1 -1
- package/dist/evm/artifacts/HubPoolTestBase.sol/MockAddressWhitelist.json +1 -1
- package/dist/evm/artifacts/HubPoolTestBase.sol/MockFinder.json +1 -1
- package/dist/evm/artifacts/HubPoolTestBase.sol/MockIdentifierWhitelist.json +1 -1
- package/dist/evm/artifacts/HubPoolTestBase.sol/MockLpTokenFactory.json +1 -1
- package/dist/evm/artifacts/HubPoolTestBase.sol/MockOptimisticOracle.json +1 -1
- package/dist/evm/artifacts/HubPoolTestBase.sol/MockStore.json +1 -1
- package/dist/evm/artifacts/HyperliquidDepositHandler.sol/HyperliquidDepositHandler.json +1 -1
- package/dist/evm/artifacts/Lens_SpokePool.sol/Lens_SpokePool.json +1 -1
- package/dist/evm/artifacts/Linea_Adapter.sol/Linea_Adapter.json +1 -1
- package/dist/evm/artifacts/Linea_SpokePool.sol/Linea_SpokePool.json +1 -1
- package/dist/evm/artifacts/Lisk_Adapter.sol/Lisk_Adapter.json +1 -1
- package/dist/evm/artifacts/Lisk_SpokePool.sol/Lisk_SpokePool.json +1 -1
- package/dist/evm/artifacts/MockBedrockStandardBridge.sol/MockBedrockCrossDomainMessenger.json +1 -1
- package/dist/evm/artifacts/MockBedrockStandardBridge.sol/MockBedrockL1StandardBridge.json +1 -1
- package/dist/evm/artifacts/MockBedrockStandardBridge.sol/MockBedrockL2StandardBridge.json +1 -1
- package/dist/evm/artifacts/MockCCTP.sol/MockCCTPMessageTransmitter.json +1 -1
- package/dist/evm/artifacts/MockCCTP.sol/MockCCTPMessageTransmitterV2.json +1 -0
- package/dist/evm/artifacts/MockCCTP.sol/MockCCTPMessenger.json +1 -1
- package/dist/evm/artifacts/MockCCTP.sol/MockCCTPMessengerV2.json +1 -1
- package/dist/evm/artifacts/MockCCTP.sol/MockCCTPMinter.json +1 -1
- package/dist/evm/artifacts/Mode_Adapter.sol/Mode_Adapter.json +1 -1
- package/dist/evm/artifacts/OP_Adapter.sol/OP_Adapter.json +1 -1
- package/dist/evm/artifacts/OP_SpokePool.sol/OP_SpokePool.json +1 -1
- package/dist/evm/artifacts/Ovm_SpokePool.sol/Ovm_SpokePool.json +1 -1
- package/dist/evm/artifacts/Ovm_WithdrawalHelper.sol/Ovm_WithdrawalHelper.json +1 -1
- package/dist/evm/artifacts/Polygon_Adapter.sol/Polygon_Adapter.json +1 -1
- package/dist/evm/artifacts/Polygon_SpokePool.sol/Polygon_SpokePool.json +1 -1
- package/dist/evm/artifacts/Solana_Adapter.sol/Solana_Adapter.json +1 -1
- package/dist/evm/artifacts/SponsoredCCTPDstPeriphery.sol/SponsoredCCTPDstPeriphery.json +1 -1
- package/dist/evm/artifacts/SponsoredCCTPSrcPeriphery.sol/SponsoredCCTPSrcPeriphery.json +1 -1
- package/dist/evm/artifacts/Tron_SpokePool.sol/Tron_SpokePool.json +1 -1
- package/dist/evm/artifacts/Universal_Adapter.sol/Universal_Adapter.json +1 -1
- package/dist/evm/artifacts/Universal_SpokePool.sol/Universal_SpokePool.json +1 -1
- package/dist/evm/artifacts/ZkStack_Adapter.sol/ZkStack_Adapter.json +1 -1
- package/dist/evm/artifacts/ZkStack_CustomGasToken_Adapter.sol/ZkStack_CustomGasToken_Adapter.json +1 -1
- package/dist/evm/artifacts/ZkSync_SpokePool.sol/ZkSync_SpokePool.json +1 -1
- package/dist/evm/artifacts/Zora_Adapter.sol/Zora_Adapter.json +1 -1
- package/dist/evm/artifacts/eraVM_EIP7702.sol/SimpleContract.json +1 -1
- package/dist/evm/artifacts/eraVM_EIP7702.sol/SpokePoolEIP7702Test.json +1 -1
- package/dist/evm/artifacts/eraVM_EIP7702.sol/TestableMockSpokePool.json +1 -1
- package/dist/src/consts.js +3 -0
- package/dist/src/svm/assets/idl/index.d.ts +1 -3
- package/dist/src/svm/assets/idl/index.js +1 -5
- package/dist/src/svm/assets/idl/sponsored_cctp_src_periphery.json +41 -24
- package/dist/src/svm/assets/idl/svm_spoke.json +932 -2513
- package/dist/src/svm/assets/index.d.ts +0 -2
- package/dist/src/svm/assets/sponsored_cctp_src_periphery.d.ts +41 -24
- package/dist/src/svm/assets/svm_spoke.d.ts +929 -2510
- package/dist/src/svm/assets/token_messenger_minter_v2.d.ts +18 -18
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/accounts/index.d.ts +0 -1
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/accounts/index.js +0 -1
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/errors/sponsoredCctpSrcPeriphery.d.ts +24 -12
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/errors/sponsoredCctpSrcPeriphery.js +30 -12
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/programs/sponsoredCctpSrcPeriphery.d.ts +4 -5
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/programs/sponsoredCctpSrcPeriphery.js +4 -8
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/index.d.ts +1 -0
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/index.js +1 -0
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/messageSent.d.ts +21 -0
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/messageSent.js +30 -0
- package/dist/src/svm/clients/SvmSpoke/accounts/fillStatusAccount.d.ts +2 -2
- package/dist/src/svm/clients/SvmSpoke/accounts/fillStatusAccount.js +2 -2
- package/dist/src/svm/clients/SvmSpoke/accounts/index.d.ts +0 -4
- package/dist/src/svm/clients/SvmSpoke/accounts/index.js +0 -4
- package/dist/src/svm/clients/SvmSpoke/errors/svmSpoke.d.ts +95 -23
- package/dist/src/svm/clients/SvmSpoke/errors/svmSpoke.js +135 -26
- package/dist/src/svm/clients/SvmSpoke/instructions/adapterExecuteAcrossV5.d.ts +75 -0
- package/dist/src/svm/clients/SvmSpoke/instructions/adapterExecuteAcrossV5.js +144 -0
- package/dist/src/svm/clients/SvmSpoke/instructions/closeFillPda.d.ts +16 -8
- package/dist/src/svm/clients/SvmSpoke/instructions/closeFillPda.js +3 -3
- package/dist/src/svm/clients/SvmSpoke/instructions/executeRelayerRefundLeaf.d.ts +11 -15
- package/dist/src/svm/clients/SvmSpoke/instructions/executeRelayerRefundLeaf.js +1 -24
- package/dist/src/svm/clients/SvmSpoke/instructions/executeRelayerRefundLeafDeferred.d.ts +11 -15
- package/dist/src/svm/clients/SvmSpoke/instructions/executeRelayerRefundLeafDeferred.js +1 -24
- package/dist/src/svm/clients/SvmSpoke/instructions/handleReceiveFinalizedMessage.d.ts +75 -0
- package/dist/src/svm/clients/SvmSpoke/instructions/{handleReceiveMessage.js → handleReceiveFinalizedMessage.js} +26 -24
- package/dist/src/svm/clients/SvmSpoke/instructions/index.d.ts +3 -9
- package/dist/src/svm/clients/SvmSpoke/instructions/index.js +3 -9
- package/dist/src/svm/clients/SvmSpoke/instructions/withdrawV5FillPayer.d.ts +58 -0
- package/dist/src/svm/clients/SvmSpoke/instructions/withdrawV5FillPayer.js +134 -0
- package/dist/src/svm/clients/SvmSpoke/programs/svmSpoke.d.ts +26 -48
- package/dist/src/svm/clients/SvmSpoke/programs/svmSpoke.js +25 -65
- package/dist/src/svm/clients/SvmSpoke/types/acrossDepositInput.d.ts +25 -0
- package/dist/src/svm/clients/SvmSpoke/types/acrossDepositInput.js +33 -0
- package/dist/src/svm/clients/SvmSpoke/types/acrossDepositJitParams.d.ts +18 -0
- package/dist/src/svm/clients/SvmSpoke/types/acrossDepositJitParams.js +30 -0
- package/dist/src/svm/clients/SvmSpoke/types/acrossDepositParams.d.ts +43 -0
- package/dist/src/svm/clients/SvmSpoke/types/acrossDepositParams.js +48 -0
- package/dist/src/svm/clients/SvmSpoke/types/index.d.ts +9 -3
- package/dist/src/svm/clients/SvmSpoke/types/index.js +9 -3
- package/dist/src/svm/clients/SvmSpoke/types/v5AdapterInput.d.ts +39 -0
- package/dist/src/svm/clients/SvmSpoke/types/v5AdapterInput.js +59 -0
- package/dist/src/svm/clients/SvmSpoke/types/v5DepositModificationRules.d.ts +17 -0
- package/dist/src/svm/clients/SvmSpoke/types/v5DepositModificationRules.js +30 -0
- package/dist/src/svm/clients/SvmSpoke/types/v5FillFloatWithdrawn.d.ts +19 -0
- package/dist/src/svm/clients/SvmSpoke/types/v5FillFloatWithdrawn.js +28 -0
- package/dist/src/svm/clients/SvmSpoke/types/v5FillInput.d.ts +25 -0
- package/dist/src/svm/clients/SvmSpoke/types/v5FillInput.js +30 -0
- package/dist/src/svm/clients/SvmSpoke/types/v5FillJit.d.ts +22 -0
- package/dist/src/svm/clients/SvmSpoke/types/{slowFill.js → v5FillJit.js} +11 -11
- package/dist/src/svm/clients/SvmSpoke/types/v5InputAmountMode.d.ts +29 -0
- package/dist/src/svm/clients/SvmSpoke/types/v5InputAmountMode.js +38 -0
- package/dist/src/svm/clients/index.d.ts +1 -3
- package/dist/src/svm/clients/index.js +1 -5
- package/dist/src/svm/web3-v1/cctpV2Helpers.d.ts +94 -97
- package/dist/src/svm/web3-v1/cctpV2Helpers.js +41 -2
- package/dist/src/svm/web3-v1/coders.d.ts +1 -1
- package/dist/src/svm/web3-v1/coders.js +4 -4
- package/dist/src/svm/web3-v1/constants.d.ts +3 -2
- package/dist/src/svm/web3-v1/constants.js +5 -3
- package/dist/src/svm/web3-v1/conversionUtils.d.ts +1 -1
- package/dist/src/svm/web3-v1/conversionUtils.js +3 -3
- package/dist/src/svm/web3-v1/helpers.d.ts +1 -114
- package/dist/src/svm/web3-v1/helpers.js +1 -179
- package/dist/src/svm/web3-v1/index.d.ts +0 -1
- package/dist/src/svm/web3-v1/index.js +0 -1
- package/dist/src/svm/web3-v1/instructionParamsUtils.d.ts +11 -26
- package/dist/src/svm/web3-v1/instructionParamsUtils.js +5 -90
- package/dist/src/svm/web3-v1/programConnectors.d.ts +2 -4
- package/dist/src/svm/web3-v1/programConnectors.js +2 -12
- package/dist/src/svm/web3-v1/relayHashUtils.d.ts +2 -6
- package/dist/src/svm/web3-v1/relayHashUtils.js +5 -66
- package/dist/src/svm/web3-v1/solanaProgramUtils.d.ts +1 -1
- package/dist/src/svm/web3-v1/solanaProgramUtils.js +7 -7
- package/dist/src/svm/web3-v1/transactionUtils.js +3 -3
- package/dist/src/svm/web3-v2/solanaProgramUtils.d.ts +1 -1
- package/dist/src/svm/web3-v2/solanaProgramUtils.js +4 -4
- package/dist/src/types/svm.d.ts +1 -46
- package/package.json +17 -6
- package/dist/src/svm/assets/idl/message_transmitter.json +0 -1675
- package/dist/src/svm/assets/idl/token_messenger_minter.json +0 -2049
- package/dist/src/svm/assets/message_transmitter.d.ts +0 -1681
- package/dist/src/svm/assets/message_transmitter.js +0 -2
- package/dist/src/svm/assets/token_messenger_minter.d.ts +0 -2055
- package/dist/src/svm/assets/token_messenger_minter.js +0 -2
- package/dist/src/svm/clients/MessageTransmitter/accounts/index.d.ts +0 -10
- package/dist/src/svm/clients/MessageTransmitter/accounts/index.js +0 -26
- package/dist/src/svm/clients/MessageTransmitter/accounts/messageSent.d.ts +0 -28
- package/dist/src/svm/clients/MessageTransmitter/accounts/messageSent.js +0 -64
- package/dist/src/svm/clients/MessageTransmitter/accounts/messageTransmitter.d.ts +0 -46
- package/dist/src/svm/clients/MessageTransmitter/accounts/messageTransmitter.js +0 -82
- package/dist/src/svm/clients/MessageTransmitter/accounts/usedNonces.d.ts +0 -31
- package/dist/src/svm/clients/MessageTransmitter/accounts/usedNonces.js +0 -70
- package/dist/src/svm/clients/MessageTransmitter/errors/index.d.ts +0 -8
- package/dist/src/svm/clients/MessageTransmitter/errors/index.js +0 -24
- package/dist/src/svm/clients/MessageTransmitter/errors/messageTransmitter.d.ts +0 -83
- package/dist/src/svm/clients/MessageTransmitter/errors/messageTransmitter.js +0 -124
- package/dist/src/svm/clients/MessageTransmitter/index.d.ts +0 -12
- package/dist/src/svm/clients/MessageTransmitter/index.js +0 -28
- package/dist/src/svm/clients/MessageTransmitter/instructions/acceptOwnership.d.ts +0 -45
- package/dist/src/svm/clients/MessageTransmitter/instructions/acceptOwnership.js +0 -85
- package/dist/src/svm/clients/MessageTransmitter/instructions/disableAttester.d.ts +0 -55
- package/dist/src/svm/clients/MessageTransmitter/instructions/disableAttester.js +0 -105
- package/dist/src/svm/clients/MessageTransmitter/instructions/enableAttester.d.ts +0 -55
- package/dist/src/svm/clients/MessageTransmitter/instructions/enableAttester.js +0 -105
- package/dist/src/svm/clients/MessageTransmitter/instructions/getNoncePda.d.ts +0 -43
- package/dist/src/svm/clients/MessageTransmitter/instructions/getNoncePda.js +0 -82
- package/dist/src/svm/clients/MessageTransmitter/instructions/index.d.ts +0 -25
- package/dist/src/svm/clients/MessageTransmitter/instructions/index.js +0 -41
- package/dist/src/svm/clients/MessageTransmitter/instructions/initialize.d.ts +0 -70
- package/dist/src/svm/clients/MessageTransmitter/instructions/initialize.js +0 -123
- package/dist/src/svm/clients/MessageTransmitter/instructions/isNonceUsed.d.ts +0 -42
- package/dist/src/svm/clients/MessageTransmitter/instructions/isNonceUsed.js +0 -77
- package/dist/src/svm/clients/MessageTransmitter/instructions/pause.d.ts +0 -45
- package/dist/src/svm/clients/MessageTransmitter/instructions/pause.js +0 -85
- package/dist/src/svm/clients/MessageTransmitter/instructions/receiveMessage.d.ts +0 -67
- package/dist/src/svm/clients/MessageTransmitter/instructions/receiveMessage.js +0 -113
- package/dist/src/svm/clients/MessageTransmitter/instructions/reclaimEventAccount.d.ts +0 -48
- package/dist/src/svm/clients/MessageTransmitter/instructions/reclaimEventAccount.js +0 -94
- package/dist/src/svm/clients/MessageTransmitter/instructions/replaceMessage.d.ts +0 -64
- package/dist/src/svm/clients/MessageTransmitter/instructions/replaceMessage.js +0 -132
- package/dist/src/svm/clients/MessageTransmitter/instructions/sendMessage.d.ts +0 -61
- package/dist/src/svm/clients/MessageTransmitter/instructions/sendMessage.js +0 -112
- package/dist/src/svm/clients/MessageTransmitter/instructions/sendMessageWithCaller.d.ts +0 -64
- package/dist/src/svm/clients/MessageTransmitter/instructions/sendMessageWithCaller.js +0 -117
- package/dist/src/svm/clients/MessageTransmitter/instructions/setMaxMessageBodySize.d.ts +0 -49
- package/dist/src/svm/clients/MessageTransmitter/instructions/setMaxMessageBodySize.js +0 -94
- package/dist/src/svm/clients/MessageTransmitter/instructions/setSignatureThreshold.d.ts +0 -49
- package/dist/src/svm/clients/MessageTransmitter/instructions/setSignatureThreshold.js +0 -97
- package/dist/src/svm/clients/MessageTransmitter/instructions/transferOwnership.d.ts +0 -49
- package/dist/src/svm/clients/MessageTransmitter/instructions/transferOwnership.js +0 -91
- package/dist/src/svm/clients/MessageTransmitter/instructions/unpause.d.ts +0 -45
- package/dist/src/svm/clients/MessageTransmitter/instructions/unpause.js +0 -85
- package/dist/src/svm/clients/MessageTransmitter/instructions/updateAttesterManager.d.ts +0 -49
- package/dist/src/svm/clients/MessageTransmitter/instructions/updateAttesterManager.js +0 -94
- package/dist/src/svm/clients/MessageTransmitter/instructions/updatePauser.d.ts +0 -49
- package/dist/src/svm/clients/MessageTransmitter/instructions/updatePauser.js +0 -91
- package/dist/src/svm/clients/MessageTransmitter/programs/index.d.ts +0 -8
- package/dist/src/svm/clients/MessageTransmitter/programs/index.js +0 -24
- package/dist/src/svm/clients/MessageTransmitter/programs/messageTransmitter.d.ts +0 -78
- package/dist/src/svm/clients/MessageTransmitter/programs/messageTransmitter.js +0 -112
- package/dist/src/svm/clients/MessageTransmitter/shared/index.d.ts +0 -49
- package/dist/src/svm/clients/MessageTransmitter/shared/index.js +0 -94
- package/dist/src/svm/clients/MessageTransmitter/types/attesterDisabled.d.ts +0 -15
- package/dist/src/svm/clients/MessageTransmitter/types/attesterDisabled.js +0 -22
- package/dist/src/svm/clients/MessageTransmitter/types/attesterEnabled.d.ts +0 -15
- package/dist/src/svm/clients/MessageTransmitter/types/attesterEnabled.js +0 -22
- package/dist/src/svm/clients/MessageTransmitter/types/attesterManagerUpdated.d.ts +0 -16
- package/dist/src/svm/clients/MessageTransmitter/types/attesterManagerUpdated.js +0 -28
- package/dist/src/svm/clients/MessageTransmitter/types/handleReceiveMessageParams.d.ts +0 -18
- package/dist/src/svm/clients/MessageTransmitter/types/handleReceiveMessageParams.js +0 -32
- package/dist/src/svm/clients/MessageTransmitter/types/index.d.ts +0 -20
- package/dist/src/svm/clients/MessageTransmitter/types/index.js +0 -36
- package/dist/src/svm/clients/MessageTransmitter/types/mathError.d.ts +0 -17
- package/dist/src/svm/clients/MessageTransmitter/types/mathError.js +0 -29
- package/dist/src/svm/clients/MessageTransmitter/types/maxMessageBodySizeUpdated.d.ts +0 -17
- package/dist/src/svm/clients/MessageTransmitter/types/maxMessageBodySizeUpdated.js +0 -22
- package/dist/src/svm/clients/MessageTransmitter/types/messageReceived.d.ts +0 -25
- package/dist/src/svm/clients/MessageTransmitter/types/messageReceived.js +0 -34
- package/dist/src/svm/clients/MessageTransmitter/types/ownershipTransferStarted.d.ts +0 -16
- package/dist/src/svm/clients/MessageTransmitter/types/ownershipTransferStarted.js +0 -28
- package/dist/src/svm/clients/MessageTransmitter/types/ownershipTransferred.d.ts +0 -16
- package/dist/src/svm/clients/MessageTransmitter/types/ownershipTransferred.js +0 -28
- package/dist/src/svm/clients/MessageTransmitter/types/pause.d.ts +0 -13
- package/dist/src/svm/clients/MessageTransmitter/types/pause.js +0 -22
- package/dist/src/svm/clients/MessageTransmitter/types/pauserChanged.d.ts +0 -15
- package/dist/src/svm/clients/MessageTransmitter/types/pauserChanged.js +0 -22
- package/dist/src/svm/clients/MessageTransmitter/types/signatureThresholdUpdated.d.ts +0 -16
- package/dist/src/svm/clients/MessageTransmitter/types/signatureThresholdUpdated.js +0 -28
- package/dist/src/svm/clients/MessageTransmitter/types/unpause.d.ts +0 -13
- package/dist/src/svm/clients/MessageTransmitter/types/unpause.js +0 -22
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/accounts/messageSent.d.ts +0 -30
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/accounts/messageSent.js +0 -66
- package/dist/src/svm/clients/SvmSpoke/accounts/executeSlowRelayLeafParams.d.ts +0 -31
- package/dist/src/svm/clients/SvmSpoke/accounts/executeSlowRelayLeafParams.js +0 -70
- package/dist/src/svm/clients/SvmSpoke/accounts/fillRelayParams.d.ts +0 -31
- package/dist/src/svm/clients/SvmSpoke/accounts/fillRelayParams.js +0 -67
- package/dist/src/svm/clients/SvmSpoke/accounts/requestSlowFillParams.d.ts +0 -27
- package/dist/src/svm/clients/SvmSpoke/accounts/requestSlowFillParams.js +0 -66
- package/dist/src/svm/clients/SvmSpoke/accounts/transferLiability.d.ts +0 -27
- package/dist/src/svm/clients/SvmSpoke/accounts/transferLiability.js +0 -66
- package/dist/src/svm/clients/SvmSpoke/instructions/bridgeTokensToHubPool.d.ts +0 -123
- package/dist/src/svm/clients/SvmSpoke/instructions/bridgeTokensToHubPool.js +0 -313
- package/dist/src/svm/clients/SvmSpoke/instructions/deposit.d.ts +0 -131
- package/dist/src/svm/clients/SvmSpoke/instructions/deposit.js +0 -241
- package/dist/src/svm/clients/SvmSpoke/instructions/depositNow.d.ts +0 -127
- package/dist/src/svm/clients/SvmSpoke/instructions/depositNow.js +0 -239
- package/dist/src/svm/clients/SvmSpoke/instructions/executeSlowRelayLeaf.d.ts +0 -104
- package/dist/src/svm/clients/SvmSpoke/instructions/executeSlowRelayLeaf.js +0 -259
- package/dist/src/svm/clients/SvmSpoke/instructions/fillRelay.d.ts +0 -108
- package/dist/src/svm/clients/SvmSpoke/instructions/fillRelay.js +0 -265
- package/dist/src/svm/clients/SvmSpoke/instructions/getUnsafeDepositId.d.ts +0 -39
- package/dist/src/svm/clients/SvmSpoke/instructions/getUnsafeDepositId.js +0 -63
- package/dist/src/svm/clients/SvmSpoke/instructions/handleReceiveMessage.d.ts +0 -71
- package/dist/src/svm/clients/SvmSpoke/instructions/requestSlowFill.d.ts +0 -76
- package/dist/src/svm/clients/SvmSpoke/instructions/requestSlowFill.js +0 -187
- package/dist/src/svm/clients/SvmSpoke/instructions/unsafeDeposit.d.ts +0 -135
- package/dist/src/svm/clients/SvmSpoke/instructions/unsafeDeposit.js +0 -243
- package/dist/src/svm/clients/SvmSpoke/types/bridgedToHubPool.d.ts +0 -19
- package/dist/src/svm/clients/SvmSpoke/types/bridgedToHubPool.js +0 -28
- package/dist/src/svm/clients/SvmSpoke/types/slowFill.d.ts +0 -22
- package/dist/src/svm/clients/SvmSpoke/types/tokensBridged.d.ts +0 -25
- package/dist/src/svm/clients/SvmSpoke/types/tokensBridged.js +0 -34
- package/dist/src/svm/clients/TokenMessengerMinter/accounts/index.d.ts +0 -12
- package/dist/src/svm/clients/TokenMessengerMinter/accounts/index.js +0 -28
- package/dist/src/svm/clients/TokenMessengerMinter/accounts/localToken.d.ts +0 -43
- package/dist/src/svm/clients/TokenMessengerMinter/accounts/localToken.js +0 -82
- package/dist/src/svm/clients/TokenMessengerMinter/accounts/remoteTokenMessenger.d.ts +0 -29
- package/dist/src/svm/clients/TokenMessengerMinter/accounts/remoteTokenMessenger.js +0 -71
- package/dist/src/svm/clients/TokenMessengerMinter/accounts/tokenMessenger.d.ts +0 -35
- package/dist/src/svm/clients/TokenMessengerMinter/accounts/tokenMessenger.js +0 -74
- package/dist/src/svm/clients/TokenMessengerMinter/accounts/tokenMinter.d.ts +0 -33
- package/dist/src/svm/clients/TokenMessengerMinter/accounts/tokenMinter.js +0 -72
- package/dist/src/svm/clients/TokenMessengerMinter/accounts/tokenPair.d.ts +0 -33
- package/dist/src/svm/clients/TokenMessengerMinter/accounts/tokenPair.js +0 -72
- package/dist/src/svm/clients/TokenMessengerMinter/errors/index.d.ts +0 -8
- package/dist/src/svm/clients/TokenMessengerMinter/errors/index.js +0 -24
- package/dist/src/svm/clients/TokenMessengerMinter/errors/tokenMessengerMinter.d.ts +0 -45
- package/dist/src/svm/clients/TokenMessengerMinter/errors/tokenMessengerMinter.js +0 -67
- package/dist/src/svm/clients/TokenMessengerMinter/index.d.ts +0 -12
- package/dist/src/svm/clients/TokenMessengerMinter/index.js +0 -28
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/acceptOwnership.d.ts +0 -45
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/acceptOwnership.js +0 -82
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/addLocalToken.d.ts +0 -63
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/addLocalToken.js +0 -115
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/addRemoteTokenMessenger.d.ts +0 -61
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/addRemoteTokenMessenger.js +0 -110
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/burnTokenCustody.d.ts +0 -64
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/burnTokenCustody.js +0 -117
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/depositForBurn.d.ts +0 -94
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/depositForBurn.js +0 -161
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/depositForBurnWithCaller.d.ts +0 -97
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/depositForBurnWithCaller.js +0 -166
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/handleReceiveMessage.d.ts +0 -79
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/handleReceiveMessage.js +0 -132
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/index.d.ts +0 -26
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/index.js +0 -42
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/initialize.d.ts +0 -73
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/initialize.js +0 -124
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/linkTokenPair.d.ts +0 -64
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/linkTokenPair.js +0 -109
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/pause.d.ts +0 -45
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/pause.js +0 -82
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/removeLocalToken.d.ts +0 -57
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/removeLocalToken.js +0 -105
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/removeRemoteTokenMessenger.d.ts +0 -51
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/removeRemoteTokenMessenger.js +0 -94
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/replaceDepositForBurn.d.ts +0 -79
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/replaceDepositForBurn.js +0 -150
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/setMaxBurnAmountPerMessage.d.ts +0 -52
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/setMaxBurnAmountPerMessage.js +0 -97
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/setTokenController.d.ts +0 -52
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/setTokenController.js +0 -91
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/transferOwnership.d.ts +0 -49
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/transferOwnership.js +0 -88
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/unlinkTokenPair.d.ts +0 -51
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/unlinkTokenPair.js +0 -91
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/unpause.d.ts +0 -45
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/unpause.js +0 -82
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/updatePauser.d.ts +0 -52
- package/dist/src/svm/clients/TokenMessengerMinter/instructions/updatePauser.js +0 -91
- package/dist/src/svm/clients/TokenMessengerMinter/programs/index.d.ts +0 -8
- package/dist/src/svm/clients/TokenMessengerMinter/programs/index.js +0 -24
- package/dist/src/svm/clients/TokenMessengerMinter/programs/tokenMessengerMinter.d.ts +0 -83
- package/dist/src/svm/clients/TokenMessengerMinter/programs/tokenMessengerMinter.js +0 -124
- package/dist/src/svm/clients/TokenMessengerMinter/shared/index.d.ts +0 -49
- package/dist/src/svm/clients/TokenMessengerMinter/shared/index.js +0 -94
- package/dist/src/svm/clients/TokenMessengerMinter/types/depositForBurn.d.ts +0 -31
- package/dist/src/svm/clients/TokenMessengerMinter/types/depositForBurn.js +0 -40
- package/dist/src/svm/clients/TokenMessengerMinter/types/index.d.ts +0 -24
- package/dist/src/svm/clients/TokenMessengerMinter/types/index.js +0 -40
- package/dist/src/svm/clients/TokenMessengerMinter/types/localTokenAdded.d.ts +0 -16
- package/dist/src/svm/clients/TokenMessengerMinter/types/localTokenAdded.js +0 -28
- package/dist/src/svm/clients/TokenMessengerMinter/types/localTokenRemoved.d.ts +0 -16
- package/dist/src/svm/clients/TokenMessengerMinter/types/localTokenRemoved.js +0 -28
- package/dist/src/svm/clients/TokenMessengerMinter/types/mintAndWithdraw.d.ts +0 -21
- package/dist/src/svm/clients/TokenMessengerMinter/types/mintAndWithdraw.js +0 -30
- package/dist/src/svm/clients/TokenMessengerMinter/types/ownershipTransferStarted.d.ts +0 -16
- package/dist/src/svm/clients/TokenMessengerMinter/types/ownershipTransferStarted.js +0 -28
- package/dist/src/svm/clients/TokenMessengerMinter/types/ownershipTransferred.d.ts +0 -16
- package/dist/src/svm/clients/TokenMessengerMinter/types/ownershipTransferred.js +0 -28
- package/dist/src/svm/clients/TokenMessengerMinter/types/pause.d.ts +0 -13
- package/dist/src/svm/clients/TokenMessengerMinter/types/pause.js +0 -22
- package/dist/src/svm/clients/TokenMessengerMinter/types/pauserChanged.d.ts +0 -15
- package/dist/src/svm/clients/TokenMessengerMinter/types/pauserChanged.js +0 -22
- package/dist/src/svm/clients/TokenMessengerMinter/types/remoteTokenMessengerAdded.d.ts +0 -16
- package/dist/src/svm/clients/TokenMessengerMinter/types/remoteTokenMessengerAdded.js +0 -28
- package/dist/src/svm/clients/TokenMessengerMinter/types/remoteTokenMessengerRemoved.d.ts +0 -16
- package/dist/src/svm/clients/TokenMessengerMinter/types/remoteTokenMessengerRemoved.js +0 -28
- package/dist/src/svm/clients/TokenMessengerMinter/types/setBurnLimitPerMessage.d.ts +0 -19
- package/dist/src/svm/clients/TokenMessengerMinter/types/setBurnLimitPerMessage.js +0 -28
- package/dist/src/svm/clients/TokenMessengerMinter/types/setTokenController.d.ts +0 -15
- package/dist/src/svm/clients/TokenMessengerMinter/types/setTokenController.js +0 -22
- package/dist/src/svm/clients/TokenMessengerMinter/types/tokenCustodyBurned.d.ts +0 -19
- package/dist/src/svm/clients/TokenMessengerMinter/types/tokenCustodyBurned.js +0 -28
- package/dist/src/svm/clients/TokenMessengerMinter/types/tokenMinterError.d.ts +0 -23
- package/dist/src/svm/clients/TokenMessengerMinter/types/tokenMinterError.js +0 -35
- package/dist/src/svm/clients/TokenMessengerMinter/types/tokenPairLinked.d.ts +0 -17
- package/dist/src/svm/clients/TokenMessengerMinter/types/tokenPairLinked.js +0 -30
- package/dist/src/svm/clients/TokenMessengerMinter/types/tokenPairUnlinked.d.ts +0 -17
- package/dist/src/svm/clients/TokenMessengerMinter/types/tokenPairUnlinked.js +0 -30
- package/dist/src/svm/clients/TokenMessengerMinter/types/unpause.d.ts +0 -13
- package/dist/src/svm/clients/TokenMessengerMinter/types/unpause.js +0 -22
- package/dist/src/svm/web3-v1/cctpHelpers.d.ts +0 -65
- package/dist/src/svm/web3-v1/cctpHelpers.js +0 -148
- package/dist/target/types/svm_spoke.d.ts +0 -5517
- package/dist/target/types/svm_spoke.js +0 -2
|
@@ -8,61 +8,40 @@
|
|
|
8
8
|
},
|
|
9
9
|
"instructions": [
|
|
10
10
|
{
|
|
11
|
-
"name": "
|
|
11
|
+
"name": "adapter_execute_across_v5",
|
|
12
12
|
"docs": [
|
|
13
|
-
"
|
|
14
|
-
"",
|
|
15
|
-
"This function initiates the process of sending tokens from the vault to the Hub Pool based on the outstanding",
|
|
16
|
-
"token liability this Spoke Pool has accrued. Enables the caller to choose a custom amount to work around CCTP",
|
|
17
|
-
"bridging limits. enforces that amount is less than or equal to liability. On execution decrements liability.",
|
|
13
|
+
"Executes one Gateway-authenticated Across V5 source-deposit or destination-fill adapter branch.",
|
|
18
14
|
"",
|
|
19
15
|
"### Required Accounts:",
|
|
20
|
-
"-
|
|
21
|
-
"-
|
|
22
|
-
"-
|
|
23
|
-
"-
|
|
24
|
-
"-
|
|
25
|
-
"
|
|
26
|
-
"-
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"- token_messenger (UncheckedAccount): Account for the token messenger.",
|
|
30
|
-
"- remote_token_messenger (UncheckedAccount): Account for the remote token messenger.",
|
|
31
|
-
"- token_minter (UncheckedAccount): Account for the token minter.",
|
|
32
|
-
"- local_token (UncheckedAccount): Account for the local token.",
|
|
33
|
-
"- cctp_event_authority (UncheckedAccount): Authority for CCTP events.",
|
|
34
|
-
"- message_sent_event_data (Signer): Account for message sent event data.",
|
|
35
|
-
"- message_transmitter_program (Program): Program for the message transmitter.",
|
|
36
|
-
"- token_messenger_minter_program (Program): Program for the token messenger minter.",
|
|
37
|
-
"- token_program (Interface): The token program.",
|
|
38
|
-
"- system_program (Program): The system program.",
|
|
16
|
+
"- dispatch_authority (Signer): Gateway PDA derived from [\"dispatch_authority\", svm_spoke::ID].",
|
|
17
|
+
"- state: Spoke state PDA derived from [\"state\", state.seed], where `state.seed` is 0 on mainnet.",
|
|
18
|
+
"- event_authority: Anchor event CPI authority derived from [\"__event_authority\"].",
|
|
19
|
+
"- program: The SVM Spoke program.",
|
|
20
|
+
"- remaining accounts: Branch-specific mint and token-program accounts plus writable canonical token accounts.",
|
|
21
|
+
"Deposit mode also requires the SpokePool vault and [\"v5_deposit_delegate\"]. Fill mode requires the",
|
|
22
|
+
"submitter-scoped [\"v5_fill_payer\"], relay-scoped fill-status PDA, System Program, recipient ATA, and",
|
|
23
|
+
"[\"v5_fill_delegate\"], including when the recipient ATA is the Gateway vault itself. Account order is",
|
|
24
|
+
"unrestricted because each account is resolved by its authenticated expected key.",
|
|
39
25
|
"",
|
|
40
26
|
"### Parameters:",
|
|
41
|
-
"-
|
|
27
|
+
"- ctx_values: Gateway-attested step ID, path ID, and submitter.",
|
|
28
|
+
"- input: Strictly encoded, versioned `DepositV1 | FillV1` committed input.",
|
|
29
|
+
"- jit_data: Source modifications decoded only when the committed input enables them, or destination",
|
|
30
|
+
"relay/repayment data."
|
|
42
31
|
],
|
|
43
32
|
"discriminator": [
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
33
|
+
23,
|
|
34
|
+
161,
|
|
35
|
+
69,
|
|
36
|
+
148,
|
|
37
|
+
150,
|
|
38
|
+
128,
|
|
39
|
+
173,
|
|
40
|
+
220
|
|
52
41
|
],
|
|
53
42
|
"accounts": [
|
|
54
43
|
{
|
|
55
|
-
"name": "
|
|
56
|
-
"signer": true
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"name": "payer",
|
|
60
|
-
"writable": true,
|
|
61
|
-
"signer": true
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "mint",
|
|
65
|
-
"writable": true
|
|
44
|
+
"name": "dispatch_authority"
|
|
66
45
|
},
|
|
67
46
|
{
|
|
68
47
|
"name": "state",
|
|
@@ -86,141 +65,6 @@
|
|
|
86
65
|
]
|
|
87
66
|
}
|
|
88
67
|
},
|
|
89
|
-
{
|
|
90
|
-
"name": "transfer_liability",
|
|
91
|
-
"writable": true,
|
|
92
|
-
"pda": {
|
|
93
|
-
"seeds": [
|
|
94
|
-
{
|
|
95
|
-
"kind": "const",
|
|
96
|
-
"value": [
|
|
97
|
-
116,
|
|
98
|
-
114,
|
|
99
|
-
97,
|
|
100
|
-
110,
|
|
101
|
-
115,
|
|
102
|
-
102,
|
|
103
|
-
101,
|
|
104
|
-
114,
|
|
105
|
-
95,
|
|
106
|
-
108,
|
|
107
|
-
105,
|
|
108
|
-
97,
|
|
109
|
-
98,
|
|
110
|
-
105,
|
|
111
|
-
108,
|
|
112
|
-
105,
|
|
113
|
-
116,
|
|
114
|
-
121
|
|
115
|
-
]
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"kind": "account",
|
|
119
|
-
"path": "mint"
|
|
120
|
-
}
|
|
121
|
-
]
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"name": "vault",
|
|
126
|
-
"writable": true,
|
|
127
|
-
"pda": {
|
|
128
|
-
"seeds": [
|
|
129
|
-
{
|
|
130
|
-
"kind": "account",
|
|
131
|
-
"path": "state"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"kind": "account",
|
|
135
|
-
"path": "token_program"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"kind": "account",
|
|
139
|
-
"path": "mint"
|
|
140
|
-
}
|
|
141
|
-
],
|
|
142
|
-
"program": {
|
|
143
|
-
"kind": "const",
|
|
144
|
-
"value": [
|
|
145
|
-
140,
|
|
146
|
-
151,
|
|
147
|
-
37,
|
|
148
|
-
143,
|
|
149
|
-
78,
|
|
150
|
-
36,
|
|
151
|
-
137,
|
|
152
|
-
241,
|
|
153
|
-
187,
|
|
154
|
-
61,
|
|
155
|
-
16,
|
|
156
|
-
41,
|
|
157
|
-
20,
|
|
158
|
-
142,
|
|
159
|
-
13,
|
|
160
|
-
131,
|
|
161
|
-
11,
|
|
162
|
-
90,
|
|
163
|
-
19,
|
|
164
|
-
153,
|
|
165
|
-
218,
|
|
166
|
-
255,
|
|
167
|
-
16,
|
|
168
|
-
132,
|
|
169
|
-
4,
|
|
170
|
-
142,
|
|
171
|
-
123,
|
|
172
|
-
216,
|
|
173
|
-
219,
|
|
174
|
-
233,
|
|
175
|
-
248,
|
|
176
|
-
89
|
|
177
|
-
]
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
"name": "token_messenger_minter_sender_authority"
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
"name": "message_transmitter",
|
|
186
|
-
"writable": true
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
"name": "token_messenger"
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
"name": "remote_token_messenger"
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
"name": "token_minter"
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
"name": "local_token",
|
|
199
|
-
"writable": true
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
"name": "cctp_event_authority"
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
"name": "message_sent_event_data",
|
|
206
|
-
"writable": true,
|
|
207
|
-
"signer": true
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
"name": "message_transmitter_program",
|
|
211
|
-
"address": "CCTPmbSD7gX1bxKPAmg77w8oFzNFpaQiQUWD43TKaecd"
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
"name": "token_messenger_minter_program",
|
|
215
|
-
"address": "CCTPiPYPc6AsJuwueEnWgSgucamXDZwBd53dQ11YiKX3"
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
"name": "token_program"
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
"name": "system_program",
|
|
222
|
-
"address": "11111111111111111111111111111111"
|
|
223
|
-
},
|
|
224
68
|
{
|
|
225
69
|
"name": "event_authority",
|
|
226
70
|
"pda": {
|
|
@@ -256,8 +100,20 @@
|
|
|
256
100
|
],
|
|
257
101
|
"args": [
|
|
258
102
|
{
|
|
259
|
-
"name": "
|
|
260
|
-
"type":
|
|
103
|
+
"name": "ctx_values",
|
|
104
|
+
"type": {
|
|
105
|
+
"defined": {
|
|
106
|
+
"name": "GatewayContextV1"
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"name": "input",
|
|
112
|
+
"type": "bytes"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "jit_data",
|
|
116
|
+
"type": "bytes"
|
|
261
117
|
}
|
|
262
118
|
]
|
|
263
119
|
},
|
|
@@ -538,15 +394,16 @@
|
|
|
538
394
|
{
|
|
539
395
|
"name": "close_fill_pda",
|
|
540
396
|
"docs": [
|
|
541
|
-
"Closes the FillStatusAccount PDA to reclaim
|
|
397
|
+
"Closes the FillStatusAccount PDA to reclaim rent.",
|
|
542
398
|
"",
|
|
543
399
|
"This function is used to close the FillStatusAccount associated with a specific relay hash, effectively marking",
|
|
544
|
-
"the end of its lifecycle. This can only be done once the fill deadline has passed.
|
|
545
|
-
"
|
|
400
|
+
"the end of its lifecycle. This can only be done once the fill deadline has passed. Anyone can trigger closure,",
|
|
401
|
+
"but rent is always returned to the recorded rent recipient: the V5 payer PDA, historical relayer, or",
|
|
402
|
+
"slow-fill requester.",
|
|
546
403
|
"",
|
|
547
404
|
"### Required Accounts:",
|
|
548
|
-
"-
|
|
549
|
-
"- state (
|
|
405
|
+
"- rent_recipient (Writable): The recorded rent recipient; no signature is required.",
|
|
406
|
+
"- state (Readonly): Spoke state PDA. Seed: [\"state\",state.seed] where seed is 0 on mainnet.",
|
|
550
407
|
"- fill_status (Writable): The FillStatusAccount PDA to be closed."
|
|
551
408
|
],
|
|
552
409
|
"discriminator": [
|
|
@@ -561,9 +418,12 @@
|
|
|
561
418
|
],
|
|
562
419
|
"accounts": [
|
|
563
420
|
{
|
|
564
|
-
"name": "
|
|
565
|
-
"
|
|
566
|
-
|
|
421
|
+
"name": "rent_recipient",
|
|
422
|
+
"docs": [
|
|
423
|
+
"For V5 fills, supply the submitter's `[\"v5_fill_payer\", submitter]` PDA recorded in",
|
|
424
|
+
"`fill_status.rent_recipient`; legacy accounts retain the relayer or slow-fill requester address."
|
|
425
|
+
],
|
|
426
|
+
"writable": true
|
|
567
427
|
},
|
|
568
428
|
{
|
|
569
429
|
"name": "state",
|
|
@@ -710,76 +570,43 @@
|
|
|
710
570
|
"args": []
|
|
711
571
|
},
|
|
712
572
|
{
|
|
713
|
-
"name": "
|
|
573
|
+
"name": "emergency_delete_root_bundle",
|
|
714
574
|
"docs": [
|
|
715
|
-
"
|
|
716
|
-
"",
|
|
717
|
-
"The fee paid to relayers and the system is captured in the spread between the input and output amounts,",
|
|
718
|
-
"denominated in the input token. A relayer on the destination chain will send `output_amount` of `output_token`",
|
|
719
|
-
"to the recipient and receive `input_token` on a repayment chain of their choice. The fee accounts for:",
|
|
720
|
-
"destination transaction costs, relayer's opportunity cost of capital while waiting for a refund during the",
|
|
721
|
-
"optimistic challenge window in the HubPool, and the system fee charged to the relayer.",
|
|
575
|
+
"Deletes a root bundle in case of emergencies where bad bundle has reached the Spoke. Only callable by the owner.",
|
|
722
576
|
"",
|
|
723
|
-
"
|
|
724
|
-
"
|
|
725
|
-
"of this function along with the chain's `chainId()`. Relayers are refunded only for deposits with hashes that",
|
|
726
|
-
"exactly match those emitted by this contract.",
|
|
577
|
+
"This function will close the PDA for the associated `root_bundle_id`.",
|
|
578
|
+
"Note: Using this function does not decrement `state.root_bundle_id`.",
|
|
727
579
|
"",
|
|
728
580
|
"### Required Accounts:",
|
|
729
|
-
"- signer (Signer): The account that
|
|
581
|
+
"- signer (Signer): The account that must be the owner to authorize the deletion.",
|
|
582
|
+
"- closer (SystemAccount): The account that will receive the lamports from closing the root_bundle account.",
|
|
730
583
|
"- state (Writable): Spoke state PDA. Seed: [\"state\",state.seed] where seed is 0 on mainnet.",
|
|
731
|
-
"-
|
|
732
|
-
"- vault (Writable): Programs ATA for the associated input token. This is where the depositor's assets are sent.",
|
|
733
|
-
"Authority must be the state.",
|
|
734
|
-
"- mint (Account): The mint account for the input token.",
|
|
735
|
-
"- token_program (Interface): The token program.",
|
|
736
|
-
"- delegate (Account): The account used to delegate the input amount of the input token.",
|
|
584
|
+
"- root_bundle (Writable): The root bundle PDA to be closed. Seed: [\"root_bundle\",state.seed,root_bundle_id].",
|
|
737
585
|
"",
|
|
738
|
-
"### Parameters",
|
|
739
|
-
"-
|
|
740
|
-
"- recipient: The account receiving funds on the destination chain. Depending on the output chain can be an ETH",
|
|
741
|
-
"address or a contract address or any other address type encoded as a bytes32 field.",
|
|
742
|
-
"- input_token: The token pulled from the caller's account and locked into this program's vault on deposit.",
|
|
743
|
-
"- output_token: The token that the relayer will send to the recipient on the destination chain.",
|
|
744
|
-
"- input_amount: The amount of input tokens to pull from the caller's account and lock into the vault. This",
|
|
745
|
-
"amount will be sent to the relayer on their repayment chain of choice as a refund following an optimistic",
|
|
746
|
-
"challenge window in the HubPool, less a system fee.",
|
|
747
|
-
"- output_amount: The amount of output tokens that the relayer will send to the recipient on the destination.",
|
|
748
|
-
"This is big-endian encoded as a 32-byte array to match its underlying byte representation on EVM side.",
|
|
749
|
-
"- destination_chain_id: The destination chain identifier where the fill should be made.",
|
|
750
|
-
"- exclusive_relayer: The relayer that will be exclusively allowed to fill this deposit before the exclusivity",
|
|
751
|
-
"deadline timestamp. This must be a valid, non-zero address if the exclusivity deadline is greater than the",
|
|
752
|
-
"current block timestamp.",
|
|
753
|
-
"- quote_timestamp: The HubPool timestamp that is used to determine the system fee paid by the depositor. This",
|
|
754
|
-
"must be set to some time between [currentTime - depositQuoteTimeBuffer, currentTime].",
|
|
755
|
-
"- fill_deadline: The deadline for the relayer to fill the deposit. After this destination chain timestamp, the",
|
|
756
|
-
"fill will revert on the destination chain. Must be set before currentTime + fillDeadlineBuffer.",
|
|
757
|
-
"- exclusivity_parameter: Sets the exclusivity deadline timestamp for the exclusiveRelayer to fill the deposit.",
|
|
758
|
-
"1. If 0, no exclusivity period.",
|
|
759
|
-
"2. If less than MAX_EXCLUSIVITY_PERIOD_SECONDS, adds this value to the current block timestamp.",
|
|
760
|
-
"3. Otherwise, uses this value as the exclusivity deadline timestamp.",
|
|
761
|
-
"- message: The message to send to the recipient on the destination chain if the recipient is a contract.",
|
|
762
|
-
"If not empty, the recipient contract must implement handleV3AcrossMessage() or the fill will revert."
|
|
586
|
+
"### Parameters:",
|
|
587
|
+
"- root_bundle_id: Index of the root bundle that needs to be deleted."
|
|
763
588
|
],
|
|
764
589
|
"discriminator": [
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
590
|
+
226,
|
|
591
|
+
158,
|
|
592
|
+
1,
|
|
593
|
+
74,
|
|
594
|
+
84,
|
|
595
|
+
113,
|
|
596
|
+
24,
|
|
597
|
+
152
|
|
773
598
|
],
|
|
774
599
|
"accounts": [
|
|
775
600
|
{
|
|
776
601
|
"name": "signer",
|
|
777
|
-
"writable": true,
|
|
778
602
|
"signer": true
|
|
779
603
|
},
|
|
604
|
+
{
|
|
605
|
+
"name": "closer",
|
|
606
|
+
"writable": true
|
|
607
|
+
},
|
|
780
608
|
{
|
|
781
609
|
"name": "state",
|
|
782
|
-
"writable": true,
|
|
783
610
|
"pda": {
|
|
784
611
|
"seeds": [
|
|
785
612
|
{
|
|
@@ -801,1115 +628,38 @@
|
|
|
801
628
|
}
|
|
802
629
|
},
|
|
803
630
|
{
|
|
804
|
-
"name": "
|
|
805
|
-
},
|
|
806
|
-
{
|
|
807
|
-
"name": "depositor_token_account",
|
|
631
|
+
"name": "root_bundle",
|
|
808
632
|
"writable": true,
|
|
809
633
|
"pda": {
|
|
810
634
|
"seeds": [
|
|
811
635
|
{
|
|
812
|
-
"kind": "
|
|
813
|
-
"
|
|
636
|
+
"kind": "const",
|
|
637
|
+
"value": [
|
|
638
|
+
114,
|
|
639
|
+
111,
|
|
640
|
+
111,
|
|
641
|
+
116,
|
|
642
|
+
95,
|
|
643
|
+
98,
|
|
644
|
+
117,
|
|
645
|
+
110,
|
|
646
|
+
100,
|
|
647
|
+
108,
|
|
648
|
+
101
|
|
649
|
+
]
|
|
814
650
|
},
|
|
815
651
|
{
|
|
816
652
|
"kind": "account",
|
|
817
|
-
"path": "
|
|
653
|
+
"path": "state.seed",
|
|
654
|
+
"account": "State"
|
|
818
655
|
},
|
|
819
656
|
{
|
|
820
|
-
"kind": "
|
|
821
|
-
"path": "
|
|
657
|
+
"kind": "arg",
|
|
658
|
+
"path": "root_bundle_id"
|
|
822
659
|
}
|
|
823
|
-
]
|
|
824
|
-
"program": {
|
|
825
|
-
"kind": "const",
|
|
826
|
-
"value": [
|
|
827
|
-
140,
|
|
828
|
-
151,
|
|
829
|
-
37,
|
|
830
|
-
143,
|
|
831
|
-
78,
|
|
832
|
-
36,
|
|
833
|
-
137,
|
|
834
|
-
241,
|
|
835
|
-
187,
|
|
836
|
-
61,
|
|
837
|
-
16,
|
|
838
|
-
41,
|
|
839
|
-
20,
|
|
840
|
-
142,
|
|
841
|
-
13,
|
|
842
|
-
131,
|
|
843
|
-
11,
|
|
844
|
-
90,
|
|
845
|
-
19,
|
|
846
|
-
153,
|
|
847
|
-
218,
|
|
848
|
-
255,
|
|
849
|
-
16,
|
|
850
|
-
132,
|
|
851
|
-
4,
|
|
852
|
-
142,
|
|
853
|
-
123,
|
|
854
|
-
216,
|
|
855
|
-
219,
|
|
856
|
-
233,
|
|
857
|
-
248,
|
|
858
|
-
89
|
|
859
|
-
]
|
|
860
|
-
}
|
|
660
|
+
]
|
|
861
661
|
}
|
|
862
662
|
},
|
|
863
|
-
{
|
|
864
|
-
"name": "vault",
|
|
865
|
-
"writable": true,
|
|
866
|
-
"pda": {
|
|
867
|
-
"seeds": [
|
|
868
|
-
{
|
|
869
|
-
"kind": "account",
|
|
870
|
-
"path": "state"
|
|
871
|
-
},
|
|
872
|
-
{
|
|
873
|
-
"kind": "account",
|
|
874
|
-
"path": "token_program"
|
|
875
|
-
},
|
|
876
|
-
{
|
|
877
|
-
"kind": "account",
|
|
878
|
-
"path": "mint"
|
|
879
|
-
}
|
|
880
|
-
],
|
|
881
|
-
"program": {
|
|
882
|
-
"kind": "const",
|
|
883
|
-
"value": [
|
|
884
|
-
140,
|
|
885
|
-
151,
|
|
886
|
-
37,
|
|
887
|
-
143,
|
|
888
|
-
78,
|
|
889
|
-
36,
|
|
890
|
-
137,
|
|
891
|
-
241,
|
|
892
|
-
187,
|
|
893
|
-
61,
|
|
894
|
-
16,
|
|
895
|
-
41,
|
|
896
|
-
20,
|
|
897
|
-
142,
|
|
898
|
-
13,
|
|
899
|
-
131,
|
|
900
|
-
11,
|
|
901
|
-
90,
|
|
902
|
-
19,
|
|
903
|
-
153,
|
|
904
|
-
218,
|
|
905
|
-
255,
|
|
906
|
-
16,
|
|
907
|
-
132,
|
|
908
|
-
4,
|
|
909
|
-
142,
|
|
910
|
-
123,
|
|
911
|
-
216,
|
|
912
|
-
219,
|
|
913
|
-
233,
|
|
914
|
-
248,
|
|
915
|
-
89
|
|
916
|
-
]
|
|
917
|
-
}
|
|
918
|
-
}
|
|
919
|
-
},
|
|
920
|
-
{
|
|
921
|
-
"name": "mint"
|
|
922
|
-
},
|
|
923
|
-
{
|
|
924
|
-
"name": "token_program"
|
|
925
|
-
},
|
|
926
|
-
{
|
|
927
|
-
"name": "associated_token_program",
|
|
928
|
-
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
|
|
929
|
-
},
|
|
930
|
-
{
|
|
931
|
-
"name": "system_program",
|
|
932
|
-
"address": "11111111111111111111111111111111"
|
|
933
|
-
},
|
|
934
|
-
{
|
|
935
|
-
"name": "event_authority",
|
|
936
|
-
"pda": {
|
|
937
|
-
"seeds": [
|
|
938
|
-
{
|
|
939
|
-
"kind": "const",
|
|
940
|
-
"value": [
|
|
941
|
-
95,
|
|
942
|
-
95,
|
|
943
|
-
101,
|
|
944
|
-
118,
|
|
945
|
-
101,
|
|
946
|
-
110,
|
|
947
|
-
116,
|
|
948
|
-
95,
|
|
949
|
-
97,
|
|
950
|
-
117,
|
|
951
|
-
116,
|
|
952
|
-
104,
|
|
953
|
-
111,
|
|
954
|
-
114,
|
|
955
|
-
105,
|
|
956
|
-
116,
|
|
957
|
-
121
|
|
958
|
-
]
|
|
959
|
-
}
|
|
960
|
-
]
|
|
961
|
-
}
|
|
962
|
-
},
|
|
963
|
-
{
|
|
964
|
-
"name": "program"
|
|
965
|
-
}
|
|
966
|
-
],
|
|
967
|
-
"args": [
|
|
968
|
-
{
|
|
969
|
-
"name": "depositor",
|
|
970
|
-
"type": "pubkey"
|
|
971
|
-
},
|
|
972
|
-
{
|
|
973
|
-
"name": "recipient",
|
|
974
|
-
"type": "pubkey"
|
|
975
|
-
},
|
|
976
|
-
{
|
|
977
|
-
"name": "input_token",
|
|
978
|
-
"type": "pubkey"
|
|
979
|
-
},
|
|
980
|
-
{
|
|
981
|
-
"name": "output_token",
|
|
982
|
-
"type": "pubkey"
|
|
983
|
-
},
|
|
984
|
-
{
|
|
985
|
-
"name": "input_amount",
|
|
986
|
-
"type": "u64"
|
|
987
|
-
},
|
|
988
|
-
{
|
|
989
|
-
"name": "output_amount",
|
|
990
|
-
"type": {
|
|
991
|
-
"array": [
|
|
992
|
-
"u8",
|
|
993
|
-
32
|
|
994
|
-
]
|
|
995
|
-
}
|
|
996
|
-
},
|
|
997
|
-
{
|
|
998
|
-
"name": "destination_chain_id",
|
|
999
|
-
"type": "u64"
|
|
1000
|
-
},
|
|
1001
|
-
{
|
|
1002
|
-
"name": "exclusive_relayer",
|
|
1003
|
-
"type": "pubkey"
|
|
1004
|
-
},
|
|
1005
|
-
{
|
|
1006
|
-
"name": "quote_timestamp",
|
|
1007
|
-
"type": "u32"
|
|
1008
|
-
},
|
|
1009
|
-
{
|
|
1010
|
-
"name": "fill_deadline",
|
|
1011
|
-
"type": "u32"
|
|
1012
|
-
},
|
|
1013
|
-
{
|
|
1014
|
-
"name": "exclusivity_parameter",
|
|
1015
|
-
"type": "u32"
|
|
1016
|
-
},
|
|
1017
|
-
{
|
|
1018
|
-
"name": "message",
|
|
1019
|
-
"type": "bytes"
|
|
1020
|
-
}
|
|
1021
|
-
]
|
|
1022
|
-
},
|
|
1023
|
-
{
|
|
1024
|
-
"name": "deposit_now",
|
|
1025
|
-
"docs": [
|
|
1026
|
-
"Equivalent to deposit except quote_timestamp is set to the current time.",
|
|
1027
|
-
"The deposit `fill_deadline` is calculated as the current time plus `fill_deadline_offset`."
|
|
1028
|
-
],
|
|
1029
|
-
"discriminator": [
|
|
1030
|
-
75,
|
|
1031
|
-
228,
|
|
1032
|
-
135,
|
|
1033
|
-
221,
|
|
1034
|
-
200,
|
|
1035
|
-
25,
|
|
1036
|
-
148,
|
|
1037
|
-
26
|
|
1038
|
-
],
|
|
1039
|
-
"accounts": [
|
|
1040
|
-
{
|
|
1041
|
-
"name": "signer",
|
|
1042
|
-
"writable": true,
|
|
1043
|
-
"signer": true
|
|
1044
|
-
},
|
|
1045
|
-
{
|
|
1046
|
-
"name": "state",
|
|
1047
|
-
"writable": true,
|
|
1048
|
-
"pda": {
|
|
1049
|
-
"seeds": [
|
|
1050
|
-
{
|
|
1051
|
-
"kind": "const",
|
|
1052
|
-
"value": [
|
|
1053
|
-
115,
|
|
1054
|
-
116,
|
|
1055
|
-
97,
|
|
1056
|
-
116,
|
|
1057
|
-
101
|
|
1058
|
-
]
|
|
1059
|
-
},
|
|
1060
|
-
{
|
|
1061
|
-
"kind": "account",
|
|
1062
|
-
"path": "state.seed",
|
|
1063
|
-
"account": "State"
|
|
1064
|
-
}
|
|
1065
|
-
]
|
|
1066
|
-
}
|
|
1067
|
-
},
|
|
1068
|
-
{
|
|
1069
|
-
"name": "delegate"
|
|
1070
|
-
},
|
|
1071
|
-
{
|
|
1072
|
-
"name": "depositor_token_account",
|
|
1073
|
-
"writable": true,
|
|
1074
|
-
"pda": {
|
|
1075
|
-
"seeds": [
|
|
1076
|
-
{
|
|
1077
|
-
"kind": "arg",
|
|
1078
|
-
"path": "depositor"
|
|
1079
|
-
},
|
|
1080
|
-
{
|
|
1081
|
-
"kind": "account",
|
|
1082
|
-
"path": "token_program"
|
|
1083
|
-
},
|
|
1084
|
-
{
|
|
1085
|
-
"kind": "account",
|
|
1086
|
-
"path": "mint"
|
|
1087
|
-
}
|
|
1088
|
-
],
|
|
1089
|
-
"program": {
|
|
1090
|
-
"kind": "const",
|
|
1091
|
-
"value": [
|
|
1092
|
-
140,
|
|
1093
|
-
151,
|
|
1094
|
-
37,
|
|
1095
|
-
143,
|
|
1096
|
-
78,
|
|
1097
|
-
36,
|
|
1098
|
-
137,
|
|
1099
|
-
241,
|
|
1100
|
-
187,
|
|
1101
|
-
61,
|
|
1102
|
-
16,
|
|
1103
|
-
41,
|
|
1104
|
-
20,
|
|
1105
|
-
142,
|
|
1106
|
-
13,
|
|
1107
|
-
131,
|
|
1108
|
-
11,
|
|
1109
|
-
90,
|
|
1110
|
-
19,
|
|
1111
|
-
153,
|
|
1112
|
-
218,
|
|
1113
|
-
255,
|
|
1114
|
-
16,
|
|
1115
|
-
132,
|
|
1116
|
-
4,
|
|
1117
|
-
142,
|
|
1118
|
-
123,
|
|
1119
|
-
216,
|
|
1120
|
-
219,
|
|
1121
|
-
233,
|
|
1122
|
-
248,
|
|
1123
|
-
89
|
|
1124
|
-
]
|
|
1125
|
-
}
|
|
1126
|
-
}
|
|
1127
|
-
},
|
|
1128
|
-
{
|
|
1129
|
-
"name": "vault",
|
|
1130
|
-
"writable": true,
|
|
1131
|
-
"pda": {
|
|
1132
|
-
"seeds": [
|
|
1133
|
-
{
|
|
1134
|
-
"kind": "account",
|
|
1135
|
-
"path": "state"
|
|
1136
|
-
},
|
|
1137
|
-
{
|
|
1138
|
-
"kind": "account",
|
|
1139
|
-
"path": "token_program"
|
|
1140
|
-
},
|
|
1141
|
-
{
|
|
1142
|
-
"kind": "account",
|
|
1143
|
-
"path": "mint"
|
|
1144
|
-
}
|
|
1145
|
-
],
|
|
1146
|
-
"program": {
|
|
1147
|
-
"kind": "const",
|
|
1148
|
-
"value": [
|
|
1149
|
-
140,
|
|
1150
|
-
151,
|
|
1151
|
-
37,
|
|
1152
|
-
143,
|
|
1153
|
-
78,
|
|
1154
|
-
36,
|
|
1155
|
-
137,
|
|
1156
|
-
241,
|
|
1157
|
-
187,
|
|
1158
|
-
61,
|
|
1159
|
-
16,
|
|
1160
|
-
41,
|
|
1161
|
-
20,
|
|
1162
|
-
142,
|
|
1163
|
-
13,
|
|
1164
|
-
131,
|
|
1165
|
-
11,
|
|
1166
|
-
90,
|
|
1167
|
-
19,
|
|
1168
|
-
153,
|
|
1169
|
-
218,
|
|
1170
|
-
255,
|
|
1171
|
-
16,
|
|
1172
|
-
132,
|
|
1173
|
-
4,
|
|
1174
|
-
142,
|
|
1175
|
-
123,
|
|
1176
|
-
216,
|
|
1177
|
-
219,
|
|
1178
|
-
233,
|
|
1179
|
-
248,
|
|
1180
|
-
89
|
|
1181
|
-
]
|
|
1182
|
-
}
|
|
1183
|
-
}
|
|
1184
|
-
},
|
|
1185
|
-
{
|
|
1186
|
-
"name": "mint"
|
|
1187
|
-
},
|
|
1188
|
-
{
|
|
1189
|
-
"name": "token_program"
|
|
1190
|
-
},
|
|
1191
|
-
{
|
|
1192
|
-
"name": "associated_token_program",
|
|
1193
|
-
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
|
|
1194
|
-
},
|
|
1195
|
-
{
|
|
1196
|
-
"name": "system_program",
|
|
1197
|
-
"address": "11111111111111111111111111111111"
|
|
1198
|
-
},
|
|
1199
|
-
{
|
|
1200
|
-
"name": "event_authority",
|
|
1201
|
-
"pda": {
|
|
1202
|
-
"seeds": [
|
|
1203
|
-
{
|
|
1204
|
-
"kind": "const",
|
|
1205
|
-
"value": [
|
|
1206
|
-
95,
|
|
1207
|
-
95,
|
|
1208
|
-
101,
|
|
1209
|
-
118,
|
|
1210
|
-
101,
|
|
1211
|
-
110,
|
|
1212
|
-
116,
|
|
1213
|
-
95,
|
|
1214
|
-
97,
|
|
1215
|
-
117,
|
|
1216
|
-
116,
|
|
1217
|
-
104,
|
|
1218
|
-
111,
|
|
1219
|
-
114,
|
|
1220
|
-
105,
|
|
1221
|
-
116,
|
|
1222
|
-
121
|
|
1223
|
-
]
|
|
1224
|
-
}
|
|
1225
|
-
]
|
|
1226
|
-
}
|
|
1227
|
-
},
|
|
1228
|
-
{
|
|
1229
|
-
"name": "program"
|
|
1230
|
-
}
|
|
1231
|
-
],
|
|
1232
|
-
"args": [
|
|
1233
|
-
{
|
|
1234
|
-
"name": "depositor",
|
|
1235
|
-
"type": "pubkey"
|
|
1236
|
-
},
|
|
1237
|
-
{
|
|
1238
|
-
"name": "recipient",
|
|
1239
|
-
"type": "pubkey"
|
|
1240
|
-
},
|
|
1241
|
-
{
|
|
1242
|
-
"name": "input_token",
|
|
1243
|
-
"type": "pubkey"
|
|
1244
|
-
},
|
|
1245
|
-
{
|
|
1246
|
-
"name": "output_token",
|
|
1247
|
-
"type": "pubkey"
|
|
1248
|
-
},
|
|
1249
|
-
{
|
|
1250
|
-
"name": "input_amount",
|
|
1251
|
-
"type": "u64"
|
|
1252
|
-
},
|
|
1253
|
-
{
|
|
1254
|
-
"name": "output_amount",
|
|
1255
|
-
"type": {
|
|
1256
|
-
"array": [
|
|
1257
|
-
"u8",
|
|
1258
|
-
32
|
|
1259
|
-
]
|
|
1260
|
-
}
|
|
1261
|
-
},
|
|
1262
|
-
{
|
|
1263
|
-
"name": "destination_chain_id",
|
|
1264
|
-
"type": "u64"
|
|
1265
|
-
},
|
|
1266
|
-
{
|
|
1267
|
-
"name": "exclusive_relayer",
|
|
1268
|
-
"type": "pubkey"
|
|
1269
|
-
},
|
|
1270
|
-
{
|
|
1271
|
-
"name": "fill_deadline_offset",
|
|
1272
|
-
"type": "u32"
|
|
1273
|
-
},
|
|
1274
|
-
{
|
|
1275
|
-
"name": "exclusivity_parameter",
|
|
1276
|
-
"type": "u32"
|
|
1277
|
-
},
|
|
1278
|
-
{
|
|
1279
|
-
"name": "message",
|
|
1280
|
-
"type": "bytes"
|
|
1281
|
-
}
|
|
1282
|
-
]
|
|
1283
|
-
},
|
|
1284
|
-
{
|
|
1285
|
-
"name": "emergency_delete_root_bundle",
|
|
1286
|
-
"docs": [
|
|
1287
|
-
"Deletes a root bundle in case of emergencies where bad bundle has reached the Spoke. Only callable by the owner.",
|
|
1288
|
-
"",
|
|
1289
|
-
"This function will close the PDA for the associated `root_bundle_id`.",
|
|
1290
|
-
"Note: Using this function does not decrement `state.root_bundle_id`.",
|
|
1291
|
-
"",
|
|
1292
|
-
"### Required Accounts:",
|
|
1293
|
-
"- signer (Signer): The account that must be the owner to authorize the deletion.",
|
|
1294
|
-
"- closer (SystemAccount): The account that will receive the lamports from closing the root_bundle account.",
|
|
1295
|
-
"- state (Writable): Spoke state PDA. Seed: [\"state\",state.seed] where seed is 0 on mainnet.",
|
|
1296
|
-
"- root_bundle (Writable): The root bundle PDA to be closed. Seed: [\"root_bundle\",state.seed,root_bundle_id].",
|
|
1297
|
-
"",
|
|
1298
|
-
"### Parameters:",
|
|
1299
|
-
"- root_bundle_id: Index of the root bundle that needs to be deleted."
|
|
1300
|
-
],
|
|
1301
|
-
"discriminator": [
|
|
1302
|
-
226,
|
|
1303
|
-
158,
|
|
1304
|
-
1,
|
|
1305
|
-
74,
|
|
1306
|
-
84,
|
|
1307
|
-
113,
|
|
1308
|
-
24,
|
|
1309
|
-
152
|
|
1310
|
-
],
|
|
1311
|
-
"accounts": [
|
|
1312
|
-
{
|
|
1313
|
-
"name": "signer",
|
|
1314
|
-
"signer": true
|
|
1315
|
-
},
|
|
1316
|
-
{
|
|
1317
|
-
"name": "closer",
|
|
1318
|
-
"writable": true
|
|
1319
|
-
},
|
|
1320
|
-
{
|
|
1321
|
-
"name": "state",
|
|
1322
|
-
"pda": {
|
|
1323
|
-
"seeds": [
|
|
1324
|
-
{
|
|
1325
|
-
"kind": "const",
|
|
1326
|
-
"value": [
|
|
1327
|
-
115,
|
|
1328
|
-
116,
|
|
1329
|
-
97,
|
|
1330
|
-
116,
|
|
1331
|
-
101
|
|
1332
|
-
]
|
|
1333
|
-
},
|
|
1334
|
-
{
|
|
1335
|
-
"kind": "account",
|
|
1336
|
-
"path": "state.seed",
|
|
1337
|
-
"account": "State"
|
|
1338
|
-
}
|
|
1339
|
-
]
|
|
1340
|
-
}
|
|
1341
|
-
},
|
|
1342
|
-
{
|
|
1343
|
-
"name": "root_bundle",
|
|
1344
|
-
"writable": true,
|
|
1345
|
-
"pda": {
|
|
1346
|
-
"seeds": [
|
|
1347
|
-
{
|
|
1348
|
-
"kind": "const",
|
|
1349
|
-
"value": [
|
|
1350
|
-
114,
|
|
1351
|
-
111,
|
|
1352
|
-
111,
|
|
1353
|
-
116,
|
|
1354
|
-
95,
|
|
1355
|
-
98,
|
|
1356
|
-
117,
|
|
1357
|
-
110,
|
|
1358
|
-
100,
|
|
1359
|
-
108,
|
|
1360
|
-
101
|
|
1361
|
-
]
|
|
1362
|
-
},
|
|
1363
|
-
{
|
|
1364
|
-
"kind": "account",
|
|
1365
|
-
"path": "state.seed",
|
|
1366
|
-
"account": "State"
|
|
1367
|
-
},
|
|
1368
|
-
{
|
|
1369
|
-
"kind": "arg",
|
|
1370
|
-
"path": "root_bundle_id"
|
|
1371
|
-
}
|
|
1372
|
-
]
|
|
1373
|
-
}
|
|
1374
|
-
},
|
|
1375
|
-
{
|
|
1376
|
-
"name": "event_authority",
|
|
1377
|
-
"pda": {
|
|
1378
|
-
"seeds": [
|
|
1379
|
-
{
|
|
1380
|
-
"kind": "const",
|
|
1381
|
-
"value": [
|
|
1382
|
-
95,
|
|
1383
|
-
95,
|
|
1384
|
-
101,
|
|
1385
|
-
118,
|
|
1386
|
-
101,
|
|
1387
|
-
110,
|
|
1388
|
-
116,
|
|
1389
|
-
95,
|
|
1390
|
-
97,
|
|
1391
|
-
117,
|
|
1392
|
-
116,
|
|
1393
|
-
104,
|
|
1394
|
-
111,
|
|
1395
|
-
114,
|
|
1396
|
-
105,
|
|
1397
|
-
116,
|
|
1398
|
-
121
|
|
1399
|
-
]
|
|
1400
|
-
}
|
|
1401
|
-
]
|
|
1402
|
-
}
|
|
1403
|
-
},
|
|
1404
|
-
{
|
|
1405
|
-
"name": "program"
|
|
1406
|
-
}
|
|
1407
|
-
],
|
|
1408
|
-
"args": [
|
|
1409
|
-
{
|
|
1410
|
-
"name": "root_bundle_id",
|
|
1411
|
-
"type": "u32"
|
|
1412
|
-
}
|
|
1413
|
-
]
|
|
1414
|
-
},
|
|
1415
|
-
{
|
|
1416
|
-
"name": "execute_relayer_refund_leaf",
|
|
1417
|
-
"docs": [
|
|
1418
|
-
"Executes relayer refund leaf.",
|
|
1419
|
-
"",
|
|
1420
|
-
"Processes a relayer refund leaf, verifying its inclusion in a previous Merkle root and that it was not",
|
|
1421
|
-
"previously executed. Function has two modes of operation: a) transfers all relayer refunds directly to",
|
|
1422
|
-
"relayers ATA or b) credits relayers with claimable claim_account PDA that they can use later to claim their",
|
|
1423
|
-
"refund. In the happy path, (a) should be used. (b) should only be used if there is a relayer within the bundle",
|
|
1424
|
-
"who can't receive the transfer for some reason, such as failed token transfers due to blacklisting. Executing",
|
|
1425
|
-
"relayer refunds requires the caller to create a LUT and load the execution params into it. This is needed to",
|
|
1426
|
-
"fit the data in a single instruction. The exact structure and validation of the leaf is defined in the Across",
|
|
1427
|
-
"UMIP: https://github.com/UMAprotocol/UMIPs/blob/master/UMIPs/umip-179.md",
|
|
1428
|
-
"",
|
|
1429
|
-
"instruction_params Parameters:",
|
|
1430
|
-
"- root_bundle_id: The ID of the root bundle containing the relayer refund root.",
|
|
1431
|
-
"- relayer_refund_leaf: The relayer refund leaf to be executed. Contents must include:",
|
|
1432
|
-
"- amount_to_return: The amount to be to be sent back to mainnet Ethereum from this Spoke pool.",
|
|
1433
|
-
"- chain_id: The targeted chainId for the refund. Validated against state.chain_id.",
|
|
1434
|
-
"- refund_amounts: The amounts to be returned to the relayer for each refund_address.",
|
|
1435
|
-
"- leaf_id: The leaf ID of the relayer refund leaf.",
|
|
1436
|
-
"- mint_public_key: The public key of the mint (refunded token) being refunded.",
|
|
1437
|
-
"- refund_addresses: The addresses to be refunded.",
|
|
1438
|
-
"- proof: The Merkle proof for the relayer refund leaf.",
|
|
1439
|
-
"",
|
|
1440
|
-
"### Required Accounts:",
|
|
1441
|
-
"- signer (Signer): The account that authorizes the execution. No permission requirements.",
|
|
1442
|
-
"- instruction_params (Account): LUT containing the execution parameters. seed: [\"instruction_params\",signer]",
|
|
1443
|
-
"- state (Writable): Spoke state PDA. Seed: [\"state\",state.seed] where seed is 0 on mainnet.",
|
|
1444
|
-
"- root_bundle (Writable): The root bundle PDA containing the relayer refund root, created when the root bundle",
|
|
1445
|
-
"was initially bridged. seed: [\"root_bundle\",state.seed,root_bundle_id].",
|
|
1446
|
-
"- vault (Writable): The ATA for refunded mint. Authority must be the state.",
|
|
1447
|
-
"- mint (Account): The mint account for the token being refunded.",
|
|
1448
|
-
"- transfer_liability (Writable): Account to track pending refunds to be sent to the Ethereum hub pool. Only used",
|
|
1449
|
-
"if the amount_to_return value is non-zero within the leaf. Seed: [\"transfer_liability\",mint]",
|
|
1450
|
-
"- token_program: The token program.",
|
|
1451
|
-
"- system_program: The system program required for account creation.",
|
|
1452
|
-
"",
|
|
1453
|
-
"execute_relayer_refund_leaf executes in mode where refunds are sent to ATA directly."
|
|
1454
|
-
],
|
|
1455
|
-
"discriminator": [
|
|
1456
|
-
27,
|
|
1457
|
-
136,
|
|
1458
|
-
159,
|
|
1459
|
-
240,
|
|
1460
|
-
127,
|
|
1461
|
-
68,
|
|
1462
|
-
123,
|
|
1463
|
-
164
|
|
1464
|
-
],
|
|
1465
|
-
"accounts": [
|
|
1466
|
-
{
|
|
1467
|
-
"name": "signer",
|
|
1468
|
-
"writable": true,
|
|
1469
|
-
"signer": true
|
|
1470
|
-
},
|
|
1471
|
-
{
|
|
1472
|
-
"name": "instruction_params",
|
|
1473
|
-
"writable": true,
|
|
1474
|
-
"pda": {
|
|
1475
|
-
"seeds": [
|
|
1476
|
-
{
|
|
1477
|
-
"kind": "const",
|
|
1478
|
-
"value": [
|
|
1479
|
-
105,
|
|
1480
|
-
110,
|
|
1481
|
-
115,
|
|
1482
|
-
116,
|
|
1483
|
-
114,
|
|
1484
|
-
117,
|
|
1485
|
-
99,
|
|
1486
|
-
116,
|
|
1487
|
-
105,
|
|
1488
|
-
111,
|
|
1489
|
-
110,
|
|
1490
|
-
95,
|
|
1491
|
-
112,
|
|
1492
|
-
97,
|
|
1493
|
-
114,
|
|
1494
|
-
97,
|
|
1495
|
-
109,
|
|
1496
|
-
115
|
|
1497
|
-
]
|
|
1498
|
-
},
|
|
1499
|
-
{
|
|
1500
|
-
"kind": "account",
|
|
1501
|
-
"path": "signer"
|
|
1502
|
-
}
|
|
1503
|
-
]
|
|
1504
|
-
}
|
|
1505
|
-
},
|
|
1506
|
-
{
|
|
1507
|
-
"name": "state",
|
|
1508
|
-
"pda": {
|
|
1509
|
-
"seeds": [
|
|
1510
|
-
{
|
|
1511
|
-
"kind": "const",
|
|
1512
|
-
"value": [
|
|
1513
|
-
115,
|
|
1514
|
-
116,
|
|
1515
|
-
97,
|
|
1516
|
-
116,
|
|
1517
|
-
101
|
|
1518
|
-
]
|
|
1519
|
-
},
|
|
1520
|
-
{
|
|
1521
|
-
"kind": "account",
|
|
1522
|
-
"path": "state.seed",
|
|
1523
|
-
"account": "State"
|
|
1524
|
-
}
|
|
1525
|
-
]
|
|
1526
|
-
}
|
|
1527
|
-
},
|
|
1528
|
-
{
|
|
1529
|
-
"name": "root_bundle",
|
|
1530
|
-
"writable": true,
|
|
1531
|
-
"pda": {
|
|
1532
|
-
"seeds": [
|
|
1533
|
-
{
|
|
1534
|
-
"kind": "const",
|
|
1535
|
-
"value": [
|
|
1536
|
-
114,
|
|
1537
|
-
111,
|
|
1538
|
-
111,
|
|
1539
|
-
116,
|
|
1540
|
-
95,
|
|
1541
|
-
98,
|
|
1542
|
-
117,
|
|
1543
|
-
110,
|
|
1544
|
-
100,
|
|
1545
|
-
108,
|
|
1546
|
-
101
|
|
1547
|
-
]
|
|
1548
|
-
},
|
|
1549
|
-
{
|
|
1550
|
-
"kind": "account",
|
|
1551
|
-
"path": "state.seed",
|
|
1552
|
-
"account": "State"
|
|
1553
|
-
},
|
|
1554
|
-
{
|
|
1555
|
-
"kind": "account",
|
|
1556
|
-
"path": "instruction_params.root_bundle_id",
|
|
1557
|
-
"account": "ExecuteRelayerRefundLeafParams"
|
|
1558
|
-
}
|
|
1559
|
-
]
|
|
1560
|
-
}
|
|
1561
|
-
},
|
|
1562
|
-
{
|
|
1563
|
-
"name": "vault",
|
|
1564
|
-
"writable": true,
|
|
1565
|
-
"pda": {
|
|
1566
|
-
"seeds": [
|
|
1567
|
-
{
|
|
1568
|
-
"kind": "account",
|
|
1569
|
-
"path": "state"
|
|
1570
|
-
},
|
|
1571
|
-
{
|
|
1572
|
-
"kind": "account",
|
|
1573
|
-
"path": "token_program"
|
|
1574
|
-
},
|
|
1575
|
-
{
|
|
1576
|
-
"kind": "account",
|
|
1577
|
-
"path": "mint"
|
|
1578
|
-
}
|
|
1579
|
-
],
|
|
1580
|
-
"program": {
|
|
1581
|
-
"kind": "const",
|
|
1582
|
-
"value": [
|
|
1583
|
-
140,
|
|
1584
|
-
151,
|
|
1585
|
-
37,
|
|
1586
|
-
143,
|
|
1587
|
-
78,
|
|
1588
|
-
36,
|
|
1589
|
-
137,
|
|
1590
|
-
241,
|
|
1591
|
-
187,
|
|
1592
|
-
61,
|
|
1593
|
-
16,
|
|
1594
|
-
41,
|
|
1595
|
-
20,
|
|
1596
|
-
142,
|
|
1597
|
-
13,
|
|
1598
|
-
131,
|
|
1599
|
-
11,
|
|
1600
|
-
90,
|
|
1601
|
-
19,
|
|
1602
|
-
153,
|
|
1603
|
-
218,
|
|
1604
|
-
255,
|
|
1605
|
-
16,
|
|
1606
|
-
132,
|
|
1607
|
-
4,
|
|
1608
|
-
142,
|
|
1609
|
-
123,
|
|
1610
|
-
216,
|
|
1611
|
-
219,
|
|
1612
|
-
233,
|
|
1613
|
-
248,
|
|
1614
|
-
89
|
|
1615
|
-
]
|
|
1616
|
-
}
|
|
1617
|
-
}
|
|
1618
|
-
},
|
|
1619
|
-
{
|
|
1620
|
-
"name": "mint"
|
|
1621
|
-
},
|
|
1622
|
-
{
|
|
1623
|
-
"name": "transfer_liability",
|
|
1624
|
-
"writable": true,
|
|
1625
|
-
"pda": {
|
|
1626
|
-
"seeds": [
|
|
1627
|
-
{
|
|
1628
|
-
"kind": "const",
|
|
1629
|
-
"value": [
|
|
1630
|
-
116,
|
|
1631
|
-
114,
|
|
1632
|
-
97,
|
|
1633
|
-
110,
|
|
1634
|
-
115,
|
|
1635
|
-
102,
|
|
1636
|
-
101,
|
|
1637
|
-
114,
|
|
1638
|
-
95,
|
|
1639
|
-
108,
|
|
1640
|
-
105,
|
|
1641
|
-
97,
|
|
1642
|
-
98,
|
|
1643
|
-
105,
|
|
1644
|
-
108,
|
|
1645
|
-
105,
|
|
1646
|
-
116,
|
|
1647
|
-
121
|
|
1648
|
-
]
|
|
1649
|
-
},
|
|
1650
|
-
{
|
|
1651
|
-
"kind": "account",
|
|
1652
|
-
"path": "mint"
|
|
1653
|
-
}
|
|
1654
|
-
]
|
|
1655
|
-
}
|
|
1656
|
-
},
|
|
1657
|
-
{
|
|
1658
|
-
"name": "token_program"
|
|
1659
|
-
},
|
|
1660
|
-
{
|
|
1661
|
-
"name": "system_program",
|
|
1662
|
-
"address": "11111111111111111111111111111111"
|
|
1663
|
-
},
|
|
1664
|
-
{
|
|
1665
|
-
"name": "event_authority",
|
|
1666
|
-
"pda": {
|
|
1667
|
-
"seeds": [
|
|
1668
|
-
{
|
|
1669
|
-
"kind": "const",
|
|
1670
|
-
"value": [
|
|
1671
|
-
95,
|
|
1672
|
-
95,
|
|
1673
|
-
101,
|
|
1674
|
-
118,
|
|
1675
|
-
101,
|
|
1676
|
-
110,
|
|
1677
|
-
116,
|
|
1678
|
-
95,
|
|
1679
|
-
97,
|
|
1680
|
-
117,
|
|
1681
|
-
116,
|
|
1682
|
-
104,
|
|
1683
|
-
111,
|
|
1684
|
-
114,
|
|
1685
|
-
105,
|
|
1686
|
-
116,
|
|
1687
|
-
121
|
|
1688
|
-
]
|
|
1689
|
-
}
|
|
1690
|
-
]
|
|
1691
|
-
}
|
|
1692
|
-
},
|
|
1693
|
-
{
|
|
1694
|
-
"name": "program"
|
|
1695
|
-
}
|
|
1696
|
-
],
|
|
1697
|
-
"args": []
|
|
1698
|
-
},
|
|
1699
|
-
{
|
|
1700
|
-
"name": "execute_relayer_refund_leaf_deferred",
|
|
1701
|
-
"docs": [
|
|
1702
|
-
"Similar to execute_relayer_refund_leaf, but executes in mode where refunds are allocated to claim_account PDAs."
|
|
1703
|
-
],
|
|
1704
|
-
"discriminator": [
|
|
1705
|
-
110,
|
|
1706
|
-
112,
|
|
1707
|
-
89,
|
|
1708
|
-
208,
|
|
1709
|
-
38,
|
|
1710
|
-
116,
|
|
1711
|
-
93,
|
|
1712
|
-
10
|
|
1713
|
-
],
|
|
1714
|
-
"accounts": [
|
|
1715
|
-
{
|
|
1716
|
-
"name": "signer",
|
|
1717
|
-
"writable": true,
|
|
1718
|
-
"signer": true
|
|
1719
|
-
},
|
|
1720
|
-
{
|
|
1721
|
-
"name": "instruction_params",
|
|
1722
|
-
"writable": true,
|
|
1723
|
-
"pda": {
|
|
1724
|
-
"seeds": [
|
|
1725
|
-
{
|
|
1726
|
-
"kind": "const",
|
|
1727
|
-
"value": [
|
|
1728
|
-
105,
|
|
1729
|
-
110,
|
|
1730
|
-
115,
|
|
1731
|
-
116,
|
|
1732
|
-
114,
|
|
1733
|
-
117,
|
|
1734
|
-
99,
|
|
1735
|
-
116,
|
|
1736
|
-
105,
|
|
1737
|
-
111,
|
|
1738
|
-
110,
|
|
1739
|
-
95,
|
|
1740
|
-
112,
|
|
1741
|
-
97,
|
|
1742
|
-
114,
|
|
1743
|
-
97,
|
|
1744
|
-
109,
|
|
1745
|
-
115
|
|
1746
|
-
]
|
|
1747
|
-
},
|
|
1748
|
-
{
|
|
1749
|
-
"kind": "account",
|
|
1750
|
-
"path": "signer"
|
|
1751
|
-
}
|
|
1752
|
-
]
|
|
1753
|
-
}
|
|
1754
|
-
},
|
|
1755
|
-
{
|
|
1756
|
-
"name": "state",
|
|
1757
|
-
"pda": {
|
|
1758
|
-
"seeds": [
|
|
1759
|
-
{
|
|
1760
|
-
"kind": "const",
|
|
1761
|
-
"value": [
|
|
1762
|
-
115,
|
|
1763
|
-
116,
|
|
1764
|
-
97,
|
|
1765
|
-
116,
|
|
1766
|
-
101
|
|
1767
|
-
]
|
|
1768
|
-
},
|
|
1769
|
-
{
|
|
1770
|
-
"kind": "account",
|
|
1771
|
-
"path": "state.seed",
|
|
1772
|
-
"account": "State"
|
|
1773
|
-
}
|
|
1774
|
-
]
|
|
1775
|
-
}
|
|
1776
|
-
},
|
|
1777
|
-
{
|
|
1778
|
-
"name": "root_bundle",
|
|
1779
|
-
"writable": true,
|
|
1780
|
-
"pda": {
|
|
1781
|
-
"seeds": [
|
|
1782
|
-
{
|
|
1783
|
-
"kind": "const",
|
|
1784
|
-
"value": [
|
|
1785
|
-
114,
|
|
1786
|
-
111,
|
|
1787
|
-
111,
|
|
1788
|
-
116,
|
|
1789
|
-
95,
|
|
1790
|
-
98,
|
|
1791
|
-
117,
|
|
1792
|
-
110,
|
|
1793
|
-
100,
|
|
1794
|
-
108,
|
|
1795
|
-
101
|
|
1796
|
-
]
|
|
1797
|
-
},
|
|
1798
|
-
{
|
|
1799
|
-
"kind": "account",
|
|
1800
|
-
"path": "state.seed",
|
|
1801
|
-
"account": "State"
|
|
1802
|
-
},
|
|
1803
|
-
{
|
|
1804
|
-
"kind": "account",
|
|
1805
|
-
"path": "instruction_params.root_bundle_id",
|
|
1806
|
-
"account": "ExecuteRelayerRefundLeafParams"
|
|
1807
|
-
}
|
|
1808
|
-
]
|
|
1809
|
-
}
|
|
1810
|
-
},
|
|
1811
|
-
{
|
|
1812
|
-
"name": "vault",
|
|
1813
|
-
"writable": true,
|
|
1814
|
-
"pda": {
|
|
1815
|
-
"seeds": [
|
|
1816
|
-
{
|
|
1817
|
-
"kind": "account",
|
|
1818
|
-
"path": "state"
|
|
1819
|
-
},
|
|
1820
|
-
{
|
|
1821
|
-
"kind": "account",
|
|
1822
|
-
"path": "token_program"
|
|
1823
|
-
},
|
|
1824
|
-
{
|
|
1825
|
-
"kind": "account",
|
|
1826
|
-
"path": "mint"
|
|
1827
|
-
}
|
|
1828
|
-
],
|
|
1829
|
-
"program": {
|
|
1830
|
-
"kind": "const",
|
|
1831
|
-
"value": [
|
|
1832
|
-
140,
|
|
1833
|
-
151,
|
|
1834
|
-
37,
|
|
1835
|
-
143,
|
|
1836
|
-
78,
|
|
1837
|
-
36,
|
|
1838
|
-
137,
|
|
1839
|
-
241,
|
|
1840
|
-
187,
|
|
1841
|
-
61,
|
|
1842
|
-
16,
|
|
1843
|
-
41,
|
|
1844
|
-
20,
|
|
1845
|
-
142,
|
|
1846
|
-
13,
|
|
1847
|
-
131,
|
|
1848
|
-
11,
|
|
1849
|
-
90,
|
|
1850
|
-
19,
|
|
1851
|
-
153,
|
|
1852
|
-
218,
|
|
1853
|
-
255,
|
|
1854
|
-
16,
|
|
1855
|
-
132,
|
|
1856
|
-
4,
|
|
1857
|
-
142,
|
|
1858
|
-
123,
|
|
1859
|
-
216,
|
|
1860
|
-
219,
|
|
1861
|
-
233,
|
|
1862
|
-
248,
|
|
1863
|
-
89
|
|
1864
|
-
]
|
|
1865
|
-
}
|
|
1866
|
-
}
|
|
1867
|
-
},
|
|
1868
|
-
{
|
|
1869
|
-
"name": "mint"
|
|
1870
|
-
},
|
|
1871
|
-
{
|
|
1872
|
-
"name": "transfer_liability",
|
|
1873
|
-
"writable": true,
|
|
1874
|
-
"pda": {
|
|
1875
|
-
"seeds": [
|
|
1876
|
-
{
|
|
1877
|
-
"kind": "const",
|
|
1878
|
-
"value": [
|
|
1879
|
-
116,
|
|
1880
|
-
114,
|
|
1881
|
-
97,
|
|
1882
|
-
110,
|
|
1883
|
-
115,
|
|
1884
|
-
102,
|
|
1885
|
-
101,
|
|
1886
|
-
114,
|
|
1887
|
-
95,
|
|
1888
|
-
108,
|
|
1889
|
-
105,
|
|
1890
|
-
97,
|
|
1891
|
-
98,
|
|
1892
|
-
105,
|
|
1893
|
-
108,
|
|
1894
|
-
105,
|
|
1895
|
-
116,
|
|
1896
|
-
121
|
|
1897
|
-
]
|
|
1898
|
-
},
|
|
1899
|
-
{
|
|
1900
|
-
"kind": "account",
|
|
1901
|
-
"path": "mint"
|
|
1902
|
-
}
|
|
1903
|
-
]
|
|
1904
|
-
}
|
|
1905
|
-
},
|
|
1906
|
-
{
|
|
1907
|
-
"name": "token_program"
|
|
1908
|
-
},
|
|
1909
|
-
{
|
|
1910
|
-
"name": "system_program",
|
|
1911
|
-
"address": "11111111111111111111111111111111"
|
|
1912
|
-
},
|
|
1913
663
|
{
|
|
1914
664
|
"name": "event_authority",
|
|
1915
665
|
"pda": {
|
|
@@ -1943,70 +693,70 @@
|
|
|
1943
693
|
"name": "program"
|
|
1944
694
|
}
|
|
1945
695
|
],
|
|
1946
|
-
"args": [
|
|
696
|
+
"args": [
|
|
697
|
+
{
|
|
698
|
+
"name": "root_bundle_id",
|
|
699
|
+
"type": "u32"
|
|
700
|
+
}
|
|
701
|
+
]
|
|
1947
702
|
},
|
|
1948
703
|
{
|
|
1949
|
-
"name": "
|
|
704
|
+
"name": "execute_relayer_refund_leaf",
|
|
1950
705
|
"docs": [
|
|
1951
|
-
"Executes
|
|
706
|
+
"Executes relayer refund leaf.",
|
|
707
|
+
"",
|
|
708
|
+
"Processes a relayer refund leaf, verifying its inclusion in a previous Merkle root and that it was not",
|
|
709
|
+
"previously executed. Function has two modes of operation: a) transfers all relayer refunds directly to",
|
|
710
|
+
"relayers ATA or b) credits relayers with claimable claim_account PDA that they can use later to claim their",
|
|
711
|
+
"refund. In the happy path, (a) should be used. (b) should only be used if there is a relayer within the bundle",
|
|
712
|
+
"who can't receive the transfer for some reason, such as failed token transfers due to blacklisting. Executing",
|
|
713
|
+
"relayer refunds requires the caller to create a LUT and load the execution params into it. This is needed to",
|
|
714
|
+
"fit the data in a single instruction. The exact structure and validation of the leaf is defined in the Across",
|
|
715
|
+
"UMIP: https://github.com/UMAprotocol/UMIPs/blob/master/UMIPs/umip-179.md",
|
|
1952
716
|
"",
|
|
1953
|
-
"
|
|
1954
|
-
"
|
|
1955
|
-
"
|
|
1956
|
-
"
|
|
717
|
+
"instruction_params Parameters:",
|
|
718
|
+
"- root_bundle_id: The ID of the root bundle containing the relayer refund root.",
|
|
719
|
+
"- relayer_refund_leaf: The relayer refund leaf to be executed. Contents must include:",
|
|
720
|
+
"- amount_to_return: Must be 0 as this Spoke pool never returns tokens to the HubPool.",
|
|
721
|
+
"- chain_id: The targeted chainId for the refund. Validated against state.chain_id.",
|
|
722
|
+
"- refund_amounts: The amounts to be returned to the relayer for each refund_address.",
|
|
723
|
+
"- leaf_id: The leaf ID of the relayer refund leaf.",
|
|
724
|
+
"- mint_public_key: The public key of the mint (refunded token) being refunded.",
|
|
725
|
+
"- refund_addresses: The addresses to be refunded.",
|
|
726
|
+
"- proof: The Merkle proof for the relayer refund leaf.",
|
|
1957
727
|
"",
|
|
1958
728
|
"### Required Accounts:",
|
|
1959
729
|
"- signer (Signer): The account that authorizes the execution. No permission requirements.",
|
|
1960
|
-
"- instruction_params (Account):
|
|
1961
|
-
"instruction data due to message size constraints. Pass this program ID to represent None. When Some, this must",
|
|
1962
|
-
"be derived from the signer's public key with seed [\"instruction_params\",signer].",
|
|
730
|
+
"- instruction_params (Account): LUT containing the execution parameters. seed: [\"instruction_params\",signer]",
|
|
1963
731
|
"- state (Writable): Spoke state PDA. Seed: [\"state\",state.seed] where seed is 0 on mainnet.",
|
|
1964
|
-
"- root_bundle (
|
|
1965
|
-
"
|
|
1966
|
-
"Used to prevent double request and fill. Seed: [\"fills\",relay_hash].",
|
|
1967
|
-
"- mint (Account): The mint account for the output token.",
|
|
1968
|
-
"- recipient_token_account (Writable): The recipient's ATA for the output token.",
|
|
732
|
+
"- root_bundle (Writable): The root bundle PDA containing the relayer refund root, created when the root bundle",
|
|
733
|
+
"was initially bridged. seed: [\"root_bundle\",state.seed,root_bundle_id].",
|
|
1969
734
|
"- vault (Writable): The ATA for refunded mint. Authority must be the state.",
|
|
1970
|
-
"-
|
|
1971
|
-
"-
|
|
735
|
+
"- mint (Account): The mint account for the token being refunded.",
|
|
736
|
+
"- token_program: The token program.",
|
|
737
|
+
"- system_program: The system program required for account creation.",
|
|
1972
738
|
"",
|
|
1973
|
-
"
|
|
1974
|
-
"- _relay_hash: The hash identifying the deposit to be filled. Used to identify the deposit to be filled.",
|
|
1975
|
-
"- slow_fill_leaf: Contains all data necessary to uniquely verify the slow fill. This struct contains:",
|
|
1976
|
-
"- relayData: Struct containing all the data needed to identify the original deposit to be slow filled. Same",
|
|
1977
|
-
"as the relay_data struct in fill_relay().",
|
|
1978
|
-
"- chainId: Chain identifier where slow fill leaf should be executed. If this doesn't match this chain's",
|
|
1979
|
-
"chainId, then this function will revert.",
|
|
1980
|
-
"- updatedOutputAmount: Amount to be sent to recipient out of this contract's balance. Can be set differently",
|
|
1981
|
-
"from relayData.outputAmount to charge a different fee because this deposit was \"slow\" filled. Usually,",
|
|
1982
|
-
"this will be set higher to reimburse the recipient for waiting for the slow fill.",
|
|
1983
|
-
"- _root_bundle_id: Unique ID of root bundle containing slow relay root that this leaf is contained in.",
|
|
1984
|
-
"- proof: Inclusion proof for this leaf in slow relay root in root bundle.",
|
|
1985
|
-
"Note: slow_fill_leaf, _root_bundle_id, and proof are optional parameters, but their presence must be consistent.",
|
|
1986
|
-
"If None for these parameters is passed, the caller must load them via the instruction_params account.",
|
|
1987
|
-
"Note: When verifying the slow fill leaf, the relay data is hashed using AnchorSerialize::serialize that encodes",
|
|
1988
|
-
"output token amounts to little-endian format while input token amount preserves its big-endian encoding as it",
|
|
1989
|
-
"is passed as [u8; 32] array."
|
|
739
|
+
"execute_relayer_refund_leaf executes in mode where refunds are sent to ATA directly."
|
|
1990
740
|
],
|
|
1991
741
|
"discriminator": [
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
742
|
+
27,
|
|
743
|
+
136,
|
|
744
|
+
159,
|
|
745
|
+
240,
|
|
746
|
+
127,
|
|
747
|
+
68,
|
|
748
|
+
123,
|
|
749
|
+
164
|
|
2000
750
|
],
|
|
2001
751
|
"accounts": [
|
|
2002
752
|
{
|
|
2003
753
|
"name": "signer",
|
|
754
|
+
"writable": true,
|
|
2004
755
|
"signer": true
|
|
2005
756
|
},
|
|
2006
757
|
{
|
|
2007
758
|
"name": "instruction_params",
|
|
2008
759
|
"writable": true,
|
|
2009
|
-
"optional": true,
|
|
2010
760
|
"pda": {
|
|
2011
761
|
"seeds": [
|
|
2012
762
|
{
|
|
@@ -2063,6 +813,7 @@
|
|
|
2063
813
|
},
|
|
2064
814
|
{
|
|
2065
815
|
"name": "root_bundle",
|
|
816
|
+
"writable": true,
|
|
2066
817
|
"pda": {
|
|
2067
818
|
"seeds": [
|
|
2068
819
|
{
|
|
@@ -2086,93 +837,12 @@
|
|
|
2086
837
|
"path": "state.seed",
|
|
2087
838
|
"account": "State"
|
|
2088
839
|
},
|
|
2089
|
-
{
|
|
2090
|
-
"kind": "arg",
|
|
2091
|
-
"path": "_root_bundle_id.unwrap_or_else(| |\ninstruction_params"
|
|
2092
|
-
}
|
|
2093
|
-
]
|
|
2094
|
-
}
|
|
2095
|
-
},
|
|
2096
|
-
{
|
|
2097
|
-
"name": "fill_status",
|
|
2098
|
-
"writable": true,
|
|
2099
|
-
"pda": {
|
|
2100
|
-
"seeds": [
|
|
2101
|
-
{
|
|
2102
|
-
"kind": "const",
|
|
2103
|
-
"value": [
|
|
2104
|
-
102,
|
|
2105
|
-
105,
|
|
2106
|
-
108,
|
|
2107
|
-
108,
|
|
2108
|
-
115
|
|
2109
|
-
]
|
|
2110
|
-
},
|
|
2111
|
-
{
|
|
2112
|
-
"kind": "arg",
|
|
2113
|
-
"path": "_relay_hash"
|
|
2114
|
-
}
|
|
2115
|
-
]
|
|
2116
|
-
}
|
|
2117
|
-
},
|
|
2118
|
-
{
|
|
2119
|
-
"name": "mint"
|
|
2120
|
-
},
|
|
2121
|
-
{
|
|
2122
|
-
"name": "recipient_token_account",
|
|
2123
|
-
"writable": true,
|
|
2124
|
-
"pda": {
|
|
2125
|
-
"seeds": [
|
|
2126
|
-
{
|
|
2127
|
-
"kind": "arg",
|
|
2128
|
-
"path": "slow_fill_leaf"
|
|
2129
|
-
},
|
|
2130
|
-
{
|
|
2131
|
-
"kind": "account",
|
|
2132
|
-
"path": "token_program"
|
|
2133
|
-
},
|
|
2134
840
|
{
|
|
2135
841
|
"kind": "account",
|
|
2136
|
-
"path": "
|
|
842
|
+
"path": "instruction_params.root_bundle_id",
|
|
843
|
+
"account": "ExecuteRelayerRefundLeafParams"
|
|
2137
844
|
}
|
|
2138
|
-
]
|
|
2139
|
-
"program": {
|
|
2140
|
-
"kind": "const",
|
|
2141
|
-
"value": [
|
|
2142
|
-
140,
|
|
2143
|
-
151,
|
|
2144
|
-
37,
|
|
2145
|
-
143,
|
|
2146
|
-
78,
|
|
2147
|
-
36,
|
|
2148
|
-
137,
|
|
2149
|
-
241,
|
|
2150
|
-
187,
|
|
2151
|
-
61,
|
|
2152
|
-
16,
|
|
2153
|
-
41,
|
|
2154
|
-
20,
|
|
2155
|
-
142,
|
|
2156
|
-
13,
|
|
2157
|
-
131,
|
|
2158
|
-
11,
|
|
2159
|
-
90,
|
|
2160
|
-
19,
|
|
2161
|
-
153,
|
|
2162
|
-
218,
|
|
2163
|
-
255,
|
|
2164
|
-
16,
|
|
2165
|
-
132,
|
|
2166
|
-
4,
|
|
2167
|
-
142,
|
|
2168
|
-
123,
|
|
2169
|
-
216,
|
|
2170
|
-
219,
|
|
2171
|
-
233,
|
|
2172
|
-
248,
|
|
2173
|
-
89
|
|
2174
|
-
]
|
|
2175
|
-
}
|
|
845
|
+
]
|
|
2176
846
|
}
|
|
2177
847
|
},
|
|
2178
848
|
{
|
|
@@ -2232,6 +902,9 @@
|
|
|
2232
902
|
}
|
|
2233
903
|
}
|
|
2234
904
|
},
|
|
905
|
+
{
|
|
906
|
+
"name": "mint"
|
|
907
|
+
},
|
|
2235
908
|
{
|
|
2236
909
|
"name": "token_program"
|
|
2237
910
|
},
|
|
@@ -2272,112 +945,22 @@
|
|
|
2272
945
|
"name": "program"
|
|
2273
946
|
}
|
|
2274
947
|
],
|
|
2275
|
-
"args": [
|
|
2276
|
-
{
|
|
2277
|
-
"name": "_relay_hash",
|
|
2278
|
-
"type": {
|
|
2279
|
-
"array": [
|
|
2280
|
-
"u8",
|
|
2281
|
-
32
|
|
2282
|
-
]
|
|
2283
|
-
}
|
|
2284
|
-
},
|
|
2285
|
-
{
|
|
2286
|
-
"name": "slow_fill_leaf",
|
|
2287
|
-
"type": {
|
|
2288
|
-
"option": {
|
|
2289
|
-
"defined": {
|
|
2290
|
-
"name": "SlowFill"
|
|
2291
|
-
}
|
|
2292
|
-
}
|
|
2293
|
-
}
|
|
2294
|
-
},
|
|
2295
|
-
{
|
|
2296
|
-
"name": "_root_bundle_id",
|
|
2297
|
-
"type": {
|
|
2298
|
-
"option": "u32"
|
|
2299
|
-
}
|
|
2300
|
-
},
|
|
2301
|
-
{
|
|
2302
|
-
"name": "proof",
|
|
2303
|
-
"type": {
|
|
2304
|
-
"option": {
|
|
2305
|
-
"vec": {
|
|
2306
|
-
"array": [
|
|
2307
|
-
"u8",
|
|
2308
|
-
32
|
|
2309
|
-
]
|
|
2310
|
-
}
|
|
2311
|
-
}
|
|
2312
|
-
}
|
|
2313
|
-
}
|
|
2314
|
-
]
|
|
948
|
+
"args": []
|
|
2315
949
|
},
|
|
2316
950
|
{
|
|
2317
|
-
"name": "
|
|
951
|
+
"name": "execute_relayer_refund_leaf_deferred",
|
|
2318
952
|
"docs": [
|
|
2319
|
-
"
|
|
2320
|
-
"",
|
|
2321
|
-
"Relayer & system fee is captured in the spread between input and output amounts. This fee accounts for tx costs,",
|
|
2322
|
-
"relayer's capital opportunity cost, and a system fee. The relay_data hash uniquely identifies the deposit to",
|
|
2323
|
-
"fill, ensuring relayers are refunded only for deposits matching the original hash from the origin SpokePool.",
|
|
2324
|
-
"This hash includes all parameters from deposit() and must match the destination_chain_id. Note the relayer",
|
|
2325
|
-
"creates an ATA in calling this method to store the fill_status. This should be closed once the deposit has",
|
|
2326
|
-
"expired to let the relayer re-claim their rent. Cannot fill more than once. Partial fills are not supported.",
|
|
2327
|
-
"",
|
|
2328
|
-
"### Required Accounts:",
|
|
2329
|
-
"- signer (Signer): The account that authorizes the fill (filler). No permission requirements.",
|
|
2330
|
-
"- instruction_params (Account): Optional account to load instruction parameters when they are not passed in the",
|
|
2331
|
-
"instruction data due to message size constraints. Pass this program ID to represent None. When Some, this must",
|
|
2332
|
-
"be derived from the signer's public key with seed [\"instruction_params\",signer].",
|
|
2333
|
-
"- state (Writable): Spoke state PDA. Seed: [\"state\",state.seed] where seed is 0 on mainnet.",
|
|
2334
|
-
"- mint (Account): The mint of the output token, sent from the relayer to the recipient.",
|
|
2335
|
-
"- relayer_token_account (Writable): The relayer's ATA for the input token.",
|
|
2336
|
-
"- recipient_token_account (Writable): The recipient's ATA for the output token.",
|
|
2337
|
-
"- fill_status (Writable): The fill status PDA, created on this function call to track the fill status to prevent",
|
|
2338
|
-
"re-entrancy & double fills. Also used to track requested slow fills. Seed: [\"fills\",relay_hash].",
|
|
2339
|
-
"- token_program (Interface): The token program.",
|
|
2340
|
-
"- associated_token_program (Interface): The associated token program.",
|
|
2341
|
-
"- system_program (Interface): The system program.",
|
|
2342
|
-
"- delegate (Account): The account used to delegate the output amount of the output token.",
|
|
2343
|
-
"",
|
|
2344
|
-
"### Parameters:",
|
|
2345
|
-
"- relay_hash: The hash identifying the deposit to be filled. Caller must pass this in. Computed as hash of",
|
|
2346
|
-
"the flattened relay_data & destination_chain_id.",
|
|
2347
|
-
"- relay_data: Struct containing all the data needed to identify the deposit to be filled. Should match",
|
|
2348
|
-
"all the same-named parameters emitted in the origin chain FundsDeposited event.",
|
|
2349
|
-
"- depositor: The account credited with the deposit.",
|
|
2350
|
-
"- recipient: The account receiving funds on this chain.",
|
|
2351
|
-
"- input_token: The token pulled from the caller's account to initiate the deposit. The equivalent of this",
|
|
2352
|
-
"token on the repayment chain will be sent as a refund to the caller.",
|
|
2353
|
-
"- output_token: The token that the caller will send to the recipient on this chain.",
|
|
2354
|
-
"- input_amount: This amount, less a system fee, will be sent to the caller on their repayment chain.",
|
|
2355
|
-
"This is big-endian encoded as a 32-byte array to match its underlying byte representation on EVM side",
|
|
2356
|
-
"- output_amount: The amount of output tokens that the caller will send to the recipient.",
|
|
2357
|
-
"- origin_chain_id: The origin chain identifier.",
|
|
2358
|
-
"- exclusive_relayer: The relayer that will be exclusively allowed to fill this deposit before the",
|
|
2359
|
-
"exclusivity deadline timestamp.",
|
|
2360
|
-
"- fill_deadline: The deadline for the caller to fill the deposit. After this timestamp, the deposit will be",
|
|
2361
|
-
"cancelled and the depositor will be refunded on the origin chain.",
|
|
2362
|
-
"- exclusivity_deadline: The deadline for the exclusive relayer to fill the deposit. After this timestamp,",
|
|
2363
|
-
"anyone can fill this deposit.",
|
|
2364
|
-
"- message: The message to send to the recipient if the recipient is a contract that implements a",
|
|
2365
|
-
"handle_across_message() public function.",
|
|
2366
|
-
"- repayment_chain_id: Chain of SpokePool where relayer wants to be refunded after the challenge window has",
|
|
2367
|
-
"passed. Will receive input_amount of the equivalent token to input_token on the repayment chain.",
|
|
2368
|
-
"- repayment_address: The address of the recipient on the repayment chain that they want to be refunded to.",
|
|
2369
|
-
"Note: relay_data, repayment_chain_id, and repayment_address are optional parameters, but their presence must be",
|
|
2370
|
-
"consistent. If None for these is passed, the caller must load them via the instruction_params account."
|
|
953
|
+
"Similar to execute_relayer_refund_leaf, but executes in mode where refunds are allocated to claim_account PDAs."
|
|
2371
954
|
],
|
|
2372
955
|
"discriminator": [
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
956
|
+
110,
|
|
957
|
+
112,
|
|
958
|
+
89,
|
|
959
|
+
208,
|
|
960
|
+
38,
|
|
961
|
+
116,
|
|
962
|
+
93,
|
|
963
|
+
10
|
|
2381
964
|
],
|
|
2382
965
|
"accounts": [
|
|
2383
966
|
{
|
|
@@ -2388,7 +971,6 @@
|
|
|
2388
971
|
{
|
|
2389
972
|
"name": "instruction_params",
|
|
2390
973
|
"writable": true,
|
|
2391
|
-
"optional": true,
|
|
2392
974
|
"pda": {
|
|
2393
975
|
"seeds": [
|
|
2394
976
|
{
|
|
@@ -2444,23 +1026,47 @@
|
|
|
2444
1026
|
}
|
|
2445
1027
|
},
|
|
2446
1028
|
{
|
|
2447
|
-
"name": "
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
1029
|
+
"name": "root_bundle",
|
|
1030
|
+
"writable": true,
|
|
1031
|
+
"pda": {
|
|
1032
|
+
"seeds": [
|
|
1033
|
+
{
|
|
1034
|
+
"kind": "const",
|
|
1035
|
+
"value": [
|
|
1036
|
+
114,
|
|
1037
|
+
111,
|
|
1038
|
+
111,
|
|
1039
|
+
116,
|
|
1040
|
+
95,
|
|
1041
|
+
98,
|
|
1042
|
+
117,
|
|
1043
|
+
110,
|
|
1044
|
+
100,
|
|
1045
|
+
108,
|
|
1046
|
+
101
|
|
1047
|
+
]
|
|
1048
|
+
},
|
|
1049
|
+
{
|
|
1050
|
+
"kind": "account",
|
|
1051
|
+
"path": "state.seed",
|
|
1052
|
+
"account": "State"
|
|
1053
|
+
},
|
|
1054
|
+
{
|
|
1055
|
+
"kind": "account",
|
|
1056
|
+
"path": "instruction_params.root_bundle_id",
|
|
1057
|
+
"account": "ExecuteRelayerRefundLeafParams"
|
|
1058
|
+
}
|
|
1059
|
+
]
|
|
1060
|
+
}
|
|
2455
1061
|
},
|
|
2456
1062
|
{
|
|
2457
|
-
"name": "
|
|
1063
|
+
"name": "vault",
|
|
2458
1064
|
"writable": true,
|
|
2459
1065
|
"pda": {
|
|
2460
1066
|
"seeds": [
|
|
2461
1067
|
{
|
|
2462
|
-
"kind": "
|
|
2463
|
-
"path": "
|
|
1068
|
+
"kind": "account",
|
|
1069
|
+
"path": "state"
|
|
2464
1070
|
},
|
|
2465
1071
|
{
|
|
2466
1072
|
"kind": "account",
|
|
@@ -2511,34 +1117,11 @@
|
|
|
2511
1117
|
}
|
|
2512
1118
|
},
|
|
2513
1119
|
{
|
|
2514
|
-
"name": "
|
|
2515
|
-
"writable": true,
|
|
2516
|
-
"pda": {
|
|
2517
|
-
"seeds": [
|
|
2518
|
-
{
|
|
2519
|
-
"kind": "const",
|
|
2520
|
-
"value": [
|
|
2521
|
-
102,
|
|
2522
|
-
105,
|
|
2523
|
-
108,
|
|
2524
|
-
108,
|
|
2525
|
-
115
|
|
2526
|
-
]
|
|
2527
|
-
},
|
|
2528
|
-
{
|
|
2529
|
-
"kind": "arg",
|
|
2530
|
-
"path": "relay_hash"
|
|
2531
|
-
}
|
|
2532
|
-
]
|
|
2533
|
-
}
|
|
1120
|
+
"name": "mint"
|
|
2534
1121
|
},
|
|
2535
1122
|
{
|
|
2536
1123
|
"name": "token_program"
|
|
2537
1124
|
},
|
|
2538
|
-
{
|
|
2539
|
-
"name": "associated_token_program",
|
|
2540
|
-
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
|
|
2541
|
-
},
|
|
2542
1125
|
{
|
|
2543
1126
|
"name": "system_program",
|
|
2544
1127
|
"address": "11111111111111111111111111111111"
|
|
@@ -2576,95 +1159,24 @@
|
|
|
2576
1159
|
"name": "program"
|
|
2577
1160
|
}
|
|
2578
1161
|
],
|
|
2579
|
-
"args": [
|
|
2580
|
-
{
|
|
2581
|
-
"name": "relay_hash",
|
|
2582
|
-
"type": {
|
|
2583
|
-
"array": [
|
|
2584
|
-
"u8",
|
|
2585
|
-
32
|
|
2586
|
-
]
|
|
2587
|
-
}
|
|
2588
|
-
},
|
|
2589
|
-
{
|
|
2590
|
-
"name": "relay_data",
|
|
2591
|
-
"type": {
|
|
2592
|
-
"option": {
|
|
2593
|
-
"defined": {
|
|
2594
|
-
"name": "RelayData"
|
|
2595
|
-
}
|
|
2596
|
-
}
|
|
2597
|
-
}
|
|
2598
|
-
},
|
|
2599
|
-
{
|
|
2600
|
-
"name": "repayment_chain_id",
|
|
2601
|
-
"type": {
|
|
2602
|
-
"option": "u64"
|
|
2603
|
-
}
|
|
2604
|
-
},
|
|
2605
|
-
{
|
|
2606
|
-
"name": "repayment_address",
|
|
2607
|
-
"type": {
|
|
2608
|
-
"option": "pubkey"
|
|
2609
|
-
}
|
|
2610
|
-
}
|
|
2611
|
-
]
|
|
2612
|
-
},
|
|
2613
|
-
{
|
|
2614
|
-
"name": "get_unsafe_deposit_id",
|
|
2615
|
-
"docs": [
|
|
2616
|
-
"Computes the deposit ID for the depositor using the provided deposit_nonce. This acts like a \"view\" function for",
|
|
2617
|
-
"off-chain actors to compute what the expected deposit ID is for a given depositor and deposit nonce will be.",
|
|
2618
|
-
"",
|
|
2619
|
-
"### Parameters:",
|
|
2620
|
-
"- signer: The public key of the depositor sender.",
|
|
2621
|
-
"- depositor: The public key of the depositor.",
|
|
2622
|
-
"- deposit_nonce: The nonce used to derive the deposit ID."
|
|
2623
|
-
],
|
|
2624
|
-
"discriminator": [
|
|
2625
|
-
118,
|
|
2626
|
-
10,
|
|
2627
|
-
135,
|
|
2628
|
-
0,
|
|
2629
|
-
168,
|
|
2630
|
-
243,
|
|
2631
|
-
223,
|
|
2632
|
-
117
|
|
2633
|
-
],
|
|
2634
|
-
"accounts": [],
|
|
2635
|
-
"args": [
|
|
2636
|
-
{
|
|
2637
|
-
"name": "signer",
|
|
2638
|
-
"type": "pubkey"
|
|
2639
|
-
},
|
|
2640
|
-
{
|
|
2641
|
-
"name": "depositor",
|
|
2642
|
-
"type": "pubkey"
|
|
2643
|
-
},
|
|
2644
|
-
{
|
|
2645
|
-
"name": "deposit_nonce",
|
|
2646
|
-
"type": "u64"
|
|
2647
|
-
}
|
|
2648
|
-
],
|
|
2649
|
-
"returns": {
|
|
2650
|
-
"array": [
|
|
2651
|
-
"u8",
|
|
2652
|
-
32
|
|
2653
|
-
]
|
|
2654
|
-
}
|
|
1162
|
+
"args": []
|
|
2655
1163
|
},
|
|
2656
1164
|
{
|
|
2657
|
-
"name": "
|
|
1165
|
+
"name": "handle_receive_finalized_message",
|
|
2658
1166
|
"docs": [
|
|
2659
|
-
"Handles cross-chain messages received from L1 Ethereum over CCTP.",
|
|
1167
|
+
"Handles finalized cross-chain messages received from L1 Ethereum over CCTP V2.",
|
|
2660
1168
|
"",
|
|
2661
1169
|
"This function serves as the permissioned entry point for messages sent from the Ethereum mainnet to the Solana",
|
|
2662
|
-
"SVM Spoke program over CCTP. It processes the incoming message by translating it into a corresponding Solana",
|
|
1170
|
+
"SVM Spoke program over CCTP V2. It processes the incoming message by translating it into a corresponding Solana",
|
|
2663
1171
|
"instruction and then invokes the instruction within this program.",
|
|
2664
1172
|
"",
|
|
1173
|
+
"The CCTP V2 Message Transmitter dispatches messages attested at Circle's finalized threshold (2000) to this",
|
|
1174
|
+
"instruction and anything below to `handle_receive_unfinalized_message`. This program intentionally does not",
|
|
1175
|
+
"implement the latter, so messages attested before the source chain reached hard finality can never be consumed.",
|
|
1176
|
+
"",
|
|
2665
1177
|
"### Required Accounts:",
|
|
2666
1178
|
"- authority_pda: A signer account that ensures this instruction can only be called by the Message Transmitter.",
|
|
2667
|
-
"This acts to block that only the CCTP Message Transmitter can send messages to this program.",
|
|
1179
|
+
"This acts to block that only the CCTP V2 Message Transmitter can send messages to this program.",
|
|
2668
1180
|
"seed:[\"message_transmitter_authority\", program_id]",
|
|
2669
1181
|
"- state (Account): Spoke state PDA. Seed: [\"state\",state.seed] where seed is 0 on mainnet. Enforces that the",
|
|
2670
1182
|
"remote domain and sender are valid.",
|
|
@@ -2676,18 +1188,20 @@
|
|
|
2676
1188
|
"- params: Contains information to process the received message, containing the following fields:",
|
|
2677
1189
|
"- remote_domain: The remote domain of the message sender.",
|
|
2678
1190
|
"- sender: The sender of the message.",
|
|
1191
|
+
"- finality_threshold_executed: The finality threshold the message was attested at. Not checked here, as the",
|
|
1192
|
+
"Message Transmitter dispatches only finalized messages to this instruction.",
|
|
2679
1193
|
"- message_body: The body of the message.",
|
|
2680
1194
|
"- authority_bump: The authority bump for the message transmitter."
|
|
2681
1195
|
],
|
|
2682
1196
|
"discriminator": [
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
1197
|
+
186,
|
|
1198
|
+
252,
|
|
1199
|
+
239,
|
|
1200
|
+
70,
|
|
1201
|
+
86,
|
|
2686
1202
|
180,
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
138,
|
|
2690
|
-
180
|
|
1203
|
+
110,
|
|
1204
|
+
95
|
|
2691
1205
|
],
|
|
2692
1206
|
"accounts": [
|
|
2693
1207
|
{
|
|
@@ -2772,36 +1286,36 @@
|
|
|
2772
1286
|
"value": [
|
|
2773
1287
|
166,
|
|
2774
1288
|
95,
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
209,
|
|
1289
|
+
200,
|
|
1290
|
+
28,
|
|
1291
|
+
225,
|
|
1292
|
+
158,
|
|
1293
|
+
220,
|
|
1294
|
+
210,
|
|
1295
|
+
210,
|
|
1296
|
+
195,
|
|
1297
|
+
64,
|
|
1298
|
+
176,
|
|
1299
|
+
47,
|
|
1300
|
+
166,
|
|
1301
|
+
27,
|
|
1302
|
+
225,
|
|
1303
|
+
213,
|
|
1304
|
+
186,
|
|
1305
|
+
221,
|
|
1306
|
+
225,
|
|
1307
|
+
89,
|
|
1308
|
+
40,
|
|
1309
|
+
51,
|
|
1310
|
+
221,
|
|
1311
|
+
249,
|
|
1312
|
+
32,
|
|
1313
|
+
9,
|
|
2801
1314
|
216,
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
1315
|
+
207,
|
|
1316
|
+
104,
|
|
1317
|
+
84,
|
|
1318
|
+
85
|
|
2805
1319
|
]
|
|
2806
1320
|
}
|
|
2807
1321
|
}
|
|
@@ -3305,244 +1819,47 @@
|
|
|
3305
1819
|
{
|
|
3306
1820
|
"name": "relay_root_bundle",
|
|
3307
1821
|
"docs": [
|
|
3308
|
-
"Stores a new root bundle for later execution. Only callable by the owner.",
|
|
3309
|
-
"",
|
|
3310
|
-
"Once stored, these roots are used to execute relayer refunds, slow fills, and pool rebalancing actions.",
|
|
3311
|
-
"This method initializes a root_bundle PDA to store the root bundle data. The caller",
|
|
3312
|
-
"of this method is responsible for paying the rent for this PDA.",
|
|
3313
|
-
"",
|
|
3314
|
-
"### Required Accounts:",
|
|
3315
|
-
"- signer (Signer): The account that must be the owner to authorize the addition of the new root bundle.",
|
|
3316
|
-
"- payer (Signer): The account who pays rent to create root_bundle PDA.",
|
|
3317
|
-
"- state (Writable): Spoke state PDA. Seed: [\"state\",state.seed] where seed is 0 on mainnet.",
|
|
3318
|
-
"- root_bundle (Writable): The newly created bundle PDA to store root bundle data. Each root bundle has an",
|
|
3319
|
-
"incrementing ID, stored in the state. Seed: [\"root_bundle\",state.seed,root_bundle_id].",
|
|
3320
|
-
"- system_program (Program): The system program required for account creation.",
|
|
3321
|
-
"",
|
|
3322
|
-
"### Parameters:",
|
|
3323
|
-
"- relayer_refund_root: Merkle root of the relayer refund tree.",
|
|
3324
|
-
"- slow_relay_root: Merkle root of the slow relay tree."
|
|
3325
|
-
],
|
|
3326
|
-
"discriminator": [
|
|
3327
|
-
69,
|
|
3328
|
-
13,
|
|
3329
|
-
223,
|
|
3330
|
-
204,
|
|
3331
|
-
251,
|
|
3332
|
-
61,
|
|
3333
|
-
105,
|
|
3334
|
-
6
|
|
3335
|
-
],
|
|
3336
|
-
"accounts": [
|
|
3337
|
-
{
|
|
3338
|
-
"name": "signer",
|
|
3339
|
-
"signer": true
|
|
3340
|
-
},
|
|
3341
|
-
{
|
|
3342
|
-
"name": "payer",
|
|
3343
|
-
"writable": true,
|
|
3344
|
-
"signer": true
|
|
3345
|
-
},
|
|
3346
|
-
{
|
|
3347
|
-
"name": "state",
|
|
3348
|
-
"writable": true,
|
|
3349
|
-
"pda": {
|
|
3350
|
-
"seeds": [
|
|
3351
|
-
{
|
|
3352
|
-
"kind": "const",
|
|
3353
|
-
"value": [
|
|
3354
|
-
115,
|
|
3355
|
-
116,
|
|
3356
|
-
97,
|
|
3357
|
-
116,
|
|
3358
|
-
101
|
|
3359
|
-
]
|
|
3360
|
-
},
|
|
3361
|
-
{
|
|
3362
|
-
"kind": "account",
|
|
3363
|
-
"path": "state.seed",
|
|
3364
|
-
"account": "State"
|
|
3365
|
-
}
|
|
3366
|
-
]
|
|
3367
|
-
}
|
|
3368
|
-
},
|
|
3369
|
-
{
|
|
3370
|
-
"name": "root_bundle",
|
|
3371
|
-
"writable": true,
|
|
3372
|
-
"pda": {
|
|
3373
|
-
"seeds": [
|
|
3374
|
-
{
|
|
3375
|
-
"kind": "const",
|
|
3376
|
-
"value": [
|
|
3377
|
-
114,
|
|
3378
|
-
111,
|
|
3379
|
-
111,
|
|
3380
|
-
116,
|
|
3381
|
-
95,
|
|
3382
|
-
98,
|
|
3383
|
-
117,
|
|
3384
|
-
110,
|
|
3385
|
-
100,
|
|
3386
|
-
108,
|
|
3387
|
-
101
|
|
3388
|
-
]
|
|
3389
|
-
},
|
|
3390
|
-
{
|
|
3391
|
-
"kind": "account",
|
|
3392
|
-
"path": "state.seed",
|
|
3393
|
-
"account": "State"
|
|
3394
|
-
},
|
|
3395
|
-
{
|
|
3396
|
-
"kind": "account",
|
|
3397
|
-
"path": "state.root_bundle_id",
|
|
3398
|
-
"account": "State"
|
|
3399
|
-
}
|
|
3400
|
-
]
|
|
3401
|
-
}
|
|
3402
|
-
},
|
|
3403
|
-
{
|
|
3404
|
-
"name": "system_program",
|
|
3405
|
-
"address": "11111111111111111111111111111111"
|
|
3406
|
-
},
|
|
3407
|
-
{
|
|
3408
|
-
"name": "event_authority",
|
|
3409
|
-
"pda": {
|
|
3410
|
-
"seeds": [
|
|
3411
|
-
{
|
|
3412
|
-
"kind": "const",
|
|
3413
|
-
"value": [
|
|
3414
|
-
95,
|
|
3415
|
-
95,
|
|
3416
|
-
101,
|
|
3417
|
-
118,
|
|
3418
|
-
101,
|
|
3419
|
-
110,
|
|
3420
|
-
116,
|
|
3421
|
-
95,
|
|
3422
|
-
97,
|
|
3423
|
-
117,
|
|
3424
|
-
116,
|
|
3425
|
-
104,
|
|
3426
|
-
111,
|
|
3427
|
-
114,
|
|
3428
|
-
105,
|
|
3429
|
-
116,
|
|
3430
|
-
121
|
|
3431
|
-
]
|
|
3432
|
-
}
|
|
3433
|
-
]
|
|
3434
|
-
}
|
|
3435
|
-
},
|
|
3436
|
-
{
|
|
3437
|
-
"name": "program"
|
|
3438
|
-
}
|
|
3439
|
-
],
|
|
3440
|
-
"args": [
|
|
3441
|
-
{
|
|
3442
|
-
"name": "relayer_refund_root",
|
|
3443
|
-
"type": {
|
|
3444
|
-
"array": [
|
|
3445
|
-
"u8",
|
|
3446
|
-
32
|
|
3447
|
-
]
|
|
3448
|
-
}
|
|
3449
|
-
},
|
|
3450
|
-
{
|
|
3451
|
-
"name": "slow_relay_root",
|
|
3452
|
-
"type": {
|
|
3453
|
-
"array": [
|
|
3454
|
-
"u8",
|
|
3455
|
-
32
|
|
3456
|
-
]
|
|
3457
|
-
}
|
|
3458
|
-
}
|
|
3459
|
-
]
|
|
3460
|
-
},
|
|
3461
|
-
{
|
|
3462
|
-
"name": "request_slow_fill",
|
|
3463
|
-
"docs": [
|
|
3464
|
-
"Requests Across to send LP funds to this program to fulfill a slow fill.",
|
|
1822
|
+
"Stores a new root bundle for later execution. Only callable by the owner.",
|
|
3465
1823
|
"",
|
|
3466
|
-
"
|
|
3467
|
-
"
|
|
3468
|
-
"
|
|
3469
|
-
"relay the slow root to this chain via relayRootBundle(). Once the slow root is relayed, the slow fill can be",
|
|
3470
|
-
"executed by anyone who calls executeSlowRelayLeaf(). Cant request a slow fill if the fill deadline has",
|
|
3471
|
-
"passed. Cant request a slow fill if the relay has already been filled or a slow fill has already been requested.",
|
|
1824
|
+
"The refund root authorizes relayer refunds. The slow root is stored only for compatibility and cannot execute.",
|
|
1825
|
+
"This method initializes a root_bundle PDA to store the root bundle data. The caller",
|
|
1826
|
+
"of this method is responsible for paying the rent for this PDA.",
|
|
3472
1827
|
"",
|
|
3473
1828
|
"### Required Accounts:",
|
|
3474
|
-
"- signer (Signer): The account that
|
|
3475
|
-
"-
|
|
3476
|
-
"instruction data due to message size constraints. Pass this program ID to represent None. When Some, this must",
|
|
3477
|
-
"be derived from the signer's public key with seed [\"instruction_params\",signer].",
|
|
1829
|
+
"- signer (Signer): The account that must be the owner to authorize the addition of the new root bundle.",
|
|
1830
|
+
"- payer (Signer): The account who pays rent to create root_bundle PDA.",
|
|
3478
1831
|
"- state (Writable): Spoke state PDA. Seed: [\"state\",state.seed] where seed is 0 on mainnet.",
|
|
3479
|
-
"-
|
|
3480
|
-
"
|
|
3481
|
-
"- system_program (
|
|
1832
|
+
"- root_bundle (Writable): The newly created bundle PDA to store root bundle data. Each root bundle has an",
|
|
1833
|
+
"incrementing ID, stored in the state. Seed: [\"root_bundle\",state.seed,root_bundle_id].",
|
|
1834
|
+
"- system_program (Program): The system program required for account creation.",
|
|
3482
1835
|
"",
|
|
3483
1836
|
"### Parameters:",
|
|
3484
|
-
"-
|
|
3485
|
-
"
|
|
3486
|
-
"- relay_data: Struct containing all the data needed to identify the deposit that should be slow filled. If any",
|
|
3487
|
-
"of the params are missing or different from the origin chain deposit, then Across will not include a slow",
|
|
3488
|
-
"fill for the intended deposit. See fill_relay & RelayData struct for more details.",
|
|
3489
|
-
"Note: relay_data is optional parameter. If None for it is passed, the caller must load it via the",
|
|
3490
|
-
"instruction_params account."
|
|
1837
|
+
"- relayer_refund_root: Merkle root of the relayer refund tree.",
|
|
1838
|
+
"- slow_relay_root: Inert legacy root retained for cross-chain admin ABI compatibility."
|
|
3491
1839
|
],
|
|
3492
1840
|
"discriminator": [
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
1841
|
+
69,
|
|
1842
|
+
13,
|
|
1843
|
+
223,
|
|
1844
|
+
204,
|
|
1845
|
+
251,
|
|
1846
|
+
61,
|
|
1847
|
+
105,
|
|
1848
|
+
6
|
|
3501
1849
|
],
|
|
3502
1850
|
"accounts": [
|
|
3503
1851
|
{
|
|
3504
1852
|
"name": "signer",
|
|
3505
|
-
"writable": true,
|
|
3506
1853
|
"signer": true
|
|
3507
1854
|
},
|
|
3508
1855
|
{
|
|
3509
|
-
"name": "
|
|
1856
|
+
"name": "payer",
|
|
3510
1857
|
"writable": true,
|
|
3511
|
-
"
|
|
3512
|
-
"pda": {
|
|
3513
|
-
"seeds": [
|
|
3514
|
-
{
|
|
3515
|
-
"kind": "const",
|
|
3516
|
-
"value": [
|
|
3517
|
-
105,
|
|
3518
|
-
110,
|
|
3519
|
-
115,
|
|
3520
|
-
116,
|
|
3521
|
-
114,
|
|
3522
|
-
117,
|
|
3523
|
-
99,
|
|
3524
|
-
116,
|
|
3525
|
-
105,
|
|
3526
|
-
111,
|
|
3527
|
-
110,
|
|
3528
|
-
95,
|
|
3529
|
-
112,
|
|
3530
|
-
97,
|
|
3531
|
-
114,
|
|
3532
|
-
97,
|
|
3533
|
-
109,
|
|
3534
|
-
115
|
|
3535
|
-
]
|
|
3536
|
-
},
|
|
3537
|
-
{
|
|
3538
|
-
"kind": "account",
|
|
3539
|
-
"path": "signer"
|
|
3540
|
-
}
|
|
3541
|
-
]
|
|
3542
|
-
}
|
|
1858
|
+
"signer": true
|
|
3543
1859
|
},
|
|
3544
1860
|
{
|
|
3545
1861
|
"name": "state",
|
|
1862
|
+
"writable": true,
|
|
3546
1863
|
"pda": {
|
|
3547
1864
|
"seeds": [
|
|
3548
1865
|
{
|
|
@@ -3564,23 +1881,35 @@
|
|
|
3564
1881
|
}
|
|
3565
1882
|
},
|
|
3566
1883
|
{
|
|
3567
|
-
"name": "
|
|
1884
|
+
"name": "root_bundle",
|
|
3568
1885
|
"writable": true,
|
|
3569
1886
|
"pda": {
|
|
3570
1887
|
"seeds": [
|
|
3571
1888
|
{
|
|
3572
1889
|
"kind": "const",
|
|
3573
1890
|
"value": [
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
1891
|
+
114,
|
|
1892
|
+
111,
|
|
1893
|
+
111,
|
|
1894
|
+
116,
|
|
1895
|
+
95,
|
|
1896
|
+
98,
|
|
1897
|
+
117,
|
|
1898
|
+
110,
|
|
1899
|
+
100,
|
|
3577
1900
|
108,
|
|
3578
|
-
|
|
1901
|
+
101
|
|
3579
1902
|
]
|
|
3580
1903
|
},
|
|
3581
1904
|
{
|
|
3582
|
-
"kind": "
|
|
3583
|
-
"path": "
|
|
1905
|
+
"kind": "account",
|
|
1906
|
+
"path": "state.seed",
|
|
1907
|
+
"account": "State"
|
|
1908
|
+
},
|
|
1909
|
+
{
|
|
1910
|
+
"kind": "account",
|
|
1911
|
+
"path": "state.root_bundle_id",
|
|
1912
|
+
"account": "State"
|
|
3584
1913
|
}
|
|
3585
1914
|
]
|
|
3586
1915
|
}
|
|
@@ -3624,7 +1953,7 @@
|
|
|
3624
1953
|
],
|
|
3625
1954
|
"args": [
|
|
3626
1955
|
{
|
|
3627
|
-
"name": "
|
|
1956
|
+
"name": "relayer_refund_root",
|
|
3628
1957
|
"type": {
|
|
3629
1958
|
"array": [
|
|
3630
1959
|
"u8",
|
|
@@ -3633,13 +1962,12 @@
|
|
|
3633
1962
|
}
|
|
3634
1963
|
},
|
|
3635
1964
|
{
|
|
3636
|
-
"name": "
|
|
1965
|
+
"name": "slow_relay_root",
|
|
3637
1966
|
"type": {
|
|
3638
|
-
"
|
|
3639
|
-
"
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
}
|
|
1967
|
+
"array": [
|
|
1968
|
+
"u8",
|
|
1969
|
+
32
|
|
1970
|
+
]
|
|
3643
1971
|
}
|
|
3644
1972
|
}
|
|
3645
1973
|
]
|
|
@@ -3876,275 +2204,69 @@
|
|
|
3876
2204
|
]
|
|
3877
2205
|
},
|
|
3878
2206
|
{
|
|
3879
|
-
"name": "
|
|
2207
|
+
"name": "withdraw_v5_fill_payer",
|
|
3880
2208
|
"docs": [
|
|
3881
|
-
"
|
|
3882
|
-
"
|
|
3883
|
-
"wants to pre-compute their resultant deposit ID, which can be useful for filling a deposit faster and",
|
|
3884
|
-
"avoiding the risk of a deposit ID unexpectedly changing due to another deposit front-running this one and",
|
|
3885
|
-
"incrementing the global deposit ID counter. This enables the caller to influence the deposit ID, making it",
|
|
3886
|
-
"deterministic for the depositor. The computed `depositID` is the keccak256 hash of [signer, depositor, deposit_nonce]."
|
|
2209
|
+
"Withdraws lamports from the signing submitter's V5 fill-status payer float back to that same submitter. Partial",
|
|
2210
|
+
"withdrawals remain subject to the runtime's rent-state rules; `u64::MAX` withdraws the live balance."
|
|
3887
2211
|
],
|
|
3888
2212
|
"discriminator": [
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
2213
|
+
160,
|
|
2214
|
+
125,
|
|
2215
|
+
152,
|
|
2216
|
+
107,
|
|
2217
|
+
21,
|
|
2218
|
+
37,
|
|
2219
|
+
181,
|
|
2220
|
+
144
|
|
3897
2221
|
],
|
|
3898
|
-
"accounts": [
|
|
3899
|
-
{
|
|
3900
|
-
"name": "signer",
|
|
3901
|
-
"writable": true,
|
|
3902
|
-
"signer": true
|
|
3903
|
-
},
|
|
3904
|
-
{
|
|
3905
|
-
"name": "state",
|
|
3906
|
-
"writable": true,
|
|
3907
|
-
"pda": {
|
|
3908
|
-
"seeds": [
|
|
3909
|
-
{
|
|
3910
|
-
"kind": "const",
|
|
3911
|
-
"value": [
|
|
3912
|
-
115,
|
|
3913
|
-
116,
|
|
3914
|
-
97,
|
|
3915
|
-
116,
|
|
3916
|
-
101
|
|
3917
|
-
]
|
|
3918
|
-
},
|
|
3919
|
-
{
|
|
3920
|
-
"kind": "account",
|
|
3921
|
-
"path": "state.seed",
|
|
3922
|
-
"account": "State"
|
|
3923
|
-
}
|
|
3924
|
-
]
|
|
3925
|
-
}
|
|
3926
|
-
},
|
|
3927
|
-
{
|
|
3928
|
-
"name": "delegate"
|
|
3929
|
-
},
|
|
3930
|
-
{
|
|
3931
|
-
"name": "depositor_token_account",
|
|
3932
|
-
"writable": true,
|
|
3933
|
-
"pda": {
|
|
3934
|
-
"seeds": [
|
|
3935
|
-
{
|
|
3936
|
-
"kind": "arg",
|
|
3937
|
-
"path": "depositor"
|
|
3938
|
-
},
|
|
3939
|
-
{
|
|
3940
|
-
"kind": "account",
|
|
3941
|
-
"path": "token_program"
|
|
3942
|
-
},
|
|
3943
|
-
{
|
|
3944
|
-
"kind": "account",
|
|
3945
|
-
"path": "mint"
|
|
3946
|
-
}
|
|
3947
|
-
],
|
|
3948
|
-
"program": {
|
|
3949
|
-
"kind": "const",
|
|
3950
|
-
"value": [
|
|
3951
|
-
140,
|
|
3952
|
-
151,
|
|
3953
|
-
37,
|
|
3954
|
-
143,
|
|
3955
|
-
78,
|
|
3956
|
-
36,
|
|
3957
|
-
137,
|
|
3958
|
-
241,
|
|
3959
|
-
187,
|
|
3960
|
-
61,
|
|
3961
|
-
16,
|
|
3962
|
-
41,
|
|
3963
|
-
20,
|
|
3964
|
-
142,
|
|
3965
|
-
13,
|
|
3966
|
-
131,
|
|
3967
|
-
11,
|
|
3968
|
-
90,
|
|
3969
|
-
19,
|
|
3970
|
-
153,
|
|
3971
|
-
218,
|
|
3972
|
-
255,
|
|
3973
|
-
16,
|
|
3974
|
-
132,
|
|
3975
|
-
4,
|
|
3976
|
-
142,
|
|
3977
|
-
123,
|
|
3978
|
-
216,
|
|
3979
|
-
219,
|
|
3980
|
-
233,
|
|
3981
|
-
248,
|
|
3982
|
-
89
|
|
3983
|
-
]
|
|
3984
|
-
}
|
|
3985
|
-
}
|
|
3986
|
-
},
|
|
3987
|
-
{
|
|
3988
|
-
"name": "vault",
|
|
3989
|
-
"writable": true,
|
|
3990
|
-
"pda": {
|
|
3991
|
-
"seeds": [
|
|
3992
|
-
{
|
|
3993
|
-
"kind": "account",
|
|
3994
|
-
"path": "state"
|
|
3995
|
-
},
|
|
3996
|
-
{
|
|
3997
|
-
"kind": "account",
|
|
3998
|
-
"path": "token_program"
|
|
3999
|
-
},
|
|
4000
|
-
{
|
|
4001
|
-
"kind": "account",
|
|
4002
|
-
"path": "mint"
|
|
4003
|
-
}
|
|
4004
|
-
],
|
|
4005
|
-
"program": {
|
|
4006
|
-
"kind": "const",
|
|
4007
|
-
"value": [
|
|
4008
|
-
140,
|
|
4009
|
-
151,
|
|
4010
|
-
37,
|
|
4011
|
-
143,
|
|
4012
|
-
78,
|
|
4013
|
-
36,
|
|
4014
|
-
137,
|
|
4015
|
-
241,
|
|
4016
|
-
187,
|
|
4017
|
-
61,
|
|
4018
|
-
16,
|
|
4019
|
-
41,
|
|
4020
|
-
20,
|
|
4021
|
-
142,
|
|
4022
|
-
13,
|
|
4023
|
-
131,
|
|
4024
|
-
11,
|
|
4025
|
-
90,
|
|
4026
|
-
19,
|
|
4027
|
-
153,
|
|
4028
|
-
218,
|
|
4029
|
-
255,
|
|
4030
|
-
16,
|
|
4031
|
-
132,
|
|
4032
|
-
4,
|
|
4033
|
-
142,
|
|
4034
|
-
123,
|
|
4035
|
-
216,
|
|
4036
|
-
219,
|
|
4037
|
-
233,
|
|
4038
|
-
248,
|
|
4039
|
-
89
|
|
4040
|
-
]
|
|
4041
|
-
}
|
|
4042
|
-
}
|
|
4043
|
-
},
|
|
4044
|
-
{
|
|
4045
|
-
"name": "mint"
|
|
4046
|
-
},
|
|
4047
|
-
{
|
|
4048
|
-
"name": "token_program"
|
|
4049
|
-
},
|
|
4050
|
-
{
|
|
4051
|
-
"name": "associated_token_program",
|
|
4052
|
-
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
|
|
4053
|
-
},
|
|
2222
|
+
"accounts": [
|
|
4054
2223
|
{
|
|
4055
|
-
"name": "
|
|
4056
|
-
"
|
|
2224
|
+
"name": "submitter",
|
|
2225
|
+
"docs": [
|
|
2226
|
+
"The float owner and the only withdrawal destination."
|
|
2227
|
+
],
|
|
2228
|
+
"writable": true,
|
|
2229
|
+
"signer": true
|
|
4057
2230
|
},
|
|
4058
2231
|
{
|
|
4059
|
-
"name": "
|
|
2232
|
+
"name": "payer",
|
|
2233
|
+
"writable": true,
|
|
4060
2234
|
"pda": {
|
|
4061
2235
|
"seeds": [
|
|
4062
2236
|
{
|
|
4063
2237
|
"kind": "const",
|
|
4064
2238
|
"value": [
|
|
4065
|
-
95,
|
|
4066
|
-
95,
|
|
4067
|
-
101,
|
|
4068
2239
|
118,
|
|
4069
|
-
|
|
4070
|
-
110,
|
|
4071
|
-
116,
|
|
2240
|
+
53,
|
|
4072
2241
|
95,
|
|
4073
|
-
|
|
4074
|
-
117,
|
|
4075
|
-
116,
|
|
4076
|
-
104,
|
|
4077
|
-
111,
|
|
4078
|
-
114,
|
|
2242
|
+
102,
|
|
4079
2243
|
105,
|
|
4080
|
-
|
|
4081
|
-
|
|
2244
|
+
108,
|
|
2245
|
+
108,
|
|
2246
|
+
95,
|
|
2247
|
+
112,
|
|
2248
|
+
97,
|
|
2249
|
+
121,
|
|
2250
|
+
101,
|
|
2251
|
+
114
|
|
4082
2252
|
]
|
|
2253
|
+
},
|
|
2254
|
+
{
|
|
2255
|
+
"kind": "account",
|
|
2256
|
+
"path": "submitter"
|
|
4083
2257
|
}
|
|
4084
2258
|
]
|
|
4085
2259
|
}
|
|
4086
2260
|
},
|
|
4087
2261
|
{
|
|
4088
|
-
"name": "
|
|
2262
|
+
"name": "system_program",
|
|
2263
|
+
"address": "11111111111111111111111111111111"
|
|
4089
2264
|
}
|
|
4090
2265
|
],
|
|
4091
2266
|
"args": [
|
|
4092
2267
|
{
|
|
4093
|
-
"name": "
|
|
4094
|
-
"type": "pubkey"
|
|
4095
|
-
},
|
|
4096
|
-
{
|
|
4097
|
-
"name": "recipient",
|
|
4098
|
-
"type": "pubkey"
|
|
4099
|
-
},
|
|
4100
|
-
{
|
|
4101
|
-
"name": "input_token",
|
|
4102
|
-
"type": "pubkey"
|
|
4103
|
-
},
|
|
4104
|
-
{
|
|
4105
|
-
"name": "output_token",
|
|
4106
|
-
"type": "pubkey"
|
|
4107
|
-
},
|
|
4108
|
-
{
|
|
4109
|
-
"name": "input_amount",
|
|
4110
|
-
"type": "u64"
|
|
4111
|
-
},
|
|
4112
|
-
{
|
|
4113
|
-
"name": "output_amount",
|
|
4114
|
-
"type": {
|
|
4115
|
-
"array": [
|
|
4116
|
-
"u8",
|
|
4117
|
-
32
|
|
4118
|
-
]
|
|
4119
|
-
}
|
|
4120
|
-
},
|
|
4121
|
-
{
|
|
4122
|
-
"name": "destination_chain_id",
|
|
4123
|
-
"type": "u64"
|
|
4124
|
-
},
|
|
4125
|
-
{
|
|
4126
|
-
"name": "exclusive_relayer",
|
|
4127
|
-
"type": "pubkey"
|
|
4128
|
-
},
|
|
4129
|
-
{
|
|
4130
|
-
"name": "deposit_nonce",
|
|
2268
|
+
"name": "amount",
|
|
4131
2269
|
"type": "u64"
|
|
4132
|
-
},
|
|
4133
|
-
{
|
|
4134
|
-
"name": "quote_timestamp",
|
|
4135
|
-
"type": "u32"
|
|
4136
|
-
},
|
|
4137
|
-
{
|
|
4138
|
-
"name": "fill_deadline",
|
|
4139
|
-
"type": "u32"
|
|
4140
|
-
},
|
|
4141
|
-
{
|
|
4142
|
-
"name": "exclusivity_parameter",
|
|
4143
|
-
"type": "u32"
|
|
4144
|
-
},
|
|
4145
|
-
{
|
|
4146
|
-
"name": "message",
|
|
4147
|
-
"type": "bytes"
|
|
4148
2270
|
}
|
|
4149
2271
|
]
|
|
4150
2272
|
},
|
|
@@ -4259,32 +2381,6 @@
|
|
|
4259
2381
|
250
|
|
4260
2382
|
]
|
|
4261
2383
|
},
|
|
4262
|
-
{
|
|
4263
|
-
"name": "ExecuteSlowRelayLeafParams",
|
|
4264
|
-
"discriminator": [
|
|
4265
|
-
135,
|
|
4266
|
-
208,
|
|
4267
|
-
119,
|
|
4268
|
-
251,
|
|
4269
|
-
14,
|
|
4270
|
-
222,
|
|
4271
|
-
66,
|
|
4272
|
-
155
|
|
4273
|
-
]
|
|
4274
|
-
},
|
|
4275
|
-
{
|
|
4276
|
-
"name": "FillRelayParams",
|
|
4277
|
-
"discriminator": [
|
|
4278
|
-
50,
|
|
4279
|
-
243,
|
|
4280
|
-
51,
|
|
4281
|
-
185,
|
|
4282
|
-
89,
|
|
4283
|
-
60,
|
|
4284
|
-
43,
|
|
4285
|
-
202
|
|
4286
|
-
]
|
|
4287
|
-
},
|
|
4288
2384
|
{
|
|
4289
2385
|
"name": "FillStatusAccount",
|
|
4290
2386
|
"discriminator": [
|
|
@@ -4298,19 +2394,6 @@
|
|
|
4298
2394
|
137
|
|
4299
2395
|
]
|
|
4300
2396
|
},
|
|
4301
|
-
{
|
|
4302
|
-
"name": "RequestSlowFillParams",
|
|
4303
|
-
"discriminator": [
|
|
4304
|
-
5,
|
|
4305
|
-
54,
|
|
4306
|
-
214,
|
|
4307
|
-
89,
|
|
4308
|
-
197,
|
|
4309
|
-
37,
|
|
4310
|
-
118,
|
|
4311
|
-
28
|
|
4312
|
-
]
|
|
4313
|
-
},
|
|
4314
2397
|
{
|
|
4315
2398
|
"name": "RootBundle",
|
|
4316
2399
|
"discriminator": [
|
|
@@ -4336,35 +2419,9 @@
|
|
|
4336
2419
|
182,
|
|
4337
2420
|
177
|
|
4338
2421
|
]
|
|
4339
|
-
},
|
|
4340
|
-
{
|
|
4341
|
-
"name": "TransferLiability",
|
|
4342
|
-
"discriminator": [
|
|
4343
|
-
157,
|
|
4344
|
-
137,
|
|
4345
|
-
86,
|
|
4346
|
-
109,
|
|
4347
|
-
206,
|
|
4348
|
-
241,
|
|
4349
|
-
183,
|
|
4350
|
-
79
|
|
4351
|
-
]
|
|
4352
2422
|
}
|
|
4353
2423
|
],
|
|
4354
2424
|
"events": [
|
|
4355
|
-
{
|
|
4356
|
-
"name": "BridgedToHubPool",
|
|
4357
|
-
"discriminator": [
|
|
4358
|
-
181,
|
|
4359
|
-
111,
|
|
4360
|
-
52,
|
|
4361
|
-
218,
|
|
4362
|
-
105,
|
|
4363
|
-
53,
|
|
4364
|
-
240,
|
|
4365
|
-
205
|
|
4366
|
-
]
|
|
4367
|
-
},
|
|
4368
2425
|
{
|
|
4369
2426
|
"name": "ClaimedRelayerRefund",
|
|
4370
2427
|
"discriminator": [
|
|
@@ -4495,19 +2552,6 @@
|
|
|
4495
2552
|
66
|
|
4496
2553
|
]
|
|
4497
2554
|
},
|
|
4498
|
-
{
|
|
4499
|
-
"name": "TokensBridged",
|
|
4500
|
-
"discriminator": [
|
|
4501
|
-
200,
|
|
4502
|
-
201,
|
|
4503
|
-
199,
|
|
4504
|
-
39,
|
|
4505
|
-
5,
|
|
4506
|
-
238,
|
|
4507
|
-
214,
|
|
4508
|
-
196
|
|
4509
|
-
]
|
|
4510
|
-
},
|
|
4511
2555
|
{
|
|
4512
2556
|
"name": "TransferredOwnership",
|
|
4513
2557
|
"discriminator": [
|
|
@@ -4520,228 +2564,485 @@
|
|
|
4520
2564
|
21,
|
|
4521
2565
|
117
|
|
4522
2566
|
]
|
|
2567
|
+
},
|
|
2568
|
+
{
|
|
2569
|
+
"name": "V5FillFloatWithdrawn",
|
|
2570
|
+
"discriminator": [
|
|
2571
|
+
169,
|
|
2572
|
+
141,
|
|
2573
|
+
173,
|
|
2574
|
+
134,
|
|
2575
|
+
108,
|
|
2576
|
+
32,
|
|
2577
|
+
187,
|
|
2578
|
+
186
|
|
2579
|
+
]
|
|
4523
2580
|
}
|
|
4524
2581
|
],
|
|
4525
2582
|
"errors": [
|
|
4526
2583
|
{
|
|
4527
2584
|
"code": 6000,
|
|
4528
|
-
"name": "
|
|
4529
|
-
"msg": "
|
|
2585
|
+
"name": "InvalidQuoteTimestamp",
|
|
2586
|
+
"msg": "Invalid quote timestamp!"
|
|
4530
2587
|
},
|
|
4531
2588
|
{
|
|
4532
2589
|
"code": 6001,
|
|
4533
|
-
"name": "
|
|
4534
|
-
"msg": "Invalid
|
|
2590
|
+
"name": "InvalidFillDeadline",
|
|
2591
|
+
"msg": "Invalid fill deadline!"
|
|
4535
2592
|
},
|
|
4536
2593
|
{
|
|
4537
2594
|
"code": 6002,
|
|
2595
|
+
"name": "NotExclusiveRelayer",
|
|
2596
|
+
"msg": "Caller is not the exclusive relayer and exclusivity deadline has not passed!"
|
|
2597
|
+
},
|
|
2598
|
+
{
|
|
2599
|
+
"code": 6003,
|
|
2600
|
+
"name": "RetiredNoSlowFillsInExclusivityWindow",
|
|
2601
|
+
"msg": "The Deposit is still within the exclusivity window!"
|
|
2602
|
+
},
|
|
2603
|
+
{
|
|
2604
|
+
"code": 6004,
|
|
2605
|
+
"name": "RelayFilled",
|
|
2606
|
+
"msg": "The relay has already been filled!"
|
|
2607
|
+
},
|
|
2608
|
+
{
|
|
2609
|
+
"code": 6005,
|
|
2610
|
+
"name": "RetiredInvalidSlowFillRequest",
|
|
2611
|
+
"msg": "Slow fill requires status of Unfilled!"
|
|
2612
|
+
},
|
|
2613
|
+
{
|
|
2614
|
+
"code": 6006,
|
|
2615
|
+
"name": "ExpiredFillDeadline",
|
|
2616
|
+
"msg": "The fill deadline has passed!"
|
|
2617
|
+
},
|
|
2618
|
+
{
|
|
2619
|
+
"code": 6007,
|
|
2620
|
+
"name": "InvalidMerkleProof",
|
|
2621
|
+
"msg": "Invalid Merkle proof!"
|
|
2622
|
+
},
|
|
2623
|
+
{
|
|
2624
|
+
"code": 6008,
|
|
2625
|
+
"name": "InvalidChainId",
|
|
2626
|
+
"msg": "Invalid chain id!"
|
|
2627
|
+
},
|
|
2628
|
+
{
|
|
2629
|
+
"code": 6009,
|
|
2630
|
+
"name": "InvalidMerkleLeaf",
|
|
2631
|
+
"msg": "Invalid Merkle leaf!"
|
|
2632
|
+
},
|
|
2633
|
+
{
|
|
2634
|
+
"code": 6010,
|
|
2635
|
+
"name": "ClaimedMerkleLeaf",
|
|
2636
|
+
"msg": "Leaf already claimed!"
|
|
2637
|
+
},
|
|
2638
|
+
{
|
|
2639
|
+
"code": 6011,
|
|
2640
|
+
"name": "DepositsArePaused",
|
|
2641
|
+
"msg": "Deposits are currently paused!"
|
|
2642
|
+
},
|
|
2643
|
+
{
|
|
2644
|
+
"code": 6012,
|
|
2645
|
+
"name": "FillsArePaused",
|
|
2646
|
+
"msg": "Fills are currently paused!"
|
|
2647
|
+
},
|
|
2648
|
+
{
|
|
2649
|
+
"code": 6013,
|
|
2650
|
+
"name": "InsufficientSpokePoolBalanceToExecuteLeaf",
|
|
2651
|
+
"msg": "Insufficient spoke pool balance to execute leaf"
|
|
2652
|
+
},
|
|
2653
|
+
{
|
|
2654
|
+
"code": 6014,
|
|
2655
|
+
"name": "InvalidExclusiveRelayer",
|
|
2656
|
+
"msg": "Invalid exclusive relayer!"
|
|
2657
|
+
},
|
|
2658
|
+
{
|
|
2659
|
+
"code": 6015,
|
|
2660
|
+
"name": "InvalidOutputToken",
|
|
2661
|
+
"msg": "Invalid output token!"
|
|
2662
|
+
},
|
|
2663
|
+
{
|
|
2664
|
+
"code": 7000,
|
|
2665
|
+
"name": "NotOwner",
|
|
2666
|
+
"msg": "Only the owner can call this function!"
|
|
2667
|
+
},
|
|
2668
|
+
{
|
|
2669
|
+
"code": 7001,
|
|
4538
2670
|
"name": "CanOnlyCloseFillStatusPdaIfFillDeadlinePassed",
|
|
4539
2671
|
"msg": "The fill deadline has not passed!"
|
|
4540
2672
|
},
|
|
4541
2673
|
{
|
|
4542
|
-
"code":
|
|
2674
|
+
"code": 7002,
|
|
4543
2675
|
"name": "NotRelayer",
|
|
4544
2676
|
"msg": "The caller is not the relayer!"
|
|
4545
2677
|
},
|
|
4546
2678
|
{
|
|
4547
|
-
"code":
|
|
2679
|
+
"code": 7003,
|
|
4548
2680
|
"name": "CannotSetCurrentTime",
|
|
4549
2681
|
"msg": "Cannot set time if not in test mode!"
|
|
4550
2682
|
},
|
|
4551
2683
|
{
|
|
4552
|
-
"code":
|
|
2684
|
+
"code": 7004,
|
|
4553
2685
|
"name": "InvalidRemoteDomain",
|
|
4554
2686
|
"msg": "Invalid remote domain!"
|
|
4555
2687
|
},
|
|
4556
2688
|
{
|
|
4557
|
-
"code":
|
|
2689
|
+
"code": 7005,
|
|
4558
2690
|
"name": "InvalidRemoteSender",
|
|
4559
2691
|
"msg": "Invalid remote sender!"
|
|
4560
2692
|
},
|
|
4561
2693
|
{
|
|
4562
|
-
"code":
|
|
2694
|
+
"code": 7006,
|
|
4563
2695
|
"name": "InvalidMint",
|
|
4564
2696
|
"msg": "Invalid mint!"
|
|
4565
2697
|
},
|
|
4566
2698
|
{
|
|
4567
|
-
"code":
|
|
4568
|
-
"name": "
|
|
4569
|
-
"msg": "
|
|
2699
|
+
"code": 7007,
|
|
2700
|
+
"name": "NonZeroAmountToReturn",
|
|
2701
|
+
"msg": "Relayer refund leaf must not return tokens to HubPool!"
|
|
4570
2702
|
},
|
|
4571
2703
|
{
|
|
4572
|
-
"code":
|
|
2704
|
+
"code": 7008,
|
|
4573
2705
|
"name": "ParamsWriteOverflow",
|
|
4574
2706
|
"msg": "Overflow writing to parameters account!"
|
|
4575
2707
|
},
|
|
4576
2708
|
{
|
|
4577
|
-
"code":
|
|
2709
|
+
"code": 7009,
|
|
4578
2710
|
"name": "InvalidRefund",
|
|
4579
2711
|
"msg": "Invalid refund address!"
|
|
4580
2712
|
},
|
|
4581
2713
|
{
|
|
4582
|
-
"code":
|
|
2714
|
+
"code": 7010,
|
|
4583
2715
|
"name": "ZeroRefundClaim",
|
|
4584
2716
|
"msg": "Zero relayer refund claim!"
|
|
4585
2717
|
},
|
|
4586
2718
|
{
|
|
4587
|
-
"code":
|
|
2719
|
+
"code": 7011,
|
|
4588
2720
|
"name": "NonZeroRefundClaim",
|
|
4589
2721
|
"msg": "Cannot close non-zero relayer refund claim!"
|
|
4590
2722
|
},
|
|
4591
2723
|
{
|
|
4592
|
-
"code":
|
|
2724
|
+
"code": 7012,
|
|
4593
2725
|
"name": "InvalidClaimInitializer",
|
|
4594
2726
|
"msg": "Invalid claim initializer!"
|
|
4595
2727
|
},
|
|
4596
2728
|
{
|
|
4597
|
-
"code":
|
|
2729
|
+
"code": 7013,
|
|
4598
2730
|
"name": "InvalidRefundTokenAccount",
|
|
4599
2731
|
"msg": "Invalid refund token account!"
|
|
4600
2732
|
},
|
|
4601
2733
|
{
|
|
4602
|
-
"code":
|
|
2734
|
+
"code": 7014,
|
|
4603
2735
|
"name": "InvalidProductionSeed",
|
|
4604
2736
|
"msg": "Seed must be 0 in production!"
|
|
4605
2737
|
},
|
|
4606
2738
|
{
|
|
4607
|
-
"code":
|
|
2739
|
+
"code": 7015,
|
|
4608
2740
|
"name": "InvalidATACreationAccounts",
|
|
4609
2741
|
"msg": "Invalid remaining accounts for ATA creation!"
|
|
4610
2742
|
},
|
|
4611
2743
|
{
|
|
4612
|
-
"code":
|
|
2744
|
+
"code": 7016,
|
|
4613
2745
|
"name": "InvalidDelegatePda",
|
|
4614
2746
|
"msg": "Invalid delegate PDA!"
|
|
4615
2747
|
},
|
|
4616
2748
|
{
|
|
4617
|
-
"code":
|
|
4618
|
-
"name": "
|
|
4619
|
-
"msg": "
|
|
2749
|
+
"code": 8000,
|
|
2750
|
+
"name": "InvalidWireFormat",
|
|
2751
|
+
"msg": "Malformed Across V5 wire data!"
|
|
2752
|
+
},
|
|
2753
|
+
{
|
|
2754
|
+
"code": 8001,
|
|
2755
|
+
"name": "InvalidParamModificationSignature",
|
|
2756
|
+
"msg": "Invalid Across V5 parameter modification signature!"
|
|
2757
|
+
},
|
|
2758
|
+
{
|
|
2759
|
+
"code": 8002,
|
|
2760
|
+
"name": "MissingAccount",
|
|
2761
|
+
"msg": "Missing required Across V5 account!"
|
|
2762
|
+
},
|
|
2763
|
+
{
|
|
2764
|
+
"code": 8003,
|
|
2765
|
+
"name": "InvalidDispatchAuthority",
|
|
2766
|
+
"msg": "Invalid Across V5 Gateway dispatch authority!"
|
|
2767
|
+
},
|
|
2768
|
+
{
|
|
2769
|
+
"code": 8004,
|
|
2770
|
+
"name": "InvalidAccountMutability",
|
|
2771
|
+
"msg": "Across V5 account must be writable!"
|
|
2772
|
+
},
|
|
2773
|
+
{
|
|
2774
|
+
"code": 8005,
|
|
2775
|
+
"name": "ResolvedInputAmountBelowCommitted",
|
|
2776
|
+
"msg": "Resolved Across V5 input amount is below the committed floor!"
|
|
2777
|
+
},
|
|
2778
|
+
{
|
|
2779
|
+
"code": 8006,
|
|
2780
|
+
"name": "ParamModificationNotAnImprovement",
|
|
2781
|
+
"msg": "Across V5 parameter modification is not an improvement!"
|
|
2782
|
+
},
|
|
2783
|
+
{
|
|
2784
|
+
"code": 8007,
|
|
2785
|
+
"name": "InvalidAmountBips",
|
|
2786
|
+
"msg": "Across V5 input amount bips exceed the denominator!"
|
|
2787
|
+
},
|
|
2788
|
+
{
|
|
2789
|
+
"code": 8008,
|
|
2790
|
+
"name": "UnsupportedMode",
|
|
2791
|
+
"msg": "Across V5 adapter mode is not enabled!"
|
|
2792
|
+
},
|
|
2793
|
+
{
|
|
2794
|
+
"code": 8009,
|
|
2795
|
+
"name": "InvalidTokenAccount",
|
|
2796
|
+
"msg": "Invalid Across V5 token account!"
|
|
2797
|
+
},
|
|
2798
|
+
{
|
|
2799
|
+
"code": 8010,
|
|
2800
|
+
"name": "UnsupportedTokenExtension",
|
|
2801
|
+
"msg": "Unsupported Across V5 token extension!"
|
|
2802
|
+
},
|
|
2803
|
+
{
|
|
2804
|
+
"code": 8011,
|
|
2805
|
+
"name": "InvalidFillPayer",
|
|
2806
|
+
"msg": "Invalid Across V5 fill payer!"
|
|
2807
|
+
},
|
|
2808
|
+
{
|
|
2809
|
+
"code": 8012,
|
|
2810
|
+
"name": "InvalidFillStatusAccount",
|
|
2811
|
+
"msg": "Invalid Across V5 fill status account!"
|
|
2812
|
+
},
|
|
2813
|
+
{
|
|
2814
|
+
"code": 8013,
|
|
2815
|
+
"name": "FillCommitmentMismatch",
|
|
2816
|
+
"msg": "Across V5 fill data does not match the committed input!"
|
|
2817
|
+
},
|
|
2818
|
+
{
|
|
2819
|
+
"code": 8014,
|
|
2820
|
+
"name": "FillOutputAmountTooLow",
|
|
2821
|
+
"msg": "Across V5 fill output amount is below the committed floor!"
|
|
2822
|
+
},
|
|
2823
|
+
{
|
|
2824
|
+
"code": 9000,
|
|
2825
|
+
"name": "InvalidSelector",
|
|
2826
|
+
"msg": "Invalid solidity selector"
|
|
2827
|
+
},
|
|
2828
|
+
{
|
|
2829
|
+
"code": 9001,
|
|
2830
|
+
"name": "InvalidArgument",
|
|
2831
|
+
"msg": "Invalid solidity argument"
|
|
2832
|
+
},
|
|
2833
|
+
{
|
|
2834
|
+
"code": 9002,
|
|
2835
|
+
"name": "InvalidBool",
|
|
2836
|
+
"msg": "Invalid solidity bool argument"
|
|
2837
|
+
},
|
|
2838
|
+
{
|
|
2839
|
+
"code": 9003,
|
|
2840
|
+
"name": "InvalidAddress",
|
|
2841
|
+
"msg": "Invalid solidity address argument"
|
|
2842
|
+
},
|
|
2843
|
+
{
|
|
2844
|
+
"code": 9004,
|
|
2845
|
+
"name": "InvalidUint32",
|
|
2846
|
+
"msg": "Invalid solidity uint32 argument"
|
|
2847
|
+
},
|
|
2848
|
+
{
|
|
2849
|
+
"code": 9005,
|
|
2850
|
+
"name": "InvalidUint64",
|
|
2851
|
+
"msg": "Invalid solidity uint64 argument"
|
|
2852
|
+
},
|
|
2853
|
+
{
|
|
2854
|
+
"code": 9006,
|
|
2855
|
+
"name": "UnsupportedSelector",
|
|
2856
|
+
"msg": "Unsupported solidity selector"
|
|
4620
2857
|
}
|
|
4621
2858
|
],
|
|
4622
2859
|
"types": [
|
|
4623
2860
|
{
|
|
4624
|
-
"name": "
|
|
2861
|
+
"name": "AcrossDepositInput",
|
|
2862
|
+
"docs": [
|
|
2863
|
+
"Path-committed source-deposit input, shaped like the EVM `AcrossDepositInput` compatibility surface."
|
|
2864
|
+
],
|
|
4625
2865
|
"type": {
|
|
4626
2866
|
"kind": "struct",
|
|
4627
2867
|
"fields": [
|
|
4628
2868
|
{
|
|
4629
|
-
"name": "
|
|
4630
|
-
"type":
|
|
2869
|
+
"name": "deposit_params",
|
|
2870
|
+
"type": {
|
|
2871
|
+
"defined": {
|
|
2872
|
+
"name": "AcrossDepositParams"
|
|
2873
|
+
}
|
|
2874
|
+
}
|
|
2875
|
+
},
|
|
2876
|
+
{
|
|
2877
|
+
"name": "dst_step_id",
|
|
2878
|
+
"type": {
|
|
2879
|
+
"array": [
|
|
2880
|
+
"u8",
|
|
2881
|
+
32
|
|
2882
|
+
]
|
|
2883
|
+
}
|
|
2884
|
+
},
|
|
2885
|
+
{
|
|
2886
|
+
"name": "input_amount_mode",
|
|
2887
|
+
"type": {
|
|
2888
|
+
"defined": {
|
|
2889
|
+
"name": "V5InputAmountMode"
|
|
2890
|
+
}
|
|
2891
|
+
}
|
|
4631
2892
|
},
|
|
4632
2893
|
{
|
|
4633
|
-
"name": "
|
|
4634
|
-
"type":
|
|
2894
|
+
"name": "modification_rules",
|
|
2895
|
+
"type": {
|
|
2896
|
+
"defined": {
|
|
2897
|
+
"name": "V5DepositModificationRules"
|
|
2898
|
+
}
|
|
2899
|
+
}
|
|
4635
2900
|
}
|
|
4636
2901
|
]
|
|
4637
2902
|
}
|
|
4638
2903
|
},
|
|
4639
2904
|
{
|
|
4640
|
-
"name": "
|
|
2905
|
+
"name": "AcrossDepositJitParams",
|
|
2906
|
+
"docs": [
|
|
2907
|
+
"JIT payload for Deposit mode. The signature is fixed `r[32] || s[32] || v[1]` rather than a length-prefixed vec."
|
|
2908
|
+
],
|
|
4641
2909
|
"type": {
|
|
4642
2910
|
"kind": "struct",
|
|
4643
2911
|
"fields": [
|
|
4644
2912
|
{
|
|
4645
|
-
"name": "
|
|
4646
|
-
"type":
|
|
2913
|
+
"name": "new_output_amount",
|
|
2914
|
+
"type": {
|
|
2915
|
+
"array": [
|
|
2916
|
+
"u8",
|
|
2917
|
+
32
|
|
2918
|
+
]
|
|
2919
|
+
}
|
|
4647
2920
|
},
|
|
4648
2921
|
{
|
|
4649
|
-
"name": "
|
|
2922
|
+
"name": "new_exclusive_relayer",
|
|
4650
2923
|
"type": "pubkey"
|
|
2924
|
+
},
|
|
2925
|
+
{
|
|
2926
|
+
"name": "signature",
|
|
2927
|
+
"type": {
|
|
2928
|
+
"array": [
|
|
2929
|
+
"u8",
|
|
2930
|
+
65
|
|
2931
|
+
]
|
|
2932
|
+
}
|
|
4651
2933
|
}
|
|
4652
2934
|
]
|
|
4653
2935
|
}
|
|
4654
2936
|
},
|
|
4655
2937
|
{
|
|
4656
|
-
"name": "
|
|
2938
|
+
"name": "AcrossDepositParams",
|
|
2939
|
+
"docs": [
|
|
2940
|
+
"Canonical Across deposit fields. `output_amount` remains an EVM uint256 word; SVM-native amounts and non-EVM",
|
|
2941
|
+
"chain IDs are width-bounded to u64."
|
|
2942
|
+
],
|
|
4657
2943
|
"type": {
|
|
4658
2944
|
"kind": "struct",
|
|
4659
2945
|
"fields": [
|
|
4660
2946
|
{
|
|
4661
|
-
"name": "
|
|
2947
|
+
"name": "depositor",
|
|
4662
2948
|
"type": "pubkey"
|
|
4663
2949
|
},
|
|
4664
2950
|
{
|
|
4665
|
-
"name": "
|
|
2951
|
+
"name": "recipient",
|
|
2952
|
+
"type": "pubkey"
|
|
2953
|
+
},
|
|
2954
|
+
{
|
|
2955
|
+
"name": "input_token",
|
|
2956
|
+
"type": "pubkey"
|
|
2957
|
+
},
|
|
2958
|
+
{
|
|
2959
|
+
"name": "output_token",
|
|
2960
|
+
"type": "pubkey"
|
|
2961
|
+
},
|
|
2962
|
+
{
|
|
2963
|
+
"name": "input_amount",
|
|
4666
2964
|
"type": "u64"
|
|
4667
2965
|
},
|
|
4668
2966
|
{
|
|
4669
|
-
"name": "
|
|
2967
|
+
"name": "output_amount",
|
|
2968
|
+
"type": {
|
|
2969
|
+
"array": [
|
|
2970
|
+
"u8",
|
|
2971
|
+
32
|
|
2972
|
+
]
|
|
2973
|
+
}
|
|
2974
|
+
},
|
|
2975
|
+
{
|
|
2976
|
+
"name": "destination_chain_id",
|
|
2977
|
+
"type": "u64"
|
|
2978
|
+
},
|
|
2979
|
+
{
|
|
2980
|
+
"name": "exclusive_relayer",
|
|
4670
2981
|
"type": "pubkey"
|
|
2982
|
+
},
|
|
2983
|
+
{
|
|
2984
|
+
"name": "deposit_nonce",
|
|
2985
|
+
"type": "u64"
|
|
2986
|
+
},
|
|
2987
|
+
{
|
|
2988
|
+
"name": "quote_timestamp",
|
|
2989
|
+
"type": "u32"
|
|
2990
|
+
},
|
|
2991
|
+
{
|
|
2992
|
+
"name": "fill_deadline",
|
|
2993
|
+
"type": "u32"
|
|
2994
|
+
},
|
|
2995
|
+
{
|
|
2996
|
+
"name": "exclusivity_parameter",
|
|
2997
|
+
"type": "u32"
|
|
4671
2998
|
}
|
|
4672
2999
|
]
|
|
4673
3000
|
}
|
|
4674
3001
|
},
|
|
4675
3002
|
{
|
|
4676
|
-
"name": "
|
|
3003
|
+
"name": "ClaimAccount",
|
|
4677
3004
|
"type": {
|
|
4678
3005
|
"kind": "struct",
|
|
4679
3006
|
"fields": [
|
|
4680
3007
|
{
|
|
4681
|
-
"name": "
|
|
4682
|
-
"type": "
|
|
3008
|
+
"name": "amount",
|
|
3009
|
+
"type": "u64"
|
|
3010
|
+
},
|
|
3011
|
+
{
|
|
3012
|
+
"name": "initializer",
|
|
3013
|
+
"type": "pubkey"
|
|
4683
3014
|
}
|
|
4684
3015
|
]
|
|
4685
3016
|
}
|
|
4686
3017
|
},
|
|
4687
3018
|
{
|
|
4688
|
-
"name": "
|
|
3019
|
+
"name": "ClaimedRelayerRefund",
|
|
4689
3020
|
"type": {
|
|
4690
3021
|
"kind": "struct",
|
|
4691
3022
|
"fields": [
|
|
4692
3023
|
{
|
|
4693
|
-
"name": "
|
|
4694
|
-
"type": "
|
|
3024
|
+
"name": "l2_token_address",
|
|
3025
|
+
"type": "pubkey"
|
|
4695
3026
|
},
|
|
4696
3027
|
{
|
|
4697
|
-
"name": "
|
|
4698
|
-
"type":
|
|
4699
|
-
"defined": {
|
|
4700
|
-
"name": "RelayerRefundLeaf"
|
|
4701
|
-
}
|
|
4702
|
-
}
|
|
3028
|
+
"name": "claim_amount",
|
|
3029
|
+
"type": "u64"
|
|
4703
3030
|
},
|
|
4704
3031
|
{
|
|
4705
|
-
"name": "
|
|
4706
|
-
"type":
|
|
4707
|
-
"vec": {
|
|
4708
|
-
"array": [
|
|
4709
|
-
"u8",
|
|
4710
|
-
32
|
|
4711
|
-
]
|
|
4712
|
-
}
|
|
4713
|
-
}
|
|
3032
|
+
"name": "refund_address",
|
|
3033
|
+
"type": "pubkey"
|
|
4714
3034
|
}
|
|
4715
3035
|
]
|
|
4716
3036
|
}
|
|
4717
3037
|
},
|
|
4718
3038
|
{
|
|
4719
|
-
"name": "
|
|
3039
|
+
"name": "EmergencyDeletedRootBundle",
|
|
4720
3040
|
"type": {
|
|
4721
3041
|
"kind": "struct",
|
|
4722
3042
|
"fields": [
|
|
4723
|
-
{
|
|
4724
|
-
"name": "slow_fill_leaf",
|
|
4725
|
-
"type": {
|
|
4726
|
-
"defined": {
|
|
4727
|
-
"name": "SlowFill"
|
|
4728
|
-
}
|
|
4729
|
-
}
|
|
4730
|
-
},
|
|
4731
3043
|
{
|
|
4732
3044
|
"name": "root_bundle_id",
|
|
4733
3045
|
"type": "u32"
|
|
4734
|
-
},
|
|
4735
|
-
{
|
|
4736
|
-
"name": "proof",
|
|
4737
|
-
"type": {
|
|
4738
|
-
"vec": {
|
|
4739
|
-
"array": [
|
|
4740
|
-
"u8",
|
|
4741
|
-
32
|
|
4742
|
-
]
|
|
4743
|
-
}
|
|
4744
|
-
}
|
|
4745
3046
|
}
|
|
4746
3047
|
]
|
|
4747
3048
|
}
|
|
@@ -4795,83 +3096,32 @@
|
|
|
4795
3096
|
}
|
|
4796
3097
|
},
|
|
4797
3098
|
{
|
|
4798
|
-
"name": "
|
|
3099
|
+
"name": "ExecuteRelayerRefundLeafParams",
|
|
4799
3100
|
"type": {
|
|
4800
3101
|
"kind": "struct",
|
|
4801
3102
|
"fields": [
|
|
4802
3103
|
{
|
|
4803
|
-
"name": "
|
|
3104
|
+
"name": "root_bundle_id",
|
|
3105
|
+
"type": "u32"
|
|
3106
|
+
},
|
|
3107
|
+
{
|
|
3108
|
+
"name": "relayer_refund_leaf",
|
|
4804
3109
|
"type": {
|
|
4805
3110
|
"defined": {
|
|
4806
|
-
"name": "
|
|
3111
|
+
"name": "RelayerRefundLeaf"
|
|
4807
3112
|
}
|
|
4808
3113
|
}
|
|
4809
3114
|
},
|
|
4810
3115
|
{
|
|
4811
|
-
"name": "
|
|
4812
|
-
"type": "u64"
|
|
4813
|
-
},
|
|
4814
|
-
{
|
|
4815
|
-
"name": "repayment_address",
|
|
4816
|
-
"type": "pubkey"
|
|
4817
|
-
}
|
|
4818
|
-
]
|
|
4819
|
-
}
|
|
4820
|
-
},
|
|
4821
|
-
{
|
|
4822
|
-
"name": "FillStatus",
|
|
4823
|
-
"type": {
|
|
4824
|
-
"kind": "enum",
|
|
4825
|
-
"variants": [
|
|
4826
|
-
{
|
|
4827
|
-
"name": "Unfilled"
|
|
4828
|
-
},
|
|
4829
|
-
{
|
|
4830
|
-
"name": "RequestedSlowFill"
|
|
4831
|
-
},
|
|
4832
|
-
{
|
|
4833
|
-
"name": "Filled"
|
|
4834
|
-
}
|
|
4835
|
-
]
|
|
4836
|
-
}
|
|
4837
|
-
},
|
|
4838
|
-
{
|
|
4839
|
-
"name": "FillStatusAccount",
|
|
4840
|
-
"type": {
|
|
4841
|
-
"kind": "struct",
|
|
4842
|
-
"fields": [
|
|
4843
|
-
{
|
|
4844
|
-
"name": "status",
|
|
3116
|
+
"name": "proof",
|
|
4845
3117
|
"type": {
|
|
4846
|
-
"
|
|
4847
|
-
"
|
|
3118
|
+
"vec": {
|
|
3119
|
+
"array": [
|
|
3120
|
+
"u8",
|
|
3121
|
+
32
|
|
3122
|
+
]
|
|
4848
3123
|
}
|
|
4849
3124
|
}
|
|
4850
|
-
},
|
|
4851
|
-
{
|
|
4852
|
-
"name": "relayer",
|
|
4853
|
-
"type": "pubkey"
|
|
4854
|
-
},
|
|
4855
|
-
{
|
|
4856
|
-
"name": "fill_deadline",
|
|
4857
|
-
"type": "u32"
|
|
4858
|
-
}
|
|
4859
|
-
]
|
|
4860
|
-
}
|
|
4861
|
-
},
|
|
4862
|
-
{
|
|
4863
|
-
"name": "FillType",
|
|
4864
|
-
"type": {
|
|
4865
|
-
"kind": "enum",
|
|
4866
|
-
"variants": [
|
|
4867
|
-
{
|
|
4868
|
-
"name": "FastFill"
|
|
4869
|
-
},
|
|
4870
|
-
{
|
|
4871
|
-
"name": "ReplacedSlowFill"
|
|
4872
|
-
},
|
|
4873
|
-
{
|
|
4874
|
-
"name": "SlowFill"
|
|
4875
3125
|
}
|
|
4876
3126
|
]
|
|
4877
3127
|
}
|
|
@@ -4928,37 +3178,95 @@
|
|
|
4928
3178
|
"type": "u32"
|
|
4929
3179
|
},
|
|
4930
3180
|
{
|
|
4931
|
-
"name": "exclusive_relayer",
|
|
4932
|
-
"type": "pubkey"
|
|
3181
|
+
"name": "exclusive_relayer",
|
|
3182
|
+
"type": "pubkey"
|
|
3183
|
+
},
|
|
3184
|
+
{
|
|
3185
|
+
"name": "relayer",
|
|
3186
|
+
"type": "pubkey"
|
|
3187
|
+
},
|
|
3188
|
+
{
|
|
3189
|
+
"name": "depositor",
|
|
3190
|
+
"type": "pubkey"
|
|
3191
|
+
},
|
|
3192
|
+
{
|
|
3193
|
+
"name": "recipient",
|
|
3194
|
+
"type": "pubkey"
|
|
3195
|
+
},
|
|
3196
|
+
{
|
|
3197
|
+
"name": "message_hash",
|
|
3198
|
+
"type": {
|
|
3199
|
+
"array": [
|
|
3200
|
+
"u8",
|
|
3201
|
+
32
|
|
3202
|
+
]
|
|
3203
|
+
}
|
|
3204
|
+
},
|
|
3205
|
+
{
|
|
3206
|
+
"name": "relay_execution_info",
|
|
3207
|
+
"type": {
|
|
3208
|
+
"defined": {
|
|
3209
|
+
"name": "RelayExecutionEventInfo"
|
|
3210
|
+
}
|
|
3211
|
+
}
|
|
3212
|
+
}
|
|
3213
|
+
]
|
|
3214
|
+
}
|
|
3215
|
+
},
|
|
3216
|
+
{
|
|
3217
|
+
"name": "FillStatus",
|
|
3218
|
+
"type": {
|
|
3219
|
+
"kind": "enum",
|
|
3220
|
+
"variants": [
|
|
3221
|
+
{
|
|
3222
|
+
"name": "Unfilled"
|
|
3223
|
+
},
|
|
3224
|
+
{
|
|
3225
|
+
"name": "RequestedSlowFill"
|
|
3226
|
+
},
|
|
3227
|
+
{
|
|
3228
|
+
"name": "Filled"
|
|
3229
|
+
}
|
|
3230
|
+
]
|
|
3231
|
+
}
|
|
3232
|
+
},
|
|
3233
|
+
{
|
|
3234
|
+
"name": "FillStatusAccount",
|
|
3235
|
+
"type": {
|
|
3236
|
+
"kind": "struct",
|
|
3237
|
+
"fields": [
|
|
3238
|
+
{
|
|
3239
|
+
"name": "status",
|
|
3240
|
+
"type": {
|
|
3241
|
+
"defined": {
|
|
3242
|
+
"name": "FillStatus"
|
|
3243
|
+
}
|
|
3244
|
+
}
|
|
4933
3245
|
},
|
|
4934
3246
|
{
|
|
4935
|
-
"name": "
|
|
3247
|
+
"name": "rent_recipient",
|
|
4936
3248
|
"type": "pubkey"
|
|
4937
3249
|
},
|
|
4938
3250
|
{
|
|
4939
|
-
"name": "
|
|
4940
|
-
"type": "
|
|
4941
|
-
}
|
|
3251
|
+
"name": "fill_deadline",
|
|
3252
|
+
"type": "u32"
|
|
3253
|
+
}
|
|
3254
|
+
]
|
|
3255
|
+
}
|
|
3256
|
+
},
|
|
3257
|
+
{
|
|
3258
|
+
"name": "FillType",
|
|
3259
|
+
"type": {
|
|
3260
|
+
"kind": "enum",
|
|
3261
|
+
"variants": [
|
|
4942
3262
|
{
|
|
4943
|
-
"name": "
|
|
4944
|
-
"type": "pubkey"
|
|
3263
|
+
"name": "FastFill"
|
|
4945
3264
|
},
|
|
4946
3265
|
{
|
|
4947
|
-
"name": "
|
|
4948
|
-
"type": {
|
|
4949
|
-
"array": [
|
|
4950
|
-
"u8",
|
|
4951
|
-
32
|
|
4952
|
-
]
|
|
4953
|
-
}
|
|
3266
|
+
"name": "ReplacedSlowFill"
|
|
4954
3267
|
},
|
|
4955
3268
|
{
|
|
4956
|
-
"name": "
|
|
4957
|
-
"type": {
|
|
4958
|
-
"defined": {
|
|
4959
|
-
"name": "RelayExecutionEventInfo"
|
|
4960
|
-
}
|
|
4961
|
-
}
|
|
3269
|
+
"name": "SlowFill"
|
|
4962
3270
|
}
|
|
4963
3271
|
]
|
|
4964
3272
|
}
|
|
@@ -5033,6 +3341,42 @@
|
|
|
5033
3341
|
]
|
|
5034
3342
|
}
|
|
5035
3343
|
},
|
|
3344
|
+
{
|
|
3345
|
+
"name": "GatewayContextV1",
|
|
3346
|
+
"docs": [
|
|
3347
|
+
"Version 1 of the Gateway-attested context prepended to every adapter call.",
|
|
3348
|
+
"",
|
|
3349
|
+
"Field order and widths are part of the Gateway dispatch ABI. A context-layout change requires a new Gateway",
|
|
3350
|
+
"dispatch ABI and adapter entrypoint rather than a new [`V5AdapterInput`] variant."
|
|
3351
|
+
],
|
|
3352
|
+
"type": {
|
|
3353
|
+
"kind": "struct",
|
|
3354
|
+
"fields": [
|
|
3355
|
+
{
|
|
3356
|
+
"name": "step_id",
|
|
3357
|
+
"type": {
|
|
3358
|
+
"array": [
|
|
3359
|
+
"u8",
|
|
3360
|
+
32
|
|
3361
|
+
]
|
|
3362
|
+
}
|
|
3363
|
+
},
|
|
3364
|
+
{
|
|
3365
|
+
"name": "path_id",
|
|
3366
|
+
"type": {
|
|
3367
|
+
"array": [
|
|
3368
|
+
"u8",
|
|
3369
|
+
32
|
|
3370
|
+
]
|
|
3371
|
+
}
|
|
3372
|
+
},
|
|
3373
|
+
{
|
|
3374
|
+
"name": "submitter",
|
|
3375
|
+
"type": "pubkey"
|
|
3376
|
+
}
|
|
3377
|
+
]
|
|
3378
|
+
}
|
|
3379
|
+
},
|
|
5036
3380
|
{
|
|
5037
3381
|
"name": "HandleReceiveMessageParams",
|
|
5038
3382
|
"type": {
|
|
@@ -5046,6 +3390,10 @@
|
|
|
5046
3390
|
"name": "sender",
|
|
5047
3391
|
"type": "pubkey"
|
|
5048
3392
|
},
|
|
3393
|
+
{
|
|
3394
|
+
"name": "finality_threshold_executed",
|
|
3395
|
+
"type": "u32"
|
|
3396
|
+
},
|
|
5049
3397
|
{
|
|
5050
3398
|
"name": "message_body",
|
|
5051
3399
|
"type": "bytes"
|
|
@@ -5147,39 +3495,6 @@
|
|
|
5147
3495
|
]
|
|
5148
3496
|
}
|
|
5149
3497
|
},
|
|
5150
|
-
{
|
|
5151
|
-
"name": "RelayExecutionEventInfo",
|
|
5152
|
-
"type": {
|
|
5153
|
-
"kind": "struct",
|
|
5154
|
-
"fields": [
|
|
5155
|
-
{
|
|
5156
|
-
"name": "updated_recipient",
|
|
5157
|
-
"type": "pubkey"
|
|
5158
|
-
},
|
|
5159
|
-
{
|
|
5160
|
-
"name": "updated_message_hash",
|
|
5161
|
-
"type": {
|
|
5162
|
-
"array": [
|
|
5163
|
-
"u8",
|
|
5164
|
-
32
|
|
5165
|
-
]
|
|
5166
|
-
}
|
|
5167
|
-
},
|
|
5168
|
-
{
|
|
5169
|
-
"name": "updated_output_amount",
|
|
5170
|
-
"type": "u64"
|
|
5171
|
-
},
|
|
5172
|
-
{
|
|
5173
|
-
"name": "fill_type",
|
|
5174
|
-
"type": {
|
|
5175
|
-
"defined": {
|
|
5176
|
-
"name": "FillType"
|
|
5177
|
-
}
|
|
5178
|
-
}
|
|
5179
|
-
}
|
|
5180
|
-
]
|
|
5181
|
-
}
|
|
5182
|
-
},
|
|
5183
3498
|
{
|
|
5184
3499
|
"name": "RelayedRootBundle",
|
|
5185
3500
|
"type": {
|
|
@@ -5247,15 +3562,32 @@
|
|
|
5247
3562
|
}
|
|
5248
3563
|
},
|
|
5249
3564
|
{
|
|
5250
|
-
"name": "
|
|
3565
|
+
"name": "RelayExecutionEventInfo",
|
|
5251
3566
|
"type": {
|
|
5252
3567
|
"kind": "struct",
|
|
5253
3568
|
"fields": [
|
|
5254
3569
|
{
|
|
5255
|
-
"name": "
|
|
3570
|
+
"name": "updated_recipient",
|
|
3571
|
+
"type": "pubkey"
|
|
3572
|
+
},
|
|
3573
|
+
{
|
|
3574
|
+
"name": "updated_message_hash",
|
|
3575
|
+
"type": {
|
|
3576
|
+
"array": [
|
|
3577
|
+
"u8",
|
|
3578
|
+
32
|
|
3579
|
+
]
|
|
3580
|
+
}
|
|
3581
|
+
},
|
|
3582
|
+
{
|
|
3583
|
+
"name": "updated_output_amount",
|
|
3584
|
+
"type": "u64"
|
|
3585
|
+
},
|
|
3586
|
+
{
|
|
3587
|
+
"name": "fill_type",
|
|
5256
3588
|
"type": {
|
|
5257
3589
|
"defined": {
|
|
5258
|
-
"name": "
|
|
3590
|
+
"name": "FillType"
|
|
5259
3591
|
}
|
|
5260
3592
|
}
|
|
5261
3593
|
}
|
|
@@ -5375,30 +3707,6 @@
|
|
|
5375
3707
|
]
|
|
5376
3708
|
}
|
|
5377
3709
|
},
|
|
5378
|
-
{
|
|
5379
|
-
"name": "SlowFill",
|
|
5380
|
-
"type": {
|
|
5381
|
-
"kind": "struct",
|
|
5382
|
-
"fields": [
|
|
5383
|
-
{
|
|
5384
|
-
"name": "relay_data",
|
|
5385
|
-
"type": {
|
|
5386
|
-
"defined": {
|
|
5387
|
-
"name": "RelayData"
|
|
5388
|
-
}
|
|
5389
|
-
}
|
|
5390
|
-
},
|
|
5391
|
-
{
|
|
5392
|
-
"name": "chain_id",
|
|
5393
|
-
"type": "u64"
|
|
5394
|
-
},
|
|
5395
|
-
{
|
|
5396
|
-
"name": "updated_output_amount",
|
|
5397
|
-
"type": "u64"
|
|
5398
|
-
}
|
|
5399
|
-
]
|
|
5400
|
-
}
|
|
5401
|
-
},
|
|
5402
3710
|
{
|
|
5403
3711
|
"name": "State",
|
|
5404
3712
|
"type": {
|
|
@@ -5456,56 +3764,167 @@
|
|
|
5456
3764
|
}
|
|
5457
3765
|
},
|
|
5458
3766
|
{
|
|
5459
|
-
"name": "
|
|
3767
|
+
"name": "TransferredOwnership",
|
|
5460
3768
|
"type": {
|
|
5461
3769
|
"kind": "struct",
|
|
5462
3770
|
"fields": [
|
|
5463
3771
|
{
|
|
5464
|
-
"name": "
|
|
5465
|
-
"type": "
|
|
3772
|
+
"name": "new_owner",
|
|
3773
|
+
"type": "pubkey"
|
|
3774
|
+
}
|
|
3775
|
+
]
|
|
3776
|
+
}
|
|
3777
|
+
},
|
|
3778
|
+
{
|
|
3779
|
+
"name": "V5AdapterInput",
|
|
3780
|
+
"docs": [
|
|
3781
|
+
"Committed input for an Across V5 adapter call.",
|
|
3782
|
+
"",
|
|
3783
|
+
"`V5` is the Across protocol generation; each variant's `V1` is its SVM wire-schema revision. Borsh discriminants",
|
|
3784
|
+
"are frozen as `DepositV1 = 0` and `FillV1 = 1`. Append a new versioned variant when one payload changes; never",
|
|
3785
|
+
"reorder existing variants. A safe old variant may remain accepted while in-flight inputs drain, while an unsafe",
|
|
3786
|
+
"variant can be rejected immediately."
|
|
3787
|
+
],
|
|
3788
|
+
"type": {
|
|
3789
|
+
"kind": "enum",
|
|
3790
|
+
"variants": [
|
|
3791
|
+
{
|
|
3792
|
+
"name": "DepositV1",
|
|
3793
|
+
"fields": [
|
|
3794
|
+
{
|
|
3795
|
+
"defined": {
|
|
3796
|
+
"name": "AcrossDepositInput"
|
|
3797
|
+
}
|
|
3798
|
+
}
|
|
3799
|
+
]
|
|
5466
3800
|
},
|
|
5467
3801
|
{
|
|
5468
|
-
"name": "
|
|
5469
|
-
"
|
|
3802
|
+
"name": "FillV1",
|
|
3803
|
+
"fields": [
|
|
3804
|
+
{
|
|
3805
|
+
"defined": {
|
|
3806
|
+
"name": "V5FillInput"
|
|
3807
|
+
}
|
|
3808
|
+
}
|
|
3809
|
+
]
|
|
3810
|
+
}
|
|
3811
|
+
]
|
|
3812
|
+
}
|
|
3813
|
+
},
|
|
3814
|
+
{
|
|
3815
|
+
"name": "V5DepositModificationRules",
|
|
3816
|
+
"type": {
|
|
3817
|
+
"kind": "struct",
|
|
3818
|
+
"fields": [
|
|
3819
|
+
{
|
|
3820
|
+
"name": "authority",
|
|
3821
|
+
"type": {
|
|
3822
|
+
"array": [
|
|
3823
|
+
"u8",
|
|
3824
|
+
20
|
|
3825
|
+
]
|
|
3826
|
+
}
|
|
5470
3827
|
},
|
|
5471
3828
|
{
|
|
5472
|
-
"name": "
|
|
5473
|
-
"type": "
|
|
3829
|
+
"name": "allow_output_amount",
|
|
3830
|
+
"type": "bool"
|
|
5474
3831
|
},
|
|
5475
3832
|
{
|
|
5476
|
-
"name": "
|
|
3833
|
+
"name": "allow_exclusive_relayer",
|
|
3834
|
+
"type": "bool"
|
|
3835
|
+
}
|
|
3836
|
+
]
|
|
3837
|
+
}
|
|
3838
|
+
},
|
|
3839
|
+
{
|
|
3840
|
+
"name": "V5FillFloatWithdrawn",
|
|
3841
|
+
"type": {
|
|
3842
|
+
"kind": "struct",
|
|
3843
|
+
"fields": [
|
|
3844
|
+
{
|
|
3845
|
+
"name": "submitter",
|
|
5477
3846
|
"type": "pubkey"
|
|
5478
3847
|
},
|
|
5479
3848
|
{
|
|
5480
|
-
"name": "
|
|
5481
|
-
"type": "
|
|
3849
|
+
"name": "amount",
|
|
3850
|
+
"type": "u64"
|
|
5482
3851
|
}
|
|
5483
3852
|
]
|
|
5484
3853
|
}
|
|
5485
3854
|
},
|
|
5486
3855
|
{
|
|
5487
|
-
"name": "
|
|
3856
|
+
"name": "V5FillInput",
|
|
3857
|
+
"docs": [
|
|
3858
|
+
"Destination acceptance bounds. Unlike the EVM executor-mode input, the SVM adapter omits a callback message",
|
|
3859
|
+
"because V5 adapter fills do not execute recipient callbacks."
|
|
3860
|
+
],
|
|
5488
3861
|
"type": {
|
|
5489
3862
|
"kind": "struct",
|
|
5490
3863
|
"fields": [
|
|
5491
3864
|
{
|
|
5492
|
-
"name": "
|
|
3865
|
+
"name": "recipient",
|
|
3866
|
+
"type": "pubkey"
|
|
3867
|
+
},
|
|
3868
|
+
{
|
|
3869
|
+
"name": "output_token",
|
|
3870
|
+
"type": "pubkey"
|
|
3871
|
+
},
|
|
3872
|
+
{
|
|
3873
|
+
"name": "min_output_amount",
|
|
5493
3874
|
"type": "u64"
|
|
5494
3875
|
}
|
|
5495
3876
|
]
|
|
5496
3877
|
}
|
|
5497
3878
|
},
|
|
5498
3879
|
{
|
|
5499
|
-
"name": "
|
|
3880
|
+
"name": "V5FillJit",
|
|
5500
3881
|
"type": {
|
|
5501
3882
|
"kind": "struct",
|
|
5502
3883
|
"fields": [
|
|
5503
3884
|
{
|
|
5504
|
-
"name": "
|
|
3885
|
+
"name": "relay_data",
|
|
3886
|
+
"type": {
|
|
3887
|
+
"defined": {
|
|
3888
|
+
"name": "RelayData"
|
|
3889
|
+
}
|
|
3890
|
+
}
|
|
3891
|
+
},
|
|
3892
|
+
{
|
|
3893
|
+
"name": "repayment_chain_id",
|
|
3894
|
+
"type": "u64"
|
|
3895
|
+
},
|
|
3896
|
+
{
|
|
3897
|
+
"name": "repayment_address",
|
|
5505
3898
|
"type": "pubkey"
|
|
5506
3899
|
}
|
|
5507
3900
|
]
|
|
5508
3901
|
}
|
|
3902
|
+
},
|
|
3903
|
+
{
|
|
3904
|
+
"name": "V5InputAmountMode",
|
|
3905
|
+
"docs": [
|
|
3906
|
+
"Literal uses the committed `input_amount`. Balance-relative mode resolves `bips` of the canonical Gateway input",
|
|
3907
|
+
"vault's live token amount, rounded down, and later enforces the committed amount as a floor. Gateway vaults are",
|
|
3908
|
+
"shared per mint, not isolated per execution, so the continuing tape must leave no residual balance; Gateway does",
|
|
3909
|
+
"not currently enforce that net-zero settlement invariant."
|
|
3910
|
+
],
|
|
3911
|
+
"type": {
|
|
3912
|
+
"kind": "enum",
|
|
3913
|
+
"variants": [
|
|
3914
|
+
{
|
|
3915
|
+
"name": "Literal"
|
|
3916
|
+
},
|
|
3917
|
+
{
|
|
3918
|
+
"name": "InputVaultBalance",
|
|
3919
|
+
"fields": [
|
|
3920
|
+
{
|
|
3921
|
+
"name": "bips",
|
|
3922
|
+
"type": "u16"
|
|
3923
|
+
}
|
|
3924
|
+
]
|
|
3925
|
+
}
|
|
3926
|
+
]
|
|
3927
|
+
}
|
|
5509
3928
|
}
|
|
5510
3929
|
]
|
|
5511
|
-
}
|
|
3930
|
+
}
|