@layerzerolabs/lz-solana-sdk-v2 3.0.47 → 3.0.49
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 +26 -0
- package/package.json +11 -10
- package/src/base-oapp.ts +159 -0
- package/src/config.ts +32 -0
- package/src/deployment.test.ts +11 -0
- package/src/deployment.ts +128 -0
- package/src/dvn.ts +606 -0
- package/src/endpoint.ts +1518 -0
- package/src/executor.ts +577 -0
- package/src/generated/blocked_messagelib/index.ts +18 -0
- package/src/generated/blocked_messagelib/instructions/index.ts +1 -0
- package/src/generated/blocked_messagelib/instructions/version.ts +59 -0
- package/src/generated/dvn/accounts/DvnConfig.ts +217 -0
- package/src/generated/dvn/accounts/ExecuteHash.ts +179 -0
- package/src/generated/dvn/accounts/ReceiveConfig.ts +169 -0
- package/src/generated/dvn/accounts/index.ts +9 -0
- package/src/generated/dvn/errors/index.ts +396 -0
- package/src/generated/dvn/events/AdminConfigSetEvent.ts +22 -0
- package/src/generated/dvn/events/FeeWithdrawnEvent.ts +26 -0
- package/src/generated/dvn/events/MultisigConfigSetEvent.ts +22 -0
- package/src/generated/dvn/events/index.ts +3 -0
- package/src/generated/dvn/index.ts +21 -0
- package/src/generated/dvn/instructions/closeExecute.ts +148 -0
- package/src/generated/dvn/instructions/index.ts +7 -0
- package/src/generated/dvn/instructions/initDvn.ts +144 -0
- package/src/generated/dvn/instructions/invoke.ts +178 -0
- package/src/generated/dvn/instructions/quoteDvn.ts +145 -0
- package/src/generated/dvn/instructions/setConfig.ts +157 -0
- package/src/generated/dvn/instructions/verifiable.ts +160 -0
- package/src/generated/dvn/instructions/withdrawFee.ts +172 -0
- package/src/generated/dvn/types/Acl.ts +26 -0
- package/src/generated/dvn/types/AdminConfig.ts +100 -0
- package/src/generated/dvn/types/CloseExecuteParams.ts +21 -0
- package/src/generated/dvn/types/DstConfig.ts +28 -0
- package/src/generated/dvn/types/ExecuteTransactionDigest.ts +37 -0
- package/src/generated/dvn/types/InitDvnParams.ts +34 -0
- package/src/generated/dvn/types/InvokeParams.ts +28 -0
- package/src/generated/dvn/types/LzOption.ts +24 -0
- package/src/generated/dvn/types/Multisig.ts +24 -0
- package/src/generated/dvn/types/MultisigConfig.ts +124 -0
- package/src/generated/dvn/types/QuoteDvnParams.ts +38 -0
- package/src/generated/dvn/types/SetConfigParams.ts +22 -0
- package/src/generated/dvn/types/TransactionAccount.ts +29 -0
- package/src/generated/dvn/types/UlnConfig.ts +34 -0
- package/src/generated/dvn/types/VerifiableParams.ts +24 -0
- package/src/generated/dvn/types/VerificationState.ts +27 -0
- package/src/generated/dvn/types/WithdrawFeeParams.ts +20 -0
- package/src/generated/dvn/types/index.ts +17 -0
- package/src/generated/endpoint/accounts/ComposeMessageState.ts +170 -0
- package/src/generated/endpoint/accounts/EndpointSettings.ts +184 -0
- package/src/generated/endpoint/accounts/MessageLibInfo.ts +178 -0
- package/src/generated/endpoint/accounts/Nonce.ts +193 -0
- package/src/generated/endpoint/accounts/OAppRegistry.ts +169 -0
- package/src/generated/endpoint/accounts/PayloadHash.ts +169 -0
- package/src/generated/endpoint/accounts/PendingInboundNonce.ts +172 -0
- package/src/generated/endpoint/accounts/ReceiveLibraryConfig.ts +183 -0
- package/src/generated/endpoint/accounts/SendLibraryConfig.ts +171 -0
- package/src/generated/endpoint/accounts/index.ts +31 -0
- package/src/generated/endpoint/errors/index.ts +428 -0
- package/src/generated/endpoint/events/AdminTransferredEvent.ts +23 -0
- package/src/generated/endpoint/events/ComposeDeliveredEvent.ts +31 -0
- package/src/generated/endpoint/events/ComposeSentEvent.ts +33 -0
- package/src/generated/endpoint/events/DefaultReceiveLibrarySetEvent.ts +27 -0
- package/src/generated/endpoint/events/DefaultReceiveLibraryTimeoutSetEvent.ts +29 -0
- package/src/generated/endpoint/events/DefaultSendLibrarySetEvent.ts +27 -0
- package/src/generated/endpoint/events/DelegateSetEvent.ts +22 -0
- package/src/generated/endpoint/events/InboundNonceSkippedEvent.ts +31 -0
- package/src/generated/endpoint/events/LibraryRegisteredEvent.ts +27 -0
- package/src/generated/endpoint/events/LzComposeAlertEvent.ts +43 -0
- package/src/generated/endpoint/events/LzReceiveAlertEvent.ts +45 -0
- package/src/generated/endpoint/events/LzTokenSetEvent.ts +23 -0
- package/src/generated/endpoint/events/OAppRegisteredEvent.ts +27 -0
- package/src/generated/endpoint/events/PacketBurntEvent.ts +32 -0
- package/src/generated/endpoint/events/PacketDeliveredEvent.ts +31 -0
- package/src/generated/endpoint/events/PacketNilifiedEvent.ts +33 -0
- package/src/generated/endpoint/events/PacketSentEvent.ts +29 -0
- package/src/generated/endpoint/events/PacketVerifiedEvent.ts +33 -0
- package/src/generated/endpoint/events/ReceiveLibrarySetEvent.ts +29 -0
- package/src/generated/endpoint/events/ReceiveLibraryTimeoutSetEvent.ts +33 -0
- package/src/generated/endpoint/events/RentWithdrawnEvent.ts +27 -0
- package/src/generated/endpoint/events/SendLibrarySetEvent.ts +29 -0
- package/src/generated/endpoint/events/index.ts +22 -0
- package/src/generated/endpoint/index.ts +21 -0
- package/src/generated/endpoint/instructions/burn.ts +191 -0
- package/src/generated/endpoint/instructions/clear.ts +193 -0
- package/src/generated/endpoint/instructions/clearCompose.ts +160 -0
- package/src/generated/endpoint/instructions/index.ts +32 -0
- package/src/generated/endpoint/instructions/initConfig.ts +172 -0
- package/src/generated/endpoint/instructions/initDefaultReceiveLibrary.ts +195 -0
- package/src/generated/endpoint/instructions/initDefaultSendLibrary.ts +195 -0
- package/src/generated/endpoint/instructions/initEndpoint.ts +147 -0
- package/src/generated/endpoint/instructions/initNonce.ts +168 -0
- package/src/generated/endpoint/instructions/initReceiveLibrary.ts +159 -0
- package/src/generated/endpoint/instructions/initSendLibrary.ts +159 -0
- package/src/generated/endpoint/instructions/initVerify.ts +159 -0
- package/src/generated/endpoint/instructions/lzComposeAlert.ts +148 -0
- package/src/generated/endpoint/instructions/lzReceiveAlert.ts +148 -0
- package/src/generated/endpoint/instructions/nilify.ts +193 -0
- package/src/generated/endpoint/instructions/quote.ts +181 -0
- package/src/generated/endpoint/instructions/registerLibrary.ts +183 -0
- package/src/generated/endpoint/instructions/registerOapp.ts +183 -0
- package/src/generated/endpoint/instructions/send.ts +215 -0
- package/src/generated/endpoint/instructions/sendCompose.ts +183 -0
- package/src/generated/endpoint/instructions/setConfig.ts +169 -0
- package/src/generated/endpoint/instructions/setDefaultReceiveLibrary.ts +184 -0
- package/src/generated/endpoint/instructions/setDefaultReceiveLibraryTimeout.ts +185 -0
- package/src/generated/endpoint/instructions/setDefaultSendLibrary.ts +184 -0
- package/src/generated/endpoint/instructions/setDelegate.ts +160 -0
- package/src/generated/endpoint/instructions/setLzToken.ts +160 -0
- package/src/generated/endpoint/instructions/setReceiveLibrary.ts +190 -0
- package/src/generated/endpoint/instructions/setReceiveLibraryTimeout.ts +184 -0
- package/src/generated/endpoint/instructions/setSendLibrary.ts +190 -0
- package/src/generated/endpoint/instructions/skip.ts +203 -0
- package/src/generated/endpoint/instructions/transferAdmin.ts +160 -0
- package/src/generated/endpoint/instructions/verify.ts +205 -0
- package/src/generated/endpoint/instructions/withdrawRent.ts +172 -0
- package/src/generated/endpoint/types/BurnParams.ts +32 -0
- package/src/generated/endpoint/types/ClearComposeParams.ts +31 -0
- package/src/generated/endpoint/types/ClearParams.ts +34 -0
- package/src/generated/endpoint/types/InitConfigParams.ts +26 -0
- package/src/generated/endpoint/types/InitDefaultReceiveLibraryParams.ts +27 -0
- package/src/generated/endpoint/types/InitDefaultSendLibraryParams.ts +27 -0
- package/src/generated/endpoint/types/InitEndpointParams.ts +27 -0
- package/src/generated/endpoint/types/InitNonceParams.ts +28 -0
- package/src/generated/endpoint/types/InitReceiveLibraryParams.ts +27 -0
- package/src/generated/endpoint/types/InitSendLibraryParams.ts +27 -0
- package/src/generated/endpoint/types/InitVerifyParams.ts +30 -0
- package/src/generated/endpoint/types/LzComposeAlertParams.ts +41 -0
- package/src/generated/endpoint/types/LzReceiveAlertParams.ts +43 -0
- package/src/generated/endpoint/types/MessageLibType.ts +25 -0
- package/src/generated/endpoint/types/MessagingFee.ts +24 -0
- package/src/generated/endpoint/types/MessagingReceipt.ts +27 -0
- package/src/generated/endpoint/types/NilifyParams.ts +32 -0
- package/src/generated/endpoint/types/QuoteParams.ts +34 -0
- package/src/generated/endpoint/types/ReceiveLibraryTimeout.ts +27 -0
- package/src/generated/endpoint/types/RegisterLibraryParams.ts +28 -0
- package/src/generated/endpoint/types/RegisterOAppParams.ts +23 -0
- package/src/generated/endpoint/types/SendComposeParams.ts +31 -0
- package/src/generated/endpoint/types/SendParams.ts +32 -0
- package/src/generated/endpoint/types/SetConfigParams.ts +31 -0
- package/src/generated/endpoint/types/SetDefaultReceiveLibraryParams.ts +29 -0
- package/src/generated/endpoint/types/SetDefaultReceiveLibraryTimeoutParams.ts +29 -0
- package/src/generated/endpoint/types/SetDefaultSendLibraryParams.ts +27 -0
- package/src/generated/endpoint/types/SetDelegateParams.ts +22 -0
- package/src/generated/endpoint/types/SetLzTokenParams.ts +23 -0
- package/src/generated/endpoint/types/SetReceiveLibraryParams.ts +31 -0
- package/src/generated/endpoint/types/SetReceiveLibraryTimeoutParams.ts +31 -0
- package/src/generated/endpoint/types/SetSendLibraryParams.ts +29 -0
- package/src/generated/endpoint/types/SkipParams.ts +30 -0
- package/src/generated/endpoint/types/TransferAdminParams.ts +23 -0
- package/src/generated/endpoint/types/VerifyParams.ts +32 -0
- package/src/generated/endpoint/types/WithdrawRentParams.ts +21 -0
- package/src/generated/endpoint/types/index.ts +36 -0
- package/src/generated/executor/accounts/ExecutorConfig.ts +216 -0
- package/src/generated/executor/accounts/Nonce.ts +193 -0
- package/src/generated/executor/accounts/index.ts +7 -0
- package/src/generated/executor/errors/index.ts +434 -0
- package/src/generated/executor/events/NativeDropAppliedEvent.ts +38 -0
- package/src/generated/executor/events/index.ts +1 -0
- package/src/generated/executor/index.ts +21 -0
- package/src/generated/executor/instructions/adminSetConfig.ts +136 -0
- package/src/generated/executor/instructions/compose.ts +181 -0
- package/src/generated/executor/instructions/executable.ts +136 -0
- package/src/generated/executor/instructions/execute.ts +181 -0
- package/src/generated/executor/instructions/index.ts +8 -0
- package/src/generated/executor/instructions/initExecutor.ts +147 -0
- package/src/generated/executor/instructions/nativeDrop.ts +171 -0
- package/src/generated/executor/instructions/ownerSetConfig.ts +136 -0
- package/src/generated/executor/instructions/quoteExecutor.ts +148 -0
- package/src/generated/executor/types/Acl.ts +26 -0
- package/src/generated/executor/types/AdminSetConfigParams.ts +83 -0
- package/src/generated/executor/types/ComposeParams.ts +27 -0
- package/src/generated/executor/types/DstConfig.ts +32 -0
- package/src/generated/executor/types/ExecutableParams.ts +30 -0
- package/src/generated/executor/types/ExecuteParams.ts +31 -0
- package/src/generated/executor/types/ExecutionState.ts +26 -0
- package/src/generated/executor/types/InitExecutorParams.ts +33 -0
- package/src/generated/executor/types/LzComposeParams.ts +35 -0
- package/src/generated/executor/types/LzOption.ts +24 -0
- package/src/generated/executor/types/LzReceiveParams.ts +33 -0
- package/src/generated/executor/types/NativeDropParams.ts +36 -0
- package/src/generated/executor/types/NativeDropRequest.ts +26 -0
- package/src/generated/executor/types/OwnerSetConfigParams.ts +123 -0
- package/src/generated/executor/types/QuoteExecutorParams.ts +34 -0
- package/src/generated/executor/types/index.ts +15 -0
- package/src/generated/pricefeed/accounts/PriceFeed.ts +220 -0
- package/src/generated/pricefeed/accounts/index.ts +5 -0
- package/src/generated/pricefeed/errors/index.ts +115 -0
- package/src/generated/pricefeed/index.ts +21 -0
- package/src/generated/pricefeed/instructions/getFee.ts +121 -0
- package/src/generated/pricefeed/instructions/index.ts +6 -0
- package/src/generated/pricefeed/instructions/initPriceFeed.ts +147 -0
- package/src/generated/pricefeed/instructions/setPrice.ts +133 -0
- package/src/generated/pricefeed/instructions/setPriceFeed.ts +136 -0
- package/src/generated/pricefeed/instructions/setSolPrice.ts +136 -0
- package/src/generated/pricefeed/instructions/transferAdmin.ts +136 -0
- package/src/generated/pricefeed/types/GetFeeParams.ts +26 -0
- package/src/generated/pricefeed/types/InitPriceFeedParams.ts +27 -0
- package/src/generated/pricefeed/types/ModelType.ts +66 -0
- package/src/generated/pricefeed/types/Price.ts +31 -0
- package/src/generated/pricefeed/types/PriceParams.ts +29 -0
- package/src/generated/pricefeed/types/SetPriceFeedParams.ts +29 -0
- package/src/generated/pricefeed/types/SetPriceParams.ts +26 -0
- package/src/generated/pricefeed/types/SetSolPriceParams.ts +21 -0
- package/src/generated/pricefeed/types/TransferAdminParams.ts +23 -0
- package/src/generated/pricefeed/types/index.ts +9 -0
- package/src/generated/simple_messagelib/accounts/MessageLib.ts +222 -0
- package/src/generated/simple_messagelib/accounts/ReceiveConfigStore.ts +168 -0
- package/src/generated/simple_messagelib/accounts/SendConfigStore.ts +170 -0
- package/src/generated/simple_messagelib/accounts/index.ts +13 -0
- package/src/generated/simple_messagelib/errors/index.ts +207 -0
- package/src/generated/simple_messagelib/index.ts +21 -0
- package/src/generated/simple_messagelib/instructions/index.ts +15 -0
- package/src/generated/simple_messagelib/instructions/initConfig.ts +183 -0
- package/src/generated/simple_messagelib/instructions/initDefaultConfig.ts +171 -0
- package/src/generated/simple_messagelib/instructions/initMessageLib.ts +147 -0
- package/src/generated/simple_messagelib/instructions/quote.ts +133 -0
- package/src/generated/simple_messagelib/instructions/revertCall.ts +59 -0
- package/src/generated/simple_messagelib/instructions/send.ts +154 -0
- package/src/generated/simple_messagelib/instructions/sendWithLzToken.ts +207 -0
- package/src/generated/simple_messagelib/instructions/setConfig.ts +157 -0
- package/src/generated/simple_messagelib/instructions/setDefaultConfig.ts +171 -0
- package/src/generated/simple_messagelib/instructions/setFee.ts +133 -0
- package/src/generated/simple_messagelib/instructions/setWlCaller.ts +136 -0
- package/src/generated/simple_messagelib/instructions/transferAdmin.ts +136 -0
- package/src/generated/simple_messagelib/instructions/validatePacket.ts +136 -0
- package/src/generated/simple_messagelib/instructions/version.ts +59 -0
- package/src/generated/simple_messagelib/instructions/withdrawFees.ts +148 -0
- package/src/generated/simple_messagelib/types/InitConfigParams.ts +26 -0
- package/src/generated/simple_messagelib/types/InitDefaultConfigParams.ts +27 -0
- package/src/generated/simple_messagelib/types/InitMessageLibParams.ts +35 -0
- package/src/generated/simple_messagelib/types/MessagingFee.ts +24 -0
- package/src/generated/simple_messagelib/types/Packet.ts +36 -0
- package/src/generated/simple_messagelib/types/QuoteParams.ts +27 -0
- package/src/generated/simple_messagelib/types/SendParams.ts +27 -0
- package/src/generated/simple_messagelib/types/SendWithLzTokenParams.ts +34 -0
- package/src/generated/simple_messagelib/types/SetConfigParams.ts +31 -0
- package/src/generated/simple_messagelib/types/SetDefaultConfigParams.ts +27 -0
- package/src/generated/simple_messagelib/types/SetFeeParams.ts +24 -0
- package/src/generated/simple_messagelib/types/SetWlCallerParams.ts +22 -0
- package/src/generated/simple_messagelib/types/TransferAdminParams.ts +23 -0
- package/src/generated/simple_messagelib/types/ValidatePacketParams.ts +21 -0
- package/src/generated/simple_messagelib/types/Version.ts +26 -0
- package/src/generated/simple_messagelib/types/WithdrawFeesParams.ts +21 -0
- package/src/generated/simple_messagelib/types/index.ts +16 -0
- package/src/generated/uln/accounts/Confirmations.ts +171 -0
- package/src/generated/uln/accounts/ReceiveConfig.ts +169 -0
- package/src/generated/uln/accounts/SendConfig.ts +177 -0
- package/src/generated/uln/accounts/UlnSettings.ts +195 -0
- package/src/generated/uln/accounts/index.ts +16 -0
- package/src/generated/uln/errors/index.ts +761 -0
- package/src/generated/uln/events/AdminTransferredEvent.ts +23 -0
- package/src/generated/uln/events/ConfigSetEvent.ts +30 -0
- package/src/generated/uln/events/DefaultConfigSetEvent.ts +31 -0
- package/src/generated/uln/events/FeesPaidEvent.ts +28 -0
- package/src/generated/uln/events/LzTokenSetEvent.ts +23 -0
- package/src/generated/uln/events/PayloadVerifiedEvent.ts +31 -0
- package/src/generated/uln/events/RentWithdrawnEvent.ts +27 -0
- package/src/generated/uln/events/TreasuryFeeCapSetEvent.ts +21 -0
- package/src/generated/uln/events/TreasurySetEvent.ts +22 -0
- package/src/generated/uln/events/index.ts +7 -0
- package/src/generated/uln/index.ts +21 -0
- package/src/generated/uln/instructions/closeVerify.ts +148 -0
- package/src/generated/uln/instructions/commitVerification.ts +148 -0
- package/src/generated/uln/instructions/index.ts +16 -0
- package/src/generated/uln/instructions/initConfig.ts +183 -0
- package/src/generated/uln/instructions/initDefaultConfig.ts +195 -0
- package/src/generated/uln/instructions/initUln.ts +144 -0
- package/src/generated/uln/instructions/initVerify.ts +147 -0
- package/src/generated/uln/instructions/quote.ts +157 -0
- package/src/generated/uln/instructions/send.ts +220 -0
- package/src/generated/uln/instructions/sendWithLzToken.ts +255 -0
- package/src/generated/uln/instructions/setConfig.ts +205 -0
- package/src/generated/uln/instructions/setDefaultConfig.ts +184 -0
- package/src/generated/uln/instructions/setTreasury.ts +160 -0
- package/src/generated/uln/instructions/transferAdmin.ts +160 -0
- package/src/generated/uln/instructions/verify.ts +157 -0
- package/src/generated/uln/instructions/version.ts +59 -0
- package/src/generated/uln/instructions/withdrawRent.ts +172 -0
- package/src/generated/uln/types/CloseVerifyParams.ts +24 -0
- package/src/generated/uln/types/CommitVerificationParams.ts +25 -0
- package/src/generated/uln/types/Config.ts +75 -0
- package/src/generated/uln/types/ExecutorConfig.ts +26 -0
- package/src/generated/uln/types/InitConfigParams.ts +26 -0
- package/src/generated/uln/types/InitDefaultConfigParams.ts +31 -0
- package/src/generated/uln/types/InitUlnParams.ts +30 -0
- package/src/generated/uln/types/InitVerifyParams.ts +28 -0
- package/src/generated/uln/types/LzTokenTreasury.ts +26 -0
- package/src/generated/uln/types/MessagingFee.ts +24 -0
- package/src/generated/uln/types/Packet.ts +36 -0
- package/src/generated/uln/types/QuoteParams.ts +27 -0
- package/src/generated/uln/types/SendParams.ts +27 -0
- package/src/generated/uln/types/SendWithLzTokenParams.ts +34 -0
- package/src/generated/uln/types/SetConfigParams.ts +31 -0
- package/src/generated/uln/types/SetDefaultConfigParams.ts +31 -0
- package/src/generated/uln/types/SetTreasuryParams.ts +22 -0
- package/src/generated/uln/types/TransferAdminParams.ts +23 -0
- package/src/generated/uln/types/Treasury.ts +31 -0
- package/src/generated/uln/types/TreasuryFee.ts +28 -0
- package/src/generated/uln/types/UlnConfig.ts +34 -0
- package/src/generated/uln/types/VerifyParams.ts +26 -0
- package/src/generated/uln/types/Version.ts +26 -0
- package/src/generated/uln/types/WithdrawRentParams.ts +21 -0
- package/src/generated/uln/types/WorkerFee.ts +26 -0
- package/src/generated/uln/types/index.ts +25 -0
- package/src/generated/worker_interface/errors/index.ts +75 -0
- package/src/generated/worker_interface/index.ts +20 -0
- package/src/generated/worker_interface/instructions/index.ts +2 -0
- package/src/generated/worker_interface/instructions/quoteDvn.ts +145 -0
- package/src/generated/worker_interface/instructions/quoteExecutor.ts +148 -0
- package/src/generated/worker_interface/types/LzOption.ts +24 -0
- package/src/generated/worker_interface/types/QuoteDvnParams.ts +38 -0
- package/src/generated/worker_interface/types/QuoteExecutorParams.ts +34 -0
- package/src/generated/worker_interface/types/index.ts +3 -0
- package/src/index.ts +120 -0
- package/src/pda-deriver.ts +658 -0
- package/src/pricefeed.ts +208 -0
- package/src/recevie.ts +269 -0
- package/src/send-helper.ts +504 -0
- package/src/simple-message-lib.ts +303 -0
- package/src/types.ts +222 -0
- package/src/uln.ts +1045 -0
- package/src/utility.ts +592 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was GENERATED using the solita package.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
|
|
4
|
+
*
|
|
5
|
+
* See: https://github.com/metaplex-foundation/solita
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import * as web3 from '@solana/web3.js'
|
|
9
|
+
import * as beetSolana from '@metaplex-foundation/beet-solana'
|
|
10
|
+
import * as beet from '@metaplex-foundation/beet'
|
|
11
|
+
export type AdminTransferredEvent = {
|
|
12
|
+
newAdmin: web3.PublicKey
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @category userTypes
|
|
17
|
+
* @category generated
|
|
18
|
+
*/
|
|
19
|
+
export const adminTransferredEventBeet =
|
|
20
|
+
new beet.BeetArgsStruct<AdminTransferredEvent>(
|
|
21
|
+
[['newAdmin', beetSolana.publicKey]],
|
|
22
|
+
'AdminTransferredEvent'
|
|
23
|
+
)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was GENERATED using the solita package.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
|
|
4
|
+
*
|
|
5
|
+
* See: https://github.com/metaplex-foundation/solita
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import * as web3 from '@solana/web3.js'
|
|
9
|
+
import * as beetSolana from '@metaplex-foundation/beet-solana'
|
|
10
|
+
import * as beet from '@metaplex-foundation/beet'
|
|
11
|
+
import { Config, configBeet } from '../types/Config'
|
|
12
|
+
export type ConfigSetEvent = {
|
|
13
|
+
oapp: web3.PublicKey
|
|
14
|
+
eid: number
|
|
15
|
+
config: Config
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @category userTypes
|
|
20
|
+
* @category generated
|
|
21
|
+
*/
|
|
22
|
+
export const configSetEventBeet =
|
|
23
|
+
new beet.FixableBeetArgsStruct<ConfigSetEvent>(
|
|
24
|
+
[
|
|
25
|
+
['oapp', beetSolana.publicKey],
|
|
26
|
+
['eid', beet.u32],
|
|
27
|
+
['config', configBeet],
|
|
28
|
+
],
|
|
29
|
+
'ConfigSetEvent'
|
|
30
|
+
)
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was GENERATED using the solita package.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
|
|
4
|
+
*
|
|
5
|
+
* See: https://github.com/metaplex-foundation/solita
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import * as beet from '@metaplex-foundation/beet'
|
|
9
|
+
import { UlnConfig, ulnConfigBeet } from '../types/UlnConfig'
|
|
10
|
+
import { ExecutorConfig, executorConfigBeet } from '../types/ExecutorConfig'
|
|
11
|
+
export type DefaultConfigSetEvent = {
|
|
12
|
+
eid: number
|
|
13
|
+
sendUlnConfig: beet.COption<UlnConfig>
|
|
14
|
+
receiveUlnConfig: beet.COption<UlnConfig>
|
|
15
|
+
executorConfig: beet.COption<ExecutorConfig>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @category userTypes
|
|
20
|
+
* @category generated
|
|
21
|
+
*/
|
|
22
|
+
export const defaultConfigSetEventBeet =
|
|
23
|
+
new beet.FixableBeetArgsStruct<DefaultConfigSetEvent>(
|
|
24
|
+
[
|
|
25
|
+
['eid', beet.u32],
|
|
26
|
+
['sendUlnConfig', beet.coption(ulnConfigBeet)],
|
|
27
|
+
['receiveUlnConfig', beet.coption(ulnConfigBeet)],
|
|
28
|
+
['executorConfig', beet.coption(executorConfigBeet)],
|
|
29
|
+
],
|
|
30
|
+
'DefaultConfigSetEvent'
|
|
31
|
+
)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was GENERATED using the solita package.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
|
|
4
|
+
*
|
|
5
|
+
* See: https://github.com/metaplex-foundation/solita
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import * as beet from '@metaplex-foundation/beet'
|
|
9
|
+
import { WorkerFee, workerFeeBeet } from '../types/WorkerFee'
|
|
10
|
+
import { TreasuryFee, treasuryFeeBeet } from '../types/TreasuryFee'
|
|
11
|
+
export type FeesPaidEvent = {
|
|
12
|
+
executor: WorkerFee
|
|
13
|
+
dvns: WorkerFee[]
|
|
14
|
+
treasury: beet.COption<TreasuryFee>
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @category userTypes
|
|
19
|
+
* @category generated
|
|
20
|
+
*/
|
|
21
|
+
export const feesPaidEventBeet = new beet.FixableBeetArgsStruct<FeesPaidEvent>(
|
|
22
|
+
[
|
|
23
|
+
['executor', workerFeeBeet],
|
|
24
|
+
['dvns', beet.array(workerFeeBeet)],
|
|
25
|
+
['treasury', beet.coption(treasuryFeeBeet)],
|
|
26
|
+
],
|
|
27
|
+
'FeesPaidEvent'
|
|
28
|
+
)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was GENERATED using the solita package.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
|
|
4
|
+
*
|
|
5
|
+
* See: https://github.com/metaplex-foundation/solita
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import * as web3 from '@solana/web3.js'
|
|
9
|
+
import * as beet from '@metaplex-foundation/beet'
|
|
10
|
+
import * as beetSolana from '@metaplex-foundation/beet-solana'
|
|
11
|
+
export type LzTokenSetEvent = {
|
|
12
|
+
token: beet.COption<web3.PublicKey>
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @category userTypes
|
|
17
|
+
* @category generated
|
|
18
|
+
*/
|
|
19
|
+
export const lzTokenSetEventBeet =
|
|
20
|
+
new beet.FixableBeetArgsStruct<LzTokenSetEvent>(
|
|
21
|
+
[['token', beet.coption(beetSolana.publicKey)]],
|
|
22
|
+
'LzTokenSetEvent'
|
|
23
|
+
)
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was GENERATED using the solita package.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
|
|
4
|
+
*
|
|
5
|
+
* See: https://github.com/metaplex-foundation/solita
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import * as web3 from '@solana/web3.js'
|
|
9
|
+
import * as beet from '@metaplex-foundation/beet'
|
|
10
|
+
import * as beetSolana from '@metaplex-foundation/beet-solana'
|
|
11
|
+
export type PayloadVerifiedEvent = {
|
|
12
|
+
dvn: web3.PublicKey
|
|
13
|
+
header: number[] /* size: 81 */
|
|
14
|
+
confirmations: beet.bignum
|
|
15
|
+
proofHash: number[] /* size: 32 */
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @category userTypes
|
|
20
|
+
* @category generated
|
|
21
|
+
*/
|
|
22
|
+
export const payloadVerifiedEventBeet =
|
|
23
|
+
new beet.BeetArgsStruct<PayloadVerifiedEvent>(
|
|
24
|
+
[
|
|
25
|
+
['dvn', beetSolana.publicKey],
|
|
26
|
+
['header', beet.uniformFixedSizeArray(beet.u8, 81)],
|
|
27
|
+
['confirmations', beet.u64],
|
|
28
|
+
['proofHash', beet.uniformFixedSizeArray(beet.u8, 32)],
|
|
29
|
+
],
|
|
30
|
+
'PayloadVerifiedEvent'
|
|
31
|
+
)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was GENERATED using the solita package.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
|
|
4
|
+
*
|
|
5
|
+
* See: https://github.com/metaplex-foundation/solita
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import * as web3 from '@solana/web3.js'
|
|
9
|
+
import * as beet from '@metaplex-foundation/beet'
|
|
10
|
+
import * as beetSolana from '@metaplex-foundation/beet-solana'
|
|
11
|
+
export type RentWithdrawnEvent = {
|
|
12
|
+
receiver: web3.PublicKey
|
|
13
|
+
amount: beet.bignum
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @category userTypes
|
|
18
|
+
* @category generated
|
|
19
|
+
*/
|
|
20
|
+
export const rentWithdrawnEventBeet =
|
|
21
|
+
new beet.BeetArgsStruct<RentWithdrawnEvent>(
|
|
22
|
+
[
|
|
23
|
+
['receiver', beetSolana.publicKey],
|
|
24
|
+
['amount', beet.u64],
|
|
25
|
+
],
|
|
26
|
+
'RentWithdrawnEvent'
|
|
27
|
+
)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was GENERATED using the solita package.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
|
|
4
|
+
*
|
|
5
|
+
* See: https://github.com/metaplex-foundation/solita
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import * as beet from '@metaplex-foundation/beet'
|
|
9
|
+
export type TreasuryFeeCapSetEvent = {
|
|
10
|
+
treasuryFeeCap: beet.bignum
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @category userTypes
|
|
15
|
+
* @category generated
|
|
16
|
+
*/
|
|
17
|
+
export const treasuryFeeCapSetEventBeet =
|
|
18
|
+
new beet.BeetArgsStruct<TreasuryFeeCapSetEvent>(
|
|
19
|
+
[['treasuryFeeCap', beet.u64]],
|
|
20
|
+
'TreasuryFeeCapSetEvent'
|
|
21
|
+
)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was GENERATED using the solita package.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
|
|
4
|
+
*
|
|
5
|
+
* See: https://github.com/metaplex-foundation/solita
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import * as beet from '@metaplex-foundation/beet'
|
|
9
|
+
import { Treasury, treasuryBeet } from '../types/Treasury'
|
|
10
|
+
export type TreasurySetEvent = {
|
|
11
|
+
treasury: beet.COption<Treasury>
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @category userTypes
|
|
16
|
+
* @category generated
|
|
17
|
+
*/
|
|
18
|
+
export const treasurySetEventBeet =
|
|
19
|
+
new beet.FixableBeetArgsStruct<TreasurySetEvent>(
|
|
20
|
+
[['treasury', beet.coption(treasuryBeet)]],
|
|
21
|
+
'TreasurySetEvent'
|
|
22
|
+
)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { PublicKey } from '@solana/web3.js'
|
|
2
|
+
export * from './accounts'
|
|
3
|
+
export * from './errors'
|
|
4
|
+
export * from './instructions'
|
|
5
|
+
export * from './types'
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Program address
|
|
9
|
+
*
|
|
10
|
+
* @category constants
|
|
11
|
+
* @category generated
|
|
12
|
+
*/
|
|
13
|
+
export const PROGRAM_ADDRESS = '7a4WjyR8VZ7yZz5XJAKm39BUGn5iT9CKcv2pmG9tdXVH'
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Program public key
|
|
17
|
+
*
|
|
18
|
+
* @category constants
|
|
19
|
+
* @category generated
|
|
20
|
+
*/
|
|
21
|
+
export const PROGRAM_ID = new PublicKey(PROGRAM_ADDRESS)
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was GENERATED using the solita package.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
|
|
4
|
+
*
|
|
5
|
+
* See: https://github.com/metaplex-foundation/solita
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import * as beet from '@metaplex-foundation/beet'
|
|
9
|
+
import * as web3 from '@solana/web3.js'
|
|
10
|
+
import {
|
|
11
|
+
CloseVerifyParams,
|
|
12
|
+
closeVerifyParamsBeet,
|
|
13
|
+
} from '../types/CloseVerifyParams'
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @category Instructions
|
|
17
|
+
* @category CloseVerify
|
|
18
|
+
* @category generated
|
|
19
|
+
*/
|
|
20
|
+
export type CloseVerifyInstructionArgs = {
|
|
21
|
+
params: CloseVerifyParams
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @category Instructions
|
|
25
|
+
* @category CloseVerify
|
|
26
|
+
* @category generated
|
|
27
|
+
*/
|
|
28
|
+
export const closeVerifyStruct = new beet.BeetArgsStruct<
|
|
29
|
+
CloseVerifyInstructionArgs & {
|
|
30
|
+
instructionDiscriminator: number[] /* size: 8 */
|
|
31
|
+
}
|
|
32
|
+
>(
|
|
33
|
+
[
|
|
34
|
+
['instructionDiscriminator', beet.uniformFixedSizeArray(beet.u8, 8)],
|
|
35
|
+
['params', closeVerifyParamsBeet],
|
|
36
|
+
],
|
|
37
|
+
'CloseVerifyInstructionArgs'
|
|
38
|
+
)
|
|
39
|
+
/**
|
|
40
|
+
* Accounts required by the _closeVerify_ instruction
|
|
41
|
+
*
|
|
42
|
+
* @property [**signer**] dvn
|
|
43
|
+
* @property [_writable_] receiver
|
|
44
|
+
* @property [_writable_] confirmations
|
|
45
|
+
* @category Instructions
|
|
46
|
+
* @category CloseVerify
|
|
47
|
+
* @category generated
|
|
48
|
+
*/
|
|
49
|
+
export type CloseVerifyInstructionAccounts = {
|
|
50
|
+
dvn: web3.PublicKey
|
|
51
|
+
receiver: web3.PublicKey
|
|
52
|
+
confirmations: web3.PublicKey
|
|
53
|
+
anchorRemainingAccounts?: web3.AccountMeta[]
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export const closeVerifyInstructionDiscriminator = [
|
|
57
|
+
44, 133, 228, 138, 169, 242, 53, 36,
|
|
58
|
+
]
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Creates a _CloseVerify_ instruction.
|
|
62
|
+
*
|
|
63
|
+
* @param accounts that will be accessed while the instruction is processed
|
|
64
|
+
* @param args to provide as instruction data to the program
|
|
65
|
+
*
|
|
66
|
+
* @category Instructions
|
|
67
|
+
* @category CloseVerify
|
|
68
|
+
* @category generated
|
|
69
|
+
*/
|
|
70
|
+
export function createCloseVerifyInstruction(
|
|
71
|
+
accounts: CloseVerifyInstructionAccounts,
|
|
72
|
+
args: CloseVerifyInstructionArgs,
|
|
73
|
+
programId: web3.PublicKey
|
|
74
|
+
) {
|
|
75
|
+
const [data] = closeVerifyStruct.serialize({
|
|
76
|
+
instructionDiscriminator: closeVerifyInstructionDiscriminator,
|
|
77
|
+
...args,
|
|
78
|
+
})
|
|
79
|
+
const keys: web3.AccountMeta[] = [
|
|
80
|
+
{
|
|
81
|
+
pubkey: accounts.dvn,
|
|
82
|
+
isWritable: false,
|
|
83
|
+
isSigner: true,
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
pubkey: accounts.receiver,
|
|
87
|
+
isWritable: true,
|
|
88
|
+
isSigner: false,
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
pubkey: accounts.confirmations,
|
|
92
|
+
isWritable: true,
|
|
93
|
+
isSigner: false,
|
|
94
|
+
},
|
|
95
|
+
]
|
|
96
|
+
|
|
97
|
+
if (accounts.anchorRemainingAccounts != null) {
|
|
98
|
+
for (const acc of accounts.anchorRemainingAccounts) {
|
|
99
|
+
keys.push(acc)
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
const ix = new web3.TransactionInstruction({
|
|
104
|
+
programId,
|
|
105
|
+
keys,
|
|
106
|
+
data,
|
|
107
|
+
})
|
|
108
|
+
return ix
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Creates a _CloseVerify_ instructionAccounts.
|
|
113
|
+
*
|
|
114
|
+
* @param accounts that will be accessed while the instruction is processed
|
|
115
|
+
* @category Instructions
|
|
116
|
+
* @category CloseVerify
|
|
117
|
+
* @category generated
|
|
118
|
+
*/
|
|
119
|
+
export function createCloseVerifyInstructionAccounts(
|
|
120
|
+
accounts: CloseVerifyInstructionAccounts,
|
|
121
|
+
programId: web3.PublicKey
|
|
122
|
+
) {
|
|
123
|
+
const keys: web3.AccountMeta[] = [
|
|
124
|
+
{
|
|
125
|
+
pubkey: accounts.dvn,
|
|
126
|
+
isWritable: false,
|
|
127
|
+
isSigner: true,
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
pubkey: accounts.receiver,
|
|
131
|
+
isWritable: true,
|
|
132
|
+
isSigner: false,
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
pubkey: accounts.confirmations,
|
|
136
|
+
isWritable: true,
|
|
137
|
+
isSigner: false,
|
|
138
|
+
},
|
|
139
|
+
]
|
|
140
|
+
|
|
141
|
+
if (accounts.anchorRemainingAccounts != null) {
|
|
142
|
+
for (const acc of accounts.anchorRemainingAccounts) {
|
|
143
|
+
keys.push(acc)
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
return keys
|
|
148
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was GENERATED using the solita package.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
|
|
4
|
+
*
|
|
5
|
+
* See: https://github.com/metaplex-foundation/solita
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import * as beet from '@metaplex-foundation/beet'
|
|
9
|
+
import * as web3 from '@solana/web3.js'
|
|
10
|
+
import {
|
|
11
|
+
CommitVerificationParams,
|
|
12
|
+
commitVerificationParamsBeet,
|
|
13
|
+
} from '../types/CommitVerificationParams'
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @category Instructions
|
|
17
|
+
* @category CommitVerification
|
|
18
|
+
* @category generated
|
|
19
|
+
*/
|
|
20
|
+
export type CommitVerificationInstructionArgs = {
|
|
21
|
+
params: CommitVerificationParams
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @category Instructions
|
|
25
|
+
* @category CommitVerification
|
|
26
|
+
* @category generated
|
|
27
|
+
*/
|
|
28
|
+
export const commitVerificationStruct = new beet.BeetArgsStruct<
|
|
29
|
+
CommitVerificationInstructionArgs & {
|
|
30
|
+
instructionDiscriminator: number[] /* size: 8 */
|
|
31
|
+
}
|
|
32
|
+
>(
|
|
33
|
+
[
|
|
34
|
+
['instructionDiscriminator', beet.uniformFixedSizeArray(beet.u8, 8)],
|
|
35
|
+
['params', commitVerificationParamsBeet],
|
|
36
|
+
],
|
|
37
|
+
'CommitVerificationInstructionArgs'
|
|
38
|
+
)
|
|
39
|
+
/**
|
|
40
|
+
* Accounts required by the _commitVerification_ instruction
|
|
41
|
+
*
|
|
42
|
+
* @property [] receiveConfig
|
|
43
|
+
* @property [] defaultReceiveConfig
|
|
44
|
+
* @property [] uln
|
|
45
|
+
* @category Instructions
|
|
46
|
+
* @category CommitVerification
|
|
47
|
+
* @category generated
|
|
48
|
+
*/
|
|
49
|
+
export type CommitVerificationInstructionAccounts = {
|
|
50
|
+
receiveConfig: web3.PublicKey
|
|
51
|
+
defaultReceiveConfig: web3.PublicKey
|
|
52
|
+
uln: web3.PublicKey
|
|
53
|
+
anchorRemainingAccounts?: web3.AccountMeta[]
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export const commitVerificationInstructionDiscriminator = [
|
|
57
|
+
194, 120, 44, 252, 140, 215, 139, 103,
|
|
58
|
+
]
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Creates a _CommitVerification_ instruction.
|
|
62
|
+
*
|
|
63
|
+
* @param accounts that will be accessed while the instruction is processed
|
|
64
|
+
* @param args to provide as instruction data to the program
|
|
65
|
+
*
|
|
66
|
+
* @category Instructions
|
|
67
|
+
* @category CommitVerification
|
|
68
|
+
* @category generated
|
|
69
|
+
*/
|
|
70
|
+
export function createCommitVerificationInstruction(
|
|
71
|
+
accounts: CommitVerificationInstructionAccounts,
|
|
72
|
+
args: CommitVerificationInstructionArgs,
|
|
73
|
+
programId: web3.PublicKey
|
|
74
|
+
) {
|
|
75
|
+
const [data] = commitVerificationStruct.serialize({
|
|
76
|
+
instructionDiscriminator: commitVerificationInstructionDiscriminator,
|
|
77
|
+
...args,
|
|
78
|
+
})
|
|
79
|
+
const keys: web3.AccountMeta[] = [
|
|
80
|
+
{
|
|
81
|
+
pubkey: accounts.receiveConfig,
|
|
82
|
+
isWritable: false,
|
|
83
|
+
isSigner: false,
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
pubkey: accounts.defaultReceiveConfig,
|
|
87
|
+
isWritable: false,
|
|
88
|
+
isSigner: false,
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
pubkey: accounts.uln,
|
|
92
|
+
isWritable: false,
|
|
93
|
+
isSigner: false,
|
|
94
|
+
},
|
|
95
|
+
]
|
|
96
|
+
|
|
97
|
+
if (accounts.anchorRemainingAccounts != null) {
|
|
98
|
+
for (const acc of accounts.anchorRemainingAccounts) {
|
|
99
|
+
keys.push(acc)
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
const ix = new web3.TransactionInstruction({
|
|
104
|
+
programId,
|
|
105
|
+
keys,
|
|
106
|
+
data,
|
|
107
|
+
})
|
|
108
|
+
return ix
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Creates a _CommitVerification_ instructionAccounts.
|
|
113
|
+
*
|
|
114
|
+
* @param accounts that will be accessed while the instruction is processed
|
|
115
|
+
* @category Instructions
|
|
116
|
+
* @category CommitVerification
|
|
117
|
+
* @category generated
|
|
118
|
+
*/
|
|
119
|
+
export function createCommitVerificationInstructionAccounts(
|
|
120
|
+
accounts: CommitVerificationInstructionAccounts,
|
|
121
|
+
programId: web3.PublicKey
|
|
122
|
+
) {
|
|
123
|
+
const keys: web3.AccountMeta[] = [
|
|
124
|
+
{
|
|
125
|
+
pubkey: accounts.receiveConfig,
|
|
126
|
+
isWritable: false,
|
|
127
|
+
isSigner: false,
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
pubkey: accounts.defaultReceiveConfig,
|
|
131
|
+
isWritable: false,
|
|
132
|
+
isSigner: false,
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
pubkey: accounts.uln,
|
|
136
|
+
isWritable: false,
|
|
137
|
+
isSigner: false,
|
|
138
|
+
},
|
|
139
|
+
]
|
|
140
|
+
|
|
141
|
+
if (accounts.anchorRemainingAccounts != null) {
|
|
142
|
+
for (const acc of accounts.anchorRemainingAccounts) {
|
|
143
|
+
keys.push(acc)
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
return keys
|
|
148
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from './closeVerify'
|
|
2
|
+
export * from './commitVerification'
|
|
3
|
+
export * from './initConfig'
|
|
4
|
+
export * from './initDefaultConfig'
|
|
5
|
+
export * from './initUln'
|
|
6
|
+
export * from './initVerify'
|
|
7
|
+
export * from './quote'
|
|
8
|
+
export * from './send'
|
|
9
|
+
export * from './sendWithLzToken'
|
|
10
|
+
export * from './setConfig'
|
|
11
|
+
export * from './setDefaultConfig'
|
|
12
|
+
export * from './setTreasury'
|
|
13
|
+
export * from './transferAdmin'
|
|
14
|
+
export * from './verify'
|
|
15
|
+
export * from './version'
|
|
16
|
+
export * from './withdrawRent'
|