@across-protocol/contracts 6.0.0-beta.5 → 6.0.0-beta.6
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 +59 -9
- package/dist/broadcast/deployed-addresses.json +63 -63
- package/dist/evm/artifacts/AcrossConfigStore.sol/AcrossConfigStore.json +1 -1
- package/dist/evm/artifacts/AcrossEventEmitter.sol/AcrossEventEmitter.json +1 -1
- package/dist/evm/artifacts/AcrossMerkleDistributor.sol/AcrossMerkleDistributor.json +1 -1
- package/dist/evm/artifacts/AcrossMessageHandlerMock.sol/AcrossMessageHandlerMock.json +1 -1
- package/dist/evm/artifacts/AdapterStore.sol/AdapterStore.json +1 -1
- package/dist/evm/artifacts/AdapterStore.sol/MessengerTypes.json +1 -1
- package/dist/evm/artifacts/Address.sol/Address.json +1 -1
- package/dist/evm/artifacts/AddressConverters.sol/Bytes32ToAddress.json +1 -1
- package/dist/evm/artifacts/AdminRelayTokensAdapter.sol/AdminRelayTokensAdapter.json +1 -1
- package/dist/evm/artifacts/AdminWithdrawManager.sol/AdminWithdrawManager.json +1 -1
- package/dist/evm/artifacts/ArbitrumMocks.sol/ArbitrumMockErc20GatewayRouter.json +1 -1
- package/dist/evm/artifacts/ArbitrumMocks.sol/Inbox.json +1 -1
- package/dist/evm/artifacts/ArbitrumMocks.sol/L2GatewayRouter.json +1 -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_Forwarder.sol/Arbitrum_Forwarder.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/BeaconProxy.sol/BeaconProxy.json +1 -1
- package/dist/evm/artifacts/BondToken.sol/BondToken.json +1 -1
- package/dist/evm/artifacts/BytesLib.sol/BytesLib.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/Constants.sol/OptimisticOracleConstraints.json +1 -1
- package/dist/evm/artifacts/Constants.sol/OracleInterfaces.json +1 -1
- package/dist/evm/artifacts/CoreExecution.sol/CoreExecution.json +1 -1
- package/dist/evm/artifacts/CoreSimulatorLib.sol/HypeSystemContract.json +1 -1
- package/dist/evm/artifacts/CoreState.sol/CoreState.json +1 -1
- package/dist/evm/artifacts/CoreView.sol/CoreView.json +1 -1
- package/dist/evm/artifacts/CoreWriterLib.sol/CoreWriterLib.json +1 -1
- package/dist/evm/artifacts/CoreWriterSim.sol/CoreWriterSim.json +1 -1
- package/dist/evm/artifacts/CounterfactualBeacon.sol/CounterfactualBeacon.json +1 -1
- package/dist/evm/artifacts/CounterfactualBeaconBootstrap.sol/CounterfactualBeaconBootstrap.json +1 -1
- package/dist/evm/artifacts/CounterfactualDeposit.sol/CounterfactualDeposit.json +1 -1
- package/dist/evm/artifacts/CounterfactualDepositCCTP.sol/CounterfactualDepositCCTP.json +1 -1
- package/dist/evm/artifacts/CounterfactualDepositFactory.sol/CounterfactualDepositFactory.json +1 -1
- package/dist/evm/artifacts/CounterfactualDepositFactoryTron.sol/CounterfactualDepositFactoryTron.json +1 -1
- package/dist/evm/artifacts/CounterfactualDepositOFT.sol/CounterfactualDepositOFT.json +1 -1
- package/dist/evm/artifacts/CounterfactualDepositSpokePool.sol/CounterfactualDepositSpokePool.json +1 -1
- package/dist/evm/artifacts/CounterfactualDepositSpokePoolTr.sol/CounterfactualDepositSpokePoolTr.json +1 -1
- package/dist/evm/artifacts/CounterfactualDepositVanillaCCTP.sol/CounterfactualDepositVanillaCCTP.json +1 -1
- package/dist/evm/artifacts/Create2.sol/Create2.json +1 -1
- package/dist/evm/artifacts/CrossDomainEnabled.sol/CrossDomainEnabled.json +1 -1
- package/dist/evm/artifacts/DeployedAddresses.sol/DeployedAddresses.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/DonationBox.sol/DonationBox.json +1 -1
- package/dist/evm/artifacts/DstOFTHandler.sol/DstOFTHandler.json +1 -1
- package/dist/evm/artifacts/ECDSA.sol/ECDSA.json +1 -1
- package/dist/evm/artifacts/ERC1155.sol/ERC1155.json +1 -1
- package/dist/evm/artifacts/ERC1967Proxy.sol/ERC1967Proxy.json +1 -1
- package/dist/evm/artifacts/ERC1967Utils.sol/ERC1967Utils.json +1 -1
- package/dist/evm/artifacts/ERC20.sol/ERC20.json +1 -1
- package/dist/evm/artifacts/Errors.sol/Errors.json +1 -1
- package/dist/evm/artifacts/Ethereum_Adapter.sol/Ethereum_Adapter.json +1 -1
- package/dist/evm/artifacts/Ethereum_RescueAdapter.sol/Ethereum_RescueAdapter.json +1 -1
- package/dist/evm/artifacts/Ethereum_SpokePool.sol/Ethereum_SpokePool.json +1 -1
- package/dist/evm/artifacts/ExpandedERC20.sol/ExpandedERC20.json +1 -1
- package/dist/evm/artifacts/ExpandedERC20WithBlacklist.sol/ExpandedERC20WithBlacklist.json +1 -1
- package/dist/evm/artifacts/HLConstants.sol/HLConstants.json +1 -1
- package/dist/evm/artifacts/HLConversions.sol/HLConversions.json +1 -1
- package/dist/evm/artifacts/HubPool.sol/HubPool.json +1 -1
- package/dist/evm/artifacts/HubPoolStore.sol/HubPoolStore.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/HyperCore.sol/HyperCore.json +1 -1
- package/dist/evm/artifacts/HyperCoreFlowExecutor.sol/HyperCoreFlowExecutor.json +1 -1
- package/dist/evm/artifacts/HyperCoreLib.sol/HyperCoreLib.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/LibVariable.sol/LibVariable.json +1 -1
- package/dist/evm/artifacts/LineaMocks.sol/MockL2MessageService.json +1 -1
- package/dist/evm/artifacts/LineaMocks.sol/MockL2TokenBridge.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/Lockable.sol/Lockable.json +1 -1
- package/dist/evm/artifacts/LpTokenFactory.sol/LpTokenFactory.json +1 -1
- package/dist/evm/artifacts/Merkle.sol/Merkle.json +1 -1
- package/dist/evm/artifacts/MerkleDistributor.sol/MerkleDistributor.json +1 -1
- package/dist/evm/artifacts/MerkleLibTest.sol/MerkleLibTest.json +1 -1
- package/dist/evm/artifacts/MerkleProof.sol/MerkleProof.json +1 -1
- package/dist/evm/artifacts/MinimalLZOptions.sol/MinimalLZOptions.json +1 -1
- package/dist/evm/artifacts/MintableERC1155.sol/MintableERC1155.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 -1
- 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/MockCaller.sol/MockCaller.json +1 -1
- package/dist/evm/artifacts/MockERC1271.sol/MockERC1271.json +1 -1
- package/dist/evm/artifacts/MockERC20.sol/MintableERC20.json +1 -1
- package/dist/evm/artifacts/MockERC20.sol/MockERC20.json +1 -1
- package/dist/evm/artifacts/MockEndpoint.sol/MockEndpoint.json +1 -1
- package/dist/evm/artifacts/MockGateway.sol/MockGateway.json +1 -1
- package/dist/evm/artifacts/MockHubPool.sol/MockHubPool.json +1 -1
- package/dist/evm/artifacts/MockOFTMessenger.sol/MockOFTMessenger.json +1 -1
- package/dist/evm/artifacts/MockPermit2.sol/MockPermit2.json +1 -1
- package/dist/evm/artifacts/MockPermit2.sol/Permit2EIP712.json +1 -1
- package/dist/evm/artifacts/MockPermit2.sol/SignatureVerification.json +1 -1
- package/dist/evm/artifacts/MockSpokePool.sol/MockSpokePool.json +1 -1
- package/dist/evm/artifacts/MockSpokePoolV2.sol/MockSpokePoolV2.json +1 -1
- package/dist/evm/artifacts/MockTronUSDT.sol/MockTronUSDT.json +1 -1
- package/dist/evm/artifacts/MockZkStackBridgeHub.sol/MockBridgeHub.json +1 -1
- package/dist/evm/artifacts/Mock_Adapter.sol/Mock_Adapter.json +1 -1
- package/dist/evm/artifacts/Mock_Adapter.sol/Mock_Bridge.json +1 -1
- package/dist/evm/artifacts/Mode_Adapter.sol/Mode_Adapter.json +1 -1
- package/dist/evm/artifacts/MultiCaller.sol/MultiCaller.json +1 -1
- package/dist/evm/artifacts/MultiCallerUpgradeable.sol/MultiCallerUpgradeable.json +1 -1
- package/dist/evm/artifacts/Multicall3.sol/Multicall3.json +1 -1
- package/dist/evm/artifacts/MulticallHandler.sol/MulticallHandler.json +1 -1
- package/dist/evm/artifacts/OFTTransportAdapter.sol/OFTTransportAdapter.json +1 -1
- package/dist/evm/artifacts/OFTTransportAdapterWithStore.sol/OFTTransportAdapterWithStore.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_Forwarder.sol/Ovm_Forwarder.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/PeripherySigningLib.sol/PeripherySigningLib.json +1 -1
- package/dist/evm/artifacts/PermissionedMulticallHandler.sol/PermissionedMulticallHandler.json +1 -1
- package/dist/evm/artifacts/PolygonERC20Test.sol/PolygonERC20Test.json +1 -1
- package/dist/evm/artifacts/PolygonMocks.sol/DepositManagerMock.json +1 -1
- package/dist/evm/artifacts/PolygonMocks.sol/FxStateSenderMock.json +1 -1
- package/dist/evm/artifacts/PolygonMocks.sol/PolygonERC20Mock.json +1 -1
- package/dist/evm/artifacts/PolygonMocks.sol/PolygonERC20PredicateMock.json +1 -1
- package/dist/evm/artifacts/PolygonMocks.sol/PolygonRegistryMock.json +1 -1
- package/dist/evm/artifacts/PolygonMocks.sol/RootChainManagerMock.json +1 -1
- package/dist/evm/artifacts/PolygonTokenBridger.sol/PolygonTokenBridger.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/PrecompileLib.sol/PrecompileLib.json +1 -1
- package/dist/evm/artifacts/PrecompileSim.sol/PrecompileSim.json +1 -1
- package/dist/evm/artifacts/ProxyAdmin.sol/ProxyAdmin.json +1 -1
- package/dist/evm/artifacts/Router_Adapter.sol/Router_Adapter.json +1 -1
- package/dist/evm/artifacts/SP1AutoVerifier.sol/SP1AutoVerifier.json +1 -1
- package/dist/evm/artifacts/SP1Helios.sol/SP1Helios.json +1 -1
- package/dist/evm/artifacts/SP1MockVerifier.sol/SP1MockVerifier.json +1 -1
- package/dist/evm/artifacts/SafeCast.sol/SafeCast.json +1 -1
- package/dist/evm/artifacts/SafeERC20.sol/SafeERC20.json +1 -1
- package/dist/evm/artifacts/ShortStrings.sol/ShortStrings.json +1 -1
- package/dist/evm/artifacts/Solana_Adapter.sol/Solana_Adapter.json +1 -1
- package/dist/evm/artifacts/SpokePoolPeriphery.sol/SpokePoolPeriphery.json +1 -1
- package/dist/evm/artifacts/SpokePoolPeriphery.sol/SwapProxy.json +1 -1
- package/dist/evm/artifacts/SpokePoolVerifier.sol/SpokePoolVerifier.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/SponsoredOFTSrcPeriphery.sol/SponsoredOFTSrcPeriphery.json +1 -1
- package/dist/evm/artifacts/StdConfig.sol/StdConfig.json +1 -1
- package/dist/evm/artifacts/Strings.sol/Strings.json +1 -1
- package/dist/evm/artifacts/SwapHandler.sol/SwapHandler.json +1 -1
- package/dist/evm/artifacts/Timer.sol/Timer.json +1 -1
- package/dist/evm/artifacts/TransferProxy.sol/TransferProxy.json +1 -1
- package/dist/evm/artifacts/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.json +1 -1
- package/dist/evm/artifacts/TronMulticallHandler.sol/TronMulticallHandler.json +1 -1
- package/dist/evm/artifacts/TronTransferLib.sol/TronTransferLib.json +1 -1
- package/dist/evm/artifacts/Tron_SpokePool.sol/Tron_SpokePool.json +1 -1
- package/dist/evm/artifacts/Tron_SpokePoolPeriphery.sol/Tron_SpokePoolPeriphery.json +1 -1
- package/dist/evm/artifacts/Tron_SpokePoolPeriphery.sol/Tron_SwapProxy.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/UpgradeableBeacon.sol/UpgradeableBeacon.json +1 -1
- package/dist/evm/artifacts/WETH9.sol/WETH9.json +1 -1
- package/dist/evm/artifacts/WithdrawImplementation.sol/WithdrawImplementation.json +1 -1
- package/dist/evm/artifacts/WithdrawImplementationTron.sol/WithdrawImplementationTron.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/ZkSyncMocks.sol/MockL2Eth.json +1 -1
- package/dist/evm/artifacts/ZkSyncMocks.sol/MockZkBridge.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/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/src/DeploymentUtils.d.ts +1 -1
- package/dist/utils/MerkleTree.js +3 -4
- package/package.json +102 -50
- package/dist/src/consts.d.ts +0 -51
- package/dist/src/consts.js +0 -342
- package/dist/src/svm/assets/idl/index.d.ts +0 -5
- package/dist/src/svm/assets/idl/index.js +0 -9
- package/dist/src/svm/assets/idl/message_transmitter_v2.json +0 -1863
- package/dist/src/svm/assets/idl/multicall_handler.json +0 -31
- package/dist/src/svm/assets/idl/sponsored_cctp_src_periphery.json +0 -1982
- package/dist/src/svm/assets/idl/svm_spoke.json +0 -3947
- package/dist/src/svm/assets/idl/token_messenger_minter_v2.json +0 -4441
- package/dist/src/svm/assets/index.d.ts +0 -6
- package/dist/src/svm/assets/index.js +0 -18
- package/dist/src/svm/assets/message_transmitter_v2.d.ts +0 -1869
- package/dist/src/svm/assets/message_transmitter_v2.js +0 -2
- package/dist/src/svm/assets/multicall_handler.d.ts +0 -37
- package/dist/src/svm/assets/multicall_handler.js +0 -2
- package/dist/src/svm/assets/sponsored_cctp_src_periphery.d.ts +0 -1988
- package/dist/src/svm/assets/sponsored_cctp_src_periphery.js +0 -2
- package/dist/src/svm/assets/svm_spoke.d.ts +0 -3953
- package/dist/src/svm/assets/svm_spoke.js +0 -2
- package/dist/src/svm/assets/token_messenger_minter_v2.d.ts +0 -4447
- package/dist/src/svm/assets/token_messenger_minter_v2.js +0 -2
- package/dist/src/svm/clients/MessageTransmitterV2/accounts/index.d.ts +0 -10
- package/dist/src/svm/clients/MessageTransmitterV2/accounts/index.js +0 -26
- package/dist/src/svm/clients/MessageTransmitterV2/accounts/messageSent.d.ts +0 -30
- package/dist/src/svm/clients/MessageTransmitterV2/accounts/messageSent.js +0 -66
- package/dist/src/svm/clients/MessageTransmitterV2/accounts/messageTransmitter.d.ts +0 -44
- package/dist/src/svm/clients/MessageTransmitterV2/accounts/messageTransmitter.js +0 -80
- package/dist/src/svm/clients/MessageTransmitterV2/accounts/usedNonce.d.ts +0 -27
- package/dist/src/svm/clients/MessageTransmitterV2/accounts/usedNonce.js +0 -66
- package/dist/src/svm/clients/MessageTransmitterV2/errors/index.d.ts +0 -8
- package/dist/src/svm/clients/MessageTransmitterV2/errors/index.js +0 -24
- package/dist/src/svm/clients/MessageTransmitterV2/errors/messageTransmitterV2.d.ts +0 -89
- package/dist/src/svm/clients/MessageTransmitterV2/errors/messageTransmitterV2.js +0 -133
- package/dist/src/svm/clients/MessageTransmitterV2/index.d.ts +0 -12
- package/dist/src/svm/clients/MessageTransmitterV2/index.js +0 -28
- package/dist/src/svm/clients/MessageTransmitterV2/instructions/acceptOwnership.d.ts +0 -54
- package/dist/src/svm/clients/MessageTransmitterV2/instructions/acceptOwnership.js +0 -125
- package/dist/src/svm/clients/MessageTransmitterV2/instructions/disableAttester.d.ts +0 -67
- package/dist/src/svm/clients/MessageTransmitterV2/instructions/disableAttester.js +0 -158
- package/dist/src/svm/clients/MessageTransmitterV2/instructions/enableAttester.d.ts +0 -67
- package/dist/src/svm/clients/MessageTransmitterV2/instructions/enableAttester.js +0 -158
- package/dist/src/svm/clients/MessageTransmitterV2/instructions/index.d.ts +0 -22
- package/dist/src/svm/clients/MessageTransmitterV2/instructions/index.js +0 -38
- package/dist/src/svm/clients/MessageTransmitterV2/instructions/initialize.d.ts +0 -87
- package/dist/src/svm/clients/MessageTransmitterV2/instructions/initialize.js +0 -205
- package/dist/src/svm/clients/MessageTransmitterV2/instructions/isNonceUsed.d.ts +0 -38
- package/dist/src/svm/clients/MessageTransmitterV2/instructions/isNonceUsed.js +0 -71
- package/dist/src/svm/clients/MessageTransmitterV2/instructions/pause.d.ts +0 -54
- package/dist/src/svm/clients/MessageTransmitterV2/instructions/pause.js +0 -125
- package/dist/src/svm/clients/MessageTransmitterV2/instructions/receiveMessage.d.ts +0 -86
- package/dist/src/svm/clients/MessageTransmitterV2/instructions/receiveMessage.js +0 -182
- package/dist/src/svm/clients/MessageTransmitterV2/instructions/reclaimEventAccount.d.ts +0 -51
- package/dist/src/svm/clients/MessageTransmitterV2/instructions/reclaimEventAccount.js +0 -102
- package/dist/src/svm/clients/MessageTransmitterV2/instructions/sendMessage.d.ts +0 -67
- package/dist/src/svm/clients/MessageTransmitterV2/instructions/sendMessage.js +0 -116
- package/dist/src/svm/clients/MessageTransmitterV2/instructions/setMaxMessageBodySize.d.ts +0 -59
- package/dist/src/svm/clients/MessageTransmitterV2/instructions/setMaxMessageBodySize.js +0 -136
- package/dist/src/svm/clients/MessageTransmitterV2/instructions/setSignatureThreshold.d.ts +0 -59
- package/dist/src/svm/clients/MessageTransmitterV2/instructions/setSignatureThreshold.js +0 -142
- package/dist/src/svm/clients/MessageTransmitterV2/instructions/transferOwnership.d.ts +0 -59
- package/dist/src/svm/clients/MessageTransmitterV2/instructions/transferOwnership.js +0 -133
- package/dist/src/svm/clients/MessageTransmitterV2/instructions/unpause.d.ts +0 -54
- package/dist/src/svm/clients/MessageTransmitterV2/instructions/unpause.js +0 -125
- package/dist/src/svm/clients/MessageTransmitterV2/instructions/updateAttesterManager.d.ts +0 -59
- package/dist/src/svm/clients/MessageTransmitterV2/instructions/updateAttesterManager.js +0 -136
- package/dist/src/svm/clients/MessageTransmitterV2/instructions/updatePauser.d.ts +0 -59
- package/dist/src/svm/clients/MessageTransmitterV2/instructions/updatePauser.js +0 -133
- package/dist/src/svm/clients/MessageTransmitterV2/programs/index.d.ts +0 -8
- package/dist/src/svm/clients/MessageTransmitterV2/programs/index.js +0 -24
- package/dist/src/svm/clients/MessageTransmitterV2/programs/messageTransmitterV2.d.ts +0 -69
- package/dist/src/svm/clients/MessageTransmitterV2/programs/messageTransmitterV2.js +0 -100
- package/dist/src/svm/clients/MessageTransmitterV2/shared/index.d.ts +0 -49
- package/dist/src/svm/clients/MessageTransmitterV2/shared/index.js +0 -94
- package/dist/src/svm/clients/MessageTransmitterV2/types/attesterDisabled.d.ts +0 -15
- package/dist/src/svm/clients/MessageTransmitterV2/types/attesterDisabled.js +0 -22
- package/dist/src/svm/clients/MessageTransmitterV2/types/attesterEnabled.d.ts +0 -15
- package/dist/src/svm/clients/MessageTransmitterV2/types/attesterEnabled.js +0 -22
- package/dist/src/svm/clients/MessageTransmitterV2/types/attesterManagerUpdated.d.ts +0 -16
- package/dist/src/svm/clients/MessageTransmitterV2/types/attesterManagerUpdated.js +0 -28
- package/dist/src/svm/clients/MessageTransmitterV2/types/index.d.ts +0 -18
- package/dist/src/svm/clients/MessageTransmitterV2/types/index.js +0 -34
- package/dist/src/svm/clients/MessageTransmitterV2/types/maxMessageBodySizeUpdated.d.ts +0 -17
- package/dist/src/svm/clients/MessageTransmitterV2/types/maxMessageBodySizeUpdated.js +0 -22
- package/dist/src/svm/clients/MessageTransmitterV2/types/messageReceived.d.ts +0 -20
- package/dist/src/svm/clients/MessageTransmitterV2/types/messageReceived.js +0 -36
- package/dist/src/svm/clients/MessageTransmitterV2/types/ownershipTransferStarted.d.ts +0 -16
- package/dist/src/svm/clients/MessageTransmitterV2/types/ownershipTransferStarted.js +0 -28
- package/dist/src/svm/clients/MessageTransmitterV2/types/ownershipTransferred.d.ts +0 -16
- package/dist/src/svm/clients/MessageTransmitterV2/types/ownershipTransferred.js +0 -28
- package/dist/src/svm/clients/MessageTransmitterV2/types/pause.d.ts +0 -13
- package/dist/src/svm/clients/MessageTransmitterV2/types/pause.js +0 -22
- package/dist/src/svm/clients/MessageTransmitterV2/types/pauserChanged.d.ts +0 -15
- package/dist/src/svm/clients/MessageTransmitterV2/types/pauserChanged.js +0 -22
- package/dist/src/svm/clients/MessageTransmitterV2/types/signatureThresholdUpdated.d.ts +0 -16
- package/dist/src/svm/clients/MessageTransmitterV2/types/signatureThresholdUpdated.js +0 -28
- package/dist/src/svm/clients/MessageTransmitterV2/types/unpause.d.ts +0 -13
- package/dist/src/svm/clients/MessageTransmitterV2/types/unpause.js +0 -22
- package/dist/src/svm/clients/MulticallHandler/index.d.ts +0 -9
- package/dist/src/svm/clients/MulticallHandler/index.js +0 -25
- package/dist/src/svm/clients/MulticallHandler/instructions/handleV3AcrossMessage.d.ts +0 -33
- package/dist/src/svm/clients/MulticallHandler/instructions/handleV3AcrossMessage.js +0 -59
- package/dist/src/svm/clients/MulticallHandler/instructions/index.d.ts +0 -8
- package/dist/src/svm/clients/MulticallHandler/instructions/index.js +0 -24
- package/dist/src/svm/clients/MulticallHandler/programs/index.d.ts +0 -8
- package/dist/src/svm/clients/MulticallHandler/programs/index.js +0 -24
- package/dist/src/svm/clients/MulticallHandler/programs/multicallHandler.d.ts +0 -19
- package/dist/src/svm/clients/MulticallHandler/programs/multicallHandler.js +0 -24
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/accounts/index.d.ts +0 -11
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/accounts/index.js +0 -27
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/accounts/minimumDeposit.d.ts +0 -29
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/accounts/minimumDeposit.js +0 -68
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/accounts/rentClaim.d.ts +0 -27
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/accounts/rentClaim.js +0 -66
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/accounts/state.d.ts +0 -31
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/accounts/state.js +0 -70
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/accounts/usedNonce.d.ts +0 -27
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/accounts/usedNonce.js +0 -66
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/errors/index.d.ts +0 -8
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/errors/index.js +0 -24
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/errors/sponsoredCctpSrcPeriphery.d.ts +0 -53
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/errors/sponsoredCctpSrcPeriphery.js +0 -79
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/index.d.ts +0 -12
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/index.js +0 -28
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/instructions/depositForBurn.d.ts +0 -140
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/instructions/depositForBurn.js +0 -365
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/instructions/getUsedNonceCloseInfo.d.ts +0 -52
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/instructions/getUsedNonceCloseInfo.js +0 -118
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/instructions/index.d.ts +0 -17
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/instructions/index.js +0 -33
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/instructions/initialize.d.ts +0 -67
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/instructions/initialize.js +0 -148
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/instructions/reclaimEventAccount.d.ts +0 -83
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/instructions/reclaimEventAccount.js +0 -183
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/instructions/reclaimUsedNonceAccount.d.ts +0 -64
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/instructions/reclaimUsedNonceAccount.js +0 -152
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/instructions/repayRentFundDebt.d.ts +0 -62
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/instructions/repayRentFundDebt.js +0 -155
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/instructions/setCurrentTime.d.ts +0 -51
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/instructions/setCurrentTime.js +0 -108
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/instructions/setMinimumDepositAmount.d.ts +0 -67
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/instructions/setMinimumDepositAmount.js +0 -158
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/instructions/setSigner.d.ts +0 -59
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/instructions/setSigner.js +0 -133
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/instructions/withdrawRentFund.d.ts +0 -67
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/instructions/withdrawRentFund.js +0 -151
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/programs/index.d.ts +0 -8
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/programs/index.js +0 -24
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/programs/sponsoredCctpSrcPeriphery.d.ts +0 -55
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/programs/sponsoredCctpSrcPeriphery.js +0 -84
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/shared/index.d.ts +0 -49
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/shared/index.js +0 -94
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/accruedRentFundLiability.d.ts +0 -21
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/accruedRentFundLiability.js +0 -30
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/createdEventAccount.d.ts +0 -15
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/createdEventAccount.js +0 -22
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/index.d.ts +0 -20
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/index.js +0 -36
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/messageSent.d.ts +0 -21
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/messageSent.js +0 -30
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/minimumDepositAmountSet.d.ts +0 -19
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/minimumDepositAmountSet.js +0 -28
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/reclaimedEventAccount.d.ts +0 -15
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/reclaimedEventAccount.js +0 -22
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/reclaimedUsedNonceAccount.d.ts +0 -16
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/reclaimedUsedNonceAccount.js +0 -28
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/repaidRentFundDebt.d.ts +0 -21
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/repaidRentFundDebt.js +0 -30
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/signerSet.d.ts +0 -16
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/signerSet.js +0 -28
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/sponsoredCCTPQuote.d.ts +0 -51
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/sponsoredCCTPQuote.js +0 -60
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/sponsoredDepositForBurn.d.ts +0 -35
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/sponsoredDepositForBurn.js +0 -44
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/usedNonceAccountParams.d.ts +0 -15
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/usedNonceAccountParams.js +0 -22
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/usedNonceCloseInfo.d.ts +0 -19
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/usedNonceCloseInfo.js +0 -28
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/withdrawnRentFund.d.ts +0 -19
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/withdrawnRentFund.js +0 -28
- package/dist/src/svm/clients/SvmSpoke/accounts/claimAccount.d.ts +0 -29
- package/dist/src/svm/clients/SvmSpoke/accounts/claimAccount.js +0 -68
- package/dist/src/svm/clients/SvmSpoke/accounts/executeRelayerRefundLeafParams.d.ts +0 -31
- package/dist/src/svm/clients/SvmSpoke/accounts/executeRelayerRefundLeafParams.js +0 -70
- package/dist/src/svm/clients/SvmSpoke/accounts/fillStatusAccount.d.ts +0 -32
- package/dist/src/svm/clients/SvmSpoke/accounts/fillStatusAccount.js +0 -71
- package/dist/src/svm/clients/SvmSpoke/accounts/index.d.ts +0 -12
- package/dist/src/svm/clients/SvmSpoke/accounts/index.js +0 -28
- package/dist/src/svm/clients/SvmSpoke/accounts/rootBundle.d.ts +0 -30
- package/dist/src/svm/clients/SvmSpoke/accounts/rootBundle.js +0 -69
- package/dist/src/svm/clients/SvmSpoke/accounts/state.d.ts +0 -49
- package/dist/src/svm/clients/SvmSpoke/accounts/state.js +0 -88
- package/dist/src/svm/clients/SvmSpoke/errors/index.d.ts +0 -8
- package/dist/src/svm/clients/SvmSpoke/errors/index.js +0 -24
- package/dist/src/svm/clients/SvmSpoke/errors/svmSpoke.d.ts +0 -131
- package/dist/src/svm/clients/SvmSpoke/errors/svmSpoke.js +0 -197
- package/dist/src/svm/clients/SvmSpoke/index.d.ts +0 -12
- package/dist/src/svm/clients/SvmSpoke/index.js +0 -28
- package/dist/src/svm/clients/SvmSpoke/instructions/adapterExecuteAcrossV5.d.ts +0 -75
- package/dist/src/svm/clients/SvmSpoke/instructions/adapterExecuteAcrossV5.js +0 -144
- package/dist/src/svm/clients/SvmSpoke/instructions/claimRelayerRefund.d.ts +0 -82
- package/dist/src/svm/clients/SvmSpoke/instructions/claimRelayerRefund.js +0 -185
- package/dist/src/svm/clients/SvmSpoke/instructions/closeClaimAccount.d.ts +0 -54
- package/dist/src/svm/clients/SvmSpoke/instructions/closeClaimAccount.js +0 -120
- package/dist/src/svm/clients/SvmSpoke/instructions/closeFillPda.d.ts +0 -50
- package/dist/src/svm/clients/SvmSpoke/instructions/closeFillPda.js +0 -79
- package/dist/src/svm/clients/SvmSpoke/instructions/closeInstructionParams.d.ts +0 -46
- package/dist/src/svm/clients/SvmSpoke/instructions/closeInstructionParams.js +0 -119
- package/dist/src/svm/clients/SvmSpoke/instructions/createTokenAccounts.d.ts +0 -48
- package/dist/src/svm/clients/SvmSpoke/instructions/createTokenAccounts.js +0 -104
- package/dist/src/svm/clients/SvmSpoke/instructions/emergencyDeleteRootBundle.d.ts +0 -67
- package/dist/src/svm/clients/SvmSpoke/instructions/emergencyDeleteRootBundle.js +0 -140
- package/dist/src/svm/clients/SvmSpoke/instructions/executeRelayerRefundLeaf.d.ts +0 -78
- package/dist/src/svm/clients/SvmSpoke/instructions/executeRelayerRefundLeaf.js +0 -197
- package/dist/src/svm/clients/SvmSpoke/instructions/executeRelayerRefundLeafDeferred.d.ts +0 -78
- package/dist/src/svm/clients/SvmSpoke/instructions/executeRelayerRefundLeafDeferred.js +0 -195
- package/dist/src/svm/clients/SvmSpoke/instructions/handleReceiveFinalizedMessage.d.ts +0 -75
- package/dist/src/svm/clients/SvmSpoke/instructions/handleReceiveFinalizedMessage.js +0 -163
- package/dist/src/svm/clients/SvmSpoke/instructions/index.d.ts +0 -28
- package/dist/src/svm/clients/SvmSpoke/instructions/index.js +0 -44
- package/dist/src/svm/clients/SvmSpoke/instructions/initialize.d.ts +0 -87
- package/dist/src/svm/clients/SvmSpoke/instructions/initialize.js +0 -159
- package/dist/src/svm/clients/SvmSpoke/instructions/initializeClaimAccount.d.ts +0 -58
- package/dist/src/svm/clients/SvmSpoke/instructions/initializeClaimAccount.js +0 -137
- package/dist/src/svm/clients/SvmSpoke/instructions/initializeInstructionParams.d.ts +0 -55
- package/dist/src/svm/clients/SvmSpoke/instructions/initializeInstructionParams.js +0 -141
- package/dist/src/svm/clients/SvmSpoke/instructions/pauseDeposits.d.ts +0 -59
- package/dist/src/svm/clients/SvmSpoke/instructions/pauseDeposits.js +0 -127
- package/dist/src/svm/clients/SvmSpoke/instructions/pauseFills.d.ts +0 -59
- package/dist/src/svm/clients/SvmSpoke/instructions/pauseFills.js +0 -127
- package/dist/src/svm/clients/SvmSpoke/instructions/relayRootBundle.d.ts +0 -75
- package/dist/src/svm/clients/SvmSpoke/instructions/relayRootBundle.js +0 -153
- package/dist/src/svm/clients/SvmSpoke/instructions/setCrossDomainAdmin.d.ts +0 -59
- package/dist/src/svm/clients/SvmSpoke/instructions/setCrossDomainAdmin.js +0 -130
- package/dist/src/svm/clients/SvmSpoke/instructions/setCurrentTime.d.ts +0 -43
- package/dist/src/svm/clients/SvmSpoke/instructions/setCurrentTime.js +0 -79
- package/dist/src/svm/clients/SvmSpoke/instructions/transferOwnership.d.ts +0 -59
- package/dist/src/svm/clients/SvmSpoke/instructions/transferOwnership.js +0 -127
- package/dist/src/svm/clients/SvmSpoke/instructions/withdrawV5FillPayer.d.ts +0 -58
- package/dist/src/svm/clients/SvmSpoke/instructions/withdrawV5FillPayer.js +0 -134
- package/dist/src/svm/clients/SvmSpoke/instructions/writeInstructionParamsFragment.d.ts +0 -59
- package/dist/src/svm/clients/SvmSpoke/instructions/writeInstructionParamsFragment.js +0 -143
- package/dist/src/svm/clients/SvmSpoke/programs/index.d.ts +0 -8
- package/dist/src/svm/clients/SvmSpoke/programs/index.js +0 -24
- package/dist/src/svm/clients/SvmSpoke/programs/svmSpoke.d.ts +0 -89
- package/dist/src/svm/clients/SvmSpoke/programs/svmSpoke.js +0 -132
- package/dist/src/svm/clients/SvmSpoke/shared/index.d.ts +0 -49
- package/dist/src/svm/clients/SvmSpoke/shared/index.js +0 -94
- package/dist/src/svm/clients/SvmSpoke/types/acrossDepositInput.d.ts +0 -25
- package/dist/src/svm/clients/SvmSpoke/types/acrossDepositInput.js +0 -33
- package/dist/src/svm/clients/SvmSpoke/types/acrossDepositJitParams.d.ts +0 -18
- package/dist/src/svm/clients/SvmSpoke/types/acrossDepositJitParams.js +0 -30
- package/dist/src/svm/clients/SvmSpoke/types/acrossDepositParams.d.ts +0 -43
- package/dist/src/svm/clients/SvmSpoke/types/acrossDepositParams.js +0 -48
- package/dist/src/svm/clients/SvmSpoke/types/claimedRelayerRefund.d.ts +0 -21
- package/dist/src/svm/clients/SvmSpoke/types/claimedRelayerRefund.js +0 -30
- package/dist/src/svm/clients/SvmSpoke/types/emergencyDeletedRootBundle.d.ts +0 -15
- package/dist/src/svm/clients/SvmSpoke/types/emergencyDeletedRootBundle.js +0 -22
- package/dist/src/svm/clients/SvmSpoke/types/executedRelayerRefundRoot.d.ts +0 -33
- package/dist/src/svm/clients/SvmSpoke/types/executedRelayerRefundRoot.js +0 -42
- package/dist/src/svm/clients/SvmSpoke/types/fillStatus.d.ts +0 -17
- package/dist/src/svm/clients/SvmSpoke/types/fillStatus.js +0 -29
- package/dist/src/svm/clients/SvmSpoke/types/fillType.d.ts +0 -17
- package/dist/src/svm/clients/SvmSpoke/types/fillType.js +0 -29
- package/dist/src/svm/clients/SvmSpoke/types/filledRelay.d.ts +0 -46
- package/dist/src/svm/clients/SvmSpoke/types/filledRelay.js +0 -55
- package/dist/src/svm/clients/SvmSpoke/types/fundsDeposited.d.ts +0 -41
- package/dist/src/svm/clients/SvmSpoke/types/fundsDeposited.js +0 -50
- package/dist/src/svm/clients/SvmSpoke/types/index.d.ts +0 -32
- package/dist/src/svm/clients/SvmSpoke/types/index.js +0 -48
- package/dist/src/svm/clients/SvmSpoke/types/pausedDeposits.d.ts +0 -15
- package/dist/src/svm/clients/SvmSpoke/types/pausedDeposits.js +0 -22
- package/dist/src/svm/clients/SvmSpoke/types/pausedFills.d.ts +0 -15
- package/dist/src/svm/clients/SvmSpoke/types/pausedFills.js +0 -22
- package/dist/src/svm/clients/SvmSpoke/types/relayData.d.ts +0 -39
- package/dist/src/svm/clients/SvmSpoke/types/relayData.js +0 -48
- package/dist/src/svm/clients/SvmSpoke/types/relayExecutionEventInfo.d.ts +0 -24
- package/dist/src/svm/clients/SvmSpoke/types/relayExecutionEventInfo.js +0 -33
- package/dist/src/svm/clients/SvmSpoke/types/relayedRootBundle.d.ts +0 -17
- package/dist/src/svm/clients/SvmSpoke/types/relayedRootBundle.js +0 -30
- package/dist/src/svm/clients/SvmSpoke/types/relayerRefundLeaf.d.ts +0 -27
- package/dist/src/svm/clients/SvmSpoke/types/relayerRefundLeaf.js +0 -36
- package/dist/src/svm/clients/SvmSpoke/types/requestedSlowFill.d.ts +0 -39
- package/dist/src/svm/clients/SvmSpoke/types/requestedSlowFill.js +0 -48
- package/dist/src/svm/clients/SvmSpoke/types/setXDomainAdmin.d.ts +0 -15
- package/dist/src/svm/clients/SvmSpoke/types/setXDomainAdmin.js +0 -22
- package/dist/src/svm/clients/SvmSpoke/types/transferredOwnership.d.ts +0 -15
- package/dist/src/svm/clients/SvmSpoke/types/transferredOwnership.js +0 -22
- package/dist/src/svm/clients/SvmSpoke/types/v5AdapterInput.d.ts +0 -39
- package/dist/src/svm/clients/SvmSpoke/types/v5AdapterInput.js +0 -59
- package/dist/src/svm/clients/SvmSpoke/types/v5DepositModificationRules.d.ts +0 -17
- package/dist/src/svm/clients/SvmSpoke/types/v5DepositModificationRules.js +0 -30
- package/dist/src/svm/clients/SvmSpoke/types/v5FillFloatWithdrawn.d.ts +0 -19
- package/dist/src/svm/clients/SvmSpoke/types/v5FillFloatWithdrawn.js +0 -28
- package/dist/src/svm/clients/SvmSpoke/types/v5FillInput.d.ts +0 -25
- package/dist/src/svm/clients/SvmSpoke/types/v5FillInput.js +0 -30
- package/dist/src/svm/clients/SvmSpoke/types/v5FillJit.d.ts +0 -23
- package/dist/src/svm/clients/SvmSpoke/types/v5FillJit.js +0 -31
- package/dist/src/svm/clients/SvmSpoke/types/v5InputAmountMode.d.ts +0 -29
- package/dist/src/svm/clients/SvmSpoke/types/v5InputAmountMode.js +0 -38
- package/dist/src/svm/clients/TokenMessengerMinterV2/accounts/denylistedAccount.d.ts +0 -27
- package/dist/src/svm/clients/TokenMessengerMinterV2/accounts/denylistedAccount.js +0 -66
- package/dist/src/svm/clients/TokenMessengerMinterV2/accounts/index.d.ts +0 -14
- package/dist/src/svm/clients/TokenMessengerMinterV2/accounts/index.js +0 -30
- package/dist/src/svm/clients/TokenMessengerMinterV2/accounts/localToken.d.ts +0 -43
- package/dist/src/svm/clients/TokenMessengerMinterV2/accounts/localToken.js +0 -82
- package/dist/src/svm/clients/TokenMessengerMinterV2/accounts/messageTransmitter.d.ts +0 -44
- package/dist/src/svm/clients/TokenMessengerMinterV2/accounts/messageTransmitter.js +0 -80
- package/dist/src/svm/clients/TokenMessengerMinterV2/accounts/remoteTokenMessenger.d.ts +0 -29
- package/dist/src/svm/clients/TokenMessengerMinterV2/accounts/remoteTokenMessenger.js +0 -71
- package/dist/src/svm/clients/TokenMessengerMinterV2/accounts/tokenMessenger.d.ts +0 -41
- package/dist/src/svm/clients/TokenMessengerMinterV2/accounts/tokenMessenger.js +0 -80
- package/dist/src/svm/clients/TokenMessengerMinterV2/accounts/tokenMinter.d.ts +0 -33
- package/dist/src/svm/clients/TokenMessengerMinterV2/accounts/tokenMinter.js +0 -72
- package/dist/src/svm/clients/TokenMessengerMinterV2/accounts/tokenPair.d.ts +0 -33
- package/dist/src/svm/clients/TokenMessengerMinterV2/accounts/tokenPair.js +0 -72
- package/dist/src/svm/clients/TokenMessengerMinterV2/errors/index.d.ts +0 -8
- package/dist/src/svm/clients/TokenMessengerMinterV2/errors/index.js +0 -24
- package/dist/src/svm/clients/TokenMessengerMinterV2/errors/tokenMessengerMinterV2.d.ts +0 -37
- package/dist/src/svm/clients/TokenMessengerMinterV2/errors/tokenMessengerMinterV2.js +0 -55
- package/dist/src/svm/clients/TokenMessengerMinterV2/index.d.ts +0 -12
- package/dist/src/svm/clients/TokenMessengerMinterV2/index.js +0 -28
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/acceptOwnership.d.ts +0 -54
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/acceptOwnership.js +0 -119
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/addLocalToken.d.ts +0 -78
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/addLocalToken.js +0 -196
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/addRemoteTokenMessenger.d.ts +0 -75
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/addRemoteTokenMessenger.js +0 -162
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/burnTokenCustody.d.ts +0 -79
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/burnTokenCustody.js +0 -179
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/denylistAccount.d.ts +0 -71
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/denylistAccount.js +0 -151
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/depositForBurn.d.ts +0 -138
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/depositForBurn.js +0 -320
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/depositForBurnWithHook.d.ts +0 -142
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/depositForBurnWithHook.js +0 -325
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/handleReceiveFinalizedMessage.d.ts +0 -92
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/handleReceiveFinalizedMessage.js +0 -221
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/handleReceiveUnfinalizedMessage.d.ts +0 -92
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/handleReceiveUnfinalizedMessage.js +0 -221
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/index.d.ts +0 -32
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/index.js +0 -48
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/initialize.d.ts +0 -103
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/initialize.js +0 -234
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/linkTokenPair.d.ts +0 -79
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/linkTokenPair.js +0 -161
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/pause.d.ts +0 -54
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/pause.js +0 -119
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/removeLocalToken.d.ts +0 -74
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/removeLocalToken.js +0 -171
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/removeRemoteTokenMessenger.d.ts +0 -62
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/removeRemoteTokenMessenger.js +0 -138
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/setFeeRecipient.d.ts +0 -59
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/setFeeRecipient.js +0 -127
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/setMaxBurnAmountPerMessage.d.ts +0 -63
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/setMaxBurnAmountPerMessage.js +0 -141
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/setMinFee.d.ts +0 -59
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/setMinFee.js +0 -133
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/setMinFeeController.d.ts +0 -59
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/setMinFeeController.js +0 -130
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/setTokenController.d.ts +0 -63
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/setTokenController.js +0 -132
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/transferOwnership.d.ts +0 -59
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/transferOwnership.js +0 -127
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/undenylistAccount.d.ts +0 -71
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/undenylistAccount.js +0 -151
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/unlinkTokenPair.d.ts +0 -62
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/unlinkTokenPair.js +0 -135
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/unpause.d.ts +0 -54
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/unpause.js +0 -119
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/updateDenylister.d.ts +0 -59
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/updateDenylister.js +0 -127
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/updatePauser.d.ts +0 -63
- package/dist/src/svm/clients/TokenMessengerMinterV2/instructions/updatePauser.js +0 -132
- package/dist/src/svm/clients/TokenMessengerMinterV2/programs/index.d.ts +0 -8
- package/dist/src/svm/clients/TokenMessengerMinterV2/programs/index.js +0 -24
- package/dist/src/svm/clients/TokenMessengerMinterV2/programs/tokenMessengerMinterV2.d.ts +0 -103
- package/dist/src/svm/clients/TokenMessengerMinterV2/programs/tokenMessengerMinterV2.js +0 -156
- package/dist/src/svm/clients/TokenMessengerMinterV2/shared/index.d.ts +0 -49
- package/dist/src/svm/clients/TokenMessengerMinterV2/shared/index.js +0 -94
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/denylisted.d.ts +0 -15
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/denylisted.js +0 -22
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/denylisterChanged.d.ts +0 -16
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/denylisterChanged.js +0 -28
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/depositForBurn.d.ts +0 -35
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/depositForBurn.js +0 -44
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/feeRecipientSet.d.ts +0 -15
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/feeRecipientSet.js +0 -22
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/handleReceiveMessageParams.d.ts +0 -19
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/handleReceiveMessageParams.js +0 -34
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/index.d.ts +0 -30
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/index.js +0 -46
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/localTokenAdded.d.ts +0 -16
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/localTokenAdded.js +0 -28
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/localTokenRemoved.d.ts +0 -16
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/localTokenRemoved.js +0 -28
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/minFeeControllerSet.d.ts +0 -15
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/minFeeControllerSet.js +0 -22
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/minFeeSet.d.ts +0 -15
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/minFeeSet.js +0 -22
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/mintAndWithdraw.d.ts +0 -23
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/mintAndWithdraw.js +0 -32
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/ownershipTransferStarted.d.ts +0 -16
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/ownershipTransferStarted.js +0 -28
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/ownershipTransferred.d.ts +0 -16
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/ownershipTransferred.js +0 -28
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/pause.d.ts +0 -13
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/pause.js +0 -22
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/pauserChanged.d.ts +0 -15
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/pauserChanged.js +0 -22
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/remoteTokenMessengerAdded.d.ts +0 -16
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/remoteTokenMessengerAdded.js +0 -28
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/remoteTokenMessengerRemoved.d.ts +0 -16
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/remoteTokenMessengerRemoved.js +0 -28
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/setBurnLimitPerMessage.d.ts +0 -19
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/setBurnLimitPerMessage.js +0 -28
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/setTokenController.d.ts +0 -15
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/setTokenController.js +0 -22
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/tokenCustodyBurned.d.ts +0 -19
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/tokenCustodyBurned.js +0 -28
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/tokenPairLinked.d.ts +0 -17
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/tokenPairLinked.js +0 -30
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/tokenPairUnlinked.d.ts +0 -17
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/tokenPairUnlinked.js +0 -30
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/unDenylisted.d.ts +0 -15
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/unDenylisted.js +0 -22
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/unpause.d.ts +0 -13
- package/dist/src/svm/clients/TokenMessengerMinterV2/types/unpause.js +0 -22
- package/dist/src/svm/clients/index.d.ts +0 -6
- package/dist/src/svm/clients/index.js +0 -36
- package/dist/src/svm/index.d.ts +0 -4
- package/dist/src/svm/index.js +0 -26
- package/dist/src/svm/web3-v1/cctpV2Helpers.d.ts +0 -402
- package/dist/src/svm/web3-v1/cctpV2Helpers.js +0 -242
- package/dist/src/svm/web3-v1/coders.d.ts +0 -37
- package/dist/src/svm/web3-v1/coders.js +0 -251
- package/dist/src/svm/web3-v1/constants.d.ts +0 -9
- package/dist/src/svm/web3-v1/constants.js +0 -16
- package/dist/src/svm/web3-v1/conversionUtils.d.ts +0 -39
- package/dist/src/svm/web3-v1/conversionUtils.js +0 -103
- package/dist/src/svm/web3-v1/helpers.d.ts +0 -10
- package/dist/src/svm/web3-v1/helpers.js +0 -25
- package/dist/src/svm/web3-v1/index.d.ts +0 -10
- package/dist/src/svm/web3-v1/index.js +0 -26
- package/dist/src/svm/web3-v1/instructionParamsUtils.d.ts +0 -16
- package/dist/src/svm/web3-v1/instructionParamsUtils.js +0 -43
- package/dist/src/svm/web3-v1/programConnectors.d.ts +0 -14
- package/dist/src/svm/web3-v1/programConnectors.js +0 -51
- package/dist/src/svm/web3-v1/relayHashUtils.d.ts +0 -26
- package/dist/src/svm/web3-v1/relayHashUtils.js +0 -148
- package/dist/src/svm/web3-v1/solanaProgramUtils.d.ts +0 -50
- package/dist/src/svm/web3-v1/solanaProgramUtils.js +0 -223
- package/dist/src/svm/web3-v1/transactionUtils.d.ts +0 -12
- package/dist/src/svm/web3-v1/transactionUtils.js +0 -82
- package/dist/src/svm/web3-v2/index.d.ts +0 -3
- package/dist/src/svm/web3-v2/index.js +0 -19
- package/dist/src/svm/web3-v2/solanaProgramUtils.d.ts +0 -32
- package/dist/src/svm/web3-v2/solanaProgramUtils.js +0 -106
- package/dist/src/svm/web3-v2/transactionUtils.d.ts +0 -24
- package/dist/src/svm/web3-v2/transactionUtils.js +0 -76
- package/dist/src/svm/web3-v2/types.d.ts +0 -8
- package/dist/src/svm/web3-v2/types.js +0 -2
- package/dist/src/types/svm.d.ts +0 -121
- package/dist/src/types/svm.js +0 -2
- package/dist/utils/utils.d.ts +0 -28
- package/dist/utils/utils.js +0 -136
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was AUTOGENERATED using the codama library.
|
|
3
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
-
* to add features, then rerun codama to update it.
|
|
5
|
-
*
|
|
6
|
-
* @see https://github.com/codama-idl/codama
|
|
7
|
-
*/
|
|
8
|
-
import { type AccountMeta, type AccountSignerMeta, type Address, type Codec, type Decoder, type Encoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit';
|
|
9
|
-
import { SVM_SPOKE_PROGRAM_ADDRESS } from '../programs';
|
|
10
|
-
export declare const INITIALIZE_DISCRIMINATOR: Uint8Array;
|
|
11
|
-
export declare function getInitializeDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
12
|
-
export type InitializeInstruction<TProgram extends string = typeof SVM_SPOKE_PROGRAM_ADDRESS, TAccountSigner extends string | AccountMeta<string> = string, TAccountState extends string | AccountMeta<string> = string, TAccountThisProgram extends string | AccountMeta<string> = 'DLv3NggMiSaef97YCkew5xKUHDh13tVGZ7tydt3ZeAru', TAccountProgramData extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
13
|
-
TAccountSigner extends string ? WritableSignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner,
|
|
14
|
-
TAccountState extends string ? WritableAccount<TAccountState> : TAccountState,
|
|
15
|
-
TAccountThisProgram extends string ? ReadonlyAccount<TAccountThisProgram> : TAccountThisProgram,
|
|
16
|
-
TAccountProgramData extends string ? ReadonlyAccount<TAccountProgramData> : TAccountProgramData,
|
|
17
|
-
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
18
|
-
...TRemainingAccounts
|
|
19
|
-
]>;
|
|
20
|
-
export type InitializeInstructionData = {
|
|
21
|
-
discriminator: ReadonlyUint8Array;
|
|
22
|
-
seed: bigint;
|
|
23
|
-
initialNumberOfDeposits: number;
|
|
24
|
-
chainId: bigint;
|
|
25
|
-
remoteDomain: number;
|
|
26
|
-
crossDomainAdmin: Address;
|
|
27
|
-
depositQuoteTimeBuffer: number;
|
|
28
|
-
fillDeadlineBuffer: number;
|
|
29
|
-
};
|
|
30
|
-
export type InitializeInstructionDataArgs = {
|
|
31
|
-
seed: number | bigint;
|
|
32
|
-
initialNumberOfDeposits: number;
|
|
33
|
-
chainId: number | bigint;
|
|
34
|
-
remoteDomain: number;
|
|
35
|
-
crossDomainAdmin: Address;
|
|
36
|
-
depositQuoteTimeBuffer: number;
|
|
37
|
-
fillDeadlineBuffer: number;
|
|
38
|
-
};
|
|
39
|
-
export declare function getInitializeInstructionDataEncoder(): Encoder<InitializeInstructionDataArgs>;
|
|
40
|
-
export declare function getInitializeInstructionDataDecoder(): Decoder<InitializeInstructionData>;
|
|
41
|
-
export declare function getInitializeInstructionDataCodec(): Codec<InitializeInstructionDataArgs, InitializeInstructionData>;
|
|
42
|
-
export type InitializeAsyncInput<TAccountSigner extends string = string, TAccountState extends string = string, TAccountThisProgram extends string = string, TAccountProgramData extends string = string, TAccountSystemProgram extends string = string> = {
|
|
43
|
-
signer: TransactionSigner<TAccountSigner>;
|
|
44
|
-
state?: Address<TAccountState>;
|
|
45
|
-
thisProgram?: Address<TAccountThisProgram>;
|
|
46
|
-
programData: Address<TAccountProgramData>;
|
|
47
|
-
systemProgram?: Address<TAccountSystemProgram>;
|
|
48
|
-
seed: InitializeInstructionDataArgs['seed'];
|
|
49
|
-
initialNumberOfDeposits: InitializeInstructionDataArgs['initialNumberOfDeposits'];
|
|
50
|
-
chainId: InitializeInstructionDataArgs['chainId'];
|
|
51
|
-
remoteDomain: InitializeInstructionDataArgs['remoteDomain'];
|
|
52
|
-
crossDomainAdmin: InitializeInstructionDataArgs['crossDomainAdmin'];
|
|
53
|
-
depositQuoteTimeBuffer: InitializeInstructionDataArgs['depositQuoteTimeBuffer'];
|
|
54
|
-
fillDeadlineBuffer: InitializeInstructionDataArgs['fillDeadlineBuffer'];
|
|
55
|
-
};
|
|
56
|
-
export declare function getInitializeInstructionAsync<TAccountSigner extends string, TAccountState extends string, TAccountThisProgram extends string, TAccountProgramData extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SVM_SPOKE_PROGRAM_ADDRESS>(input: InitializeAsyncInput<TAccountSigner, TAccountState, TAccountThisProgram, TAccountProgramData, TAccountSystemProgram>, config?: {
|
|
57
|
-
programAddress?: TProgramAddress;
|
|
58
|
-
}): Promise<InitializeInstruction<TProgramAddress, TAccountSigner, TAccountState, TAccountThisProgram, TAccountProgramData, TAccountSystemProgram>>;
|
|
59
|
-
export type InitializeInput<TAccountSigner extends string = string, TAccountState extends string = string, TAccountThisProgram extends string = string, TAccountProgramData extends string = string, TAccountSystemProgram extends string = string> = {
|
|
60
|
-
signer: TransactionSigner<TAccountSigner>;
|
|
61
|
-
state: Address<TAccountState>;
|
|
62
|
-
thisProgram?: Address<TAccountThisProgram>;
|
|
63
|
-
programData: Address<TAccountProgramData>;
|
|
64
|
-
systemProgram?: Address<TAccountSystemProgram>;
|
|
65
|
-
seed: InitializeInstructionDataArgs['seed'];
|
|
66
|
-
initialNumberOfDeposits: InitializeInstructionDataArgs['initialNumberOfDeposits'];
|
|
67
|
-
chainId: InitializeInstructionDataArgs['chainId'];
|
|
68
|
-
remoteDomain: InitializeInstructionDataArgs['remoteDomain'];
|
|
69
|
-
crossDomainAdmin: InitializeInstructionDataArgs['crossDomainAdmin'];
|
|
70
|
-
depositQuoteTimeBuffer: InitializeInstructionDataArgs['depositQuoteTimeBuffer'];
|
|
71
|
-
fillDeadlineBuffer: InitializeInstructionDataArgs['fillDeadlineBuffer'];
|
|
72
|
-
};
|
|
73
|
-
export declare function getInitializeInstruction<TAccountSigner extends string, TAccountState extends string, TAccountThisProgram extends string, TAccountProgramData extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SVM_SPOKE_PROGRAM_ADDRESS>(input: InitializeInput<TAccountSigner, TAccountState, TAccountThisProgram, TAccountProgramData, TAccountSystemProgram>, config?: {
|
|
74
|
-
programAddress?: TProgramAddress;
|
|
75
|
-
}): InitializeInstruction<TProgramAddress, TAccountSigner, TAccountState, TAccountThisProgram, TAccountProgramData, TAccountSystemProgram>;
|
|
76
|
-
export type ParsedInitializeInstruction<TProgram extends string = typeof SVM_SPOKE_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
77
|
-
programAddress: Address<TProgram>;
|
|
78
|
-
accounts: {
|
|
79
|
-
signer: TAccountMetas[0];
|
|
80
|
-
state: TAccountMetas[1];
|
|
81
|
-
thisProgram: TAccountMetas[2];
|
|
82
|
-
programData: TAccountMetas[3];
|
|
83
|
-
systemProgram: TAccountMetas[4];
|
|
84
|
-
};
|
|
85
|
-
data: InitializeInstructionData;
|
|
86
|
-
};
|
|
87
|
-
export declare function parseInitializeInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitializeInstruction<TProgram, TAccountMetas>;
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This code was AUTOGENERATED using the codama library.
|
|
4
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
5
|
-
* to add features, then rerun codama to update it.
|
|
6
|
-
*
|
|
7
|
-
* @see https://github.com/codama-idl/codama
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.INITIALIZE_DISCRIMINATOR = void 0;
|
|
11
|
-
exports.getInitializeDiscriminatorBytes = getInitializeDiscriminatorBytes;
|
|
12
|
-
exports.getInitializeInstructionDataEncoder = getInitializeInstructionDataEncoder;
|
|
13
|
-
exports.getInitializeInstructionDataDecoder = getInitializeInstructionDataDecoder;
|
|
14
|
-
exports.getInitializeInstructionDataCodec = getInitializeInstructionDataCodec;
|
|
15
|
-
exports.getInitializeInstructionAsync = getInitializeInstructionAsync;
|
|
16
|
-
exports.getInitializeInstruction = getInitializeInstruction;
|
|
17
|
-
exports.parseInitializeInstruction = parseInitializeInstruction;
|
|
18
|
-
const kit_1 = require("@solana/kit");
|
|
19
|
-
const programs_1 = require("../programs");
|
|
20
|
-
const shared_1 = require("../shared");
|
|
21
|
-
exports.INITIALIZE_DISCRIMINATOR = new Uint8Array([
|
|
22
|
-
175, 175, 109, 31, 13, 152, 155, 237,
|
|
23
|
-
]);
|
|
24
|
-
function getInitializeDiscriminatorBytes() {
|
|
25
|
-
return (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(exports.INITIALIZE_DISCRIMINATOR);
|
|
26
|
-
}
|
|
27
|
-
function getInitializeInstructionDataEncoder() {
|
|
28
|
-
return (0, kit_1.transformEncoder)((0, kit_1.getStructEncoder)([
|
|
29
|
-
['discriminator', (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8)],
|
|
30
|
-
['seed', (0, kit_1.getU64Encoder)()],
|
|
31
|
-
['initialNumberOfDeposits', (0, kit_1.getU32Encoder)()],
|
|
32
|
-
['chainId', (0, kit_1.getU64Encoder)()],
|
|
33
|
-
['remoteDomain', (0, kit_1.getU32Encoder)()],
|
|
34
|
-
['crossDomainAdmin', (0, kit_1.getAddressEncoder)()],
|
|
35
|
-
['depositQuoteTimeBuffer', (0, kit_1.getU32Encoder)()],
|
|
36
|
-
['fillDeadlineBuffer', (0, kit_1.getU32Encoder)()],
|
|
37
|
-
]), (value) => ({ ...value, discriminator: exports.INITIALIZE_DISCRIMINATOR }));
|
|
38
|
-
}
|
|
39
|
-
function getInitializeInstructionDataDecoder() {
|
|
40
|
-
return (0, kit_1.getStructDecoder)([
|
|
41
|
-
['discriminator', (0, kit_1.fixDecoderSize)((0, kit_1.getBytesDecoder)(), 8)],
|
|
42
|
-
['seed', (0, kit_1.getU64Decoder)()],
|
|
43
|
-
['initialNumberOfDeposits', (0, kit_1.getU32Decoder)()],
|
|
44
|
-
['chainId', (0, kit_1.getU64Decoder)()],
|
|
45
|
-
['remoteDomain', (0, kit_1.getU32Decoder)()],
|
|
46
|
-
['crossDomainAdmin', (0, kit_1.getAddressDecoder)()],
|
|
47
|
-
['depositQuoteTimeBuffer', (0, kit_1.getU32Decoder)()],
|
|
48
|
-
['fillDeadlineBuffer', (0, kit_1.getU32Decoder)()],
|
|
49
|
-
]);
|
|
50
|
-
}
|
|
51
|
-
function getInitializeInstructionDataCodec() {
|
|
52
|
-
return (0, kit_1.combineCodec)(getInitializeInstructionDataEncoder(), getInitializeInstructionDataDecoder());
|
|
53
|
-
}
|
|
54
|
-
async function getInitializeInstructionAsync(input, config) {
|
|
55
|
-
// Program address.
|
|
56
|
-
const programAddress = config?.programAddress ?? programs_1.SVM_SPOKE_PROGRAM_ADDRESS;
|
|
57
|
-
// Original accounts.
|
|
58
|
-
const originalAccounts = {
|
|
59
|
-
signer: { value: input.signer ?? null, isWritable: true },
|
|
60
|
-
state: { value: input.state ?? null, isWritable: true },
|
|
61
|
-
thisProgram: { value: input.thisProgram ?? null, isWritable: false },
|
|
62
|
-
programData: { value: input.programData ?? null, isWritable: false },
|
|
63
|
-
systemProgram: { value: input.systemProgram ?? null, isWritable: false },
|
|
64
|
-
};
|
|
65
|
-
const accounts = originalAccounts;
|
|
66
|
-
// Original args.
|
|
67
|
-
const args = { ...input };
|
|
68
|
-
// Resolve default values.
|
|
69
|
-
if (!accounts.state.value) {
|
|
70
|
-
accounts.state.value = await (0, kit_1.getProgramDerivedAddress)({
|
|
71
|
-
programAddress,
|
|
72
|
-
seeds: [
|
|
73
|
-
(0, kit_1.getBytesEncoder)().encode(new Uint8Array([115, 116, 97, 116, 101])),
|
|
74
|
-
(0, kit_1.getU64Encoder)().encode((0, shared_1.expectSome)(args.seed)),
|
|
75
|
-
],
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
if (!accounts.thisProgram.value) {
|
|
79
|
-
accounts.thisProgram.value =
|
|
80
|
-
'DLv3NggMiSaef97YCkew5xKUHDh13tVGZ7tydt3ZeAru';
|
|
81
|
-
}
|
|
82
|
-
if (!accounts.systemProgram.value) {
|
|
83
|
-
accounts.systemProgram.value =
|
|
84
|
-
'11111111111111111111111111111111';
|
|
85
|
-
}
|
|
86
|
-
const getAccountMeta = (0, shared_1.getAccountMetaFactory)(programAddress, 'programId');
|
|
87
|
-
const instruction = {
|
|
88
|
-
accounts: [
|
|
89
|
-
getAccountMeta(accounts.signer),
|
|
90
|
-
getAccountMeta(accounts.state),
|
|
91
|
-
getAccountMeta(accounts.thisProgram),
|
|
92
|
-
getAccountMeta(accounts.programData),
|
|
93
|
-
getAccountMeta(accounts.systemProgram),
|
|
94
|
-
],
|
|
95
|
-
programAddress,
|
|
96
|
-
data: getInitializeInstructionDataEncoder().encode(args),
|
|
97
|
-
};
|
|
98
|
-
return instruction;
|
|
99
|
-
}
|
|
100
|
-
function getInitializeInstruction(input, config) {
|
|
101
|
-
// Program address.
|
|
102
|
-
const programAddress = config?.programAddress ?? programs_1.SVM_SPOKE_PROGRAM_ADDRESS;
|
|
103
|
-
// Original accounts.
|
|
104
|
-
const originalAccounts = {
|
|
105
|
-
signer: { value: input.signer ?? null, isWritable: true },
|
|
106
|
-
state: { value: input.state ?? null, isWritable: true },
|
|
107
|
-
thisProgram: { value: input.thisProgram ?? null, isWritable: false },
|
|
108
|
-
programData: { value: input.programData ?? null, isWritable: false },
|
|
109
|
-
systemProgram: { value: input.systemProgram ?? null, isWritable: false },
|
|
110
|
-
};
|
|
111
|
-
const accounts = originalAccounts;
|
|
112
|
-
// Original args.
|
|
113
|
-
const args = { ...input };
|
|
114
|
-
// Resolve default values.
|
|
115
|
-
if (!accounts.thisProgram.value) {
|
|
116
|
-
accounts.thisProgram.value =
|
|
117
|
-
'DLv3NggMiSaef97YCkew5xKUHDh13tVGZ7tydt3ZeAru';
|
|
118
|
-
}
|
|
119
|
-
if (!accounts.systemProgram.value) {
|
|
120
|
-
accounts.systemProgram.value =
|
|
121
|
-
'11111111111111111111111111111111';
|
|
122
|
-
}
|
|
123
|
-
const getAccountMeta = (0, shared_1.getAccountMetaFactory)(programAddress, 'programId');
|
|
124
|
-
const instruction = {
|
|
125
|
-
accounts: [
|
|
126
|
-
getAccountMeta(accounts.signer),
|
|
127
|
-
getAccountMeta(accounts.state),
|
|
128
|
-
getAccountMeta(accounts.thisProgram),
|
|
129
|
-
getAccountMeta(accounts.programData),
|
|
130
|
-
getAccountMeta(accounts.systemProgram),
|
|
131
|
-
],
|
|
132
|
-
programAddress,
|
|
133
|
-
data: getInitializeInstructionDataEncoder().encode(args),
|
|
134
|
-
};
|
|
135
|
-
return instruction;
|
|
136
|
-
}
|
|
137
|
-
function parseInitializeInstruction(instruction) {
|
|
138
|
-
if (instruction.accounts.length < 5) {
|
|
139
|
-
// TODO: Coded error.
|
|
140
|
-
throw new Error('Not enough accounts');
|
|
141
|
-
}
|
|
142
|
-
let accountIndex = 0;
|
|
143
|
-
const getNextAccount = () => {
|
|
144
|
-
const accountMeta = instruction.accounts[accountIndex];
|
|
145
|
-
accountIndex += 1;
|
|
146
|
-
return accountMeta;
|
|
147
|
-
};
|
|
148
|
-
return {
|
|
149
|
-
programAddress: instruction.programAddress,
|
|
150
|
-
accounts: {
|
|
151
|
-
signer: getNextAccount(),
|
|
152
|
-
state: getNextAccount(),
|
|
153
|
-
thisProgram: getNextAccount(),
|
|
154
|
-
programData: getNextAccount(),
|
|
155
|
-
systemProgram: getNextAccount(),
|
|
156
|
-
},
|
|
157
|
-
data: getInitializeInstructionDataDecoder().decode(instruction.data),
|
|
158
|
-
};
|
|
159
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was AUTOGENERATED using the codama library.
|
|
3
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
-
* to add features, then rerun codama to update it.
|
|
5
|
-
*
|
|
6
|
-
* @see https://github.com/codama-idl/codama
|
|
7
|
-
*/
|
|
8
|
-
import { type AccountMeta, type AccountSignerMeta, type Address, type Codec, type Decoder, type Encoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit';
|
|
9
|
-
import { SVM_SPOKE_PROGRAM_ADDRESS } from '../programs';
|
|
10
|
-
export declare const INITIALIZE_CLAIM_ACCOUNT_DISCRIMINATOR: Uint8Array;
|
|
11
|
-
export declare function getInitializeClaimAccountDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
12
|
-
export type InitializeClaimAccountInstruction<TProgram extends string = typeof SVM_SPOKE_PROGRAM_ADDRESS, TAccountSigner extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountRefundAddress extends string | AccountMeta<string> = string, TAccountClaimAccount extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
13
|
-
TAccountSigner extends string ? WritableSignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner,
|
|
14
|
-
TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
|
|
15
|
-
TAccountRefundAddress extends string ? ReadonlyAccount<TAccountRefundAddress> : TAccountRefundAddress,
|
|
16
|
-
TAccountClaimAccount extends string ? WritableAccount<TAccountClaimAccount> : TAccountClaimAccount,
|
|
17
|
-
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
18
|
-
...TRemainingAccounts
|
|
19
|
-
]>;
|
|
20
|
-
export type InitializeClaimAccountInstructionData = {
|
|
21
|
-
discriminator: ReadonlyUint8Array;
|
|
22
|
-
};
|
|
23
|
-
export type InitializeClaimAccountInstructionDataArgs = {};
|
|
24
|
-
export declare function getInitializeClaimAccountInstructionDataEncoder(): Encoder<InitializeClaimAccountInstructionDataArgs>;
|
|
25
|
-
export declare function getInitializeClaimAccountInstructionDataDecoder(): Decoder<InitializeClaimAccountInstructionData>;
|
|
26
|
-
export declare function getInitializeClaimAccountInstructionDataCodec(): Codec<InitializeClaimAccountInstructionDataArgs, InitializeClaimAccountInstructionData>;
|
|
27
|
-
export type InitializeClaimAccountAsyncInput<TAccountSigner extends string = string, TAccountMint extends string = string, TAccountRefundAddress extends string = string, TAccountClaimAccount extends string = string, TAccountSystemProgram extends string = string> = {
|
|
28
|
-
signer: TransactionSigner<TAccountSigner>;
|
|
29
|
-
mint: Address<TAccountMint>;
|
|
30
|
-
refundAddress: Address<TAccountRefundAddress>;
|
|
31
|
-
claimAccount?: Address<TAccountClaimAccount>;
|
|
32
|
-
systemProgram?: Address<TAccountSystemProgram>;
|
|
33
|
-
};
|
|
34
|
-
export declare function getInitializeClaimAccountInstructionAsync<TAccountSigner extends string, TAccountMint extends string, TAccountRefundAddress extends string, TAccountClaimAccount extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SVM_SPOKE_PROGRAM_ADDRESS>(input: InitializeClaimAccountAsyncInput<TAccountSigner, TAccountMint, TAccountRefundAddress, TAccountClaimAccount, TAccountSystemProgram>, config?: {
|
|
35
|
-
programAddress?: TProgramAddress;
|
|
36
|
-
}): Promise<InitializeClaimAccountInstruction<TProgramAddress, TAccountSigner, TAccountMint, TAccountRefundAddress, TAccountClaimAccount, TAccountSystemProgram>>;
|
|
37
|
-
export type InitializeClaimAccountInput<TAccountSigner extends string = string, TAccountMint extends string = string, TAccountRefundAddress extends string = string, TAccountClaimAccount extends string = string, TAccountSystemProgram extends string = string> = {
|
|
38
|
-
signer: TransactionSigner<TAccountSigner>;
|
|
39
|
-
mint: Address<TAccountMint>;
|
|
40
|
-
refundAddress: Address<TAccountRefundAddress>;
|
|
41
|
-
claimAccount: Address<TAccountClaimAccount>;
|
|
42
|
-
systemProgram?: Address<TAccountSystemProgram>;
|
|
43
|
-
};
|
|
44
|
-
export declare function getInitializeClaimAccountInstruction<TAccountSigner extends string, TAccountMint extends string, TAccountRefundAddress extends string, TAccountClaimAccount extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SVM_SPOKE_PROGRAM_ADDRESS>(input: InitializeClaimAccountInput<TAccountSigner, TAccountMint, TAccountRefundAddress, TAccountClaimAccount, TAccountSystemProgram>, config?: {
|
|
45
|
-
programAddress?: TProgramAddress;
|
|
46
|
-
}): InitializeClaimAccountInstruction<TProgramAddress, TAccountSigner, TAccountMint, TAccountRefundAddress, TAccountClaimAccount, TAccountSystemProgram>;
|
|
47
|
-
export type ParsedInitializeClaimAccountInstruction<TProgram extends string = typeof SVM_SPOKE_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
48
|
-
programAddress: Address<TProgram>;
|
|
49
|
-
accounts: {
|
|
50
|
-
signer: TAccountMetas[0];
|
|
51
|
-
mint: TAccountMetas[1];
|
|
52
|
-
refundAddress: TAccountMetas[2];
|
|
53
|
-
claimAccount: TAccountMetas[3];
|
|
54
|
-
systemProgram: TAccountMetas[4];
|
|
55
|
-
};
|
|
56
|
-
data: InitializeClaimAccountInstructionData;
|
|
57
|
-
};
|
|
58
|
-
export declare function parseInitializeClaimAccountInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitializeClaimAccountInstruction<TProgram, TAccountMetas>;
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This code was AUTOGENERATED using the codama library.
|
|
4
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
5
|
-
* to add features, then rerun codama to update it.
|
|
6
|
-
*
|
|
7
|
-
* @see https://github.com/codama-idl/codama
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.INITIALIZE_CLAIM_ACCOUNT_DISCRIMINATOR = void 0;
|
|
11
|
-
exports.getInitializeClaimAccountDiscriminatorBytes = getInitializeClaimAccountDiscriminatorBytes;
|
|
12
|
-
exports.getInitializeClaimAccountInstructionDataEncoder = getInitializeClaimAccountInstructionDataEncoder;
|
|
13
|
-
exports.getInitializeClaimAccountInstructionDataDecoder = getInitializeClaimAccountInstructionDataDecoder;
|
|
14
|
-
exports.getInitializeClaimAccountInstructionDataCodec = getInitializeClaimAccountInstructionDataCodec;
|
|
15
|
-
exports.getInitializeClaimAccountInstructionAsync = getInitializeClaimAccountInstructionAsync;
|
|
16
|
-
exports.getInitializeClaimAccountInstruction = getInitializeClaimAccountInstruction;
|
|
17
|
-
exports.parseInitializeClaimAccountInstruction = parseInitializeClaimAccountInstruction;
|
|
18
|
-
const kit_1 = require("@solana/kit");
|
|
19
|
-
const programs_1 = require("../programs");
|
|
20
|
-
const shared_1 = require("../shared");
|
|
21
|
-
exports.INITIALIZE_CLAIM_ACCOUNT_DISCRIMINATOR = new Uint8Array([
|
|
22
|
-
22, 247, 214, 191, 90, 74, 87, 216,
|
|
23
|
-
]);
|
|
24
|
-
function getInitializeClaimAccountDiscriminatorBytes() {
|
|
25
|
-
return (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(exports.INITIALIZE_CLAIM_ACCOUNT_DISCRIMINATOR);
|
|
26
|
-
}
|
|
27
|
-
function getInitializeClaimAccountInstructionDataEncoder() {
|
|
28
|
-
return (0, kit_1.transformEncoder)((0, kit_1.getStructEncoder)([['discriminator', (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8)]]), (value) => ({
|
|
29
|
-
...value,
|
|
30
|
-
discriminator: exports.INITIALIZE_CLAIM_ACCOUNT_DISCRIMINATOR,
|
|
31
|
-
}));
|
|
32
|
-
}
|
|
33
|
-
function getInitializeClaimAccountInstructionDataDecoder() {
|
|
34
|
-
return (0, kit_1.getStructDecoder)([
|
|
35
|
-
['discriminator', (0, kit_1.fixDecoderSize)((0, kit_1.getBytesDecoder)(), 8)],
|
|
36
|
-
]);
|
|
37
|
-
}
|
|
38
|
-
function getInitializeClaimAccountInstructionDataCodec() {
|
|
39
|
-
return (0, kit_1.combineCodec)(getInitializeClaimAccountInstructionDataEncoder(), getInitializeClaimAccountInstructionDataDecoder());
|
|
40
|
-
}
|
|
41
|
-
async function getInitializeClaimAccountInstructionAsync(input, config) {
|
|
42
|
-
// Program address.
|
|
43
|
-
const programAddress = config?.programAddress ?? programs_1.SVM_SPOKE_PROGRAM_ADDRESS;
|
|
44
|
-
// Original accounts.
|
|
45
|
-
const originalAccounts = {
|
|
46
|
-
signer: { value: input.signer ?? null, isWritable: true },
|
|
47
|
-
mint: { value: input.mint ?? null, isWritable: false },
|
|
48
|
-
refundAddress: { value: input.refundAddress ?? null, isWritable: false },
|
|
49
|
-
claimAccount: { value: input.claimAccount ?? null, isWritable: true },
|
|
50
|
-
systemProgram: { value: input.systemProgram ?? null, isWritable: false },
|
|
51
|
-
};
|
|
52
|
-
const accounts = originalAccounts;
|
|
53
|
-
// Resolve default values.
|
|
54
|
-
if (!accounts.claimAccount.value) {
|
|
55
|
-
accounts.claimAccount.value = await (0, kit_1.getProgramDerivedAddress)({
|
|
56
|
-
programAddress,
|
|
57
|
-
seeds: [
|
|
58
|
-
(0, kit_1.getBytesEncoder)().encode(new Uint8Array([
|
|
59
|
-
99, 108, 97, 105, 109, 95, 97, 99, 99, 111, 117, 110, 116,
|
|
60
|
-
])),
|
|
61
|
-
(0, kit_1.getAddressEncoder)().encode((0, shared_1.expectAddress)(accounts.mint.value)),
|
|
62
|
-
(0, kit_1.getAddressEncoder)().encode((0, shared_1.expectAddress)(accounts.refundAddress.value)),
|
|
63
|
-
],
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
if (!accounts.systemProgram.value) {
|
|
67
|
-
accounts.systemProgram.value =
|
|
68
|
-
'11111111111111111111111111111111';
|
|
69
|
-
}
|
|
70
|
-
const getAccountMeta = (0, shared_1.getAccountMetaFactory)(programAddress, 'programId');
|
|
71
|
-
const instruction = {
|
|
72
|
-
accounts: [
|
|
73
|
-
getAccountMeta(accounts.signer),
|
|
74
|
-
getAccountMeta(accounts.mint),
|
|
75
|
-
getAccountMeta(accounts.refundAddress),
|
|
76
|
-
getAccountMeta(accounts.claimAccount),
|
|
77
|
-
getAccountMeta(accounts.systemProgram),
|
|
78
|
-
],
|
|
79
|
-
programAddress,
|
|
80
|
-
data: getInitializeClaimAccountInstructionDataEncoder().encode({}),
|
|
81
|
-
};
|
|
82
|
-
return instruction;
|
|
83
|
-
}
|
|
84
|
-
function getInitializeClaimAccountInstruction(input, config) {
|
|
85
|
-
// Program address.
|
|
86
|
-
const programAddress = config?.programAddress ?? programs_1.SVM_SPOKE_PROGRAM_ADDRESS;
|
|
87
|
-
// Original accounts.
|
|
88
|
-
const originalAccounts = {
|
|
89
|
-
signer: { value: input.signer ?? null, isWritable: true },
|
|
90
|
-
mint: { value: input.mint ?? null, isWritable: false },
|
|
91
|
-
refundAddress: { value: input.refundAddress ?? null, isWritable: false },
|
|
92
|
-
claimAccount: { value: input.claimAccount ?? null, isWritable: true },
|
|
93
|
-
systemProgram: { value: input.systemProgram ?? null, isWritable: false },
|
|
94
|
-
};
|
|
95
|
-
const accounts = originalAccounts;
|
|
96
|
-
// Resolve default values.
|
|
97
|
-
if (!accounts.systemProgram.value) {
|
|
98
|
-
accounts.systemProgram.value =
|
|
99
|
-
'11111111111111111111111111111111';
|
|
100
|
-
}
|
|
101
|
-
const getAccountMeta = (0, shared_1.getAccountMetaFactory)(programAddress, 'programId');
|
|
102
|
-
const instruction = {
|
|
103
|
-
accounts: [
|
|
104
|
-
getAccountMeta(accounts.signer),
|
|
105
|
-
getAccountMeta(accounts.mint),
|
|
106
|
-
getAccountMeta(accounts.refundAddress),
|
|
107
|
-
getAccountMeta(accounts.claimAccount),
|
|
108
|
-
getAccountMeta(accounts.systemProgram),
|
|
109
|
-
],
|
|
110
|
-
programAddress,
|
|
111
|
-
data: getInitializeClaimAccountInstructionDataEncoder().encode({}),
|
|
112
|
-
};
|
|
113
|
-
return instruction;
|
|
114
|
-
}
|
|
115
|
-
function parseInitializeClaimAccountInstruction(instruction) {
|
|
116
|
-
if (instruction.accounts.length < 5) {
|
|
117
|
-
// TODO: Coded error.
|
|
118
|
-
throw new Error('Not enough accounts');
|
|
119
|
-
}
|
|
120
|
-
let accountIndex = 0;
|
|
121
|
-
const getNextAccount = () => {
|
|
122
|
-
const accountMeta = instruction.accounts[accountIndex];
|
|
123
|
-
accountIndex += 1;
|
|
124
|
-
return accountMeta;
|
|
125
|
-
};
|
|
126
|
-
return {
|
|
127
|
-
programAddress: instruction.programAddress,
|
|
128
|
-
accounts: {
|
|
129
|
-
signer: getNextAccount(),
|
|
130
|
-
mint: getNextAccount(),
|
|
131
|
-
refundAddress: getNextAccount(),
|
|
132
|
-
claimAccount: getNextAccount(),
|
|
133
|
-
systemProgram: getNextAccount(),
|
|
134
|
-
},
|
|
135
|
-
data: getInitializeClaimAccountInstructionDataDecoder().decode(instruction.data),
|
|
136
|
-
};
|
|
137
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was AUTOGENERATED using the codama library.
|
|
3
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
-
* to add features, then rerun codama to update it.
|
|
5
|
-
*
|
|
6
|
-
* @see https://github.com/codama-idl/codama
|
|
7
|
-
*/
|
|
8
|
-
import { type AccountMeta, type AccountSignerMeta, type Address, type Codec, type Decoder, type Encoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit';
|
|
9
|
-
import { SVM_SPOKE_PROGRAM_ADDRESS } from '../programs';
|
|
10
|
-
export declare const INITIALIZE_INSTRUCTION_PARAMS_DISCRIMINATOR: Uint8Array;
|
|
11
|
-
export declare function getInitializeInstructionParamsDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
12
|
-
export type InitializeInstructionParamsInstruction<TProgram extends string = typeof SVM_SPOKE_PROGRAM_ADDRESS, TAccountSigner extends string | AccountMeta<string> = string, TAccountInstructionParams extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
13
|
-
TAccountSigner extends string ? WritableSignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner,
|
|
14
|
-
TAccountInstructionParams extends string ? WritableAccount<TAccountInstructionParams> : TAccountInstructionParams,
|
|
15
|
-
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
16
|
-
...TRemainingAccounts
|
|
17
|
-
]>;
|
|
18
|
-
export type InitializeInstructionParamsInstructionData = {
|
|
19
|
-
discriminator: ReadonlyUint8Array;
|
|
20
|
-
totalSize: number;
|
|
21
|
-
};
|
|
22
|
-
export type InitializeInstructionParamsInstructionDataArgs = {
|
|
23
|
-
totalSize: number;
|
|
24
|
-
};
|
|
25
|
-
export declare function getInitializeInstructionParamsInstructionDataEncoder(): Encoder<InitializeInstructionParamsInstructionDataArgs>;
|
|
26
|
-
export declare function getInitializeInstructionParamsInstructionDataDecoder(): Decoder<InitializeInstructionParamsInstructionData>;
|
|
27
|
-
export declare function getInitializeInstructionParamsInstructionDataCodec(): Codec<InitializeInstructionParamsInstructionDataArgs, InitializeInstructionParamsInstructionData>;
|
|
28
|
-
export type InitializeInstructionParamsAsyncInput<TAccountSigner extends string = string, TAccountInstructionParams extends string = string, TAccountSystemProgram extends string = string> = {
|
|
29
|
-
signer: TransactionSigner<TAccountSigner>;
|
|
30
|
-
instructionParams?: Address<TAccountInstructionParams>;
|
|
31
|
-
systemProgram?: Address<TAccountSystemProgram>;
|
|
32
|
-
totalSize: InitializeInstructionParamsInstructionDataArgs['totalSize'];
|
|
33
|
-
};
|
|
34
|
-
export declare function getInitializeInstructionParamsInstructionAsync<TAccountSigner extends string, TAccountInstructionParams extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SVM_SPOKE_PROGRAM_ADDRESS>(input: InitializeInstructionParamsAsyncInput<TAccountSigner, TAccountInstructionParams, TAccountSystemProgram>, config?: {
|
|
35
|
-
programAddress?: TProgramAddress;
|
|
36
|
-
}): Promise<InitializeInstructionParamsInstruction<TProgramAddress, TAccountSigner, TAccountInstructionParams, TAccountSystemProgram>>;
|
|
37
|
-
export type InitializeInstructionParamsInput<TAccountSigner extends string = string, TAccountInstructionParams extends string = string, TAccountSystemProgram extends string = string> = {
|
|
38
|
-
signer: TransactionSigner<TAccountSigner>;
|
|
39
|
-
instructionParams: Address<TAccountInstructionParams>;
|
|
40
|
-
systemProgram?: Address<TAccountSystemProgram>;
|
|
41
|
-
totalSize: InitializeInstructionParamsInstructionDataArgs['totalSize'];
|
|
42
|
-
};
|
|
43
|
-
export declare function getInitializeInstructionParamsInstruction<TAccountSigner extends string, TAccountInstructionParams extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SVM_SPOKE_PROGRAM_ADDRESS>(input: InitializeInstructionParamsInput<TAccountSigner, TAccountInstructionParams, TAccountSystemProgram>, config?: {
|
|
44
|
-
programAddress?: TProgramAddress;
|
|
45
|
-
}): InitializeInstructionParamsInstruction<TProgramAddress, TAccountSigner, TAccountInstructionParams, TAccountSystemProgram>;
|
|
46
|
-
export type ParsedInitializeInstructionParamsInstruction<TProgram extends string = typeof SVM_SPOKE_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
47
|
-
programAddress: Address<TProgram>;
|
|
48
|
-
accounts: {
|
|
49
|
-
signer: TAccountMetas[0];
|
|
50
|
-
instructionParams: TAccountMetas[1];
|
|
51
|
-
systemProgram: TAccountMetas[2];
|
|
52
|
-
};
|
|
53
|
-
data: InitializeInstructionParamsInstructionData;
|
|
54
|
-
};
|
|
55
|
-
export declare function parseInitializeInstructionParamsInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitializeInstructionParamsInstruction<TProgram, TAccountMetas>;
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This code was AUTOGENERATED using the codama library.
|
|
4
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
5
|
-
* to add features, then rerun codama to update it.
|
|
6
|
-
*
|
|
7
|
-
* @see https://github.com/codama-idl/codama
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.INITIALIZE_INSTRUCTION_PARAMS_DISCRIMINATOR = void 0;
|
|
11
|
-
exports.getInitializeInstructionParamsDiscriminatorBytes = getInitializeInstructionParamsDiscriminatorBytes;
|
|
12
|
-
exports.getInitializeInstructionParamsInstructionDataEncoder = getInitializeInstructionParamsInstructionDataEncoder;
|
|
13
|
-
exports.getInitializeInstructionParamsInstructionDataDecoder = getInitializeInstructionParamsInstructionDataDecoder;
|
|
14
|
-
exports.getInitializeInstructionParamsInstructionDataCodec = getInitializeInstructionParamsInstructionDataCodec;
|
|
15
|
-
exports.getInitializeInstructionParamsInstructionAsync = getInitializeInstructionParamsInstructionAsync;
|
|
16
|
-
exports.getInitializeInstructionParamsInstruction = getInitializeInstructionParamsInstruction;
|
|
17
|
-
exports.parseInitializeInstructionParamsInstruction = parseInitializeInstructionParamsInstruction;
|
|
18
|
-
const kit_1 = require("@solana/kit");
|
|
19
|
-
const programs_1 = require("../programs");
|
|
20
|
-
const shared_1 = require("../shared");
|
|
21
|
-
exports.INITIALIZE_INSTRUCTION_PARAMS_DISCRIMINATOR = new Uint8Array([
|
|
22
|
-
94, 206, 190, 192, 127, 8, 186, 28,
|
|
23
|
-
]);
|
|
24
|
-
function getInitializeInstructionParamsDiscriminatorBytes() {
|
|
25
|
-
return (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(exports.INITIALIZE_INSTRUCTION_PARAMS_DISCRIMINATOR);
|
|
26
|
-
}
|
|
27
|
-
function getInitializeInstructionParamsInstructionDataEncoder() {
|
|
28
|
-
return (0, kit_1.transformEncoder)((0, kit_1.getStructEncoder)([
|
|
29
|
-
['discriminator', (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8)],
|
|
30
|
-
['totalSize', (0, kit_1.getU32Encoder)()],
|
|
31
|
-
]), (value) => ({
|
|
32
|
-
...value,
|
|
33
|
-
discriminator: exports.INITIALIZE_INSTRUCTION_PARAMS_DISCRIMINATOR,
|
|
34
|
-
}));
|
|
35
|
-
}
|
|
36
|
-
function getInitializeInstructionParamsInstructionDataDecoder() {
|
|
37
|
-
return (0, kit_1.getStructDecoder)([
|
|
38
|
-
['discriminator', (0, kit_1.fixDecoderSize)((0, kit_1.getBytesDecoder)(), 8)],
|
|
39
|
-
['totalSize', (0, kit_1.getU32Decoder)()],
|
|
40
|
-
]);
|
|
41
|
-
}
|
|
42
|
-
function getInitializeInstructionParamsInstructionDataCodec() {
|
|
43
|
-
return (0, kit_1.combineCodec)(getInitializeInstructionParamsInstructionDataEncoder(), getInitializeInstructionParamsInstructionDataDecoder());
|
|
44
|
-
}
|
|
45
|
-
async function getInitializeInstructionParamsInstructionAsync(input, config) {
|
|
46
|
-
// Program address.
|
|
47
|
-
const programAddress = config?.programAddress ?? programs_1.SVM_SPOKE_PROGRAM_ADDRESS;
|
|
48
|
-
// Original accounts.
|
|
49
|
-
const originalAccounts = {
|
|
50
|
-
signer: { value: input.signer ?? null, isWritable: true },
|
|
51
|
-
instructionParams: {
|
|
52
|
-
value: input.instructionParams ?? null,
|
|
53
|
-
isWritable: true,
|
|
54
|
-
},
|
|
55
|
-
systemProgram: { value: input.systemProgram ?? null, isWritable: false },
|
|
56
|
-
};
|
|
57
|
-
const accounts = originalAccounts;
|
|
58
|
-
// Original args.
|
|
59
|
-
const args = { ...input };
|
|
60
|
-
// Resolve default values.
|
|
61
|
-
if (!accounts.instructionParams.value) {
|
|
62
|
-
accounts.instructionParams.value = await (0, kit_1.getProgramDerivedAddress)({
|
|
63
|
-
programAddress,
|
|
64
|
-
seeds: [
|
|
65
|
-
(0, kit_1.getBytesEncoder)().encode(new Uint8Array([
|
|
66
|
-
105, 110, 115, 116, 114, 117, 99, 116, 105, 111, 110, 95, 112, 97,
|
|
67
|
-
114, 97, 109, 115,
|
|
68
|
-
])),
|
|
69
|
-
(0, kit_1.getAddressEncoder)().encode((0, shared_1.expectAddress)(accounts.signer.value)),
|
|
70
|
-
],
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
if (!accounts.systemProgram.value) {
|
|
74
|
-
accounts.systemProgram.value =
|
|
75
|
-
'11111111111111111111111111111111';
|
|
76
|
-
}
|
|
77
|
-
const getAccountMeta = (0, shared_1.getAccountMetaFactory)(programAddress, 'programId');
|
|
78
|
-
const instruction = {
|
|
79
|
-
accounts: [
|
|
80
|
-
getAccountMeta(accounts.signer),
|
|
81
|
-
getAccountMeta(accounts.instructionParams),
|
|
82
|
-
getAccountMeta(accounts.systemProgram),
|
|
83
|
-
],
|
|
84
|
-
programAddress,
|
|
85
|
-
data: getInitializeInstructionParamsInstructionDataEncoder().encode(args),
|
|
86
|
-
};
|
|
87
|
-
return instruction;
|
|
88
|
-
}
|
|
89
|
-
function getInitializeInstructionParamsInstruction(input, config) {
|
|
90
|
-
// Program address.
|
|
91
|
-
const programAddress = config?.programAddress ?? programs_1.SVM_SPOKE_PROGRAM_ADDRESS;
|
|
92
|
-
// Original accounts.
|
|
93
|
-
const originalAccounts = {
|
|
94
|
-
signer: { value: input.signer ?? null, isWritable: true },
|
|
95
|
-
instructionParams: {
|
|
96
|
-
value: input.instructionParams ?? null,
|
|
97
|
-
isWritable: true,
|
|
98
|
-
},
|
|
99
|
-
systemProgram: { value: input.systemProgram ?? null, isWritable: false },
|
|
100
|
-
};
|
|
101
|
-
const accounts = originalAccounts;
|
|
102
|
-
// Original args.
|
|
103
|
-
const args = { ...input };
|
|
104
|
-
// Resolve default values.
|
|
105
|
-
if (!accounts.systemProgram.value) {
|
|
106
|
-
accounts.systemProgram.value =
|
|
107
|
-
'11111111111111111111111111111111';
|
|
108
|
-
}
|
|
109
|
-
const getAccountMeta = (0, shared_1.getAccountMetaFactory)(programAddress, 'programId');
|
|
110
|
-
const instruction = {
|
|
111
|
-
accounts: [
|
|
112
|
-
getAccountMeta(accounts.signer),
|
|
113
|
-
getAccountMeta(accounts.instructionParams),
|
|
114
|
-
getAccountMeta(accounts.systemProgram),
|
|
115
|
-
],
|
|
116
|
-
programAddress,
|
|
117
|
-
data: getInitializeInstructionParamsInstructionDataEncoder().encode(args),
|
|
118
|
-
};
|
|
119
|
-
return instruction;
|
|
120
|
-
}
|
|
121
|
-
function parseInitializeInstructionParamsInstruction(instruction) {
|
|
122
|
-
if (instruction.accounts.length < 3) {
|
|
123
|
-
// TODO: Coded error.
|
|
124
|
-
throw new Error('Not enough accounts');
|
|
125
|
-
}
|
|
126
|
-
let accountIndex = 0;
|
|
127
|
-
const getNextAccount = () => {
|
|
128
|
-
const accountMeta = instruction.accounts[accountIndex];
|
|
129
|
-
accountIndex += 1;
|
|
130
|
-
return accountMeta;
|
|
131
|
-
};
|
|
132
|
-
return {
|
|
133
|
-
programAddress: instruction.programAddress,
|
|
134
|
-
accounts: {
|
|
135
|
-
signer: getNextAccount(),
|
|
136
|
-
instructionParams: getNextAccount(),
|
|
137
|
-
systemProgram: getNextAccount(),
|
|
138
|
-
},
|
|
139
|
-
data: getInitializeInstructionParamsInstructionDataDecoder().decode(instruction.data),
|
|
140
|
-
};
|
|
141
|
-
}
|