@layerzerolabs/lz-solana-sdk-v2 3.0.53 → 3.0.54
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/CHANGELOG.md +15 -0
- package/dist/index.cjs +2764 -4309
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +14 -115
- package/dist/index.d.ts +14 -115
- package/dist/index.mjs +2764 -4307
- package/dist/index.mjs.map +1 -1
- package/dist/umi.cjs +14486 -0
- package/dist/umi.cjs.map +1 -0
- package/dist/umi.d.mts +8807 -0
- package/dist/umi.d.ts +8807 -0
- package/dist/umi.mjs +14401 -0
- package/dist/umi.mjs.map +1 -0
- package/package.json +26 -10
- package/src/deployment.test.ts +1 -1
- package/src/deployment.ts +2 -2
- package/src/dvn.ts +248 -449
- package/src/endpoint.ts +793 -964
- package/src/executor.ts +286 -413
- package/src/generated/kinobi/blocked_messagelib/errors/blockedMessagelib.ts +42 -0
- package/src/generated/kinobi/blocked_messagelib/errors/index.ts +9 -0
- package/src/generated/kinobi/blocked_messagelib/index.ts +12 -0
- package/src/generated/kinobi/blocked_messagelib/instructions/index.ts +9 -0
- package/src/generated/kinobi/blocked_messagelib/instructions/version.ts +80 -0
- package/src/generated/kinobi/blocked_messagelib/programs/blockedMessagelib.ts +55 -0
- package/src/generated/kinobi/blocked_messagelib/programs/index.ts +9 -0
- package/src/generated/kinobi/blocked_messagelib/shared/index.ts +117 -0
- package/src/generated/kinobi/dvn/accounts/dvnConfig.ts +199 -0
- package/src/generated/kinobi/dvn/accounts/executeHash.ts +148 -0
- package/src/generated/kinobi/dvn/accounts/index.ts +11 -0
- package/src/generated/kinobi/dvn/accounts/receiveConfig.ts +154 -0
- package/src/generated/kinobi/dvn/errors/dvn.ts +263 -0
- package/src/generated/kinobi/dvn/errors/index.ts +9 -0
- package/src/generated/kinobi/dvn/events/adminConfigSetEvent.ts +23 -0
- package/src/generated/kinobi/dvn/events/feeWithdrawnEvent.ts +35 -0
- package/src/generated/kinobi/dvn/events/index.ts +3 -0
- package/src/generated/kinobi/dvn/events/multisigConfigSetEvent.ts +28 -0
- package/src/generated/kinobi/dvn/index.ts +14 -0
- package/src/generated/kinobi/dvn/instructions/closeExecute.ts +126 -0
- package/src/generated/kinobi/dvn/instructions/index.ts +15 -0
- package/src/generated/kinobi/dvn/instructions/initDvn.ts +155 -0
- package/src/generated/kinobi/dvn/instructions/invoke.ts +161 -0
- package/src/generated/kinobi/dvn/instructions/quoteDvn.ts +150 -0
- package/src/generated/kinobi/dvn/instructions/setConfig.ts +138 -0
- package/src/generated/kinobi/dvn/instructions/verifiable.ts +139 -0
- package/src/generated/kinobi/dvn/instructions/withdrawFee.ts +139 -0
- package/src/generated/kinobi/dvn/programs/dvn.ts +48 -0
- package/src/generated/kinobi/dvn/programs/index.ts +9 -0
- package/src/generated/kinobi/dvn/shared/index.ts +117 -0
- package/src/generated/kinobi/dvn/types/acl.ts +29 -0
- package/src/generated/kinobi/dvn/types/adminConfig.ts +116 -0
- package/src/generated/kinobi/dvn/types/dstConfig.ts +43 -0
- package/src/generated/kinobi/dvn/types/executeTransactionDigest.ts +55 -0
- package/src/generated/kinobi/dvn/types/index.ts +18 -0
- package/src/generated/kinobi/dvn/types/lzOption.ts +29 -0
- package/src/generated/kinobi/dvn/types/multisig.ts +29 -0
- package/src/generated/kinobi/dvn/types/multisigConfig.ts +130 -0
- package/src/generated/kinobi/dvn/types/transactionAccount.ts +37 -0
- package/src/generated/kinobi/dvn/types/ulnConfig.ts +49 -0
- package/src/generated/kinobi/dvn/types/verificationState.ts +28 -0
- package/src/generated/kinobi/endpoint/accounts/composeMessageState.ts +166 -0
- package/src/generated/kinobi/endpoint/accounts/endpointSettings.ts +171 -0
- package/src/generated/kinobi/endpoint/accounts/index.ts +17 -0
- package/src/generated/kinobi/endpoint/accounts/messageLibInfo.ts +170 -0
- package/src/generated/kinobi/endpoint/accounts/nonce.ts +151 -0
- package/src/generated/kinobi/endpoint/accounts/oAppRegistry.ts +151 -0
- package/src/generated/kinobi/endpoint/accounts/payloadHash.ts +144 -0
- package/src/generated/kinobi/endpoint/accounts/pendingInboundNonce.ts +163 -0
- package/src/generated/kinobi/endpoint/accounts/receiveLibraryConfig.ts +175 -0
- package/src/generated/kinobi/endpoint/accounts/sendLibraryConfig.ts +167 -0
- package/src/generated/kinobi/endpoint/errors/endpoint.ts +276 -0
- package/src/generated/kinobi/endpoint/errors/index.ts +9 -0
- package/src/generated/kinobi/endpoint/events/adminTransferredEvent.ts +27 -0
- package/src/generated/kinobi/endpoint/events/composeDeliveredEvent.ts +40 -0
- package/src/generated/kinobi/endpoint/events/composeSentEvent.ts +43 -0
- package/src/generated/kinobi/endpoint/events/defaultReceiveLibrarySetEvent.ts +35 -0
- package/src/generated/kinobi/endpoint/events/defaultReceiveLibraryTimeoutSetEvent.ts +46 -0
- package/src/generated/kinobi/endpoint/events/defaultSendLibrarySetEvent.ts +32 -0
- package/src/generated/kinobi/endpoint/events/delegateSetEvent.ts +27 -0
- package/src/generated/kinobi/endpoint/events/inboundNonceSkippedEvent.ts +46 -0
- package/src/generated/kinobi/endpoint/events/index.ts +22 -0
- package/src/generated/kinobi/endpoint/events/libraryRegisteredEvent.ts +34 -0
- package/src/generated/kinobi/endpoint/events/lzComposeAlertEvent.ts +65 -0
- package/src/generated/kinobi/endpoint/events/lzReceiveAlertEvent.ts +67 -0
- package/src/generated/kinobi/endpoint/events/lzTokenSetEvent.ts +28 -0
- package/src/generated/kinobi/endpoint/events/oAppRegisteredEvent.ts +31 -0
- package/src/generated/kinobi/endpoint/events/packetBurntEvent.ts +49 -0
- package/src/generated/kinobi/endpoint/events/packetDeliveredEvent.ts +46 -0
- package/src/generated/kinobi/endpoint/events/packetNilifiedEvent.ts +49 -0
- package/src/generated/kinobi/endpoint/events/packetSentEvent.ts +38 -0
- package/src/generated/kinobi/endpoint/events/packetVerifiedEvent.ts +49 -0
- package/src/generated/kinobi/endpoint/events/receiveLibrarySetEvent.ts +37 -0
- package/src/generated/kinobi/endpoint/events/receiveLibraryTimeoutSetEvent.ts +50 -0
- package/src/generated/kinobi/endpoint/events/rentWithdrawnEvent.ts +35 -0
- package/src/generated/kinobi/endpoint/events/sendLibrarySetEvent.ts +37 -0
- package/src/generated/kinobi/endpoint/index.ts +14 -0
- package/src/generated/kinobi/endpoint/instructions/burn.ts +166 -0
- package/src/generated/kinobi/endpoint/instructions/clear.ts +169 -0
- package/src/generated/kinobi/endpoint/instructions/clearCompose.ts +142 -0
- package/src/generated/kinobi/endpoint/instructions/index.ts +40 -0
- package/src/generated/kinobi/endpoint/instructions/initConfig.ts +145 -0
- package/src/generated/kinobi/endpoint/instructions/initDefaultReceiveLibrary.ts +172 -0
- package/src/generated/kinobi/endpoint/instructions/initDefaultSendLibrary.ts +171 -0
- package/src/generated/kinobi/endpoint/instructions/initEndpoint.ts +142 -0
- package/src/generated/kinobi/endpoint/instructions/initNonce.ts +158 -0
- package/src/generated/kinobi/endpoint/instructions/initReceiveLibrary.ts +154 -0
- package/src/generated/kinobi/endpoint/instructions/initSendLibrary.ts +152 -0
- package/src/generated/kinobi/endpoint/instructions/initVerify.ts +159 -0
- package/src/generated/kinobi/endpoint/instructions/lzComposeAlert.ts +159 -0
- package/src/generated/kinobi/endpoint/instructions/lzReceiveAlert.ts +161 -0
- package/src/generated/kinobi/endpoint/instructions/nilify.ts +165 -0
- package/src/generated/kinobi/endpoint/instructions/quote.ts +160 -0
- package/src/generated/kinobi/endpoint/instructions/registerLibrary.ts +167 -0
- package/src/generated/kinobi/endpoint/instructions/registerOapp.ts +154 -0
- package/src/generated/kinobi/endpoint/instructions/send.ts +178 -0
- package/src/generated/kinobi/endpoint/instructions/sendCompose.ts +166 -0
- package/src/generated/kinobi/endpoint/instructions/setConfig.ts +154 -0
- package/src/generated/kinobi/endpoint/instructions/setDefaultReceiveLibrary.ts +160 -0
- package/src/generated/kinobi/endpoint/instructions/setDefaultReceiveLibraryTimeout.ts +163 -0
- package/src/generated/kinobi/endpoint/instructions/setDefaultSendLibrary.ts +156 -0
- package/src/generated/kinobi/endpoint/instructions/setDelegate.ts +130 -0
- package/src/generated/kinobi/endpoint/instructions/setLzToken.ts +138 -0
- package/src/generated/kinobi/endpoint/instructions/setReceiveLibrary.ts +163 -0
- package/src/generated/kinobi/endpoint/instructions/setReceiveLibraryTimeout.ts +164 -0
- package/src/generated/kinobi/endpoint/instructions/setSendLibrary.ts +158 -0
- package/src/generated/kinobi/endpoint/instructions/skip.ts +173 -0
- package/src/generated/kinobi/endpoint/instructions/transferAdmin.ts +137 -0
- package/src/generated/kinobi/endpoint/instructions/verify.ts +171 -0
- package/src/generated/kinobi/endpoint/instructions/withdrawRent.ts +139 -0
- package/src/generated/kinobi/endpoint/programs/endpoint.ts +52 -0
- package/src/generated/kinobi/endpoint/programs/index.ts +9 -0
- package/src/generated/kinobi/endpoint/shared/index.ts +117 -0
- package/src/generated/kinobi/endpoint/types/index.ts +12 -0
- package/src/generated/kinobi/endpoint/types/messageLibType.ts +26 -0
- package/src/generated/kinobi/endpoint/types/messagingFee.ts +29 -0
- package/src/generated/kinobi/endpoint/types/messagingReceipt.ts +41 -0
- package/src/generated/kinobi/endpoint/types/receiveLibraryTimeout.ts +35 -0
- package/src/generated/kinobi/executor/accounts/executorConfig.ts +208 -0
- package/src/generated/kinobi/executor/accounts/index.ts +10 -0
- package/src/generated/kinobi/executor/accounts/nonce.ts +151 -0
- package/src/generated/kinobi/executor/errors/executor.ts +279 -0
- package/src/generated/kinobi/executor/errors/index.ts +9 -0
- package/src/generated/kinobi/executor/events/index.ts +1 -0
- package/src/generated/kinobi/executor/events/nativeDropAppliedEvent.ts +62 -0
- package/src/generated/kinobi/executor/index.ts +14 -0
- package/src/generated/kinobi/executor/instructions/adminSetConfig.ts +130 -0
- package/src/generated/kinobi/executor/instructions/compose.ts +155 -0
- package/src/generated/kinobi/executor/instructions/executable.ts +134 -0
- package/src/generated/kinobi/executor/instructions/execute.ts +159 -0
- package/src/generated/kinobi/executor/instructions/index.ts +16 -0
- package/src/generated/kinobi/executor/instructions/initExecutor.ts +154 -0
- package/src/generated/kinobi/executor/instructions/nativeDrop.ts +174 -0
- package/src/generated/kinobi/executor/instructions/ownerSetConfig.ts +130 -0
- package/src/generated/kinobi/executor/instructions/quoteExecutor.ts +147 -0
- package/src/generated/kinobi/executor/programs/executor.ts +52 -0
- package/src/generated/kinobi/executor/programs/index.ts +9 -0
- package/src/generated/kinobi/executor/shared/index.ts +117 -0
- package/src/generated/kinobi/executor/types/acl.ts +29 -0
- package/src/generated/kinobi/executor/types/adminSetConfigParams.ts +92 -0
- package/src/generated/kinobi/executor/types/dstConfig.ts +49 -0
- package/src/generated/kinobi/executor/types/executionState.ts +27 -0
- package/src/generated/kinobi/executor/types/index.ts +17 -0
- package/src/generated/kinobi/executor/types/lzComposeParams.ts +45 -0
- package/src/generated/kinobi/executor/types/lzOption.ts +29 -0
- package/src/generated/kinobi/executor/types/lzReceiveParams.ts +50 -0
- package/src/generated/kinobi/executor/types/nativeDropRequest.ts +35 -0
- package/src/generated/kinobi/executor/types/ownerSetConfigParams.ts +129 -0
- package/src/generated/kinobi/pricefeed/accounts/index.ts +9 -0
- package/src/generated/kinobi/pricefeed/accounts/priceFeed.ts +175 -0
- package/src/generated/kinobi/pricefeed/errors/index.ts +9 -0
- package/src/generated/kinobi/pricefeed/errors/pricefeed.ts +94 -0
- package/src/generated/kinobi/pricefeed/index.ts +14 -0
- package/src/generated/kinobi/pricefeed/instructions/getFee.ts +120 -0
- package/src/generated/kinobi/pricefeed/instructions/index.ts +14 -0
- package/src/generated/kinobi/pricefeed/instructions/initPriceFeed.ts +148 -0
- package/src/generated/kinobi/pricefeed/instructions/setPrice.ts +134 -0
- package/src/generated/kinobi/pricefeed/instructions/setPriceFeed.ts +131 -0
- package/src/generated/kinobi/pricefeed/instructions/setSolPrice.ts +126 -0
- package/src/generated/kinobi/pricefeed/instructions/transferAdmin.ts +125 -0
- package/src/generated/kinobi/pricefeed/programs/index.ts +9 -0
- package/src/generated/kinobi/pricefeed/programs/pricefeed.ts +55 -0
- package/src/generated/kinobi/pricefeed/shared/index.ts +117 -0
- package/src/generated/kinobi/pricefeed/types/index.ts +11 -0
- package/src/generated/kinobi/pricefeed/types/modelType.ts +74 -0
- package/src/generated/kinobi/pricefeed/types/price.ts +47 -0
- package/src/generated/kinobi/pricefeed/types/priceParams.ts +47 -0
- package/src/generated/kinobi/simple_messagelib/accounts/index.ts +11 -0
- package/src/generated/kinobi/simple_messagelib/accounts/messageLib.ts +180 -0
- package/src/generated/kinobi/simple_messagelib/accounts/receiveConfigStore.ts +162 -0
- package/src/generated/kinobi/simple_messagelib/accounts/sendConfigStore.ts +154 -0
- package/src/generated/kinobi/simple_messagelib/errors/index.ts +9 -0
- package/src/generated/kinobi/simple_messagelib/errors/simpleMessagelib.ts +146 -0
- package/src/generated/kinobi/simple_messagelib/index.ts +14 -0
- package/src/generated/kinobi/simple_messagelib/instructions/index.ts +23 -0
- package/src/generated/kinobi/simple_messagelib/instructions/initConfig.ts +160 -0
- package/src/generated/kinobi/simple_messagelib/instructions/initDefaultConfig.ts +164 -0
- package/src/generated/kinobi/simple_messagelib/instructions/initMessageLib.ts +161 -0
- package/src/generated/kinobi/simple_messagelib/instructions/quote.ts +128 -0
- package/src/generated/kinobi/simple_messagelib/instructions/revertCall.ts +84 -0
- package/src/generated/kinobi/simple_messagelib/instructions/send.ts +155 -0
- package/src/generated/kinobi/simple_messagelib/instructions/sendWithLzToken.ts +202 -0
- package/src/generated/kinobi/simple_messagelib/instructions/setConfig.ts +145 -0
- package/src/generated/kinobi/simple_messagelib/instructions/setDefaultConfig.ts +164 -0
- package/src/generated/kinobi/simple_messagelib/instructions/setFee.ts +122 -0
- package/src/generated/kinobi/simple_messagelib/instructions/setWlCaller.ts +121 -0
- package/src/generated/kinobi/simple_messagelib/instructions/transferAdmin.ts +125 -0
- package/src/generated/kinobi/simple_messagelib/instructions/validatePacket.ts +129 -0
- package/src/generated/kinobi/simple_messagelib/instructions/version.ts +80 -0
- package/src/generated/kinobi/simple_messagelib/instructions/withdrawFees.ts +127 -0
- package/src/generated/kinobi/simple_messagelib/programs/index.ts +9 -0
- package/src/generated/kinobi/simple_messagelib/programs/simpleMessagelib.ts +55 -0
- package/src/generated/kinobi/simple_messagelib/shared/index.ts +117 -0
- package/src/generated/kinobi/simple_messagelib/types/index.ts +11 -0
- package/src/generated/kinobi/simple_messagelib/types/messagingFee.ts +29 -0
- package/src/generated/kinobi/simple_messagelib/types/packet.ts +52 -0
- package/src/generated/kinobi/simple_messagelib/types/version.ts +33 -0
- package/src/generated/kinobi/uln/accounts/confirmations.ts +160 -0
- package/src/generated/kinobi/uln/accounts/index.ts +12 -0
- package/src/generated/kinobi/uln/accounts/receiveConfig.ts +154 -0
- package/src/generated/kinobi/uln/accounts/sendConfig.ts +156 -0
- package/src/generated/kinobi/uln/accounts/ulnSettings.ts +169 -0
- package/src/generated/kinobi/uln/errors/index.ts +9 -0
- package/src/generated/kinobi/uln/errors/uln.ts +474 -0
- package/src/generated/kinobi/uln/events/adminTransferredEvent.ts +27 -0
- package/src/generated/kinobi/uln/events/configSetEvent.ts +38 -0
- package/src/generated/kinobi/uln/events/defaultConfigSetEvent.ts +52 -0
- package/src/generated/kinobi/uln/events/feesPaidEvent.ts +49 -0
- package/src/generated/kinobi/uln/events/index.ts +7 -0
- package/src/generated/kinobi/uln/events/payloadVerifiedEvent.ts +47 -0
- package/src/generated/kinobi/uln/events/rentWithdrawnEvent.ts +35 -0
- package/src/generated/kinobi/uln/events/treasurySetEvent.ts +29 -0
- package/src/generated/kinobi/uln/index.ts +14 -0
- package/src/generated/kinobi/uln/instructions/closeVerify.ts +127 -0
- package/src/generated/kinobi/uln/instructions/commitVerification.ts +134 -0
- package/src/generated/kinobi/uln/instructions/index.ts +24 -0
- package/src/generated/kinobi/uln/instructions/initConfig.ts +156 -0
- package/src/generated/kinobi/uln/instructions/initDefaultConfig.ts +179 -0
- package/src/generated/kinobi/uln/instructions/initUln.ts +143 -0
- package/src/generated/kinobi/uln/instructions/initVerify.ts +149 -0
- package/src/generated/kinobi/uln/instructions/quote.ts +136 -0
- package/src/generated/kinobi/uln/instructions/send.ts +181 -0
- package/src/generated/kinobi/uln/instructions/sendWithLzToken.ts +226 -0
- package/src/generated/kinobi/uln/instructions/setConfig.ts +165 -0
- package/src/generated/kinobi/uln/instructions/setDefaultConfig.ts +167 -0
- package/src/generated/kinobi/uln/instructions/setTreasury.ts +135 -0
- package/src/generated/kinobi/uln/instructions/transferAdmin.ts +133 -0
- package/src/generated/kinobi/uln/instructions/verify.ts +140 -0
- package/src/generated/kinobi/uln/instructions/version.ts +80 -0
- package/src/generated/kinobi/uln/instructions/withdrawRent.ts +135 -0
- package/src/generated/kinobi/uln/programs/index.ts +9 -0
- package/src/generated/kinobi/uln/programs/uln.ts +48 -0
- package/src/generated/kinobi/uln/shared/index.ts +117 -0
- package/src/generated/kinobi/uln/types/config.ts +88 -0
- package/src/generated/kinobi/uln/types/executorConfig.ts +32 -0
- package/src/generated/kinobi/uln/types/index.ts +18 -0
- package/src/generated/kinobi/uln/types/lzTokenTreasury.ts +32 -0
- package/src/generated/kinobi/uln/types/messagingFee.ts +29 -0
- package/src/generated/kinobi/uln/types/packet.ts +52 -0
- package/src/generated/kinobi/uln/types/treasury.ts +47 -0
- package/src/generated/kinobi/uln/types/treasuryFee.ts +42 -0
- package/src/generated/kinobi/uln/types/ulnConfig.ts +49 -0
- package/src/generated/kinobi/uln/types/version.ts +33 -0
- package/src/generated/kinobi/uln/types/workerFee.ts +29 -0
- package/src/generated/kinobi/worker_interface/errors/index.ts +9 -0
- package/src/generated/kinobi/worker_interface/errors/workerInterface.ts +68 -0
- package/src/generated/kinobi/worker_interface/index.ts +13 -0
- package/src/generated/kinobi/worker_interface/instructions/index.ts +10 -0
- package/src/generated/kinobi/worker_interface/instructions/quoteDvn.ts +150 -0
- package/src/generated/kinobi/worker_interface/instructions/quoteExecutor.ts +147 -0
- package/src/generated/kinobi/worker_interface/programs/index.ts +9 -0
- package/src/generated/kinobi/worker_interface/programs/workerInterface.ts +55 -0
- package/src/generated/kinobi/worker_interface/shared/index.ts +117 -0
- package/src/generated/kinobi/worker_interface/types/index.ts +9 -0
- package/src/generated/kinobi/worker_interface/types/lzOption.ts +29 -0
- package/src/index.ts +31 -47
- package/src/next_nonce.ts +107 -0
- package/src/pda.ts +328 -0
- package/src/pricefeed.ts +115 -168
- package/src/receive.ts +285 -0
- package/src/send-helper.ts +269 -188
- package/src/simple-message-lib.ts +254 -146
- package/src/{base-oapp.ts → solita/base-oapp.ts} +2 -3
- package/src/solita/config.ts +32 -0
- package/src/solita/deployment.ts +128 -0
- package/src/solita/dvn.ts +606 -0
- package/src/solita/endpoint.ts +1517 -0
- package/src/solita/executor.ts +577 -0
- package/src/solita/index.ts +100 -0
- package/src/solita/pricefeed.ts +208 -0
- package/src/{recevie.ts → solita/recevie.ts} +2 -3
- package/src/solita/send-helper.ts +503 -0
- package/src/solita/simple-message-lib.ts +302 -0
- package/src/solita/types.ts +222 -0
- package/src/solita/uln.ts +1045 -0
- package/src/solita/utility.ts +589 -0
- package/src/types.ts +59 -65
- package/src/uln.ts +495 -466
- package/src/utility.ts +226 -180
- /package/src/generated/{blocked_messagelib → solita/blocked_messagelib}/index.ts +0 -0
- /package/src/generated/{blocked_messagelib → solita/blocked_messagelib}/instructions/index.ts +0 -0
- /package/src/generated/{blocked_messagelib → solita/blocked_messagelib}/instructions/version.ts +0 -0
- /package/src/generated/{dvn → solita/dvn}/accounts/DvnConfig.ts +0 -0
- /package/src/generated/{dvn → solita/dvn}/accounts/ExecuteHash.ts +0 -0
- /package/src/generated/{dvn → solita/dvn}/accounts/ReceiveConfig.ts +0 -0
- /package/src/generated/{dvn → solita/dvn}/accounts/index.ts +0 -0
- /package/src/generated/{dvn → solita/dvn}/errors/index.ts +0 -0
- /package/src/generated/{dvn → solita/dvn}/events/AdminConfigSetEvent.ts +0 -0
- /package/src/generated/{dvn → solita/dvn}/events/FeeWithdrawnEvent.ts +0 -0
- /package/src/generated/{dvn → solita/dvn}/events/MultisigConfigSetEvent.ts +0 -0
- /package/src/generated/{dvn → solita/dvn}/events/index.ts +0 -0
- /package/src/generated/{dvn → solita/dvn}/index.ts +0 -0
- /package/src/generated/{dvn → solita/dvn}/instructions/closeExecute.ts +0 -0
- /package/src/generated/{dvn → solita/dvn}/instructions/index.ts +0 -0
- /package/src/generated/{dvn → solita/dvn}/instructions/initDvn.ts +0 -0
- /package/src/generated/{dvn → solita/dvn}/instructions/invoke.ts +0 -0
- /package/src/generated/{dvn → solita/dvn}/instructions/quoteDvn.ts +0 -0
- /package/src/generated/{dvn → solita/dvn}/instructions/setConfig.ts +0 -0
- /package/src/generated/{dvn → solita/dvn}/instructions/verifiable.ts +0 -0
- /package/src/generated/{dvn → solita/dvn}/instructions/withdrawFee.ts +0 -0
- /package/src/generated/{dvn → solita/dvn}/types/Acl.ts +0 -0
- /package/src/generated/{dvn → solita/dvn}/types/AdminConfig.ts +0 -0
- /package/src/generated/{dvn → solita/dvn}/types/CloseExecuteParams.ts +0 -0
- /package/src/generated/{dvn → solita/dvn}/types/DstConfig.ts +0 -0
- /package/src/generated/{dvn → solita/dvn}/types/ExecuteTransactionDigest.ts +0 -0
- /package/src/generated/{dvn → solita/dvn}/types/InitDvnParams.ts +0 -0
- /package/src/generated/{dvn → solita/dvn}/types/InvokeParams.ts +0 -0
- /package/src/generated/{dvn → solita/dvn}/types/LzOption.ts +0 -0
- /package/src/generated/{dvn → solita/dvn}/types/Multisig.ts +0 -0
- /package/src/generated/{dvn → solita/dvn}/types/MultisigConfig.ts +0 -0
- /package/src/generated/{dvn → solita/dvn}/types/QuoteDvnParams.ts +0 -0
- /package/src/generated/{dvn → solita/dvn}/types/SetConfigParams.ts +0 -0
- /package/src/generated/{dvn → solita/dvn}/types/TransactionAccount.ts +0 -0
- /package/src/generated/{dvn → solita/dvn}/types/UlnConfig.ts +0 -0
- /package/src/generated/{dvn → solita/dvn}/types/VerifiableParams.ts +0 -0
- /package/src/generated/{dvn → solita/dvn}/types/VerificationState.ts +0 -0
- /package/src/generated/{dvn → solita/dvn}/types/WithdrawFeeParams.ts +0 -0
- /package/src/generated/{dvn → solita/dvn}/types/index.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/accounts/ComposeMessageState.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/accounts/EndpointSettings.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/accounts/MessageLibInfo.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/accounts/Nonce.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/accounts/OAppRegistry.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/accounts/PayloadHash.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/accounts/PendingInboundNonce.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/accounts/ReceiveLibraryConfig.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/accounts/SendLibraryConfig.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/accounts/index.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/errors/index.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/events/AdminTransferredEvent.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/events/ComposeDeliveredEvent.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/events/ComposeSentEvent.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/events/DefaultReceiveLibrarySetEvent.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/events/DefaultReceiveLibraryTimeoutSetEvent.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/events/DefaultSendLibrarySetEvent.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/events/DelegateSetEvent.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/events/InboundNonceSkippedEvent.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/events/LibraryRegisteredEvent.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/events/LzComposeAlertEvent.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/events/LzReceiveAlertEvent.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/events/LzTokenSetEvent.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/events/OAppRegisteredEvent.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/events/PacketBurntEvent.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/events/PacketDeliveredEvent.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/events/PacketNilifiedEvent.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/events/PacketSentEvent.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/events/PacketVerifiedEvent.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/events/ReceiveLibrarySetEvent.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/events/ReceiveLibraryTimeoutSetEvent.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/events/RentWithdrawnEvent.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/events/SendLibrarySetEvent.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/events/index.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/index.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/instructions/burn.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/instructions/clear.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/instructions/clearCompose.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/instructions/index.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/instructions/initConfig.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/instructions/initDefaultReceiveLibrary.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/instructions/initDefaultSendLibrary.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/instructions/initEndpoint.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/instructions/initNonce.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/instructions/initReceiveLibrary.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/instructions/initSendLibrary.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/instructions/initVerify.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/instructions/lzComposeAlert.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/instructions/lzReceiveAlert.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/instructions/nilify.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/instructions/quote.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/instructions/registerLibrary.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/instructions/registerOapp.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/instructions/send.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/instructions/sendCompose.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/instructions/setConfig.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/instructions/setDefaultReceiveLibrary.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/instructions/setDefaultReceiveLibraryTimeout.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/instructions/setDefaultSendLibrary.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/instructions/setDelegate.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/instructions/setLzToken.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/instructions/setReceiveLibrary.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/instructions/setReceiveLibraryTimeout.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/instructions/setSendLibrary.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/instructions/skip.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/instructions/transferAdmin.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/instructions/verify.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/instructions/withdrawRent.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/types/BurnParams.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/types/ClearComposeParams.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/types/ClearParams.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/types/InitConfigParams.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/types/InitDefaultReceiveLibraryParams.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/types/InitDefaultSendLibraryParams.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/types/InitEndpointParams.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/types/InitNonceParams.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/types/InitReceiveLibraryParams.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/types/InitSendLibraryParams.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/types/InitVerifyParams.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/types/LzComposeAlertParams.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/types/LzReceiveAlertParams.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/types/MessageLibType.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/types/MessagingFee.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/types/MessagingReceipt.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/types/NilifyParams.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/types/QuoteParams.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/types/ReceiveLibraryTimeout.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/types/RegisterLibraryParams.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/types/RegisterOAppParams.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/types/SendComposeParams.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/types/SendParams.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/types/SetConfigParams.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/types/SetDefaultReceiveLibraryParams.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/types/SetDefaultReceiveLibraryTimeoutParams.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/types/SetDefaultSendLibraryParams.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/types/SetDelegateParams.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/types/SetLzTokenParams.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/types/SetReceiveLibraryParams.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/types/SetReceiveLibraryTimeoutParams.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/types/SetSendLibraryParams.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/types/SkipParams.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/types/TransferAdminParams.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/types/VerifyParams.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/types/WithdrawRentParams.ts +0 -0
- /package/src/generated/{endpoint → solita/endpoint}/types/index.ts +0 -0
- /package/src/generated/{executor → solita/executor}/accounts/ExecutorConfig.ts +0 -0
- /package/src/generated/{executor → solita/executor}/accounts/Nonce.ts +0 -0
- /package/src/generated/{executor → solita/executor}/accounts/index.ts +0 -0
- /package/src/generated/{executor → solita/executor}/errors/index.ts +0 -0
- /package/src/generated/{executor → solita/executor}/events/NativeDropAppliedEvent.ts +0 -0
- /package/src/generated/{executor → solita/executor}/events/index.ts +0 -0
- /package/src/generated/{executor → solita/executor}/index.ts +0 -0
- /package/src/generated/{executor → solita/executor}/instructions/adminSetConfig.ts +0 -0
- /package/src/generated/{executor → solita/executor}/instructions/compose.ts +0 -0
- /package/src/generated/{executor → solita/executor}/instructions/executable.ts +0 -0
- /package/src/generated/{executor → solita/executor}/instructions/execute.ts +0 -0
- /package/src/generated/{executor → solita/executor}/instructions/index.ts +0 -0
- /package/src/generated/{executor → solita/executor}/instructions/initExecutor.ts +0 -0
- /package/src/generated/{executor → solita/executor}/instructions/nativeDrop.ts +0 -0
- /package/src/generated/{executor → solita/executor}/instructions/ownerSetConfig.ts +0 -0
- /package/src/generated/{executor → solita/executor}/instructions/quoteExecutor.ts +0 -0
- /package/src/generated/{executor → solita/executor}/types/Acl.ts +0 -0
- /package/src/generated/{executor → solita/executor}/types/AdminSetConfigParams.ts +0 -0
- /package/src/generated/{executor → solita/executor}/types/ComposeParams.ts +0 -0
- /package/src/generated/{executor → solita/executor}/types/DstConfig.ts +0 -0
- /package/src/generated/{executor → solita/executor}/types/ExecutableParams.ts +0 -0
- /package/src/generated/{executor → solita/executor}/types/ExecuteParams.ts +0 -0
- /package/src/generated/{executor → solita/executor}/types/ExecutionState.ts +0 -0
- /package/src/generated/{executor → solita/executor}/types/InitExecutorParams.ts +0 -0
- /package/src/generated/{executor → solita/executor}/types/LzComposeParams.ts +0 -0
- /package/src/generated/{executor → solita/executor}/types/LzOption.ts +0 -0
- /package/src/generated/{executor → solita/executor}/types/LzReceiveParams.ts +0 -0
- /package/src/generated/{executor → solita/executor}/types/NativeDropParams.ts +0 -0
- /package/src/generated/{executor → solita/executor}/types/NativeDropRequest.ts +0 -0
- /package/src/generated/{executor → solita/executor}/types/OwnerSetConfigParams.ts +0 -0
- /package/src/generated/{executor → solita/executor}/types/QuoteExecutorParams.ts +0 -0
- /package/src/generated/{executor → solita/executor}/types/index.ts +0 -0
- /package/src/generated/{pricefeed → solita/pricefeed}/accounts/PriceFeed.ts +0 -0
- /package/src/generated/{pricefeed → solita/pricefeed}/accounts/index.ts +0 -0
- /package/src/generated/{pricefeed → solita/pricefeed}/errors/index.ts +0 -0
- /package/src/generated/{pricefeed → solita/pricefeed}/index.ts +0 -0
- /package/src/generated/{pricefeed → solita/pricefeed}/instructions/getFee.ts +0 -0
- /package/src/generated/{pricefeed → solita/pricefeed}/instructions/index.ts +0 -0
- /package/src/generated/{pricefeed → solita/pricefeed}/instructions/initPriceFeed.ts +0 -0
- /package/src/generated/{pricefeed → solita/pricefeed}/instructions/setPrice.ts +0 -0
- /package/src/generated/{pricefeed → solita/pricefeed}/instructions/setPriceFeed.ts +0 -0
- /package/src/generated/{pricefeed → solita/pricefeed}/instructions/setSolPrice.ts +0 -0
- /package/src/generated/{pricefeed → solita/pricefeed}/instructions/transferAdmin.ts +0 -0
- /package/src/generated/{pricefeed → solita/pricefeed}/types/GetFeeParams.ts +0 -0
- /package/src/generated/{pricefeed → solita/pricefeed}/types/InitPriceFeedParams.ts +0 -0
- /package/src/generated/{pricefeed → solita/pricefeed}/types/ModelType.ts +0 -0
- /package/src/generated/{pricefeed → solita/pricefeed}/types/Price.ts +0 -0
- /package/src/generated/{pricefeed → solita/pricefeed}/types/PriceParams.ts +0 -0
- /package/src/generated/{pricefeed → solita/pricefeed}/types/SetPriceFeedParams.ts +0 -0
- /package/src/generated/{pricefeed → solita/pricefeed}/types/SetPriceParams.ts +0 -0
- /package/src/generated/{pricefeed → solita/pricefeed}/types/SetSolPriceParams.ts +0 -0
- /package/src/generated/{pricefeed → solita/pricefeed}/types/TransferAdminParams.ts +0 -0
- /package/src/generated/{pricefeed → solita/pricefeed}/types/index.ts +0 -0
- /package/src/generated/{simple_messagelib → solita/simple_messagelib}/accounts/MessageLib.ts +0 -0
- /package/src/generated/{simple_messagelib → solita/simple_messagelib}/accounts/ReceiveConfigStore.ts +0 -0
- /package/src/generated/{simple_messagelib → solita/simple_messagelib}/accounts/SendConfigStore.ts +0 -0
- /package/src/generated/{simple_messagelib → solita/simple_messagelib}/accounts/index.ts +0 -0
- /package/src/generated/{simple_messagelib → solita/simple_messagelib}/errors/index.ts +0 -0
- /package/src/generated/{simple_messagelib → solita/simple_messagelib}/index.ts +0 -0
- /package/src/generated/{simple_messagelib → solita/simple_messagelib}/instructions/index.ts +0 -0
- /package/src/generated/{simple_messagelib → solita/simple_messagelib}/instructions/initConfig.ts +0 -0
- /package/src/generated/{simple_messagelib → solita/simple_messagelib}/instructions/initDefaultConfig.ts +0 -0
- /package/src/generated/{simple_messagelib → solita/simple_messagelib}/instructions/initMessageLib.ts +0 -0
- /package/src/generated/{simple_messagelib → solita/simple_messagelib}/instructions/quote.ts +0 -0
- /package/src/generated/{simple_messagelib → solita/simple_messagelib}/instructions/revertCall.ts +0 -0
- /package/src/generated/{simple_messagelib → solita/simple_messagelib}/instructions/send.ts +0 -0
- /package/src/generated/{simple_messagelib → solita/simple_messagelib}/instructions/sendWithLzToken.ts +0 -0
- /package/src/generated/{simple_messagelib → solita/simple_messagelib}/instructions/setConfig.ts +0 -0
- /package/src/generated/{simple_messagelib → solita/simple_messagelib}/instructions/setDefaultConfig.ts +0 -0
- /package/src/generated/{simple_messagelib → solita/simple_messagelib}/instructions/setFee.ts +0 -0
- /package/src/generated/{simple_messagelib → solita/simple_messagelib}/instructions/setWlCaller.ts +0 -0
- /package/src/generated/{simple_messagelib → solita/simple_messagelib}/instructions/transferAdmin.ts +0 -0
- /package/src/generated/{simple_messagelib → solita/simple_messagelib}/instructions/validatePacket.ts +0 -0
- /package/src/generated/{simple_messagelib → solita/simple_messagelib}/instructions/version.ts +0 -0
- /package/src/generated/{simple_messagelib → solita/simple_messagelib}/instructions/withdrawFees.ts +0 -0
- /package/src/generated/{simple_messagelib → solita/simple_messagelib}/types/InitConfigParams.ts +0 -0
- /package/src/generated/{simple_messagelib → solita/simple_messagelib}/types/InitDefaultConfigParams.ts +0 -0
- /package/src/generated/{simple_messagelib → solita/simple_messagelib}/types/InitMessageLibParams.ts +0 -0
- /package/src/generated/{simple_messagelib → solita/simple_messagelib}/types/MessagingFee.ts +0 -0
- /package/src/generated/{simple_messagelib → solita/simple_messagelib}/types/Packet.ts +0 -0
- /package/src/generated/{simple_messagelib → solita/simple_messagelib}/types/QuoteParams.ts +0 -0
- /package/src/generated/{simple_messagelib → solita/simple_messagelib}/types/SendParams.ts +0 -0
- /package/src/generated/{simple_messagelib → solita/simple_messagelib}/types/SendWithLzTokenParams.ts +0 -0
- /package/src/generated/{simple_messagelib → solita/simple_messagelib}/types/SetConfigParams.ts +0 -0
- /package/src/generated/{simple_messagelib → solita/simple_messagelib}/types/SetDefaultConfigParams.ts +0 -0
- /package/src/generated/{simple_messagelib → solita/simple_messagelib}/types/SetFeeParams.ts +0 -0
- /package/src/generated/{simple_messagelib → solita/simple_messagelib}/types/SetWlCallerParams.ts +0 -0
- /package/src/generated/{simple_messagelib → solita/simple_messagelib}/types/TransferAdminParams.ts +0 -0
- /package/src/generated/{simple_messagelib → solita/simple_messagelib}/types/ValidatePacketParams.ts +0 -0
- /package/src/generated/{simple_messagelib → solita/simple_messagelib}/types/Version.ts +0 -0
- /package/src/generated/{simple_messagelib → solita/simple_messagelib}/types/WithdrawFeesParams.ts +0 -0
- /package/src/generated/{simple_messagelib → solita/simple_messagelib}/types/index.ts +0 -0
- /package/src/generated/{uln → solita/uln}/accounts/Confirmations.ts +0 -0
- /package/src/generated/{uln → solita/uln}/accounts/ReceiveConfig.ts +0 -0
- /package/src/generated/{uln → solita/uln}/accounts/SendConfig.ts +0 -0
- /package/src/generated/{uln → solita/uln}/accounts/UlnSettings.ts +0 -0
- /package/src/generated/{uln → solita/uln}/accounts/index.ts +0 -0
- /package/src/generated/{uln → solita/uln}/errors/index.ts +0 -0
- /package/src/generated/{uln → solita/uln}/events/AdminTransferredEvent.ts +0 -0
- /package/src/generated/{uln → solita/uln}/events/ConfigSetEvent.ts +0 -0
- /package/src/generated/{uln → solita/uln}/events/DefaultConfigSetEvent.ts +0 -0
- /package/src/generated/{uln → solita/uln}/events/FeesPaidEvent.ts +0 -0
- /package/src/generated/{uln → solita/uln}/events/LzTokenSetEvent.ts +0 -0
- /package/src/generated/{uln → solita/uln}/events/PayloadVerifiedEvent.ts +0 -0
- /package/src/generated/{uln → solita/uln}/events/RentWithdrawnEvent.ts +0 -0
- /package/src/generated/{uln → solita/uln}/events/TreasuryFeeCapSetEvent.ts +0 -0
- /package/src/generated/{uln → solita/uln}/events/TreasurySetEvent.ts +0 -0
- /package/src/generated/{uln → solita/uln}/events/index.ts +0 -0
- /package/src/generated/{uln → solita/uln}/index.ts +0 -0
- /package/src/generated/{uln → solita/uln}/instructions/closeVerify.ts +0 -0
- /package/src/generated/{uln → solita/uln}/instructions/commitVerification.ts +0 -0
- /package/src/generated/{uln → solita/uln}/instructions/index.ts +0 -0
- /package/src/generated/{uln → solita/uln}/instructions/initConfig.ts +0 -0
- /package/src/generated/{uln → solita/uln}/instructions/initDefaultConfig.ts +0 -0
- /package/src/generated/{uln → solita/uln}/instructions/initUln.ts +0 -0
- /package/src/generated/{uln → solita/uln}/instructions/initVerify.ts +0 -0
- /package/src/generated/{uln → solita/uln}/instructions/quote.ts +0 -0
- /package/src/generated/{uln → solita/uln}/instructions/send.ts +0 -0
- /package/src/generated/{uln → solita/uln}/instructions/sendWithLzToken.ts +0 -0
- /package/src/generated/{uln → solita/uln}/instructions/setConfig.ts +0 -0
- /package/src/generated/{uln → solita/uln}/instructions/setDefaultConfig.ts +0 -0
- /package/src/generated/{uln → solita/uln}/instructions/setTreasury.ts +0 -0
- /package/src/generated/{uln → solita/uln}/instructions/transferAdmin.ts +0 -0
- /package/src/generated/{uln → solita/uln}/instructions/verify.ts +0 -0
- /package/src/generated/{uln → solita/uln}/instructions/version.ts +0 -0
- /package/src/generated/{uln → solita/uln}/instructions/withdrawRent.ts +0 -0
- /package/src/generated/{uln → solita/uln}/types/CloseVerifyParams.ts +0 -0
- /package/src/generated/{uln → solita/uln}/types/CommitVerificationParams.ts +0 -0
- /package/src/generated/{uln → solita/uln}/types/Config.ts +0 -0
- /package/src/generated/{uln → solita/uln}/types/ExecutorConfig.ts +0 -0
- /package/src/generated/{uln → solita/uln}/types/InitConfigParams.ts +0 -0
- /package/src/generated/{uln → solita/uln}/types/InitDefaultConfigParams.ts +0 -0
- /package/src/generated/{uln → solita/uln}/types/InitUlnParams.ts +0 -0
- /package/src/generated/{uln → solita/uln}/types/InitVerifyParams.ts +0 -0
- /package/src/generated/{uln → solita/uln}/types/LzTokenTreasury.ts +0 -0
- /package/src/generated/{uln → solita/uln}/types/MessagingFee.ts +0 -0
- /package/src/generated/{uln → solita/uln}/types/Packet.ts +0 -0
- /package/src/generated/{uln → solita/uln}/types/QuoteParams.ts +0 -0
- /package/src/generated/{uln → solita/uln}/types/SendParams.ts +0 -0
- /package/src/generated/{uln → solita/uln}/types/SendWithLzTokenParams.ts +0 -0
- /package/src/generated/{uln → solita/uln}/types/SetConfigParams.ts +0 -0
- /package/src/generated/{uln → solita/uln}/types/SetDefaultConfigParams.ts +0 -0
- /package/src/generated/{uln → solita/uln}/types/SetTreasuryParams.ts +0 -0
- /package/src/generated/{uln → solita/uln}/types/TransferAdminParams.ts +0 -0
- /package/src/generated/{uln → solita/uln}/types/Treasury.ts +0 -0
- /package/src/generated/{uln → solita/uln}/types/TreasuryFee.ts +0 -0
- /package/src/generated/{uln → solita/uln}/types/UlnConfig.ts +0 -0
- /package/src/generated/{uln → solita/uln}/types/VerifyParams.ts +0 -0
- /package/src/generated/{uln → solita/uln}/types/Version.ts +0 -0
- /package/src/generated/{uln → solita/uln}/types/WithdrawRentParams.ts +0 -0
- /package/src/generated/{uln → solita/uln}/types/WorkerFee.ts +0 -0
- /package/src/generated/{uln → solita/uln}/types/index.ts +0 -0
- /package/src/generated/{worker_interface → solita/worker_interface}/errors/index.ts +0 -0
- /package/src/generated/{worker_interface → solita/worker_interface}/index.ts +0 -0
- /package/src/generated/{worker_interface → solita/worker_interface}/instructions/index.ts +0 -0
- /package/src/generated/{worker_interface → solita/worker_interface}/instructions/quoteDvn.ts +0 -0
- /package/src/generated/{worker_interface → solita/worker_interface}/instructions/quoteExecutor.ts +0 -0
- /package/src/generated/{worker_interface → solita/worker_interface}/types/LzOption.ts +0 -0
- /package/src/generated/{worker_interface → solita/worker_interface}/types/QuoteDvnParams.ts +0 -0
- /package/src/generated/{worker_interface → solita/worker_interface}/types/QuoteExecutorParams.ts +0 -0
- /package/src/generated/{worker_interface → solita/worker_interface}/types/index.ts +0 -0
- /package/src/{pda-deriver.ts → solita/pda-deriver.ts} +0 -0
package/src/utility.ts
CHANGED
|
@@ -1,30 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
AddressLookupTableProgram,
|
|
6
|
-
Blockhash,
|
|
7
|
-
CloseLookupTableParams,
|
|
8
|
-
Commitment,
|
|
9
|
-
Connection,
|
|
10
|
-
DeactivateLookupTableParams,
|
|
11
|
-
Finality,
|
|
12
|
-
GetAccountInfoConfig,
|
|
13
|
-
GetVersionedTransactionConfig,
|
|
14
|
-
Keypair,
|
|
15
|
-
MessageV0,
|
|
16
|
-
NONCE_ACCOUNT_LENGTH,
|
|
17
|
-
NonceAccount,
|
|
18
|
-
PartiallyDecodedInstruction,
|
|
19
|
-
PublicKey,
|
|
20
|
-
SystemProgram,
|
|
21
|
-
Transaction,
|
|
22
|
-
TransactionInstruction,
|
|
23
|
-
TransactionMessage,
|
|
24
|
-
TransactionSignature,
|
|
25
|
-
VersionedTransaction,
|
|
26
|
-
} from '@solana/web3.js'
|
|
27
|
-
import base58 from 'bs58'
|
|
1
|
+
import { Instruction, PublicKey, RpcInterface, WrappedInstruction, isPublicKey } from '@metaplex-foundation/umi'
|
|
2
|
+
import { Serializer, base58 } from '@metaplex-foundation/umi/serializers'
|
|
3
|
+
import { toWeb3JsInstruction, toWeb3JsPublicKey } from '@metaplex-foundation/umi-web3js-adapters'
|
|
4
|
+
import * as web3 from '@solana/web3.js'
|
|
28
5
|
|
|
29
6
|
import { sha2_256 } from '@layerzerolabs/lz-foundation'
|
|
30
7
|
|
|
@@ -35,13 +12,13 @@ import {
|
|
|
35
12
|
PacketDeliveredEvent,
|
|
36
13
|
PacketSentEvent,
|
|
37
14
|
PacketVerifiedEvent,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
} from './generated/endpoint/events'
|
|
44
|
-
import { FeesPaidEvent,
|
|
15
|
+
getComposeDeliveredEventSerializer,
|
|
16
|
+
getComposeSentEventSerializer,
|
|
17
|
+
getPacketDeliveredEventSerializer,
|
|
18
|
+
getPacketSentEventSerializer,
|
|
19
|
+
getPacketVerifiedEventSerializer,
|
|
20
|
+
} from './generated/kinobi/endpoint/events'
|
|
21
|
+
import { FeesPaidEvent, getFeesPaidEventSerializer } from './generated/kinobi/uln/events'
|
|
45
22
|
|
|
46
23
|
/**
|
|
47
24
|
* Gets the event discriminator for a given event.
|
|
@@ -50,38 +27,37 @@ import { FeesPaidEvent, feesPaidEventBeet } from './generated/uln/events'
|
|
|
50
27
|
* @returns {string} The event discriminator.
|
|
51
28
|
*/
|
|
52
29
|
function getEventDiscriminator(event: string): string {
|
|
53
|
-
const hash = crypto.createHash('sha256')
|
|
54
30
|
/*
|
|
55
31
|
https://book.anchor-lang.com/anchor_bts/discriminator.html
|
|
56
32
|
sha256(namespace:eventName) namespace of cpi event is 'event'
|
|
57
33
|
*/
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
34
|
+
return Buffer.from(sha2_256(`event:${event}`))
|
|
35
|
+
.subarray(0, 8)
|
|
36
|
+
.toString('hex')
|
|
61
37
|
}
|
|
62
38
|
|
|
63
39
|
/**
|
|
64
40
|
* Extracts the sent packet event by transaction hash.
|
|
65
41
|
*
|
|
66
|
-
* @param {Connection} connection - The connection to the Solana cluster.
|
|
67
|
-
* @param {PublicKey} program - The program public key.
|
|
68
|
-
* @param {TransactionSignature |
|
|
69
|
-
* @param {Finality | GetVersionedTransactionConfig} [commitment] - The commitment level.
|
|
42
|
+
* @param {web3.Connection | RpcInterface} connection - The connection to the Solana cluster.
|
|
43
|
+
* @param {PublicKey | web3.PublicKey} program - The program public key.
|
|
44
|
+
* @param {web3.TransactionSignature | web3.ParsedTransactionWithMeta | null} signature - The transaction signature or parsed transaction.
|
|
45
|
+
* @param {web3.Finality | web3.GetVersionedTransactionConfig} [commitment] - The commitment level.
|
|
70
46
|
* @param {boolean} [unsafeParseErr=false] - Whether to parse the event even if the transaction failed.
|
|
71
47
|
* @returns {Promise<PacketSentEvent[] | null>} A promise that resolves to an array of sent packet events or null if not found.
|
|
72
48
|
*/
|
|
73
|
-
export async function
|
|
74
|
-
connection: Connection,
|
|
75
|
-
program: PublicKey,
|
|
76
|
-
signature: TransactionSignature |
|
|
77
|
-
commitment?: Finality | GetVersionedTransactionConfig,
|
|
49
|
+
export async function extractPacketSentEventByTxHash(
|
|
50
|
+
connection: web3.Connection | RpcInterface,
|
|
51
|
+
program: PublicKey | web3.PublicKey,
|
|
52
|
+
signature: web3.TransactionSignature | web3.ParsedTransactionWithMeta | null,
|
|
53
|
+
commitment?: web3.Finality | web3.GetVersionedTransactionConfig,
|
|
78
54
|
unsafeParseErr = false
|
|
79
55
|
): Promise<PacketSentEvent[] | null> {
|
|
80
|
-
const events = await extractEventFromTransactionSignature
|
|
56
|
+
const events = await extractEventFromTransactionSignature(
|
|
81
57
|
connection,
|
|
82
58
|
program,
|
|
83
59
|
signature,
|
|
84
|
-
|
|
60
|
+
getPacketSentEventSerializer(),
|
|
85
61
|
commitment,
|
|
86
62
|
unsafeParseErr
|
|
87
63
|
)
|
|
@@ -100,17 +76,17 @@ export async function extractSentPacketEventByTxHash(
|
|
|
100
76
|
* @returns {Promise<PacketVerifiedEvent[] | null>} A promise that resolves to an array of verified packet events or null if not found.
|
|
101
77
|
*/
|
|
102
78
|
export async function extractVerifiedPacketEventByTxHash(
|
|
103
|
-
connection: Connection,
|
|
104
|
-
program: PublicKey,
|
|
105
|
-
signature: TransactionSignature |
|
|
106
|
-
commitment?: Finality | GetVersionedTransactionConfig,
|
|
79
|
+
connection: web3.Connection | RpcInterface,
|
|
80
|
+
program: PublicKey | web3.PublicKey,
|
|
81
|
+
signature: web3.TransactionSignature | web3.ParsedTransactionWithMeta | null,
|
|
82
|
+
commitment?: web3.Finality | web3.GetVersionedTransactionConfig,
|
|
107
83
|
unsafeParseErr = false
|
|
108
84
|
): Promise<PacketVerifiedEvent[] | null> {
|
|
109
|
-
const events = await extractEventFromTransactionSignature
|
|
85
|
+
const events = await extractEventFromTransactionSignature(
|
|
110
86
|
connection,
|
|
111
87
|
program,
|
|
112
88
|
signature,
|
|
113
|
-
|
|
89
|
+
getPacketVerifiedEventSerializer(),
|
|
114
90
|
commitment,
|
|
115
91
|
unsafeParseErr
|
|
116
92
|
)
|
|
@@ -129,17 +105,17 @@ export async function extractVerifiedPacketEventByTxHash(
|
|
|
129
105
|
* @returns {Promise<PacketDeliveredEvent[] | null>} A promise that resolves to an array of received packet events or null if not found.
|
|
130
106
|
*/
|
|
131
107
|
export async function extractReceivedPacketEventByTxHash(
|
|
132
|
-
connection: Connection,
|
|
133
|
-
program: PublicKey,
|
|
134
|
-
signature: TransactionSignature |
|
|
135
|
-
commitment?: Finality | GetVersionedTransactionConfig,
|
|
108
|
+
connection: web3.Connection | RpcInterface,
|
|
109
|
+
program: PublicKey | web3.PublicKey,
|
|
110
|
+
signature: web3.TransactionSignature | web3.ParsedTransactionWithMeta | null,
|
|
111
|
+
commitment?: web3.Finality | web3.GetVersionedTransactionConfig,
|
|
136
112
|
unsafeParseErr = false
|
|
137
113
|
): Promise<PacketDeliveredEvent[] | null> {
|
|
138
|
-
const events = await extractEventFromTransactionSignature
|
|
114
|
+
const events = await extractEventFromTransactionSignature(
|
|
139
115
|
connection,
|
|
140
116
|
program,
|
|
141
117
|
signature,
|
|
142
|
-
|
|
118
|
+
getPacketDeliveredEventSerializer(),
|
|
143
119
|
commitment,
|
|
144
120
|
unsafeParseErr
|
|
145
121
|
)
|
|
@@ -158,17 +134,17 @@ export async function extractReceivedPacketEventByTxHash(
|
|
|
158
134
|
* @returns {Promise<ComposeSentEvent[] | null>} A promise that resolves to an array of compose sent events or null if not found.
|
|
159
135
|
*/
|
|
160
136
|
export async function extractComposeSentEventByTxHash(
|
|
161
|
-
connection: Connection,
|
|
162
|
-
program: PublicKey,
|
|
163
|
-
signature: TransactionSignature |
|
|
164
|
-
commitment?: Finality | GetVersionedTransactionConfig,
|
|
137
|
+
connection: web3.Connection | RpcInterface,
|
|
138
|
+
program: PublicKey | web3.PublicKey,
|
|
139
|
+
signature: web3.TransactionSignature | web3.ParsedTransactionWithMeta | null,
|
|
140
|
+
commitment?: web3.Finality | web3.GetVersionedTransactionConfig,
|
|
165
141
|
unsafeParseErr = false
|
|
166
142
|
): Promise<ComposeSentEvent[] | null> {
|
|
167
|
-
const events = await extractEventFromTransactionSignature
|
|
143
|
+
const events = await extractEventFromTransactionSignature(
|
|
168
144
|
connection,
|
|
169
145
|
program,
|
|
170
146
|
signature,
|
|
171
|
-
|
|
147
|
+
getComposeSentEventSerializer(),
|
|
172
148
|
commitment,
|
|
173
149
|
unsafeParseErr
|
|
174
150
|
)
|
|
@@ -187,17 +163,17 @@ export async function extractComposeSentEventByTxHash(
|
|
|
187
163
|
* @returns {Promise<ComposeDeliveredEvent[] | null>} A promise that resolves to an array of compose delivered events or null if not found.
|
|
188
164
|
*/
|
|
189
165
|
export async function extractComposeDeliveredEventByTxHash(
|
|
190
|
-
connection: Connection,
|
|
191
|
-
program: PublicKey,
|
|
192
|
-
signature: TransactionSignature |
|
|
193
|
-
commitment?: Finality | GetVersionedTransactionConfig,
|
|
166
|
+
connection: web3.Connection | RpcInterface,
|
|
167
|
+
program: PublicKey | web3.PublicKey,
|
|
168
|
+
signature: web3.TransactionSignature | web3.ParsedTransactionWithMeta | null,
|
|
169
|
+
commitment?: web3.Finality | web3.GetVersionedTransactionConfig,
|
|
194
170
|
unsafeParseErr = false
|
|
195
171
|
): Promise<ComposeDeliveredEvent[] | null> {
|
|
196
|
-
const events = await extractEventFromTransactionSignature
|
|
172
|
+
const events = await extractEventFromTransactionSignature(
|
|
197
173
|
connection,
|
|
198
174
|
program,
|
|
199
175
|
signature,
|
|
200
|
-
|
|
176
|
+
getComposeDeliveredEventSerializer(),
|
|
201
177
|
commitment,
|
|
202
178
|
unsafeParseErr
|
|
203
179
|
)
|
|
@@ -216,17 +192,17 @@ export async function extractComposeDeliveredEventByTxHash(
|
|
|
216
192
|
* @returns {Promise<FeesPaidEvent[] | null>} A promise that resolves to an array of worker fee paid events or null if not found.
|
|
217
193
|
*/
|
|
218
194
|
export async function extractWorkerFeePaidEventByTxHash(
|
|
219
|
-
connection: Connection,
|
|
220
|
-
program: PublicKey,
|
|
221
|
-
signature: TransactionSignature |
|
|
222
|
-
commitment?: Finality | GetVersionedTransactionConfig,
|
|
195
|
+
connection: web3.Connection | RpcInterface,
|
|
196
|
+
program: PublicKey | web3.PublicKey,
|
|
197
|
+
signature: web3.TransactionSignature | web3.ParsedTransactionWithMeta | null,
|
|
198
|
+
commitment?: web3.Finality | web3.GetVersionedTransactionConfig,
|
|
223
199
|
unsafeParseErr = false
|
|
224
200
|
): Promise<FeesPaidEvent[] | null> {
|
|
225
|
-
const events = await extractEventFromTransactionSignature
|
|
201
|
+
const events = await extractEventFromTransactionSignature(
|
|
226
202
|
connection,
|
|
227
203
|
program,
|
|
228
204
|
signature,
|
|
229
|
-
|
|
205
|
+
getFeesPaidEventSerializer(),
|
|
230
206
|
commitment,
|
|
231
207
|
unsafeParseErr
|
|
232
208
|
)
|
|
@@ -245,17 +221,34 @@ export async function extractWorkerFeePaidEventByTxHash(
|
|
|
245
221
|
* @param {boolean} [unsafeParseErr=false] - Whether to parse the event even if the transaction failed. Default is false, only parse event if transaction succeeded. if true, will parse event even if transaction failed. Please set this to false if you want to ignore failed transaction and set `true` with caution as it may lead to unexpected behavior.
|
|
246
222
|
* @returns {Promise<E[] | null>} A promise that resolves to an array of events or null if not found.
|
|
247
223
|
*/
|
|
248
|
-
export async function extractEventFromTransactionSignature<
|
|
249
|
-
connection: Connection,
|
|
250
|
-
|
|
251
|
-
signature: TransactionSignature |
|
|
252
|
-
|
|
253
|
-
commitment?: Finality | GetVersionedTransactionConfig,
|
|
224
|
+
export async function extractEventFromTransactionSignature<From, To extends From = From>(
|
|
225
|
+
connection: web3.Connection | RpcInterface,
|
|
226
|
+
_program: PublicKey | web3.PublicKey,
|
|
227
|
+
signature: web3.TransactionSignature | web3.ParsedTransactionWithMeta | null,
|
|
228
|
+
serializer: Serializer<From, To>,
|
|
229
|
+
commitment?: web3.Finality | web3.GetVersionedTransactionConfig,
|
|
254
230
|
unsafeParseErr = false
|
|
255
|
-
): Promise<
|
|
256
|
-
|
|
231
|
+
): Promise<To[] | null> {
|
|
232
|
+
let program: web3.PublicKey
|
|
233
|
+
if (typeof _program === 'string' && isPublicKey(_program)) {
|
|
234
|
+
program = toWeb3JsPublicKey(_program)
|
|
235
|
+
} else {
|
|
236
|
+
program = _program
|
|
237
|
+
}
|
|
238
|
+
let tx: web3.ParsedTransactionWithMeta | null
|
|
239
|
+
if (typeof signature === 'string') {
|
|
240
|
+
if (connection instanceof web3.Connection) {
|
|
241
|
+
tx = await connection.getParsedTransaction(signature, commitment)
|
|
242
|
+
} else if ('connection' in connection && connection.connection instanceof web3.Connection) {
|
|
243
|
+
tx = await connection.connection.getParsedTransaction(signature, commitment)
|
|
244
|
+
} else {
|
|
245
|
+
throw new Error('Invalid connection')
|
|
246
|
+
}
|
|
247
|
+
} else {
|
|
248
|
+
tx = signature
|
|
249
|
+
}
|
|
257
250
|
if (tx == null) return null
|
|
258
|
-
const events = new Array<
|
|
251
|
+
const events = new Array<To>()
|
|
259
252
|
// refer: https://solana.com/docs/rpc/http/gettransaction
|
|
260
253
|
// tx.meta.err: Error if transaction failed, null if transaction succeeded
|
|
261
254
|
if (tx.meta?.err !== null && !unsafeParseErr) {
|
|
@@ -263,27 +256,28 @@ export async function extractEventFromTransactionSignature<E>(
|
|
|
263
256
|
}
|
|
264
257
|
for (const instruction of tx.meta?.innerInstructions ?? []) {
|
|
265
258
|
for (const innerInstruction of instruction.instructions) {
|
|
266
|
-
const inst = innerInstruction as PartiallyDecodedInstruction
|
|
259
|
+
const inst = innerInstruction as web3.PartiallyDecodedInstruction
|
|
267
260
|
if (!inst.programId.equals(program)) {
|
|
268
261
|
continue
|
|
269
262
|
}
|
|
270
|
-
const decoded = base58.
|
|
263
|
+
const decoded = base58.serialize(inst.data)
|
|
271
264
|
const discriminator = Buffer.from(decoded.subarray(0, 8)).toString('hex')
|
|
272
265
|
if (discriminator !== EventEmitDiscriminator) {
|
|
273
266
|
continue
|
|
274
267
|
}
|
|
275
268
|
// get second 8 bits, filter event here
|
|
276
269
|
const eventDiscriminator = Buffer.from(decoded.subarray(8, 16)).toString('hex')
|
|
277
|
-
if (eventDiscriminator !== getEventDiscriminator(
|
|
270
|
+
if (eventDiscriminator !== getEventDiscriminator(serializer.description)) {
|
|
278
271
|
continue
|
|
279
272
|
}
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
273
|
+
events.push(serializer.deserialize(decoded, 16)[0])
|
|
274
|
+
// const dataBuffer = Buffer.from(decoded.subarray(16, decoded.length))
|
|
275
|
+
// if (eventBeet instanceof beet.FixableBeetArgsStruct) {
|
|
276
|
+
// const beet = eventBeet.toFixedFromData(dataBuffer, 0)
|
|
277
|
+
// events.push(beet.read(dataBuffer, 0))
|
|
278
|
+
// } else {
|
|
279
|
+
// events.push(eventBeet.read(dataBuffer, 0))
|
|
280
|
+
// }
|
|
287
281
|
}
|
|
288
282
|
}
|
|
289
283
|
return events.length > 0 ? events : null
|
|
@@ -299,18 +293,18 @@ export async function extractEventFromTransactionSignature<E>(
|
|
|
299
293
|
* @returns {Promise<{ instructions: TransactionInstruction[]; address: PublicKey }>} A promise that resolves to the instructions and lookup table address.
|
|
300
294
|
*/
|
|
301
295
|
export async function generateAddressLookupTable(
|
|
302
|
-
connection: Connection,
|
|
303
|
-
payer: PublicKey,
|
|
304
|
-
authority: PublicKey,
|
|
305
|
-
addresses: PublicKey[]
|
|
306
|
-
): Promise<{ instructions: TransactionInstruction[]; address: PublicKey }> {
|
|
296
|
+
connection: web3.Connection,
|
|
297
|
+
payer: web3.PublicKey,
|
|
298
|
+
authority: web3.PublicKey,
|
|
299
|
+
addresses: web3.PublicKey[]
|
|
300
|
+
): Promise<{ instructions: web3.TransactionInstruction[]; address: web3.PublicKey }> {
|
|
307
301
|
const slot = await connection.getSlot('finalized')
|
|
308
|
-
const [createInstruction, lookupTableAddress] = AddressLookupTableProgram.createLookupTable({
|
|
302
|
+
const [createInstruction, lookupTableAddress] = web3.AddressLookupTableProgram.createLookupTable({
|
|
309
303
|
payer,
|
|
310
304
|
authority,
|
|
311
305
|
recentSlot: slot,
|
|
312
306
|
})
|
|
313
|
-
const extendInstruction = AddressLookupTableProgram.extendLookupTable({
|
|
307
|
+
const extendInstruction = web3.AddressLookupTableProgram.extendLookupTable({
|
|
314
308
|
payer,
|
|
315
309
|
authority,
|
|
316
310
|
lookupTable: lookupTableAddress,
|
|
@@ -328,15 +322,18 @@ export async function generateAddressLookupTable(
|
|
|
328
322
|
* To properly terminate the lookup table, it is advisable to initially invoke `deactivateLookupTable`,
|
|
329
323
|
* pause for a duration of 500 blocks, and subsequently invoke `closeLookupTable`.
|
|
330
324
|
*
|
|
331
|
-
* @param {PublicKey} authority - The authority public key.
|
|
332
|
-
* @param {PublicKey} lookupTable - The lookup table public key.
|
|
333
|
-
* @returns {TransactionInstruction} The transaction instruction.
|
|
325
|
+
* @param {web3.PublicKey} authority - The authority public key.
|
|
326
|
+
* @param {web3.PublicKey} lookupTable - The lookup table public key.
|
|
327
|
+
* @returns {web3.TransactionInstruction} The transaction instruction.
|
|
334
328
|
*/
|
|
335
|
-
export function deactivateLookupTable(
|
|
336
|
-
|
|
329
|
+
export function deactivateLookupTable(
|
|
330
|
+
authority: web3.PublicKey,
|
|
331
|
+
lookupTable: web3.PublicKey
|
|
332
|
+
): web3.TransactionInstruction {
|
|
333
|
+
return web3.AddressLookupTableProgram.deactivateLookupTable({
|
|
337
334
|
authority,
|
|
338
335
|
lookupTable,
|
|
339
|
-
} satisfies DeactivateLookupTableParams)
|
|
336
|
+
} satisfies web3.DeactivateLookupTableParams)
|
|
340
337
|
}
|
|
341
338
|
|
|
342
339
|
/**
|
|
@@ -350,15 +347,15 @@ export function deactivateLookupTable(authority: PublicKey, lookupTable: PublicK
|
|
|
350
347
|
* @returns {TransactionInstruction} The transaction instruction.
|
|
351
348
|
*/
|
|
352
349
|
export function closeLookupTable(
|
|
353
|
-
recipient: PublicKey,
|
|
354
|
-
authority: PublicKey,
|
|
355
|
-
lookupTable: PublicKey
|
|
356
|
-
): TransactionInstruction {
|
|
357
|
-
return AddressLookupTableProgram.closeLookupTable({
|
|
350
|
+
recipient: web3.PublicKey,
|
|
351
|
+
authority: web3.PublicKey,
|
|
352
|
+
lookupTable: web3.PublicKey
|
|
353
|
+
): web3.TransactionInstruction {
|
|
354
|
+
return web3.AddressLookupTableProgram.closeLookupTable({
|
|
358
355
|
authority,
|
|
359
356
|
recipient,
|
|
360
357
|
lookupTable,
|
|
361
|
-
} satisfies CloseLookupTableParams)
|
|
358
|
+
} satisfies web3.CloseLookupTableParams)
|
|
362
359
|
}
|
|
363
360
|
|
|
364
361
|
/**
|
|
@@ -372,16 +369,16 @@ export function closeLookupTable(
|
|
|
372
369
|
* @returns {Promise<VersionedTransaction>} A promise that resolves to the versioned transaction.
|
|
373
370
|
*/
|
|
374
371
|
export async function txWithAddressLookupTable(
|
|
375
|
-
connection: Connection,
|
|
376
|
-
payer: PublicKey,
|
|
377
|
-
instructions: TransactionInstruction[],
|
|
378
|
-
recentBlockHash?: Blockhash,
|
|
379
|
-
tableAddr?: PublicKey
|
|
380
|
-
): Promise<VersionedTransaction> {
|
|
372
|
+
connection: web3.Connection,
|
|
373
|
+
payer: web3.PublicKey,
|
|
374
|
+
instructions: web3.TransactionInstruction[],
|
|
375
|
+
recentBlockHash?: web3.Blockhash,
|
|
376
|
+
tableAddr?: web3.PublicKey
|
|
377
|
+
): Promise<web3.VersionedTransaction> {
|
|
381
378
|
recentBlockHash = recentBlockHash ?? (await connection.getLatestBlockhash()).blockhash
|
|
382
379
|
if (!tableAddr) {
|
|
383
|
-
return new VersionedTransaction(
|
|
384
|
-
new TransactionMessage({
|
|
380
|
+
return new web3.VersionedTransaction(
|
|
381
|
+
new web3.TransactionMessage({
|
|
385
382
|
instructions,
|
|
386
383
|
payerKey: payer,
|
|
387
384
|
recentBlockhash: recentBlockHash,
|
|
@@ -389,8 +386,8 @@ export async function txWithAddressLookupTable(
|
|
|
389
386
|
)
|
|
390
387
|
}
|
|
391
388
|
const { value: lookupTableAccount } = await connection.getAddressLookupTable(tableAddr)
|
|
392
|
-
return new VersionedTransaction(
|
|
393
|
-
new TransactionMessage({
|
|
389
|
+
return new web3.VersionedTransaction(
|
|
390
|
+
new web3.TransactionMessage({
|
|
394
391
|
instructions,
|
|
395
392
|
payerKey: payer,
|
|
396
393
|
recentBlockhash: recentBlockHash,
|
|
@@ -407,26 +404,26 @@ export async function txWithAddressLookupTable(
|
|
|
407
404
|
* @returns {Promise<{ tx: Transaction; nonceAccount: Keypair }>} A promise that resolves to the transaction and nonce account.
|
|
408
405
|
*/
|
|
409
406
|
export async function createNonceAccountTX(
|
|
410
|
-
connection: Connection,
|
|
411
|
-
auth: PublicKey,
|
|
407
|
+
connection: web3.Connection,
|
|
408
|
+
auth: web3.PublicKey,
|
|
412
409
|
lamportsForRent?: number
|
|
413
|
-
): Promise<{ tx: Transaction; nonceAccount: Keypair }> {
|
|
414
|
-
const nonceAccount = Keypair.generate()
|
|
410
|
+
): Promise<{ tx: web3.Transaction; nonceAccount: web3.Keypair }> {
|
|
411
|
+
const nonceAccount = web3.Keypair.generate()
|
|
415
412
|
|
|
416
|
-
const lamports = lamportsForRent ?? (await connection.getMinimumBalanceForRentExemption(NONCE_ACCOUNT_LENGTH))
|
|
413
|
+
const lamports = lamportsForRent ?? (await connection.getMinimumBalanceForRentExemption(web3.NONCE_ACCOUNT_LENGTH))
|
|
417
414
|
|
|
418
|
-
const tx = new Transaction()
|
|
415
|
+
const tx = new web3.Transaction()
|
|
419
416
|
tx.add(
|
|
420
417
|
// create nonce account
|
|
421
|
-
SystemProgram.createAccount({
|
|
418
|
+
web3.SystemProgram.createAccount({
|
|
422
419
|
fromPubkey: auth,
|
|
423
420
|
newAccountPubkey: nonceAccount.publicKey,
|
|
424
421
|
lamports,
|
|
425
|
-
space: NONCE_ACCOUNT_LENGTH,
|
|
426
|
-
programId: SystemProgram.programId,
|
|
422
|
+
space: web3.NONCE_ACCOUNT_LENGTH,
|
|
423
|
+
programId: web3.SystemProgram.programId,
|
|
427
424
|
}),
|
|
428
425
|
// init nonce account
|
|
429
|
-
SystemProgram.nonceInitialize({
|
|
426
|
+
web3.SystemProgram.nonceInitialize({
|
|
430
427
|
noncePubkey: nonceAccount.publicKey, // nonce account pubkey
|
|
431
428
|
authorizedPubkey: auth, // nonce account auth
|
|
432
429
|
})
|
|
@@ -444,17 +441,17 @@ export async function createNonceAccountTX(
|
|
|
444
441
|
* @returns {Promise<Transaction | null>} A promise that resolves to the transaction or null if not found.
|
|
445
442
|
*/
|
|
446
443
|
export async function txWithNonce(
|
|
447
|
-
connection: Connection,
|
|
448
|
-
noncePubkey: PublicKey,
|
|
449
|
-
instructions: TransactionInstruction[],
|
|
450
|
-
nonceInfo?: NonceAccount
|
|
451
|
-
): Promise<Transaction | null> {
|
|
452
|
-
const tx = new Transaction()
|
|
444
|
+
connection: web3.Connection,
|
|
445
|
+
noncePubkey: web3.PublicKey,
|
|
446
|
+
instructions: web3.TransactionInstruction[],
|
|
447
|
+
nonceInfo?: web3.NonceAccount
|
|
448
|
+
): Promise<web3.Transaction | null> {
|
|
449
|
+
const tx = new web3.Transaction()
|
|
453
450
|
|
|
454
451
|
if (!nonceInfo) {
|
|
455
452
|
const accountInfo = await connection.getAccountInfo(noncePubkey)
|
|
456
453
|
if (accountInfo) {
|
|
457
|
-
nonceInfo = NonceAccount.fromAccountData(accountInfo.data)
|
|
454
|
+
nonceInfo = web3.NonceAccount.fromAccountData(accountInfo.data)
|
|
458
455
|
} else {
|
|
459
456
|
return null
|
|
460
457
|
}
|
|
@@ -462,7 +459,7 @@ export async function txWithNonce(
|
|
|
462
459
|
|
|
463
460
|
tx.add(
|
|
464
461
|
// nonce advance must be the first insturction
|
|
465
|
-
SystemProgram.nonceAdvance({
|
|
462
|
+
web3.SystemProgram.nonceAdvance({
|
|
466
463
|
noncePubkey: noncePubkey,
|
|
467
464
|
authorizedPubkey: nonceInfo.authorizedPubkey,
|
|
468
465
|
})
|
|
@@ -481,9 +478,9 @@ export async function txWithNonce(
|
|
|
481
478
|
* @returns {Promise<boolean>} A promise that resolves to true if the account is initialized, false otherwise.
|
|
482
479
|
*/
|
|
483
480
|
export async function isAccountInitialized(
|
|
484
|
-
connection: Connection,
|
|
485
|
-
account: PublicKey,
|
|
486
|
-
commitmentOrConfig?: Commitment | GetAccountInfoConfig
|
|
481
|
+
connection: web3.Connection,
|
|
482
|
+
account: web3.PublicKey,
|
|
483
|
+
commitmentOrConfig?: web3.Commitment | web3.GetAccountInfoConfig
|
|
487
484
|
): Promise<boolean> {
|
|
488
485
|
return connection.getAccountInfo(account, commitmentOrConfig).then((res) => {
|
|
489
486
|
return res !== null
|
|
@@ -501,13 +498,13 @@ export async function isAccountInitialized(
|
|
|
501
498
|
* @returns {Promise<MessageV0>} A promise that resolves to the version 0 message.
|
|
502
499
|
*/
|
|
503
500
|
export async function buildMessageV0(
|
|
504
|
-
connection: Connection,
|
|
505
|
-
payerKey: PublicKey,
|
|
506
|
-
instructions: TransactionInstruction[],
|
|
507
|
-
commitmentOrConfig: Commitment | GetAccountInfoConfig = 'confirmed',
|
|
508
|
-
blockhash?: Blockhash
|
|
509
|
-
): Promise<MessageV0> {
|
|
510
|
-
return new TransactionMessage({
|
|
501
|
+
connection: web3.Connection,
|
|
502
|
+
payerKey: web3.PublicKey,
|
|
503
|
+
instructions: web3.TransactionInstruction[],
|
|
504
|
+
commitmentOrConfig: web3.Commitment | web3.GetAccountInfoConfig = 'confirmed',
|
|
505
|
+
blockhash?: web3.Blockhash
|
|
506
|
+
): Promise<web3.MessageV0> {
|
|
507
|
+
return new web3.TransactionMessage({
|
|
511
508
|
payerKey: payerKey,
|
|
512
509
|
recentBlockhash: blockhash ?? (await connection.getLatestBlockhash(commitmentOrConfig)).blockhash,
|
|
513
510
|
instructions: instructions,
|
|
@@ -526,17 +523,17 @@ export async function buildMessageV0(
|
|
|
526
523
|
* @returns {Promise<VersionedTransaction>} A promise that resolves to the versioned transaction.
|
|
527
524
|
*/
|
|
528
525
|
export async function buildVersionedTransaction(
|
|
529
|
-
connection: Connection,
|
|
530
|
-
payerKey: PublicKey,
|
|
531
|
-
instructions: TransactionInstruction[],
|
|
532
|
-
commitmentOrConfig: Commitment | GetAccountInfoConfig = 'confirmed',
|
|
533
|
-
blockhash?: Blockhash,
|
|
534
|
-
lookupTableAddress?: PublicKey
|
|
535
|
-
): Promise<VersionedTransaction> {
|
|
526
|
+
connection: web3.Connection,
|
|
527
|
+
payerKey: web3.PublicKey,
|
|
528
|
+
instructions: web3.TransactionInstruction[],
|
|
529
|
+
commitmentOrConfig: web3.Commitment | web3.GetAccountInfoConfig = 'confirmed',
|
|
530
|
+
blockhash?: web3.Blockhash,
|
|
531
|
+
lookupTableAddress?: web3.PublicKey
|
|
532
|
+
): Promise<web3.VersionedTransaction> {
|
|
536
533
|
if (lookupTableAddress) {
|
|
537
534
|
return txWithAddressLookupTable(connection, payerKey, instructions, blockhash, lookupTableAddress)
|
|
538
535
|
}
|
|
539
|
-
return new VersionedTransaction(
|
|
536
|
+
return new web3.VersionedTransaction(
|
|
540
537
|
await buildMessageV0(connection, payerKey, instructions, commitmentOrConfig, blockhash)
|
|
541
538
|
)
|
|
542
539
|
}
|
|
@@ -554,25 +551,73 @@ export function instructionDiscriminator(method: string): Buffer {
|
|
|
554
551
|
/**
|
|
555
552
|
* Simulates a transaction.
|
|
556
553
|
*
|
|
557
|
-
* @param {Connection}
|
|
558
|
-
* @param {TransactionInstruction[]}
|
|
559
|
-
* @param {PublicKey}
|
|
560
|
-
* @param {PublicKey}
|
|
561
|
-
* @param {
|
|
562
|
-
* @param {
|
|
563
|
-
* @param {
|
|
554
|
+
* @param {string | web3.Connection | RpcInterface} _connection - The connection to the Solana cluster.
|
|
555
|
+
* @param {web3.TransactionInstruction[] | WrappedInstruction[] | Instruction[]} _instructions - The transaction instructions.
|
|
556
|
+
* @param {web3.PublicKey | PublicKey} _programId - The program public key.
|
|
557
|
+
* @param {web3.PublicKey | PublicKey} _payer - The payer public key.
|
|
558
|
+
* @param {Serializer<From, To>} serializer - The serializer.
|
|
559
|
+
* @param {web3.Commitment} [commitment='confirmed'] - The commitment level.
|
|
560
|
+
* @param {web3.Blockhash} [blockhash] - The blockhash.
|
|
561
|
+
* @param {web3.PublicKey | PublicKey} [_lookupTableAddress] - The lookup table address.
|
|
564
562
|
* @returns {Promise<Buffer>} A promise that resolves to the simulation result.
|
|
565
563
|
* @throws {Error} If the simulation fails.
|
|
566
564
|
*/
|
|
567
|
-
export async function
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
565
|
+
export async function simulateWeb3JsTransaction<From, To extends From = From>(
|
|
566
|
+
_connection: string | web3.Connection | RpcInterface,
|
|
567
|
+
_instructions: web3.TransactionInstruction[] | WrappedInstruction[] | Instruction[],
|
|
568
|
+
_programId: web3.PublicKey | PublicKey,
|
|
569
|
+
_payer: web3.PublicKey | PublicKey,
|
|
570
|
+
serializer: Serializer<From, To>,
|
|
571
|
+
commitment: web3.Commitment = 'confirmed',
|
|
572
|
+
blockhash?: web3.Blockhash,
|
|
573
|
+
_lookupTableAddress?: web3.PublicKey | PublicKey
|
|
574
|
+
): Promise<To> {
|
|
575
|
+
let connection: web3.Connection
|
|
576
|
+
if (typeof _connection === 'string') {
|
|
577
|
+
connection = new web3.Connection(_connection, commitment)
|
|
578
|
+
} else if (_connection instanceof web3.Connection) {
|
|
579
|
+
connection = _connection
|
|
580
|
+
} else if ('connection' in _connection && _connection.connection instanceof web3.Connection) {
|
|
581
|
+
;({ connection } = _connection)
|
|
582
|
+
} else {
|
|
583
|
+
throw new Error('Invalid connection')
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
let instructions: web3.TransactionInstruction[]
|
|
587
|
+
if (_instructions.length === 0) {
|
|
588
|
+
throw new Error('Instructions cannot be empty')
|
|
589
|
+
}
|
|
590
|
+
if (_instructions[0] instanceof web3.TransactionInstruction) {
|
|
591
|
+
instructions = _instructions as web3.TransactionInstruction[]
|
|
592
|
+
} else if ('bytesCreatedOnChain' in _instructions[0]) {
|
|
593
|
+
instructions = (_instructions as WrappedInstruction[]).map((i) => toWeb3JsInstruction(i.instruction))
|
|
594
|
+
} else {
|
|
595
|
+
instructions = (_instructions as Instruction[]).map((i) => toWeb3JsInstruction(i))
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
let programId: web3.PublicKey
|
|
599
|
+
if (_programId instanceof web3.PublicKey) {
|
|
600
|
+
programId = _programId
|
|
601
|
+
} else {
|
|
602
|
+
programId = toWeb3JsPublicKey(_programId)
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
let payer: web3.PublicKey
|
|
606
|
+
if (_payer instanceof web3.PublicKey) {
|
|
607
|
+
payer = _payer
|
|
608
|
+
} else {
|
|
609
|
+
payer = toWeb3JsPublicKey(_payer)
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
let lookupTableAddress: web3.PublicKey | undefined
|
|
613
|
+
if (_lookupTableAddress) {
|
|
614
|
+
if (_lookupTableAddress instanceof web3.PublicKey) {
|
|
615
|
+
lookupTableAddress = _lookupTableAddress
|
|
616
|
+
} else {
|
|
617
|
+
lookupTableAddress = toWeb3JsPublicKey(_lookupTableAddress)
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
|
|
576
621
|
const tx = await buildVersionedTransaction(
|
|
577
622
|
connection,
|
|
578
623
|
payer,
|
|
@@ -587,6 +632,7 @@ export async function simulateTransaction(
|
|
|
587
632
|
if (returnLog === undefined || simulateResp.value.returnData?.programId !== programId.toBase58()) {
|
|
588
633
|
throw new Error(`Simulate Fail: ${JSON.stringify(simulateResp)}`)
|
|
589
634
|
} else {
|
|
590
|
-
|
|
635
|
+
const resp = Buffer.from(returnLog.slice(returnPrefix.length), 'base64')
|
|
636
|
+
return serializer.deserialize(resp, 0)[0]
|
|
591
637
|
}
|
|
592
638
|
}
|
|
File without changes
|
/package/src/generated/{blocked_messagelib → solita/blocked_messagelib}/instructions/index.ts
RENAMED
|
File without changes
|
/package/src/generated/{blocked_messagelib → solita/blocked_messagelib}/instructions/version.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|