import * as _metaplex_foundation_umi from '@metaplex-foundation/umi'; import { PublicKey, Pda, Account, RpcAccount, Context, RpcGetAccountOptions, RpcGetAccountsOptions, Option, OptionOrNullable, ProgramError, Program, Signer, TransactionBuilder, ProgramRepositoryInterface, RpcInterface, ClusterFilter, WrappedInstruction, Commitment, AccountMeta, Instruction, AddressLookupTableInput, KeypairSigner } from '@metaplex-foundation/umi'; import { PacketV1Codec, Packet as Packet$2 } from '@layerzerolabs/lz-v2-utilities'; import { Serializer, GetDataEnumKindContent, GetDataEnumKind } from '@metaplex-foundation/umi/serializers'; import { HashSigner } from '@layerzerolabs/lz-foundation'; import * as web3 from '@solana/web3.js'; import { Environment, Network } from '@layerzerolabs/lz-definitions'; declare const PEER_SEED = "Peer"; declare const MINT_SEED = "Mint"; declare const ENFORCED_OPTIONS_SEED = "EnforcedOptions"; declare const EDDSA: _metaplex_foundation_umi.EddsaInterface; /** * derive address for endpoint program */ declare class EndpointPDA { static ENDPOINT_SEED: string; static SEND_LIBRARY_CONFIG_SEED: string; static RECEIVE_LIBRARY_CONFIG_SEED: string; static NONCE_SEED: string; static PENDING_NONCE_SEED: string; static OAPP_SEED: string; static PAYLOAD_HASH_SEED: string; static COMPOSED_MESSAGE_HASH_SEED: string; program: PublicKey; constructor(program: PublicKey); setting(): Pda; defaultSendLibraryConfig(dstEndpointId: number): Pda; sendLibraryConfig(sender: PublicKey, dstEndpointId: number): Pda; /** * @param messageLibrary PDA(derive by message lib program) */ messageLibraryInfo(messageLibrary: PublicKey): Pda; defaultReceiveLibraryConfig(srcEndpointId: number): Pda; receiveLibraryConfig(receiver: PublicKey, srcEndpointId: number): Pda; receiveLibraryTimeout(_dstEndpointId: number): [PublicKey, number]; defaultMessageLib(): Pda; blockMessageLib(blockMsgLib: PublicKey): Pda; /** * @param oapp * @param remoteChainId * @param remoteOapp */ nonce(oapp: PublicKey, remoteChainId: number, remoteOapp: Uint8Array): Pda; pendingNonce(oapp: PublicKey, remoteChainId: number, remoteOapp: Uint8Array): Pda; oappRegistry(oapp: PublicKey): Pda; /*** * @param receiver * @param srcEid * @param sender * @param nonce * @param payloadHash * @srcChainId u32 to big endian Uint8Array * @sender [u8; 32] sender Address * @nonce u64 to big endian Uint8Array * @payloadHash [u8; 32] */ payloadHash(receiver: PublicKey, srcEid: number, sender: Uint8Array, nonce: number | bigint): Pda; composedMessage(from: PublicKey, guid: Uint8Array, index: number, to: PublicKey, messageHash: Uint8Array): Pda; } /*** * derive address by message lib program */ declare class MessageLibPDA { static SEND_CONFIG_SEED: string; static RECEIVE_CONFIG_SEED: string; static MESSAGE_LIB_SEED: string; program: PublicKey; constructor(program: PublicKey); messageLib(): Pda; sendConfig(eid: number, oapp: PublicKey): Pda; receiveConfig(eid: number, oapp: PublicKey): Pda; } declare class UlnPDA extends MessageLibPDA { static ULN_SEED: string; static ULN_CONFIG_SEED: string; static OPTIONS_SEED: string; static CONFIRMATIONS_SEED: string; static WORKER_SEED: string; setting(): Pda; config(eid: number): Pda; defaultSendConfig(eid: number): Pda; defaultReceiveConfig(eid: number): Pda; options(eit: number): Pda; workerConfig(worker: PublicKey): Pda; confirmations(headerHash: Uint8Array, payloadHash: Uint8Array, dvn: PublicKey): Pda; } /** * derive address by base oapp program */ declare class OmniAppPDA { readonly programId: PublicKey; static PEER_SEED: string; static LZ_RECEIVE_TYPES_SEED: string; static LZ_COMPOSE_TYPES_SEED: string; constructor(programId: PublicKey); oapp(): Pda; lzReceiveTypesAccounts(receiver?: PublicKey): Pda; lzComposeTypesAccounts(to?: PublicKey): Pda; } declare class DvnPDA { program: PublicKey; static DVN_CONFIG_SEED: string; constructor(program: PublicKey); authority(): Pda; config(): Pda; executeHash(digestHash: Buffer): Pda; } declare class EventPDA { program: PublicKey; static EVENT_SEED: string; constructor(program: PublicKey); eventAuthority(): Pda; } declare class ExecutorPDA { program: PublicKey; static EXECUTOR_CONFIG_SEED: string; static EXECUTION_CONTEXT_SEED: string; constructor(program: PublicKey); config(): Pda; context(executor: PublicKey, version: number): Pda; } declare class PriceFeedPDA { program: PublicKey; static PRICE_FEED_SEED: string; constructor(program: PublicKey); priceFeed(): Pda; } type ComposeMessageState = Account; type ComposeMessageStateAccountData = { discriminator: Uint8Array; received: boolean; bump: number; }; type ComposeMessageStateAccountDataArgs = { received: boolean; bump: number; }; declare function getComposeMessageStateAccountDataSerializer(): Serializer; declare function deserializeComposeMessageState(rawAccount: RpcAccount): ComposeMessageState; declare function fetchComposeMessageState(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function safeFetchComposeMessageState(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function fetchAllComposeMessageState(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function safeFetchAllComposeMessageState(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function getComposeMessageStateGpaBuilder(context: Pick): _metaplex_foundation_umi.GpaBuilder; declare function getComposeMessageStateSize(): number; type EndpointSettings = Account; type EndpointSettingsAccountData = { discriminator: Uint8Array; eid: number; bump: number; admin: PublicKey; lzTokenMint: Option; }; type EndpointSettingsAccountDataArgs = { eid: number; bump: number; admin: PublicKey; lzTokenMint: OptionOrNullable; }; declare function getEndpointSettingsAccountDataSerializer(): Serializer; declare function deserializeEndpointSettings(rawAccount: RpcAccount): EndpointSettings; declare function fetchEndpointSettings(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function safeFetchEndpointSettings(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function fetchAllEndpointSettings(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function safeFetchAllEndpointSettings(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function getEndpointSettingsGpaBuilder(context: Pick): _metaplex_foundation_umi.GpaBuilder; }>; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ declare enum MessageLibType { Send = 0, Receive = 1, SendAndReceive = 2 } type MessageLibTypeArgs = MessageLibType; declare function getMessageLibTypeSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type MessagingFee$2 = { nativeFee: bigint; lzTokenFee: bigint; }; type MessagingFeeArgs$2 = { nativeFee: number | bigint; lzTokenFee: number | bigint; }; declare function getMessagingFeeSerializer$2(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type MessagingReceipt = { guid: Uint8Array; nonce: bigint; fee: MessagingFee$2; }; type MessagingReceiptArgs = { guid: Uint8Array; nonce: number | bigint; fee: MessagingFeeArgs$2; }; declare function getMessagingReceiptSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type ReceiveLibraryTimeout = { messageLib: PublicKey; expiry: bigint; }; type ReceiveLibraryTimeoutArgs = { messageLib: PublicKey; expiry: number | bigint; }; declare function getReceiveLibraryTimeoutSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type index$u_MessageLibType = MessageLibType; declare const index$u_MessageLibType: typeof MessageLibType; type index$u_MessageLibTypeArgs = MessageLibTypeArgs; type index$u_MessagingReceipt = MessagingReceipt; type index$u_MessagingReceiptArgs = MessagingReceiptArgs; type index$u_ReceiveLibraryTimeout = ReceiveLibraryTimeout; type index$u_ReceiveLibraryTimeoutArgs = ReceiveLibraryTimeoutArgs; declare const index$u_getMessageLibTypeSerializer: typeof getMessageLibTypeSerializer; declare const index$u_getMessagingReceiptSerializer: typeof getMessagingReceiptSerializer; declare const index$u_getReceiveLibraryTimeoutSerializer: typeof getReceiveLibraryTimeoutSerializer; declare namespace index$u { export { index$u_MessageLibType as MessageLibType, type index$u_MessageLibTypeArgs as MessageLibTypeArgs, type MessagingFee$2 as MessagingFee, type MessagingFeeArgs$2 as MessagingFeeArgs, type index$u_MessagingReceipt as MessagingReceipt, type index$u_MessagingReceiptArgs as MessagingReceiptArgs, type index$u_ReceiveLibraryTimeout as ReceiveLibraryTimeout, type index$u_ReceiveLibraryTimeoutArgs as ReceiveLibraryTimeoutArgs, index$u_getMessageLibTypeSerializer as getMessageLibTypeSerializer, getMessagingFeeSerializer$2 as getMessagingFeeSerializer, index$u_getMessagingReceiptSerializer as getMessagingReceiptSerializer, index$u_getReceiveLibraryTimeoutSerializer as getReceiveLibraryTimeoutSerializer }; } type MessageLibInfo = Account; type MessageLibInfoAccountData = { discriminator: Uint8Array; messageLibType: MessageLibType; bump: number; messageLibBump: number; }; type MessageLibInfoAccountDataArgs = { messageLibType: MessageLibTypeArgs; bump: number; messageLibBump: number; }; declare function getMessageLibInfoAccountDataSerializer(): Serializer; declare function deserializeMessageLibInfo(rawAccount: RpcAccount): MessageLibInfo; declare function fetchMessageLibInfo(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function safeFetchMessageLibInfo(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function fetchAllMessageLibInfo(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function safeFetchAllMessageLibInfo(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function getMessageLibInfoGpaBuilder(context: Pick): _metaplex_foundation_umi.GpaBuilder; declare function getMessageLibInfoSize(): number; type Nonce$1 = Account; type NonceAccountData$1 = { discriminator: Uint8Array; bump: number; outboundNonce: bigint; inboundNonce: bigint; }; type NonceAccountDataArgs$1 = { bump: number; outboundNonce: number | bigint; inboundNonce: number | bigint; }; declare function getNonceAccountDataSerializer$1(): Serializer; declare function deserializeNonce$1(rawAccount: RpcAccount): Nonce$1; declare function fetchNonce$1(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function safeFetchNonce$1(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function fetchAllNonce$1(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function safeFetchAllNonce$1(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function getNonceGpaBuilder$1(context: Pick): _metaplex_foundation_umi.GpaBuilder; declare function getNonceSize$1(): number; type OAppRegistry = Account; type OAppRegistryAccountData = { discriminator: Uint8Array; delegate: PublicKey; bump: number; }; type OAppRegistryAccountDataArgs = { delegate: PublicKey; bump: number; }; declare function getOAppRegistryAccountDataSerializer(): Serializer; declare function deserializeOAppRegistry(rawAccount: RpcAccount): OAppRegistry; declare function fetchOAppRegistry(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function safeFetchOAppRegistry(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function fetchAllOAppRegistry(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function safeFetchAllOAppRegistry(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function getOAppRegistryGpaBuilder(context: Pick): _metaplex_foundation_umi.GpaBuilder; declare function getOAppRegistrySize(): number; type PayloadHash = Account; type PayloadHashAccountData = { discriminator: Uint8Array; hash: Uint8Array; bump: number; }; type PayloadHashAccountDataArgs = { hash: Uint8Array; bump: number; }; declare function getPayloadHashAccountDataSerializer(): Serializer; declare function deserializePayloadHash(rawAccount: RpcAccount): PayloadHash; declare function fetchPayloadHash(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function safeFetchPayloadHash(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function fetchAllPayloadHash(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function safeFetchAllPayloadHash(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function getPayloadHashGpaBuilder(context: Pick): _metaplex_foundation_umi.GpaBuilder; declare function getPayloadHashSize(): number; type PendingInboundNonce = Account; type PendingInboundNonceAccountData = { discriminator: Uint8Array; nonces: Array; bump: number; }; type PendingInboundNonceAccountDataArgs = { nonces: Array; bump: number; }; declare function getPendingInboundNonceAccountDataSerializer(): Serializer; declare function deserializePendingInboundNonce(rawAccount: RpcAccount): PendingInboundNonce; declare function fetchPendingInboundNonce(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function safeFetchPendingInboundNonce(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function fetchAllPendingInboundNonce(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function safeFetchAllPendingInboundNonce(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function getPendingInboundNonceGpaBuilder(context: Pick): _metaplex_foundation_umi.GpaBuilder; bump: number; }>; type ReceiveLibraryConfig = Account; type ReceiveLibraryConfigAccountData = { discriminator: Uint8Array; messageLib: PublicKey; timeout: Option; bump: number; }; type ReceiveLibraryConfigAccountDataArgs = { messageLib: PublicKey; timeout: OptionOrNullable; bump: number; }; declare function getReceiveLibraryConfigAccountDataSerializer(): Serializer; declare function deserializeReceiveLibraryConfig(rawAccount: RpcAccount): ReceiveLibraryConfig; declare function fetchReceiveLibraryConfig(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function safeFetchReceiveLibraryConfig(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function fetchAllReceiveLibraryConfig(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function safeFetchAllReceiveLibraryConfig(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function getReceiveLibraryConfigGpaBuilder(context: Pick): _metaplex_foundation_umi.GpaBuilder; bump: number; }>; /** the reason for not using Option::None to indicate default is to respect the spec on evm */ type SendLibraryConfig = Account; type SendLibraryConfigAccountData = { discriminator: Uint8Array; messageLib: PublicKey; bump: number; }; type SendLibraryConfigAccountDataArgs = { messageLib: PublicKey; bump: number; }; declare function getSendLibraryConfigAccountDataSerializer(): Serializer; declare function deserializeSendLibraryConfig(rawAccount: RpcAccount): SendLibraryConfig; declare function fetchSendLibraryConfig(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function safeFetchSendLibraryConfig(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function fetchAllSendLibraryConfig(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function safeFetchAllSendLibraryConfig(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function getSendLibraryConfigGpaBuilder(context: Pick): _metaplex_foundation_umi.GpaBuilder; declare function getSendLibraryConfigSize(): number; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type index$t_ComposeMessageState = ComposeMessageState; type index$t_ComposeMessageStateAccountData = ComposeMessageStateAccountData; type index$t_ComposeMessageStateAccountDataArgs = ComposeMessageStateAccountDataArgs; type index$t_EndpointSettings = EndpointSettings; type index$t_EndpointSettingsAccountData = EndpointSettingsAccountData; type index$t_EndpointSettingsAccountDataArgs = EndpointSettingsAccountDataArgs; type index$t_MessageLibInfo = MessageLibInfo; type index$t_MessageLibInfoAccountData = MessageLibInfoAccountData; type index$t_MessageLibInfoAccountDataArgs = MessageLibInfoAccountDataArgs; type index$t_OAppRegistry = OAppRegistry; type index$t_OAppRegistryAccountData = OAppRegistryAccountData; type index$t_OAppRegistryAccountDataArgs = OAppRegistryAccountDataArgs; type index$t_PayloadHash = PayloadHash; type index$t_PayloadHashAccountData = PayloadHashAccountData; type index$t_PayloadHashAccountDataArgs = PayloadHashAccountDataArgs; type index$t_PendingInboundNonce = PendingInboundNonce; type index$t_PendingInboundNonceAccountData = PendingInboundNonceAccountData; type index$t_PendingInboundNonceAccountDataArgs = PendingInboundNonceAccountDataArgs; type index$t_ReceiveLibraryConfig = ReceiveLibraryConfig; type index$t_ReceiveLibraryConfigAccountData = ReceiveLibraryConfigAccountData; type index$t_ReceiveLibraryConfigAccountDataArgs = ReceiveLibraryConfigAccountDataArgs; type index$t_SendLibraryConfig = SendLibraryConfig; type index$t_SendLibraryConfigAccountData = SendLibraryConfigAccountData; type index$t_SendLibraryConfigAccountDataArgs = SendLibraryConfigAccountDataArgs; declare const index$t_deserializeComposeMessageState: typeof deserializeComposeMessageState; declare const index$t_deserializeEndpointSettings: typeof deserializeEndpointSettings; declare const index$t_deserializeMessageLibInfo: typeof deserializeMessageLibInfo; declare const index$t_deserializeOAppRegistry: typeof deserializeOAppRegistry; declare const index$t_deserializePayloadHash: typeof deserializePayloadHash; declare const index$t_deserializePendingInboundNonce: typeof deserializePendingInboundNonce; declare const index$t_deserializeReceiveLibraryConfig: typeof deserializeReceiveLibraryConfig; declare const index$t_deserializeSendLibraryConfig: typeof deserializeSendLibraryConfig; declare const index$t_fetchAllComposeMessageState: typeof fetchAllComposeMessageState; declare const index$t_fetchAllEndpointSettings: typeof fetchAllEndpointSettings; declare const index$t_fetchAllMessageLibInfo: typeof fetchAllMessageLibInfo; declare const index$t_fetchAllOAppRegistry: typeof fetchAllOAppRegistry; declare const index$t_fetchAllPayloadHash: typeof fetchAllPayloadHash; declare const index$t_fetchAllPendingInboundNonce: typeof fetchAllPendingInboundNonce; declare const index$t_fetchAllReceiveLibraryConfig: typeof fetchAllReceiveLibraryConfig; declare const index$t_fetchAllSendLibraryConfig: typeof fetchAllSendLibraryConfig; declare const index$t_fetchComposeMessageState: typeof fetchComposeMessageState; declare const index$t_fetchEndpointSettings: typeof fetchEndpointSettings; declare const index$t_fetchMessageLibInfo: typeof fetchMessageLibInfo; declare const index$t_fetchOAppRegistry: typeof fetchOAppRegistry; declare const index$t_fetchPayloadHash: typeof fetchPayloadHash; declare const index$t_fetchPendingInboundNonce: typeof fetchPendingInboundNonce; declare const index$t_fetchReceiveLibraryConfig: typeof fetchReceiveLibraryConfig; declare const index$t_fetchSendLibraryConfig: typeof fetchSendLibraryConfig; declare const index$t_getComposeMessageStateAccountDataSerializer: typeof getComposeMessageStateAccountDataSerializer; declare const index$t_getComposeMessageStateGpaBuilder: typeof getComposeMessageStateGpaBuilder; declare const index$t_getComposeMessageStateSize: typeof getComposeMessageStateSize; declare const index$t_getEndpointSettingsAccountDataSerializer: typeof getEndpointSettingsAccountDataSerializer; declare const index$t_getEndpointSettingsGpaBuilder: typeof getEndpointSettingsGpaBuilder; declare const index$t_getMessageLibInfoAccountDataSerializer: typeof getMessageLibInfoAccountDataSerializer; declare const index$t_getMessageLibInfoGpaBuilder: typeof getMessageLibInfoGpaBuilder; declare const index$t_getMessageLibInfoSize: typeof getMessageLibInfoSize; declare const index$t_getOAppRegistryAccountDataSerializer: typeof getOAppRegistryAccountDataSerializer; declare const index$t_getOAppRegistryGpaBuilder: typeof getOAppRegistryGpaBuilder; declare const index$t_getOAppRegistrySize: typeof getOAppRegistrySize; declare const index$t_getPayloadHashAccountDataSerializer: typeof getPayloadHashAccountDataSerializer; declare const index$t_getPayloadHashGpaBuilder: typeof getPayloadHashGpaBuilder; declare const index$t_getPayloadHashSize: typeof getPayloadHashSize; declare const index$t_getPendingInboundNonceAccountDataSerializer: typeof getPendingInboundNonceAccountDataSerializer; declare const index$t_getPendingInboundNonceGpaBuilder: typeof getPendingInboundNonceGpaBuilder; declare const index$t_getReceiveLibraryConfigAccountDataSerializer: typeof getReceiveLibraryConfigAccountDataSerializer; declare const index$t_getReceiveLibraryConfigGpaBuilder: typeof getReceiveLibraryConfigGpaBuilder; declare const index$t_getSendLibraryConfigAccountDataSerializer: typeof getSendLibraryConfigAccountDataSerializer; declare const index$t_getSendLibraryConfigGpaBuilder: typeof getSendLibraryConfigGpaBuilder; declare const index$t_getSendLibraryConfigSize: typeof getSendLibraryConfigSize; declare const index$t_safeFetchAllComposeMessageState: typeof safeFetchAllComposeMessageState; declare const index$t_safeFetchAllEndpointSettings: typeof safeFetchAllEndpointSettings; declare const index$t_safeFetchAllMessageLibInfo: typeof safeFetchAllMessageLibInfo; declare const index$t_safeFetchAllOAppRegistry: typeof safeFetchAllOAppRegistry; declare const index$t_safeFetchAllPayloadHash: typeof safeFetchAllPayloadHash; declare const index$t_safeFetchAllPendingInboundNonce: typeof safeFetchAllPendingInboundNonce; declare const index$t_safeFetchAllReceiveLibraryConfig: typeof safeFetchAllReceiveLibraryConfig; declare const index$t_safeFetchAllSendLibraryConfig: typeof safeFetchAllSendLibraryConfig; declare const index$t_safeFetchComposeMessageState: typeof safeFetchComposeMessageState; declare const index$t_safeFetchEndpointSettings: typeof safeFetchEndpointSettings; declare const index$t_safeFetchMessageLibInfo: typeof safeFetchMessageLibInfo; declare const index$t_safeFetchOAppRegistry: typeof safeFetchOAppRegistry; declare const index$t_safeFetchPayloadHash: typeof safeFetchPayloadHash; declare const index$t_safeFetchPendingInboundNonce: typeof safeFetchPendingInboundNonce; declare const index$t_safeFetchReceiveLibraryConfig: typeof safeFetchReceiveLibraryConfig; declare const index$t_safeFetchSendLibraryConfig: typeof safeFetchSendLibraryConfig; declare namespace index$t { export { type index$t_ComposeMessageState as ComposeMessageState, type index$t_ComposeMessageStateAccountData as ComposeMessageStateAccountData, type index$t_ComposeMessageStateAccountDataArgs as ComposeMessageStateAccountDataArgs, type index$t_EndpointSettings as EndpointSettings, type index$t_EndpointSettingsAccountData as EndpointSettingsAccountData, type index$t_EndpointSettingsAccountDataArgs as EndpointSettingsAccountDataArgs, type index$t_MessageLibInfo as MessageLibInfo, type index$t_MessageLibInfoAccountData as MessageLibInfoAccountData, type index$t_MessageLibInfoAccountDataArgs as MessageLibInfoAccountDataArgs, type Nonce$1 as Nonce, type NonceAccountData$1 as NonceAccountData, type NonceAccountDataArgs$1 as NonceAccountDataArgs, type index$t_OAppRegistry as OAppRegistry, type index$t_OAppRegistryAccountData as OAppRegistryAccountData, type index$t_OAppRegistryAccountDataArgs as OAppRegistryAccountDataArgs, type index$t_PayloadHash as PayloadHash, type index$t_PayloadHashAccountData as PayloadHashAccountData, type index$t_PayloadHashAccountDataArgs as PayloadHashAccountDataArgs, type index$t_PendingInboundNonce as PendingInboundNonce, type index$t_PendingInboundNonceAccountData as PendingInboundNonceAccountData, type index$t_PendingInboundNonceAccountDataArgs as PendingInboundNonceAccountDataArgs, type index$t_ReceiveLibraryConfig as ReceiveLibraryConfig, type index$t_ReceiveLibraryConfigAccountData as ReceiveLibraryConfigAccountData, type index$t_ReceiveLibraryConfigAccountDataArgs as ReceiveLibraryConfigAccountDataArgs, type index$t_SendLibraryConfig as SendLibraryConfig, type index$t_SendLibraryConfigAccountData as SendLibraryConfigAccountData, type index$t_SendLibraryConfigAccountDataArgs as SendLibraryConfigAccountDataArgs, index$t_deserializeComposeMessageState as deserializeComposeMessageState, index$t_deserializeEndpointSettings as deserializeEndpointSettings, index$t_deserializeMessageLibInfo as deserializeMessageLibInfo, deserializeNonce$1 as deserializeNonce, index$t_deserializeOAppRegistry as deserializeOAppRegistry, index$t_deserializePayloadHash as deserializePayloadHash, index$t_deserializePendingInboundNonce as deserializePendingInboundNonce, index$t_deserializeReceiveLibraryConfig as deserializeReceiveLibraryConfig, index$t_deserializeSendLibraryConfig as deserializeSendLibraryConfig, index$t_fetchAllComposeMessageState as fetchAllComposeMessageState, index$t_fetchAllEndpointSettings as fetchAllEndpointSettings, index$t_fetchAllMessageLibInfo as fetchAllMessageLibInfo, fetchAllNonce$1 as fetchAllNonce, index$t_fetchAllOAppRegistry as fetchAllOAppRegistry, index$t_fetchAllPayloadHash as fetchAllPayloadHash, index$t_fetchAllPendingInboundNonce as fetchAllPendingInboundNonce, index$t_fetchAllReceiveLibraryConfig as fetchAllReceiveLibraryConfig, index$t_fetchAllSendLibraryConfig as fetchAllSendLibraryConfig, index$t_fetchComposeMessageState as fetchComposeMessageState, index$t_fetchEndpointSettings as fetchEndpointSettings, index$t_fetchMessageLibInfo as fetchMessageLibInfo, fetchNonce$1 as fetchNonce, index$t_fetchOAppRegistry as fetchOAppRegistry, index$t_fetchPayloadHash as fetchPayloadHash, index$t_fetchPendingInboundNonce as fetchPendingInboundNonce, index$t_fetchReceiveLibraryConfig as fetchReceiveLibraryConfig, index$t_fetchSendLibraryConfig as fetchSendLibraryConfig, index$t_getComposeMessageStateAccountDataSerializer as getComposeMessageStateAccountDataSerializer, index$t_getComposeMessageStateGpaBuilder as getComposeMessageStateGpaBuilder, index$t_getComposeMessageStateSize as getComposeMessageStateSize, index$t_getEndpointSettingsAccountDataSerializer as getEndpointSettingsAccountDataSerializer, index$t_getEndpointSettingsGpaBuilder as getEndpointSettingsGpaBuilder, index$t_getMessageLibInfoAccountDataSerializer as getMessageLibInfoAccountDataSerializer, index$t_getMessageLibInfoGpaBuilder as getMessageLibInfoGpaBuilder, index$t_getMessageLibInfoSize as getMessageLibInfoSize, getNonceAccountDataSerializer$1 as getNonceAccountDataSerializer, getNonceGpaBuilder$1 as getNonceGpaBuilder, getNonceSize$1 as getNonceSize, index$t_getOAppRegistryAccountDataSerializer as getOAppRegistryAccountDataSerializer, index$t_getOAppRegistryGpaBuilder as getOAppRegistryGpaBuilder, index$t_getOAppRegistrySize as getOAppRegistrySize, index$t_getPayloadHashAccountDataSerializer as getPayloadHashAccountDataSerializer, index$t_getPayloadHashGpaBuilder as getPayloadHashGpaBuilder, index$t_getPayloadHashSize as getPayloadHashSize, index$t_getPendingInboundNonceAccountDataSerializer as getPendingInboundNonceAccountDataSerializer, index$t_getPendingInboundNonceGpaBuilder as getPendingInboundNonceGpaBuilder, index$t_getReceiveLibraryConfigAccountDataSerializer as getReceiveLibraryConfigAccountDataSerializer, index$t_getReceiveLibraryConfigGpaBuilder as getReceiveLibraryConfigGpaBuilder, index$t_getSendLibraryConfigAccountDataSerializer as getSendLibraryConfigAccountDataSerializer, index$t_getSendLibraryConfigGpaBuilder as getSendLibraryConfigGpaBuilder, index$t_getSendLibraryConfigSize as getSendLibraryConfigSize, index$t_safeFetchAllComposeMessageState as safeFetchAllComposeMessageState, index$t_safeFetchAllEndpointSettings as safeFetchAllEndpointSettings, index$t_safeFetchAllMessageLibInfo as safeFetchAllMessageLibInfo, safeFetchAllNonce$1 as safeFetchAllNonce, index$t_safeFetchAllOAppRegistry as safeFetchAllOAppRegistry, index$t_safeFetchAllPayloadHash as safeFetchAllPayloadHash, index$t_safeFetchAllPendingInboundNonce as safeFetchAllPendingInboundNonce, index$t_safeFetchAllReceiveLibraryConfig as safeFetchAllReceiveLibraryConfig, index$t_safeFetchAllSendLibraryConfig as safeFetchAllSendLibraryConfig, index$t_safeFetchComposeMessageState as safeFetchComposeMessageState, index$t_safeFetchEndpointSettings as safeFetchEndpointSettings, index$t_safeFetchMessageLibInfo as safeFetchMessageLibInfo, safeFetchNonce$1 as safeFetchNonce, index$t_safeFetchOAppRegistry as safeFetchOAppRegistry, index$t_safeFetchPayloadHash as safeFetchPayloadHash, index$t_safeFetchPendingInboundNonce as safeFetchPendingInboundNonce, index$t_safeFetchReceiveLibraryConfig as safeFetchReceiveLibraryConfig, index$t_safeFetchSendLibraryConfig as safeFetchSendLibraryConfig }; } /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ /** InvalidSendLibrary */ declare class InvalidSendLibraryError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidReceiveLibrary */ declare class InvalidReceiveLibraryError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** SameValue */ declare class SameValueError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** AccountNotFound */ declare class AccountNotFoundError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** OnlySendLib */ declare class OnlySendLibError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** OnlyReceiveLib */ declare class OnlyReceiveLibError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidExpiry */ declare class InvalidExpiryError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** OnlyNonDefaultLib */ declare class OnlyNonDefaultLibError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidAmount */ declare class InvalidAmountError$3 extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidNonce */ declare class InvalidNonceError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** Unauthorized */ declare class UnauthorizedError$1 extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** PayloadHashNotFound */ declare class PayloadHashNotFoundError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** ComposeNotFound */ declare class ComposeNotFoundError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidPayloadHash */ declare class InvalidPayloadHashError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** LzTokenUnavailable */ declare class LzTokenUnavailableError$2 extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** ReadOnlyAccount */ declare class ReadOnlyAccountError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidMessageLib */ declare class InvalidMessageLibError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** WritableAccountNotAllowed */ declare class WritableAccountNotAllowedError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** * Attempts to resolve a custom program error from the provided error code. * @category Errors */ declare function getEndpointErrorFromCode(code: number, program: Program, cause?: Error): ProgramError | null; /** * Attempts to resolve a custom program error from the provided error name, i.e. 'Unauthorized'. * @category Errors */ declare function getEndpointErrorFromName(name: string, program: Program, cause?: Error): ProgramError | null; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type index$s_AccountNotFoundError = AccountNotFoundError; declare const index$s_AccountNotFoundError: typeof AccountNotFoundError; type index$s_ComposeNotFoundError = ComposeNotFoundError; declare const index$s_ComposeNotFoundError: typeof ComposeNotFoundError; type index$s_InvalidExpiryError = InvalidExpiryError; declare const index$s_InvalidExpiryError: typeof InvalidExpiryError; type index$s_InvalidMessageLibError = InvalidMessageLibError; declare const index$s_InvalidMessageLibError: typeof InvalidMessageLibError; type index$s_InvalidNonceError = InvalidNonceError; declare const index$s_InvalidNonceError: typeof InvalidNonceError; type index$s_InvalidPayloadHashError = InvalidPayloadHashError; declare const index$s_InvalidPayloadHashError: typeof InvalidPayloadHashError; type index$s_InvalidReceiveLibraryError = InvalidReceiveLibraryError; declare const index$s_InvalidReceiveLibraryError: typeof InvalidReceiveLibraryError; type index$s_InvalidSendLibraryError = InvalidSendLibraryError; declare const index$s_InvalidSendLibraryError: typeof InvalidSendLibraryError; type index$s_OnlyNonDefaultLibError = OnlyNonDefaultLibError; declare const index$s_OnlyNonDefaultLibError: typeof OnlyNonDefaultLibError; type index$s_OnlyReceiveLibError = OnlyReceiveLibError; declare const index$s_OnlyReceiveLibError: typeof OnlyReceiveLibError; type index$s_OnlySendLibError = OnlySendLibError; declare const index$s_OnlySendLibError: typeof OnlySendLibError; type index$s_PayloadHashNotFoundError = PayloadHashNotFoundError; declare const index$s_PayloadHashNotFoundError: typeof PayloadHashNotFoundError; type index$s_ReadOnlyAccountError = ReadOnlyAccountError; declare const index$s_ReadOnlyAccountError: typeof ReadOnlyAccountError; type index$s_SameValueError = SameValueError; declare const index$s_SameValueError: typeof SameValueError; type index$s_WritableAccountNotAllowedError = WritableAccountNotAllowedError; declare const index$s_WritableAccountNotAllowedError: typeof WritableAccountNotAllowedError; declare const index$s_getEndpointErrorFromCode: typeof getEndpointErrorFromCode; declare const index$s_getEndpointErrorFromName: typeof getEndpointErrorFromName; declare namespace index$s { export { index$s_AccountNotFoundError as AccountNotFoundError, index$s_ComposeNotFoundError as ComposeNotFoundError, InvalidAmountError$3 as InvalidAmountError, index$s_InvalidExpiryError as InvalidExpiryError, index$s_InvalidMessageLibError as InvalidMessageLibError, index$s_InvalidNonceError as InvalidNonceError, index$s_InvalidPayloadHashError as InvalidPayloadHashError, index$s_InvalidReceiveLibraryError as InvalidReceiveLibraryError, index$s_InvalidSendLibraryError as InvalidSendLibraryError, LzTokenUnavailableError$2 as LzTokenUnavailableError, index$s_OnlyNonDefaultLibError as OnlyNonDefaultLibError, index$s_OnlyReceiveLibError as OnlyReceiveLibError, index$s_OnlySendLibError as OnlySendLibError, index$s_PayloadHashNotFoundError as PayloadHashNotFoundError, index$s_ReadOnlyAccountError as ReadOnlyAccountError, index$s_SameValueError as SameValueError, UnauthorizedError$1 as UnauthorizedError, index$s_WritableAccountNotAllowedError as WritableAccountNotAllowedError, index$s_getEndpointErrorFromCode as getEndpointErrorFromCode, index$s_getEndpointErrorFromName as getEndpointErrorFromName }; } /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type AdminTransferredEvent$1 = { newAdmin: PublicKey; }; type AdminTransferredEventArgs$1 = AdminTransferredEvent$1; declare function getAdminTransferredEventSerializer$1(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type ComposeDeliveredEvent = { from: PublicKey; to: PublicKey; guid: Uint8Array; index: number; }; type ComposeDeliveredEventArgs = ComposeDeliveredEvent; declare function getComposeDeliveredEventSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type ComposeSentEvent = { from: PublicKey; to: PublicKey; guid: Uint8Array; index: number; message: Uint8Array; }; type ComposeSentEventArgs = ComposeSentEvent; declare function getComposeSentEventSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type DefaultReceiveLibrarySetEvent = { eid: number; newLib: PublicKey; }; type DefaultReceiveLibrarySetEventArgs = DefaultReceiveLibrarySetEvent; declare function getDefaultReceiveLibrarySetEventSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type DefaultReceiveLibraryTimeoutSetEvent = { eid: number; timeout: Option; }; type DefaultReceiveLibraryTimeoutSetEventArgs = { eid: number; timeout: OptionOrNullable; }; declare function getDefaultReceiveLibraryTimeoutSetEventSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type DefaultSendLibrarySetEvent = { eid: number; newLib: PublicKey; }; type DefaultSendLibrarySetEventArgs = DefaultSendLibrarySetEvent; declare function getDefaultSendLibrarySetEventSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type DelegateSetEvent = { newDelegate: PublicKey; }; type DelegateSetEventArgs = DelegateSetEvent; declare function getDelegateSetEventSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type InboundNonceSkippedEvent = { srcEid: number; sender: Uint8Array; receiver: PublicKey; nonce: bigint; }; type InboundNonceSkippedEventArgs = { srcEid: number; sender: Uint8Array; receiver: PublicKey; nonce: number | bigint; }; declare function getInboundNonceSkippedEventSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type LibraryRegisteredEvent = { newLib: PublicKey; newLibProgram: PublicKey; }; type LibraryRegisteredEventArgs = LibraryRegisteredEvent; declare function getLibraryRegisteredEventSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type LzComposeAlertEvent = { executor: PublicKey; from: PublicKey; to: PublicKey; guid: Uint8Array; index: number; computeUnits: bigint; value: bigint; message: Uint8Array; extraData: Uint8Array; reason: Uint8Array; }; type LzComposeAlertEventArgs = { executor: PublicKey; from: PublicKey; to: PublicKey; guid: Uint8Array; index: number; computeUnits: number | bigint; value: number | bigint; message: Uint8Array; extraData: Uint8Array; reason: Uint8Array; }; declare function getLzComposeAlertEventSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type LzReceiveAlertEvent = { receiver: PublicKey; executor: PublicKey; srcEid: number; sender: Uint8Array; nonce: bigint; guid: Uint8Array; computeUnits: bigint; value: bigint; message: Uint8Array; extraData: Uint8Array; reason: Uint8Array; }; type LzReceiveAlertEventArgs = { receiver: PublicKey; executor: PublicKey; srcEid: number; sender: Uint8Array; nonce: number | bigint; guid: Uint8Array; computeUnits: number | bigint; value: number | bigint; message: Uint8Array; extraData: Uint8Array; reason: Uint8Array; }; declare function getLzReceiveAlertEventSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type LzTokenSetEvent = { token: Option; }; type LzTokenSetEventArgs = { token: OptionOrNullable; }; declare function getLzTokenSetEventSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type OAppRegisteredEvent = { oapp: PublicKey; delegate: PublicKey; }; type OAppRegisteredEventArgs = OAppRegisteredEvent; declare function getOAppRegisteredEventSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type PacketBurntEvent = { srcEid: number; sender: Uint8Array; receiver: PublicKey; nonce: bigint; payloadHash: Uint8Array; }; type PacketBurntEventArgs = { srcEid: number; sender: Uint8Array; receiver: PublicKey; nonce: number | bigint; payloadHash: Uint8Array; }; declare function getPacketBurntEventSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type PacketDeliveredEvent = { srcEid: number; sender: Uint8Array; receiver: PublicKey; nonce: bigint; }; type PacketDeliveredEventArgs = { srcEid: number; sender: Uint8Array; receiver: PublicKey; nonce: number | bigint; }; declare function getPacketDeliveredEventSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type PacketNilifiedEvent = { srcEid: number; sender: Uint8Array; receiver: PublicKey; nonce: bigint; payloadHash: Uint8Array; }; type PacketNilifiedEventArgs = { srcEid: number; sender: Uint8Array; receiver: PublicKey; nonce: number | bigint; payloadHash: Uint8Array; }; declare function getPacketNilifiedEventSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type PacketSentEvent = { encodedPacket: Uint8Array; options: Uint8Array; sendLibrary: PublicKey; }; type PacketSentEventArgs = PacketSentEvent; declare function getPacketSentEventSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type PacketVerifiedEvent = { srcEid: number; sender: Uint8Array; receiver: PublicKey; nonce: bigint; payloadHash: Uint8Array; }; type PacketVerifiedEventArgs = { srcEid: number; sender: Uint8Array; receiver: PublicKey; nonce: number | bigint; payloadHash: Uint8Array; }; declare function getPacketVerifiedEventSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type ReceiveLibrarySetEvent = { receiver: PublicKey; eid: number; newLib: PublicKey; }; type ReceiveLibrarySetEventArgs = ReceiveLibrarySetEvent; declare function getReceiveLibrarySetEventSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type ReceiveLibraryTimeoutSetEvent = { receiver: PublicKey; eid: number; timeout: Option; }; type ReceiveLibraryTimeoutSetEventArgs = { receiver: PublicKey; eid: number; timeout: OptionOrNullable; }; declare function getReceiveLibraryTimeoutSetEventSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type RentWithdrawnEvent$1 = { receiver: PublicKey; amount: bigint; }; type RentWithdrawnEventArgs$1 = { receiver: PublicKey; amount: number | bigint; }; declare function getRentWithdrawnEventSerializer$1(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type SendLibrarySetEvent = { sender: PublicKey; eid: number; newLib: PublicKey; }; type SendLibrarySetEventArgs = SendLibrarySetEvent; declare function getSendLibrarySetEventSerializer(): Serializer; type index$r_ComposeDeliveredEvent = ComposeDeliveredEvent; type index$r_ComposeDeliveredEventArgs = ComposeDeliveredEventArgs; type index$r_ComposeSentEvent = ComposeSentEvent; type index$r_ComposeSentEventArgs = ComposeSentEventArgs; type index$r_DefaultReceiveLibrarySetEvent = DefaultReceiveLibrarySetEvent; type index$r_DefaultReceiveLibrarySetEventArgs = DefaultReceiveLibrarySetEventArgs; type index$r_DefaultReceiveLibraryTimeoutSetEvent = DefaultReceiveLibraryTimeoutSetEvent; type index$r_DefaultReceiveLibraryTimeoutSetEventArgs = DefaultReceiveLibraryTimeoutSetEventArgs; type index$r_DefaultSendLibrarySetEvent = DefaultSendLibrarySetEvent; type index$r_DefaultSendLibrarySetEventArgs = DefaultSendLibrarySetEventArgs; type index$r_DelegateSetEvent = DelegateSetEvent; type index$r_DelegateSetEventArgs = DelegateSetEventArgs; type index$r_InboundNonceSkippedEvent = InboundNonceSkippedEvent; type index$r_InboundNonceSkippedEventArgs = InboundNonceSkippedEventArgs; type index$r_LibraryRegisteredEvent = LibraryRegisteredEvent; type index$r_LibraryRegisteredEventArgs = LibraryRegisteredEventArgs; type index$r_LzComposeAlertEvent = LzComposeAlertEvent; type index$r_LzComposeAlertEventArgs = LzComposeAlertEventArgs; type index$r_LzReceiveAlertEvent = LzReceiveAlertEvent; type index$r_LzReceiveAlertEventArgs = LzReceiveAlertEventArgs; type index$r_LzTokenSetEvent = LzTokenSetEvent; type index$r_LzTokenSetEventArgs = LzTokenSetEventArgs; type index$r_OAppRegisteredEvent = OAppRegisteredEvent; type index$r_OAppRegisteredEventArgs = OAppRegisteredEventArgs; type index$r_PacketBurntEvent = PacketBurntEvent; type index$r_PacketBurntEventArgs = PacketBurntEventArgs; type index$r_PacketDeliveredEvent = PacketDeliveredEvent; type index$r_PacketDeliveredEventArgs = PacketDeliveredEventArgs; type index$r_PacketNilifiedEvent = PacketNilifiedEvent; type index$r_PacketNilifiedEventArgs = PacketNilifiedEventArgs; type index$r_PacketSentEvent = PacketSentEvent; type index$r_PacketSentEventArgs = PacketSentEventArgs; type index$r_PacketVerifiedEvent = PacketVerifiedEvent; type index$r_PacketVerifiedEventArgs = PacketVerifiedEventArgs; type index$r_ReceiveLibrarySetEvent = ReceiveLibrarySetEvent; type index$r_ReceiveLibrarySetEventArgs = ReceiveLibrarySetEventArgs; type index$r_ReceiveLibraryTimeoutSetEvent = ReceiveLibraryTimeoutSetEvent; type index$r_ReceiveLibraryTimeoutSetEventArgs = ReceiveLibraryTimeoutSetEventArgs; type index$r_SendLibrarySetEvent = SendLibrarySetEvent; type index$r_SendLibrarySetEventArgs = SendLibrarySetEventArgs; declare const index$r_getComposeDeliveredEventSerializer: typeof getComposeDeliveredEventSerializer; declare const index$r_getComposeSentEventSerializer: typeof getComposeSentEventSerializer; declare const index$r_getDefaultReceiveLibrarySetEventSerializer: typeof getDefaultReceiveLibrarySetEventSerializer; declare const index$r_getDefaultReceiveLibraryTimeoutSetEventSerializer: typeof getDefaultReceiveLibraryTimeoutSetEventSerializer; declare const index$r_getDefaultSendLibrarySetEventSerializer: typeof getDefaultSendLibrarySetEventSerializer; declare const index$r_getDelegateSetEventSerializer: typeof getDelegateSetEventSerializer; declare const index$r_getInboundNonceSkippedEventSerializer: typeof getInboundNonceSkippedEventSerializer; declare const index$r_getLibraryRegisteredEventSerializer: typeof getLibraryRegisteredEventSerializer; declare const index$r_getLzComposeAlertEventSerializer: typeof getLzComposeAlertEventSerializer; declare const index$r_getLzReceiveAlertEventSerializer: typeof getLzReceiveAlertEventSerializer; declare const index$r_getLzTokenSetEventSerializer: typeof getLzTokenSetEventSerializer; declare const index$r_getOAppRegisteredEventSerializer: typeof getOAppRegisteredEventSerializer; declare const index$r_getPacketBurntEventSerializer: typeof getPacketBurntEventSerializer; declare const index$r_getPacketDeliveredEventSerializer: typeof getPacketDeliveredEventSerializer; declare const index$r_getPacketNilifiedEventSerializer: typeof getPacketNilifiedEventSerializer; declare const index$r_getPacketSentEventSerializer: typeof getPacketSentEventSerializer; declare const index$r_getPacketVerifiedEventSerializer: typeof getPacketVerifiedEventSerializer; declare const index$r_getReceiveLibrarySetEventSerializer: typeof getReceiveLibrarySetEventSerializer; declare const index$r_getReceiveLibraryTimeoutSetEventSerializer: typeof getReceiveLibraryTimeoutSetEventSerializer; declare const index$r_getSendLibrarySetEventSerializer: typeof getSendLibrarySetEventSerializer; declare namespace index$r { export { type AdminTransferredEvent$1 as AdminTransferredEvent, type AdminTransferredEventArgs$1 as AdminTransferredEventArgs, type index$r_ComposeDeliveredEvent as ComposeDeliveredEvent, type index$r_ComposeDeliveredEventArgs as ComposeDeliveredEventArgs, type index$r_ComposeSentEvent as ComposeSentEvent, type index$r_ComposeSentEventArgs as ComposeSentEventArgs, type index$r_DefaultReceiveLibrarySetEvent as DefaultReceiveLibrarySetEvent, type index$r_DefaultReceiveLibrarySetEventArgs as DefaultReceiveLibrarySetEventArgs, type index$r_DefaultReceiveLibraryTimeoutSetEvent as DefaultReceiveLibraryTimeoutSetEvent, type index$r_DefaultReceiveLibraryTimeoutSetEventArgs as DefaultReceiveLibraryTimeoutSetEventArgs, type index$r_DefaultSendLibrarySetEvent as DefaultSendLibrarySetEvent, type index$r_DefaultSendLibrarySetEventArgs as DefaultSendLibrarySetEventArgs, type index$r_DelegateSetEvent as DelegateSetEvent, type index$r_DelegateSetEventArgs as DelegateSetEventArgs, type index$r_InboundNonceSkippedEvent as InboundNonceSkippedEvent, type index$r_InboundNonceSkippedEventArgs as InboundNonceSkippedEventArgs, type index$r_LibraryRegisteredEvent as LibraryRegisteredEvent, type index$r_LibraryRegisteredEventArgs as LibraryRegisteredEventArgs, type index$r_LzComposeAlertEvent as LzComposeAlertEvent, type index$r_LzComposeAlertEventArgs as LzComposeAlertEventArgs, type index$r_LzReceiveAlertEvent as LzReceiveAlertEvent, type index$r_LzReceiveAlertEventArgs as LzReceiveAlertEventArgs, type index$r_LzTokenSetEvent as LzTokenSetEvent, type index$r_LzTokenSetEventArgs as LzTokenSetEventArgs, type index$r_OAppRegisteredEvent as OAppRegisteredEvent, type index$r_OAppRegisteredEventArgs as OAppRegisteredEventArgs, type index$r_PacketBurntEvent as PacketBurntEvent, type index$r_PacketBurntEventArgs as PacketBurntEventArgs, type index$r_PacketDeliveredEvent as PacketDeliveredEvent, type index$r_PacketDeliveredEventArgs as PacketDeliveredEventArgs, type index$r_PacketNilifiedEvent as PacketNilifiedEvent, type index$r_PacketNilifiedEventArgs as PacketNilifiedEventArgs, type index$r_PacketSentEvent as PacketSentEvent, type index$r_PacketSentEventArgs as PacketSentEventArgs, type index$r_PacketVerifiedEvent as PacketVerifiedEvent, type index$r_PacketVerifiedEventArgs as PacketVerifiedEventArgs, type index$r_ReceiveLibrarySetEvent as ReceiveLibrarySetEvent, type index$r_ReceiveLibrarySetEventArgs as ReceiveLibrarySetEventArgs, type index$r_ReceiveLibraryTimeoutSetEvent as ReceiveLibraryTimeoutSetEvent, type index$r_ReceiveLibraryTimeoutSetEventArgs as ReceiveLibraryTimeoutSetEventArgs, type RentWithdrawnEvent$1 as RentWithdrawnEvent, type RentWithdrawnEventArgs$1 as RentWithdrawnEventArgs, type index$r_SendLibrarySetEvent as SendLibrarySetEvent, type index$r_SendLibrarySetEventArgs as SendLibrarySetEventArgs, getAdminTransferredEventSerializer$1 as getAdminTransferredEventSerializer, index$r_getComposeDeliveredEventSerializer as getComposeDeliveredEventSerializer, index$r_getComposeSentEventSerializer as getComposeSentEventSerializer, index$r_getDefaultReceiveLibrarySetEventSerializer as getDefaultReceiveLibrarySetEventSerializer, index$r_getDefaultReceiveLibraryTimeoutSetEventSerializer as getDefaultReceiveLibraryTimeoutSetEventSerializer, index$r_getDefaultSendLibrarySetEventSerializer as getDefaultSendLibrarySetEventSerializer, index$r_getDelegateSetEventSerializer as getDelegateSetEventSerializer, index$r_getInboundNonceSkippedEventSerializer as getInboundNonceSkippedEventSerializer, index$r_getLibraryRegisteredEventSerializer as getLibraryRegisteredEventSerializer, index$r_getLzComposeAlertEventSerializer as getLzComposeAlertEventSerializer, index$r_getLzReceiveAlertEventSerializer as getLzReceiveAlertEventSerializer, index$r_getLzTokenSetEventSerializer as getLzTokenSetEventSerializer, index$r_getOAppRegisteredEventSerializer as getOAppRegisteredEventSerializer, index$r_getPacketBurntEventSerializer as getPacketBurntEventSerializer, index$r_getPacketDeliveredEventSerializer as getPacketDeliveredEventSerializer, index$r_getPacketNilifiedEventSerializer as getPacketNilifiedEventSerializer, index$r_getPacketSentEventSerializer as getPacketSentEventSerializer, index$r_getPacketVerifiedEventSerializer as getPacketVerifiedEventSerializer, index$r_getReceiveLibrarySetEventSerializer as getReceiveLibrarySetEventSerializer, index$r_getReceiveLibraryTimeoutSetEventSerializer as getReceiveLibraryTimeoutSetEventSerializer, getRentWithdrawnEventSerializer$1 as getRentWithdrawnEventSerializer, index$r_getSendLibrarySetEventSerializer as getSendLibrarySetEventSerializer }; } /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type BurnInstructionAccounts = { /** The PDA of the OApp or delegate */ signer: Signer; oappRegistry: PublicKey | Pda; nonce: PublicKey | Pda; /** close the account and return the lamports to endpoint settings account */ payloadHash: PublicKey | Pda; endpoint: PublicKey | Pda; eventAuthority: PublicKey | Pda; program: PublicKey | Pda; }; type BurnInstructionData = { discriminator: Uint8Array; receiver: PublicKey; srcEid: number; sender: Uint8Array; nonce: bigint; payloadHash: Uint8Array; }; type BurnInstructionDataArgs = { receiver: PublicKey; srcEid: number; sender: Uint8Array; nonce: number | bigint; payloadHash: Uint8Array; }; declare function getBurnInstructionDataSerializer(): Serializer; type BurnInstructionArgs = BurnInstructionDataArgs; declare function burn(context: Pick, accounts: BurnInstructionAccounts, args: BurnInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type ClearInstructionAccounts = { /** The PDA of the OApp or delegate */ signer: Signer; oappRegistry: PublicKey | Pda; nonce: PublicKey | Pda; /** close the account and return the lamports to endpoint settings account */ payloadHash: PublicKey | Pda; endpoint: PublicKey | Pda; eventAuthority: PublicKey | Pda; program: PublicKey | Pda; }; type ClearInstructionData = { discriminator: Uint8Array; receiver: PublicKey; srcEid: number; sender: Uint8Array; nonce: bigint; guid: Uint8Array; message: Uint8Array; }; type ClearInstructionDataArgs = { receiver: PublicKey; srcEid: number; sender: Uint8Array; nonce: number | bigint; guid: Uint8Array; message: Uint8Array; }; declare function getClearInstructionDataSerializer(): Serializer; type ClearInstructionArgs = ClearInstructionDataArgs; declare function clear(context: Pick, accounts: ClearInstructionAccounts, args: ClearInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type ClearComposeInstructionAccounts = { to: Signer; composeMessage: PublicKey | Pda; eventAuthority: PublicKey | Pda; program: PublicKey | Pda; }; type ClearComposeInstructionData = { discriminator: Uint8Array; from: PublicKey; guid: Uint8Array; index: number; message: Uint8Array; }; type ClearComposeInstructionDataArgs = { from: PublicKey; guid: Uint8Array; index: number; message: Uint8Array; }; declare function getClearComposeInstructionDataSerializer(): Serializer; type ClearComposeInstructionArgs = ClearComposeInstructionDataArgs; declare function clearCompose(context: Pick, input: ClearComposeInstructionAccounts & ClearComposeInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type InitConfigInstructionAccounts$2 = { /** only the delegate can initialize the config accounts */ delegate: Signer; oappRegistry: PublicKey | Pda; /** The PDA signer to the message lib when the endpoint calls the message lib program. */ messageLibInfo: PublicKey | Pda; /** the pda of the message_lib_program */ messageLib: PublicKey | Pda; messageLibProgram: PublicKey | Pda; }; type InitConfigInstructionData$2 = { discriminator: Uint8Array; oapp: PublicKey; eid: number; }; type InitConfigInstructionDataArgs$2 = { oapp: PublicKey; eid: number; }; declare function getInitConfigInstructionDataSerializer$2(): Serializer; type InitConfigInstructionArgs$2 = InitConfigInstructionDataArgs$2; declare function initConfig$2(context: Pick, input: InitConfigInstructionAccounts$2 & InitConfigInstructionArgs$2): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type InitDefaultReceiveLibraryInstructionAccounts = { admin: Signer; endpoint: PublicKey | Pda; defaultReceiveLibraryConfig: PublicKey | Pda; messageLibInfo: PublicKey | Pda; systemProgram?: PublicKey | Pda; eventAuthority: PublicKey | Pda; program: PublicKey | Pda; }; type InitDefaultReceiveLibraryInstructionData = { discriminator: Uint8Array; eid: number; newLib: PublicKey; }; type InitDefaultReceiveLibraryInstructionDataArgs = { eid: number; newLib: PublicKey; }; declare function getInitDefaultReceiveLibraryInstructionDataSerializer(): Serializer; type InitDefaultReceiveLibraryInstructionArgs = InitDefaultReceiveLibraryInstructionDataArgs; declare function initDefaultReceiveLibrary(context: Pick, input: InitDefaultReceiveLibraryInstructionAccounts & InitDefaultReceiveLibraryInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type InitDefaultSendLibraryInstructionAccounts = { admin: Signer; endpoint: PublicKey | Pda; defaultSendLibraryConfig: PublicKey | Pda; messageLibInfo: PublicKey | Pda; systemProgram?: PublicKey | Pda; eventAuthority: PublicKey | Pda; program: PublicKey | Pda; }; type InitDefaultSendLibraryInstructionData = { discriminator: Uint8Array; eid: number; newLib: PublicKey; }; type InitDefaultSendLibraryInstructionDataArgs = { eid: number; newLib: PublicKey; }; declare function getInitDefaultSendLibraryInstructionDataSerializer(): Serializer; type InitDefaultSendLibraryInstructionArgs = InitDefaultSendLibraryInstructionDataArgs; declare function initDefaultSendLibrary(context: Pick, input: InitDefaultSendLibraryInstructionAccounts & InitDefaultSendLibraryInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type InitEndpointInstructionAccounts = { payer?: Signer; endpoint: PublicKey | Pda; systemProgram?: PublicKey | Pda; }; type InitEndpointInstructionData = { discriminator: Uint8Array; eid: number; admin: PublicKey; }; type InitEndpointInstructionDataArgs = { eid: number; admin: PublicKey; }; declare function getInitEndpointInstructionDataSerializer(): Serializer; type InitEndpointInstructionArgs = InitEndpointInstructionDataArgs; declare function initEndpoint(context: Pick, input: InitEndpointInstructionAccounts & InitEndpointInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type InitNonceInstructionAccounts = { /** only the delegate can initialize the nonce accounts */ delegate: Signer; oappRegistry: PublicKey | Pda; nonce: PublicKey | Pda; pendingInboundNonce: PublicKey | Pda; systemProgram?: PublicKey | Pda; }; type InitNonceInstructionData = { discriminator: Uint8Array; localOapp: PublicKey; remoteEid: number; remoteOapp: Uint8Array; }; type InitNonceInstructionDataArgs = { localOapp: PublicKey; remoteEid: number; remoteOapp: Uint8Array; }; declare function getInitNonceInstructionDataSerializer(): Serializer; type InitNonceInstructionArgs = InitNonceInstructionDataArgs; declare function initNonce(context: Pick, input: InitNonceInstructionAccounts & InitNonceInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type InitReceiveLibraryInstructionAccounts = { /** only the delegate can initialize the send_library_config */ delegate: Signer; oappRegistry: PublicKey | Pda; receiveLibraryConfig: PublicKey | Pda; systemProgram?: PublicKey | Pda; }; type InitReceiveLibraryInstructionData = { discriminator: Uint8Array; receiver: PublicKey; eid: number; }; type InitReceiveLibraryInstructionDataArgs = { receiver: PublicKey; eid: number; }; declare function getInitReceiveLibraryInstructionDataSerializer(): Serializer; type InitReceiveLibraryInstructionArgs = InitReceiveLibraryInstructionDataArgs; declare function initReceiveLibrary(context: Pick, input: InitReceiveLibraryInstructionAccounts & InitReceiveLibraryInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type InitSendLibraryInstructionAccounts = { /** only the delegate can initialize the send_library_config */ delegate: Signer; oappRegistry: PublicKey | Pda; sendLibraryConfig: PublicKey | Pda; systemProgram?: PublicKey | Pda; }; type InitSendLibraryInstructionData = { discriminator: Uint8Array; sender: PublicKey; eid: number; }; type InitSendLibraryInstructionDataArgs = { sender: PublicKey; eid: number; }; declare function getInitSendLibraryInstructionDataSerializer(): Serializer; type InitSendLibraryInstructionArgs = InitSendLibraryInstructionDataArgs; declare function initSendLibrary(context: Pick, input: InitSendLibraryInstructionAccounts & InitSendLibraryInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type InitVerifyInstructionAccounts$1 = { payer?: Signer; nonce: PublicKey | Pda; payloadHash: PublicKey | Pda; systemProgram?: PublicKey | Pda; }; type InitVerifyInstructionData$1 = { discriminator: Uint8Array; srcEid: number; sender: Uint8Array; receiver: PublicKey; nonce: bigint; }; type InitVerifyInstructionDataArgs$1 = { srcEid: number; sender: Uint8Array; receiver: PublicKey; nonce: number | bigint; }; declare function getInitVerifyInstructionDataSerializer$1(): Serializer; type InitVerifyInstructionArgs$1 = InitVerifyInstructionDataArgs$1; declare function initVerify$1(context: Pick, accounts: InitVerifyInstructionAccounts$1, args: InitVerifyInstructionArgs$1): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type LzComposeAlertInstructionAccounts = { executor: Signer; eventAuthority: PublicKey | Pda; program: PublicKey | Pda; }; type LzComposeAlertInstructionData = { discriminator: Uint8Array; from: PublicKey; to: PublicKey; guid: Uint8Array; index: number; computeUnits: bigint; value: bigint; message: Uint8Array; extraData: Uint8Array; reason: Uint8Array; }; type LzComposeAlertInstructionDataArgs = { from: PublicKey; to: PublicKey; guid: Uint8Array; index: number; computeUnits: number | bigint; value: number | bigint; message: Uint8Array; extraData: Uint8Array; reason: Uint8Array; }; declare function getLzComposeAlertInstructionDataSerializer(): Serializer; type LzComposeAlertInstructionArgs = LzComposeAlertInstructionDataArgs; declare function lzComposeAlert(context: Pick, input: LzComposeAlertInstructionAccounts & LzComposeAlertInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type LzReceiveAlertInstructionAccounts = { executor: Signer; eventAuthority: PublicKey | Pda; program: PublicKey | Pda; }; type LzReceiveAlertInstructionData = { discriminator: Uint8Array; receiver: PublicKey; srcEid: number; sender: Uint8Array; nonce: bigint; guid: Uint8Array; computeUnits: bigint; value: bigint; message: Uint8Array; extraData: Uint8Array; reason: Uint8Array; }; type LzReceiveAlertInstructionDataArgs = { receiver: PublicKey; srcEid: number; sender: Uint8Array; nonce: number | bigint; guid: Uint8Array; computeUnits: number | bigint; value: number | bigint; message: Uint8Array; extraData: Uint8Array; reason: Uint8Array; }; declare function getLzReceiveAlertInstructionDataSerializer(): Serializer; type LzReceiveAlertInstructionArgs = LzReceiveAlertInstructionDataArgs; declare function lzReceiveAlert(context: Pick, input: LzReceiveAlertInstructionAccounts & LzReceiveAlertInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type NilifyInstructionAccounts = { /** The PDA of the OApp or delegate */ signer: Signer; oappRegistry: PublicKey | Pda; nonce: PublicKey | Pda; pendingInboundNonce: PublicKey | Pda; payloadHash: PublicKey | Pda; eventAuthority: PublicKey | Pda; program: PublicKey | Pda; }; type NilifyInstructionData = { discriminator: Uint8Array; receiver: PublicKey; srcEid: number; sender: Uint8Array; nonce: bigint; payloadHash: Uint8Array; }; type NilifyInstructionDataArgs = { receiver: PublicKey; srcEid: number; sender: Uint8Array; nonce: number | bigint; payloadHash: Uint8Array; }; declare function getNilifyInstructionDataSerializer(): Serializer; type NilifyInstructionArgs = NilifyInstructionDataArgs; declare function nilify(context: Pick, accounts: NilifyInstructionAccounts, args: NilifyInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type QuoteInstructionAccounts$2 = { sendLibraryProgram: PublicKey | Pda; sendLibraryConfig: PublicKey | Pda; defaultSendLibraryConfig: PublicKey | Pda; /** The PDA signer to the send library when the endpoint calls the send library. */ sendLibraryInfo: PublicKey | Pda; endpoint: PublicKey | Pda; nonce: PublicKey | Pda; }; type QuoteInstructionData$2 = { discriminator: Uint8Array; sender: PublicKey; dstEid: number; receiver: Uint8Array; message: Uint8Array; options: Uint8Array; payInLzToken: boolean; }; type QuoteInstructionDataArgs$2 = { sender: PublicKey; dstEid: number; receiver: Uint8Array; message: Uint8Array; options: Uint8Array; payInLzToken: boolean; }; declare function getQuoteInstructionDataSerializer$2(): Serializer; type QuoteInstructionArgs$2 = QuoteInstructionDataArgs$2; declare function quote$2(context: Pick, input: QuoteInstructionAccounts$2 & QuoteInstructionArgs$2): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type RegisterLibraryInstructionAccounts = { admin: Signer; endpoint: PublicKey | Pda; messageLibInfo: PublicKey | Pda; systemProgram?: PublicKey | Pda; eventAuthority: PublicKey | Pda; program: PublicKey | Pda; }; type RegisterLibraryInstructionData = { discriminator: Uint8Array; libProgram: PublicKey; libType: MessageLibType; }; type RegisterLibraryInstructionDataArgs = { libProgram: PublicKey; libType: MessageLibTypeArgs; }; declare function getRegisterLibraryInstructionDataSerializer(): Serializer; type RegisterLibraryInstructionArgs = RegisterLibraryInstructionDataArgs; declare function registerLibrary(context: Pick, input: RegisterLibraryInstructionAccounts & RegisterLibraryInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type RegisterOappInstructionAccounts = { payer?: Signer; /** The PDA of the OApp */ oapp: Signer; oappRegistry: PublicKey | Pda; systemProgram?: PublicKey | Pda; eventAuthority: PublicKey | Pda; program: PublicKey | Pda; }; type RegisterOappInstructionData = { discriminator: Uint8Array; delegate: PublicKey; }; type RegisterOappInstructionDataArgs = { delegate: PublicKey; }; declare function getRegisterOappInstructionDataSerializer(): Serializer; type RegisterOappInstructionArgs = RegisterOappInstructionDataArgs; declare function registerOapp(context: Pick, input: RegisterOappInstructionAccounts & RegisterOappInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type SendInstructionAccounts$2 = { sender: Signer; sendLibraryProgram: PublicKey | Pda; sendLibraryConfig: PublicKey | Pda; defaultSendLibraryConfig: PublicKey | Pda; /** The PDA signer to the send library when the endpoint calls the send library. */ sendLibraryInfo: PublicKey | Pda; endpoint: PublicKey | Pda; nonce: PublicKey | Pda; eventAuthority: PublicKey | Pda; program: PublicKey | Pda; }; type SendInstructionData$2 = { discriminator: Uint8Array; dstEid: number; receiver: Uint8Array; message: Uint8Array; options: Uint8Array; nativeFee: bigint; lzTokenFee: bigint; }; type SendInstructionDataArgs$2 = { dstEid: number; receiver: Uint8Array; message: Uint8Array; options: Uint8Array; nativeFee: number | bigint; lzTokenFee: number | bigint; }; declare function getSendInstructionDataSerializer$2(): Serializer; type SendInstructionArgs$2 = SendInstructionDataArgs$2; declare function send$2(context: Pick, input: SendInstructionAccounts$2 & SendInstructionArgs$2): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type SendComposeInstructionAccounts = { from: Signer; payer?: Signer; composeMessage: PublicKey | Pda; systemProgram?: PublicKey | Pda; eventAuthority: PublicKey | Pda; program: PublicKey | Pda; }; type SendComposeInstructionData = { discriminator: Uint8Array; to: PublicKey; guid: Uint8Array; index: number; message: Uint8Array; }; type SendComposeInstructionDataArgs = { to: PublicKey; guid: Uint8Array; index: number; message: Uint8Array; }; declare function getSendComposeInstructionDataSerializer(): Serializer; type SendComposeInstructionArgs = SendComposeInstructionDataArgs; declare function sendCompose(context: Pick, input: SendComposeInstructionAccounts & SendComposeInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type SetConfigInstructionAccounts$3 = { /** The PDA of the OApp or delegate */ signer: Signer; oappRegistry: PublicKey | Pda; /** The PDA signer to the message lib when the endpoint calls the message lib program */ messageLibInfo: PublicKey | Pda; /** the pda of the message_lib_program */ messageLib: PublicKey | Pda; messageLibProgram: PublicKey | Pda; }; type SetConfigInstructionData$3 = { discriminator: Uint8Array; oapp: PublicKey; eid: number; configType: number; config: Uint8Array; }; type SetConfigInstructionDataArgs$3 = { oapp: PublicKey; eid: number; configType: number; config: Uint8Array; }; declare function getSetConfigInstructionDataSerializer$3(): Serializer; type SetConfigInstructionArgs$3 = SetConfigInstructionDataArgs$3; declare function setConfig$3(context: Pick, input: SetConfigInstructionAccounts$3 & SetConfigInstructionArgs$3): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type SetDefaultReceiveLibraryInstructionAccounts = { admin: Signer; endpoint: PublicKey | Pda; defaultReceiveLibraryConfig: PublicKey | Pda; messageLibInfo: PublicKey | Pda; eventAuthority: PublicKey | Pda; program: PublicKey | Pda; }; type SetDefaultReceiveLibraryInstructionData = { discriminator: Uint8Array; eid: number; newLib: PublicKey; gracePeriod: bigint; }; type SetDefaultReceiveLibraryInstructionDataArgs = { eid: number; newLib: PublicKey; gracePeriod: number | bigint; }; declare function getSetDefaultReceiveLibraryInstructionDataSerializer(): Serializer; type SetDefaultReceiveLibraryInstructionArgs = SetDefaultReceiveLibraryInstructionDataArgs; declare function setDefaultReceiveLibrary(context: Pick, input: SetDefaultReceiveLibraryInstructionAccounts & SetDefaultReceiveLibraryInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type SetDefaultReceiveLibraryTimeoutInstructionAccounts = { admin: Signer; endpoint: PublicKey | Pda; defaultReceiveLibraryConfig: PublicKey | Pda; messageLibInfo: PublicKey | Pda; eventAuthority: PublicKey | Pda; program: PublicKey | Pda; }; type SetDefaultReceiveLibraryTimeoutInstructionData = { discriminator: Uint8Array; eid: number; lib: PublicKey; expiry: bigint; }; type SetDefaultReceiveLibraryTimeoutInstructionDataArgs = { eid: number; lib: PublicKey; expiry: number | bigint; }; declare function getSetDefaultReceiveLibraryTimeoutInstructionDataSerializer(): Serializer; type SetDefaultReceiveLibraryTimeoutInstructionArgs = SetDefaultReceiveLibraryTimeoutInstructionDataArgs; declare function setDefaultReceiveLibraryTimeout(context: Pick, input: SetDefaultReceiveLibraryTimeoutInstructionAccounts & SetDefaultReceiveLibraryTimeoutInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type SetDefaultSendLibraryInstructionAccounts = { admin: Signer; endpoint: PublicKey | Pda; defaultSendLibraryConfig: PublicKey | Pda; messageLibInfo: PublicKey | Pda; eventAuthority: PublicKey | Pda; program: PublicKey | Pda; }; type SetDefaultSendLibraryInstructionData = { discriminator: Uint8Array; eid: number; newLib: PublicKey; }; type SetDefaultSendLibraryInstructionDataArgs = { eid: number; newLib: PublicKey; }; declare function getSetDefaultSendLibraryInstructionDataSerializer(): Serializer; type SetDefaultSendLibraryInstructionArgs = SetDefaultSendLibraryInstructionDataArgs; declare function setDefaultSendLibrary(context: Pick, input: SetDefaultSendLibraryInstructionAccounts & SetDefaultSendLibraryInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type SetDelegateInstructionAccounts = { /** The PDA of the OApp */ oapp: Signer; oappRegistry: PublicKey | Pda; eventAuthority: PublicKey | Pda; program: PublicKey | Pda; }; type SetDelegateInstructionData = { discriminator: Uint8Array; delegate: PublicKey; }; type SetDelegateInstructionDataArgs = { delegate: PublicKey; }; declare function getSetDelegateInstructionDataSerializer(): Serializer; type SetDelegateInstructionArgs = SetDelegateInstructionDataArgs; declare function setDelegate(context: Pick, input: SetDelegateInstructionAccounts & SetDelegateInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type SetLzTokenInstructionAccounts = { admin: Signer; endpoint: PublicKey | Pda; eventAuthority: PublicKey | Pda; program: PublicKey | Pda; }; type SetLzTokenInstructionData = { discriminator: Uint8Array; lzToken: Option; }; type SetLzTokenInstructionDataArgs = { lzToken: OptionOrNullable; }; declare function getSetLzTokenInstructionDataSerializer(): Serializer; type SetLzTokenInstructionArgs = SetLzTokenInstructionDataArgs; declare function setLzToken(context: Pick, input: SetLzTokenInstructionAccounts & SetLzTokenInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type SetReceiveLibraryInstructionAccounts = { /** The PDA of the OApp or delegate */ signer: Signer; oappRegistry: PublicKey | Pda; receiveLibraryConfig: PublicKey | Pda; messageLibInfo?: PublicKey | Pda; eventAuthority: PublicKey | Pda; program: PublicKey | Pda; }; type SetReceiveLibraryInstructionData = { discriminator: Uint8Array; receiver: PublicKey; eid: number; newLib: PublicKey; gracePeriod: bigint; }; type SetReceiveLibraryInstructionDataArgs = { receiver: PublicKey; eid: number; newLib: PublicKey; gracePeriod: number | bigint; }; declare function getSetReceiveLibraryInstructionDataSerializer(): Serializer; type SetReceiveLibraryInstructionArgs = SetReceiveLibraryInstructionDataArgs; declare function setReceiveLibrary(context: Pick, input: SetReceiveLibraryInstructionAccounts & SetReceiveLibraryInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type SetReceiveLibraryTimeoutInstructionAccounts = { /** The PDA of the OApp or delegate */ signer: Signer; oappRegistry: PublicKey | Pda; receiveLibraryConfig: PublicKey | Pda; messageLibInfo: PublicKey | Pda; eventAuthority: PublicKey | Pda; program: PublicKey | Pda; }; type SetReceiveLibraryTimeoutInstructionData = { discriminator: Uint8Array; receiver: PublicKey; eid: number; lib: PublicKey; expiry: bigint; }; type SetReceiveLibraryTimeoutInstructionDataArgs = { receiver: PublicKey; eid: number; lib: PublicKey; expiry: number | bigint; }; declare function getSetReceiveLibraryTimeoutInstructionDataSerializer(): Serializer; type SetReceiveLibraryTimeoutInstructionArgs = SetReceiveLibraryTimeoutInstructionDataArgs; declare function setReceiveLibraryTimeout(context: Pick, input: SetReceiveLibraryTimeoutInstructionAccounts & SetReceiveLibraryTimeoutInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type SetSendLibraryInstructionAccounts = { /** The PDA of the OApp or delegate */ signer: Signer; oappRegistry: PublicKey | Pda; sendLibraryConfig: PublicKey | Pda; messageLibInfo?: PublicKey | Pda; eventAuthority: PublicKey | Pda; program: PublicKey | Pda; }; type SetSendLibraryInstructionData = { discriminator: Uint8Array; sender: PublicKey; eid: number; newLib: PublicKey; }; type SetSendLibraryInstructionDataArgs = { sender: PublicKey; eid: number; newLib: PublicKey; }; declare function getSetSendLibraryInstructionDataSerializer(): Serializer; type SetSendLibraryInstructionArgs = SetSendLibraryInstructionDataArgs; declare function setSendLibrary(context: Pick, input: SetSendLibraryInstructionAccounts & SetSendLibraryInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type SkipInstructionAccounts = { /** The PDA of the OApp or delegate */ signer: Signer; oappRegistry: PublicKey | Pda; nonce: PublicKey | Pda; pendingInboundNonce: PublicKey | Pda; /** * the payload hash needs to be initialized before it can be skipped and closed, in order to prevent someone * from skipping a payload hash that has been initialized and can be re-verified and executed after skipping */ payloadHash: PublicKey | Pda; endpoint: PublicKey | Pda; eventAuthority: PublicKey | Pda; program: PublicKey | Pda; }; type SkipInstructionData = { discriminator: Uint8Array; receiver: PublicKey; srcEid: number; sender: Uint8Array; nonce: bigint; }; type SkipInstructionDataArgs = { receiver: PublicKey; srcEid: number; sender: Uint8Array; nonce: number | bigint; }; declare function getSkipInstructionDataSerializer(): Serializer; type SkipInstructionArgs = SkipInstructionDataArgs; declare function skip(context: Pick, accounts: SkipInstructionAccounts, args: SkipInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type TransferAdminInstructionAccounts$3 = { admin: Signer; endpoint: PublicKey | Pda; eventAuthority: PublicKey | Pda; program: PublicKey | Pda; }; type TransferAdminInstructionData$3 = { discriminator: Uint8Array; admin: PublicKey; }; type TransferAdminInstructionDataArgs$3 = { admin: PublicKey; }; declare function getTransferAdminInstructionDataSerializer$3(): Serializer; type TransferAdminInstructionArgs$3 = TransferAdminInstructionDataArgs$3; declare function transferAdmin$3(context: Pick, accounts: TransferAdminInstructionAccounts$3, args: TransferAdminInstructionArgs$3): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type VerifyInstructionAccounts$1 = { /** The PDA of the receive library. */ receiveLibrary: Signer; receiveLibraryConfig: PublicKey | Pda; defaultReceiveLibraryConfig: PublicKey | Pda; nonce: PublicKey | Pda; pendingInboundNonce: PublicKey | Pda; payloadHash: PublicKey | Pda; eventAuthority: PublicKey | Pda; program: PublicKey | Pda; }; type VerifyInstructionData$1 = { discriminator: Uint8Array; srcEid: number; sender: Uint8Array; receiver: PublicKey; nonce: bigint; payloadHash: Uint8Array; }; type VerifyInstructionDataArgs$1 = { srcEid: number; sender: Uint8Array; receiver: PublicKey; nonce: number | bigint; payloadHash: Uint8Array; }; declare function getVerifyInstructionDataSerializer$1(): Serializer; type VerifyInstructionArgs$1 = VerifyInstructionDataArgs$1; declare function verify$1(context: Pick, accounts: VerifyInstructionAccounts$1, args: VerifyInstructionArgs$1): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type WithdrawRentInstructionAccounts$1 = { admin: Signer; endpoint: PublicKey | Pda; receiver: PublicKey | Pda; eventAuthority: PublicKey | Pda; program: PublicKey | Pda; }; type WithdrawRentInstructionData$1 = { discriminator: Uint8Array; amount: bigint; }; type WithdrawRentInstructionDataArgs$1 = { amount: number | bigint; }; declare function getWithdrawRentInstructionDataSerializer$1(): Serializer; type WithdrawRentInstructionArgs$1 = WithdrawRentInstructionDataArgs$1; declare function withdrawRent$1(context: Pick, input: WithdrawRentInstructionAccounts$1 & WithdrawRentInstructionArgs$1): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type index$q_BurnInstructionAccounts = BurnInstructionAccounts; type index$q_BurnInstructionArgs = BurnInstructionArgs; type index$q_BurnInstructionData = BurnInstructionData; type index$q_BurnInstructionDataArgs = BurnInstructionDataArgs; type index$q_ClearComposeInstructionAccounts = ClearComposeInstructionAccounts; type index$q_ClearComposeInstructionArgs = ClearComposeInstructionArgs; type index$q_ClearComposeInstructionData = ClearComposeInstructionData; type index$q_ClearComposeInstructionDataArgs = ClearComposeInstructionDataArgs; type index$q_ClearInstructionAccounts = ClearInstructionAccounts; type index$q_ClearInstructionArgs = ClearInstructionArgs; type index$q_ClearInstructionData = ClearInstructionData; type index$q_ClearInstructionDataArgs = ClearInstructionDataArgs; type index$q_InitDefaultReceiveLibraryInstructionAccounts = InitDefaultReceiveLibraryInstructionAccounts; type index$q_InitDefaultReceiveLibraryInstructionArgs = InitDefaultReceiveLibraryInstructionArgs; type index$q_InitDefaultReceiveLibraryInstructionData = InitDefaultReceiveLibraryInstructionData; type index$q_InitDefaultReceiveLibraryInstructionDataArgs = InitDefaultReceiveLibraryInstructionDataArgs; type index$q_InitDefaultSendLibraryInstructionAccounts = InitDefaultSendLibraryInstructionAccounts; type index$q_InitDefaultSendLibraryInstructionArgs = InitDefaultSendLibraryInstructionArgs; type index$q_InitDefaultSendLibraryInstructionData = InitDefaultSendLibraryInstructionData; type index$q_InitDefaultSendLibraryInstructionDataArgs = InitDefaultSendLibraryInstructionDataArgs; type index$q_InitEndpointInstructionAccounts = InitEndpointInstructionAccounts; type index$q_InitEndpointInstructionArgs = InitEndpointInstructionArgs; type index$q_InitEndpointInstructionData = InitEndpointInstructionData; type index$q_InitEndpointInstructionDataArgs = InitEndpointInstructionDataArgs; type index$q_InitNonceInstructionAccounts = InitNonceInstructionAccounts; type index$q_InitNonceInstructionArgs = InitNonceInstructionArgs; type index$q_InitNonceInstructionData = InitNonceInstructionData; type index$q_InitNonceInstructionDataArgs = InitNonceInstructionDataArgs; type index$q_InitReceiveLibraryInstructionAccounts = InitReceiveLibraryInstructionAccounts; type index$q_InitReceiveLibraryInstructionArgs = InitReceiveLibraryInstructionArgs; type index$q_InitReceiveLibraryInstructionData = InitReceiveLibraryInstructionData; type index$q_InitReceiveLibraryInstructionDataArgs = InitReceiveLibraryInstructionDataArgs; type index$q_InitSendLibraryInstructionAccounts = InitSendLibraryInstructionAccounts; type index$q_InitSendLibraryInstructionArgs = InitSendLibraryInstructionArgs; type index$q_InitSendLibraryInstructionData = InitSendLibraryInstructionData; type index$q_InitSendLibraryInstructionDataArgs = InitSendLibraryInstructionDataArgs; type index$q_LzComposeAlertInstructionAccounts = LzComposeAlertInstructionAccounts; type index$q_LzComposeAlertInstructionArgs = LzComposeAlertInstructionArgs; type index$q_LzComposeAlertInstructionData = LzComposeAlertInstructionData; type index$q_LzComposeAlertInstructionDataArgs = LzComposeAlertInstructionDataArgs; type index$q_LzReceiveAlertInstructionAccounts = LzReceiveAlertInstructionAccounts; type index$q_LzReceiveAlertInstructionArgs = LzReceiveAlertInstructionArgs; type index$q_LzReceiveAlertInstructionData = LzReceiveAlertInstructionData; type index$q_LzReceiveAlertInstructionDataArgs = LzReceiveAlertInstructionDataArgs; type index$q_NilifyInstructionAccounts = NilifyInstructionAccounts; type index$q_NilifyInstructionArgs = NilifyInstructionArgs; type index$q_NilifyInstructionData = NilifyInstructionData; type index$q_NilifyInstructionDataArgs = NilifyInstructionDataArgs; type index$q_RegisterLibraryInstructionAccounts = RegisterLibraryInstructionAccounts; type index$q_RegisterLibraryInstructionArgs = RegisterLibraryInstructionArgs; type index$q_RegisterLibraryInstructionData = RegisterLibraryInstructionData; type index$q_RegisterLibraryInstructionDataArgs = RegisterLibraryInstructionDataArgs; type index$q_RegisterOappInstructionAccounts = RegisterOappInstructionAccounts; type index$q_RegisterOappInstructionArgs = RegisterOappInstructionArgs; type index$q_RegisterOappInstructionData = RegisterOappInstructionData; type index$q_RegisterOappInstructionDataArgs = RegisterOappInstructionDataArgs; type index$q_SendComposeInstructionAccounts = SendComposeInstructionAccounts; type index$q_SendComposeInstructionArgs = SendComposeInstructionArgs; type index$q_SendComposeInstructionData = SendComposeInstructionData; type index$q_SendComposeInstructionDataArgs = SendComposeInstructionDataArgs; type index$q_SetDefaultReceiveLibraryInstructionAccounts = SetDefaultReceiveLibraryInstructionAccounts; type index$q_SetDefaultReceiveLibraryInstructionArgs = SetDefaultReceiveLibraryInstructionArgs; type index$q_SetDefaultReceiveLibraryInstructionData = SetDefaultReceiveLibraryInstructionData; type index$q_SetDefaultReceiveLibraryInstructionDataArgs = SetDefaultReceiveLibraryInstructionDataArgs; type index$q_SetDefaultReceiveLibraryTimeoutInstructionAccounts = SetDefaultReceiveLibraryTimeoutInstructionAccounts; type index$q_SetDefaultReceiveLibraryTimeoutInstructionArgs = SetDefaultReceiveLibraryTimeoutInstructionArgs; type index$q_SetDefaultReceiveLibraryTimeoutInstructionData = SetDefaultReceiveLibraryTimeoutInstructionData; type index$q_SetDefaultReceiveLibraryTimeoutInstructionDataArgs = SetDefaultReceiveLibraryTimeoutInstructionDataArgs; type index$q_SetDefaultSendLibraryInstructionAccounts = SetDefaultSendLibraryInstructionAccounts; type index$q_SetDefaultSendLibraryInstructionArgs = SetDefaultSendLibraryInstructionArgs; type index$q_SetDefaultSendLibraryInstructionData = SetDefaultSendLibraryInstructionData; type index$q_SetDefaultSendLibraryInstructionDataArgs = SetDefaultSendLibraryInstructionDataArgs; type index$q_SetDelegateInstructionAccounts = SetDelegateInstructionAccounts; type index$q_SetDelegateInstructionArgs = SetDelegateInstructionArgs; type index$q_SetDelegateInstructionData = SetDelegateInstructionData; type index$q_SetDelegateInstructionDataArgs = SetDelegateInstructionDataArgs; type index$q_SetLzTokenInstructionAccounts = SetLzTokenInstructionAccounts; type index$q_SetLzTokenInstructionArgs = SetLzTokenInstructionArgs; type index$q_SetLzTokenInstructionData = SetLzTokenInstructionData; type index$q_SetLzTokenInstructionDataArgs = SetLzTokenInstructionDataArgs; type index$q_SetReceiveLibraryInstructionAccounts = SetReceiveLibraryInstructionAccounts; type index$q_SetReceiveLibraryInstructionArgs = SetReceiveLibraryInstructionArgs; type index$q_SetReceiveLibraryInstructionData = SetReceiveLibraryInstructionData; type index$q_SetReceiveLibraryInstructionDataArgs = SetReceiveLibraryInstructionDataArgs; type index$q_SetReceiveLibraryTimeoutInstructionAccounts = SetReceiveLibraryTimeoutInstructionAccounts; type index$q_SetReceiveLibraryTimeoutInstructionArgs = SetReceiveLibraryTimeoutInstructionArgs; type index$q_SetReceiveLibraryTimeoutInstructionData = SetReceiveLibraryTimeoutInstructionData; type index$q_SetReceiveLibraryTimeoutInstructionDataArgs = SetReceiveLibraryTimeoutInstructionDataArgs; type index$q_SetSendLibraryInstructionAccounts = SetSendLibraryInstructionAccounts; type index$q_SetSendLibraryInstructionArgs = SetSendLibraryInstructionArgs; type index$q_SetSendLibraryInstructionData = SetSendLibraryInstructionData; type index$q_SetSendLibraryInstructionDataArgs = SetSendLibraryInstructionDataArgs; type index$q_SkipInstructionAccounts = SkipInstructionAccounts; type index$q_SkipInstructionArgs = SkipInstructionArgs; type index$q_SkipInstructionData = SkipInstructionData; type index$q_SkipInstructionDataArgs = SkipInstructionDataArgs; declare const index$q_burn: typeof burn; declare const index$q_clear: typeof clear; declare const index$q_clearCompose: typeof clearCompose; declare const index$q_getBurnInstructionDataSerializer: typeof getBurnInstructionDataSerializer; declare const index$q_getClearComposeInstructionDataSerializer: typeof getClearComposeInstructionDataSerializer; declare const index$q_getClearInstructionDataSerializer: typeof getClearInstructionDataSerializer; declare const index$q_getInitDefaultReceiveLibraryInstructionDataSerializer: typeof getInitDefaultReceiveLibraryInstructionDataSerializer; declare const index$q_getInitDefaultSendLibraryInstructionDataSerializer: typeof getInitDefaultSendLibraryInstructionDataSerializer; declare const index$q_getInitEndpointInstructionDataSerializer: typeof getInitEndpointInstructionDataSerializer; declare const index$q_getInitNonceInstructionDataSerializer: typeof getInitNonceInstructionDataSerializer; declare const index$q_getInitReceiveLibraryInstructionDataSerializer: typeof getInitReceiveLibraryInstructionDataSerializer; declare const index$q_getInitSendLibraryInstructionDataSerializer: typeof getInitSendLibraryInstructionDataSerializer; declare const index$q_getLzComposeAlertInstructionDataSerializer: typeof getLzComposeAlertInstructionDataSerializer; declare const index$q_getLzReceiveAlertInstructionDataSerializer: typeof getLzReceiveAlertInstructionDataSerializer; declare const index$q_getNilifyInstructionDataSerializer: typeof getNilifyInstructionDataSerializer; declare const index$q_getRegisterLibraryInstructionDataSerializer: typeof getRegisterLibraryInstructionDataSerializer; declare const index$q_getRegisterOappInstructionDataSerializer: typeof getRegisterOappInstructionDataSerializer; declare const index$q_getSendComposeInstructionDataSerializer: typeof getSendComposeInstructionDataSerializer; declare const index$q_getSetDefaultReceiveLibraryInstructionDataSerializer: typeof getSetDefaultReceiveLibraryInstructionDataSerializer; declare const index$q_getSetDefaultReceiveLibraryTimeoutInstructionDataSerializer: typeof getSetDefaultReceiveLibraryTimeoutInstructionDataSerializer; declare const index$q_getSetDefaultSendLibraryInstructionDataSerializer: typeof getSetDefaultSendLibraryInstructionDataSerializer; declare const index$q_getSetDelegateInstructionDataSerializer: typeof getSetDelegateInstructionDataSerializer; declare const index$q_getSetLzTokenInstructionDataSerializer: typeof getSetLzTokenInstructionDataSerializer; declare const index$q_getSetReceiveLibraryInstructionDataSerializer: typeof getSetReceiveLibraryInstructionDataSerializer; declare const index$q_getSetReceiveLibraryTimeoutInstructionDataSerializer: typeof getSetReceiveLibraryTimeoutInstructionDataSerializer; declare const index$q_getSetSendLibraryInstructionDataSerializer: typeof getSetSendLibraryInstructionDataSerializer; declare const index$q_getSkipInstructionDataSerializer: typeof getSkipInstructionDataSerializer; declare const index$q_initDefaultReceiveLibrary: typeof initDefaultReceiveLibrary; declare const index$q_initDefaultSendLibrary: typeof initDefaultSendLibrary; declare const index$q_initEndpoint: typeof initEndpoint; declare const index$q_initNonce: typeof initNonce; declare const index$q_initReceiveLibrary: typeof initReceiveLibrary; declare const index$q_initSendLibrary: typeof initSendLibrary; declare const index$q_lzComposeAlert: typeof lzComposeAlert; declare const index$q_lzReceiveAlert: typeof lzReceiveAlert; declare const index$q_nilify: typeof nilify; declare const index$q_registerLibrary: typeof registerLibrary; declare const index$q_registerOapp: typeof registerOapp; declare const index$q_sendCompose: typeof sendCompose; declare const index$q_setDefaultReceiveLibrary: typeof setDefaultReceiveLibrary; declare const index$q_setDefaultReceiveLibraryTimeout: typeof setDefaultReceiveLibraryTimeout; declare const index$q_setDefaultSendLibrary: typeof setDefaultSendLibrary; declare const index$q_setDelegate: typeof setDelegate; declare const index$q_setLzToken: typeof setLzToken; declare const index$q_setReceiveLibrary: typeof setReceiveLibrary; declare const index$q_setReceiveLibraryTimeout: typeof setReceiveLibraryTimeout; declare const index$q_setSendLibrary: typeof setSendLibrary; declare const index$q_skip: typeof skip; declare namespace index$q { export { type index$q_BurnInstructionAccounts as BurnInstructionAccounts, type index$q_BurnInstructionArgs as BurnInstructionArgs, type index$q_BurnInstructionData as BurnInstructionData, type index$q_BurnInstructionDataArgs as BurnInstructionDataArgs, type index$q_ClearComposeInstructionAccounts as ClearComposeInstructionAccounts, type index$q_ClearComposeInstructionArgs as ClearComposeInstructionArgs, type index$q_ClearComposeInstructionData as ClearComposeInstructionData, type index$q_ClearComposeInstructionDataArgs as ClearComposeInstructionDataArgs, type index$q_ClearInstructionAccounts as ClearInstructionAccounts, type index$q_ClearInstructionArgs as ClearInstructionArgs, type index$q_ClearInstructionData as ClearInstructionData, type index$q_ClearInstructionDataArgs as ClearInstructionDataArgs, type InitConfigInstructionAccounts$2 as InitConfigInstructionAccounts, type InitConfigInstructionArgs$2 as InitConfigInstructionArgs, type InitConfigInstructionData$2 as InitConfigInstructionData, type InitConfigInstructionDataArgs$2 as InitConfigInstructionDataArgs, type index$q_InitDefaultReceiveLibraryInstructionAccounts as InitDefaultReceiveLibraryInstructionAccounts, type index$q_InitDefaultReceiveLibraryInstructionArgs as InitDefaultReceiveLibraryInstructionArgs, type index$q_InitDefaultReceiveLibraryInstructionData as InitDefaultReceiveLibraryInstructionData, type index$q_InitDefaultReceiveLibraryInstructionDataArgs as InitDefaultReceiveLibraryInstructionDataArgs, type index$q_InitDefaultSendLibraryInstructionAccounts as InitDefaultSendLibraryInstructionAccounts, type index$q_InitDefaultSendLibraryInstructionArgs as InitDefaultSendLibraryInstructionArgs, type index$q_InitDefaultSendLibraryInstructionData as InitDefaultSendLibraryInstructionData, type index$q_InitDefaultSendLibraryInstructionDataArgs as InitDefaultSendLibraryInstructionDataArgs, type index$q_InitEndpointInstructionAccounts as InitEndpointInstructionAccounts, type index$q_InitEndpointInstructionArgs as InitEndpointInstructionArgs, type index$q_InitEndpointInstructionData as InitEndpointInstructionData, type index$q_InitEndpointInstructionDataArgs as InitEndpointInstructionDataArgs, type index$q_InitNonceInstructionAccounts as InitNonceInstructionAccounts, type index$q_InitNonceInstructionArgs as InitNonceInstructionArgs, type index$q_InitNonceInstructionData as InitNonceInstructionData, type index$q_InitNonceInstructionDataArgs as InitNonceInstructionDataArgs, type index$q_InitReceiveLibraryInstructionAccounts as InitReceiveLibraryInstructionAccounts, type index$q_InitReceiveLibraryInstructionArgs as InitReceiveLibraryInstructionArgs, type index$q_InitReceiveLibraryInstructionData as InitReceiveLibraryInstructionData, type index$q_InitReceiveLibraryInstructionDataArgs as InitReceiveLibraryInstructionDataArgs, type index$q_InitSendLibraryInstructionAccounts as InitSendLibraryInstructionAccounts, type index$q_InitSendLibraryInstructionArgs as InitSendLibraryInstructionArgs, type index$q_InitSendLibraryInstructionData as InitSendLibraryInstructionData, type index$q_InitSendLibraryInstructionDataArgs as InitSendLibraryInstructionDataArgs, type InitVerifyInstructionAccounts$1 as InitVerifyInstructionAccounts, type InitVerifyInstructionArgs$1 as InitVerifyInstructionArgs, type InitVerifyInstructionData$1 as InitVerifyInstructionData, type InitVerifyInstructionDataArgs$1 as InitVerifyInstructionDataArgs, type index$q_LzComposeAlertInstructionAccounts as LzComposeAlertInstructionAccounts, type index$q_LzComposeAlertInstructionArgs as LzComposeAlertInstructionArgs, type index$q_LzComposeAlertInstructionData as LzComposeAlertInstructionData, type index$q_LzComposeAlertInstructionDataArgs as LzComposeAlertInstructionDataArgs, type index$q_LzReceiveAlertInstructionAccounts as LzReceiveAlertInstructionAccounts, type index$q_LzReceiveAlertInstructionArgs as LzReceiveAlertInstructionArgs, type index$q_LzReceiveAlertInstructionData as LzReceiveAlertInstructionData, type index$q_LzReceiveAlertInstructionDataArgs as LzReceiveAlertInstructionDataArgs, type index$q_NilifyInstructionAccounts as NilifyInstructionAccounts, type index$q_NilifyInstructionArgs as NilifyInstructionArgs, type index$q_NilifyInstructionData as NilifyInstructionData, type index$q_NilifyInstructionDataArgs as NilifyInstructionDataArgs, type QuoteInstructionAccounts$2 as QuoteInstructionAccounts, type QuoteInstructionArgs$2 as QuoteInstructionArgs, type QuoteInstructionData$2 as QuoteInstructionData, type QuoteInstructionDataArgs$2 as QuoteInstructionDataArgs, type index$q_RegisterLibraryInstructionAccounts as RegisterLibraryInstructionAccounts, type index$q_RegisterLibraryInstructionArgs as RegisterLibraryInstructionArgs, type index$q_RegisterLibraryInstructionData as RegisterLibraryInstructionData, type index$q_RegisterLibraryInstructionDataArgs as RegisterLibraryInstructionDataArgs, type index$q_RegisterOappInstructionAccounts as RegisterOappInstructionAccounts, type index$q_RegisterOappInstructionArgs as RegisterOappInstructionArgs, type index$q_RegisterOappInstructionData as RegisterOappInstructionData, type index$q_RegisterOappInstructionDataArgs as RegisterOappInstructionDataArgs, type index$q_SendComposeInstructionAccounts as SendComposeInstructionAccounts, type index$q_SendComposeInstructionArgs as SendComposeInstructionArgs, type index$q_SendComposeInstructionData as SendComposeInstructionData, type index$q_SendComposeInstructionDataArgs as SendComposeInstructionDataArgs, type SendInstructionAccounts$2 as SendInstructionAccounts, type SendInstructionArgs$2 as SendInstructionArgs, type SendInstructionData$2 as SendInstructionData, type SendInstructionDataArgs$2 as SendInstructionDataArgs, type SetConfigInstructionAccounts$3 as SetConfigInstructionAccounts, type SetConfigInstructionArgs$3 as SetConfigInstructionArgs, type SetConfigInstructionData$3 as SetConfigInstructionData, type SetConfigInstructionDataArgs$3 as SetConfigInstructionDataArgs, type index$q_SetDefaultReceiveLibraryInstructionAccounts as SetDefaultReceiveLibraryInstructionAccounts, type index$q_SetDefaultReceiveLibraryInstructionArgs as SetDefaultReceiveLibraryInstructionArgs, type index$q_SetDefaultReceiveLibraryInstructionData as SetDefaultReceiveLibraryInstructionData, type index$q_SetDefaultReceiveLibraryInstructionDataArgs as SetDefaultReceiveLibraryInstructionDataArgs, type index$q_SetDefaultReceiveLibraryTimeoutInstructionAccounts as SetDefaultReceiveLibraryTimeoutInstructionAccounts, type index$q_SetDefaultReceiveLibraryTimeoutInstructionArgs as SetDefaultReceiveLibraryTimeoutInstructionArgs, type index$q_SetDefaultReceiveLibraryTimeoutInstructionData as SetDefaultReceiveLibraryTimeoutInstructionData, type index$q_SetDefaultReceiveLibraryTimeoutInstructionDataArgs as SetDefaultReceiveLibraryTimeoutInstructionDataArgs, type index$q_SetDefaultSendLibraryInstructionAccounts as SetDefaultSendLibraryInstructionAccounts, type index$q_SetDefaultSendLibraryInstructionArgs as SetDefaultSendLibraryInstructionArgs, type index$q_SetDefaultSendLibraryInstructionData as SetDefaultSendLibraryInstructionData, type index$q_SetDefaultSendLibraryInstructionDataArgs as SetDefaultSendLibraryInstructionDataArgs, type index$q_SetDelegateInstructionAccounts as SetDelegateInstructionAccounts, type index$q_SetDelegateInstructionArgs as SetDelegateInstructionArgs, type index$q_SetDelegateInstructionData as SetDelegateInstructionData, type index$q_SetDelegateInstructionDataArgs as SetDelegateInstructionDataArgs, type index$q_SetLzTokenInstructionAccounts as SetLzTokenInstructionAccounts, type index$q_SetLzTokenInstructionArgs as SetLzTokenInstructionArgs, type index$q_SetLzTokenInstructionData as SetLzTokenInstructionData, type index$q_SetLzTokenInstructionDataArgs as SetLzTokenInstructionDataArgs, type index$q_SetReceiveLibraryInstructionAccounts as SetReceiveLibraryInstructionAccounts, type index$q_SetReceiveLibraryInstructionArgs as SetReceiveLibraryInstructionArgs, type index$q_SetReceiveLibraryInstructionData as SetReceiveLibraryInstructionData, type index$q_SetReceiveLibraryInstructionDataArgs as SetReceiveLibraryInstructionDataArgs, type index$q_SetReceiveLibraryTimeoutInstructionAccounts as SetReceiveLibraryTimeoutInstructionAccounts, type index$q_SetReceiveLibraryTimeoutInstructionArgs as SetReceiveLibraryTimeoutInstructionArgs, type index$q_SetReceiveLibraryTimeoutInstructionData as SetReceiveLibraryTimeoutInstructionData, type index$q_SetReceiveLibraryTimeoutInstructionDataArgs as SetReceiveLibraryTimeoutInstructionDataArgs, type index$q_SetSendLibraryInstructionAccounts as SetSendLibraryInstructionAccounts, type index$q_SetSendLibraryInstructionArgs as SetSendLibraryInstructionArgs, type index$q_SetSendLibraryInstructionData as SetSendLibraryInstructionData, type index$q_SetSendLibraryInstructionDataArgs as SetSendLibraryInstructionDataArgs, type index$q_SkipInstructionAccounts as SkipInstructionAccounts, type index$q_SkipInstructionArgs as SkipInstructionArgs, type index$q_SkipInstructionData as SkipInstructionData, type index$q_SkipInstructionDataArgs as SkipInstructionDataArgs, type TransferAdminInstructionAccounts$3 as TransferAdminInstructionAccounts, type TransferAdminInstructionArgs$3 as TransferAdminInstructionArgs, type TransferAdminInstructionData$3 as TransferAdminInstructionData, type TransferAdminInstructionDataArgs$3 as TransferAdminInstructionDataArgs, type VerifyInstructionAccounts$1 as VerifyInstructionAccounts, type VerifyInstructionArgs$1 as VerifyInstructionArgs, type VerifyInstructionData$1 as VerifyInstructionData, type VerifyInstructionDataArgs$1 as VerifyInstructionDataArgs, type WithdrawRentInstructionAccounts$1 as WithdrawRentInstructionAccounts, type WithdrawRentInstructionArgs$1 as WithdrawRentInstructionArgs, type WithdrawRentInstructionData$1 as WithdrawRentInstructionData, type WithdrawRentInstructionDataArgs$1 as WithdrawRentInstructionDataArgs, index$q_burn as burn, index$q_clear as clear, index$q_clearCompose as clearCompose, index$q_getBurnInstructionDataSerializer as getBurnInstructionDataSerializer, index$q_getClearComposeInstructionDataSerializer as getClearComposeInstructionDataSerializer, index$q_getClearInstructionDataSerializer as getClearInstructionDataSerializer, getInitConfigInstructionDataSerializer$2 as getInitConfigInstructionDataSerializer, index$q_getInitDefaultReceiveLibraryInstructionDataSerializer as getInitDefaultReceiveLibraryInstructionDataSerializer, index$q_getInitDefaultSendLibraryInstructionDataSerializer as getInitDefaultSendLibraryInstructionDataSerializer, index$q_getInitEndpointInstructionDataSerializer as getInitEndpointInstructionDataSerializer, index$q_getInitNonceInstructionDataSerializer as getInitNonceInstructionDataSerializer, index$q_getInitReceiveLibraryInstructionDataSerializer as getInitReceiveLibraryInstructionDataSerializer, index$q_getInitSendLibraryInstructionDataSerializer as getInitSendLibraryInstructionDataSerializer, getInitVerifyInstructionDataSerializer$1 as getInitVerifyInstructionDataSerializer, index$q_getLzComposeAlertInstructionDataSerializer as getLzComposeAlertInstructionDataSerializer, index$q_getLzReceiveAlertInstructionDataSerializer as getLzReceiveAlertInstructionDataSerializer, index$q_getNilifyInstructionDataSerializer as getNilifyInstructionDataSerializer, getQuoteInstructionDataSerializer$2 as getQuoteInstructionDataSerializer, index$q_getRegisterLibraryInstructionDataSerializer as getRegisterLibraryInstructionDataSerializer, index$q_getRegisterOappInstructionDataSerializer as getRegisterOappInstructionDataSerializer, index$q_getSendComposeInstructionDataSerializer as getSendComposeInstructionDataSerializer, getSendInstructionDataSerializer$2 as getSendInstructionDataSerializer, getSetConfigInstructionDataSerializer$3 as getSetConfigInstructionDataSerializer, index$q_getSetDefaultReceiveLibraryInstructionDataSerializer as getSetDefaultReceiveLibraryInstructionDataSerializer, index$q_getSetDefaultReceiveLibraryTimeoutInstructionDataSerializer as getSetDefaultReceiveLibraryTimeoutInstructionDataSerializer, index$q_getSetDefaultSendLibraryInstructionDataSerializer as getSetDefaultSendLibraryInstructionDataSerializer, index$q_getSetDelegateInstructionDataSerializer as getSetDelegateInstructionDataSerializer, index$q_getSetLzTokenInstructionDataSerializer as getSetLzTokenInstructionDataSerializer, index$q_getSetReceiveLibraryInstructionDataSerializer as getSetReceiveLibraryInstructionDataSerializer, index$q_getSetReceiveLibraryTimeoutInstructionDataSerializer as getSetReceiveLibraryTimeoutInstructionDataSerializer, index$q_getSetSendLibraryInstructionDataSerializer as getSetSendLibraryInstructionDataSerializer, index$q_getSkipInstructionDataSerializer as getSkipInstructionDataSerializer, getTransferAdminInstructionDataSerializer$3 as getTransferAdminInstructionDataSerializer, getVerifyInstructionDataSerializer$1 as getVerifyInstructionDataSerializer, getWithdrawRentInstructionDataSerializer$1 as getWithdrawRentInstructionDataSerializer, initConfig$2 as initConfig, index$q_initDefaultReceiveLibrary as initDefaultReceiveLibrary, index$q_initDefaultSendLibrary as initDefaultSendLibrary, index$q_initEndpoint as initEndpoint, index$q_initNonce as initNonce, index$q_initReceiveLibrary as initReceiveLibrary, index$q_initSendLibrary as initSendLibrary, initVerify$1 as initVerify, index$q_lzComposeAlert as lzComposeAlert, index$q_lzReceiveAlert as lzReceiveAlert, index$q_nilify as nilify, quote$2 as quote, index$q_registerLibrary as registerLibrary, index$q_registerOapp as registerOapp, send$2 as send, index$q_sendCompose as sendCompose, setConfig$3 as setConfig, index$q_setDefaultReceiveLibrary as setDefaultReceiveLibrary, index$q_setDefaultReceiveLibraryTimeout as setDefaultReceiveLibraryTimeout, index$q_setDefaultSendLibrary as setDefaultSendLibrary, index$q_setDelegate as setDelegate, index$q_setLzToken as setLzToken, index$q_setReceiveLibrary as setReceiveLibrary, index$q_setReceiveLibraryTimeout as setReceiveLibraryTimeout, index$q_setSendLibrary as setSendLibrary, index$q_skip as skip, transferAdmin$3 as transferAdmin, verify$1 as verify, withdrawRent$1 as withdrawRent }; } type MessageLib = Account; type MessageLibAccountData = { discriminator: Uint8Array; eid: number; endpoint: PublicKey; endpointProgram: PublicKey; bump: number; admin: PublicKey; fee: bigint; lzTokenFee: bigint; wlCaller: PublicKey; }; type MessageLibAccountDataArgs = { eid: number; endpoint: PublicKey; endpointProgram: PublicKey; bump: number; admin: PublicKey; fee: number | bigint; lzTokenFee: number | bigint; wlCaller: PublicKey; }; declare function getMessageLibAccountDataSerializer(): Serializer; declare function deserializeMessageLib(rawAccount: RpcAccount): MessageLib; declare function fetchMessageLib(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function safeFetchMessageLib(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function fetchAllMessageLib(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function safeFetchAllMessageLib(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function getMessageLibGpaBuilder(context: Pick): _metaplex_foundation_umi.GpaBuilder; declare function getMessageLibSize(): number; type ReceiveConfigStore = Account; type ReceiveConfigStoreAccountData = { discriminator: Uint8Array; bump: number; data: Uint8Array; }; type ReceiveConfigStoreAccountDataArgs = { bump: number; data: Uint8Array; }; declare function getReceiveConfigStoreAccountDataSerializer(): Serializer; declare function deserializeReceiveConfigStore(rawAccount: RpcAccount): ReceiveConfigStore; declare function fetchReceiveConfigStore(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function safeFetchReceiveConfigStore(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function fetchAllReceiveConfigStore(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function safeFetchAllReceiveConfigStore(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function getReceiveConfigStoreGpaBuilder(context: Pick): _metaplex_foundation_umi.GpaBuilder; type SendConfigStore = Account; type SendConfigStoreAccountData = { discriminator: Uint8Array; bump: number; data: Uint8Array; }; type SendConfigStoreAccountDataArgs = { bump: number; data: Uint8Array; }; declare function getSendConfigStoreAccountDataSerializer(): Serializer; declare function deserializeSendConfigStore(rawAccount: RpcAccount): SendConfigStore; declare function fetchSendConfigStore(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function safeFetchSendConfigStore(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function fetchAllSendConfigStore(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function safeFetchAllSendConfigStore(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function getSendConfigStoreGpaBuilder(context: Pick): _metaplex_foundation_umi.GpaBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type index$p_MessageLib = MessageLib; type index$p_MessageLibAccountData = MessageLibAccountData; type index$p_MessageLibAccountDataArgs = MessageLibAccountDataArgs; type index$p_ReceiveConfigStore = ReceiveConfigStore; type index$p_ReceiveConfigStoreAccountData = ReceiveConfigStoreAccountData; type index$p_ReceiveConfigStoreAccountDataArgs = ReceiveConfigStoreAccountDataArgs; type index$p_SendConfigStore = SendConfigStore; type index$p_SendConfigStoreAccountData = SendConfigStoreAccountData; type index$p_SendConfigStoreAccountDataArgs = SendConfigStoreAccountDataArgs; declare const index$p_deserializeMessageLib: typeof deserializeMessageLib; declare const index$p_deserializeReceiveConfigStore: typeof deserializeReceiveConfigStore; declare const index$p_deserializeSendConfigStore: typeof deserializeSendConfigStore; declare const index$p_fetchAllMessageLib: typeof fetchAllMessageLib; declare const index$p_fetchAllReceiveConfigStore: typeof fetchAllReceiveConfigStore; declare const index$p_fetchAllSendConfigStore: typeof fetchAllSendConfigStore; declare const index$p_fetchMessageLib: typeof fetchMessageLib; declare const index$p_fetchReceiveConfigStore: typeof fetchReceiveConfigStore; declare const index$p_fetchSendConfigStore: typeof fetchSendConfigStore; declare const index$p_getMessageLibAccountDataSerializer: typeof getMessageLibAccountDataSerializer; declare const index$p_getMessageLibGpaBuilder: typeof getMessageLibGpaBuilder; declare const index$p_getMessageLibSize: typeof getMessageLibSize; declare const index$p_getReceiveConfigStoreAccountDataSerializer: typeof getReceiveConfigStoreAccountDataSerializer; declare const index$p_getReceiveConfigStoreGpaBuilder: typeof getReceiveConfigStoreGpaBuilder; declare const index$p_getSendConfigStoreAccountDataSerializer: typeof getSendConfigStoreAccountDataSerializer; declare const index$p_getSendConfigStoreGpaBuilder: typeof getSendConfigStoreGpaBuilder; declare const index$p_safeFetchAllMessageLib: typeof safeFetchAllMessageLib; declare const index$p_safeFetchAllReceiveConfigStore: typeof safeFetchAllReceiveConfigStore; declare const index$p_safeFetchAllSendConfigStore: typeof safeFetchAllSendConfigStore; declare const index$p_safeFetchMessageLib: typeof safeFetchMessageLib; declare const index$p_safeFetchReceiveConfigStore: typeof safeFetchReceiveConfigStore; declare const index$p_safeFetchSendConfigStore: typeof safeFetchSendConfigStore; declare namespace index$p { export { type index$p_MessageLib as MessageLib, type index$p_MessageLibAccountData as MessageLibAccountData, type index$p_MessageLibAccountDataArgs as MessageLibAccountDataArgs, type index$p_ReceiveConfigStore as ReceiveConfigStore, type index$p_ReceiveConfigStoreAccountData as ReceiveConfigStoreAccountData, type index$p_ReceiveConfigStoreAccountDataArgs as ReceiveConfigStoreAccountDataArgs, type index$p_SendConfigStore as SendConfigStore, type index$p_SendConfigStoreAccountData as SendConfigStoreAccountData, type index$p_SendConfigStoreAccountDataArgs as SendConfigStoreAccountDataArgs, index$p_deserializeMessageLib as deserializeMessageLib, index$p_deserializeReceiveConfigStore as deserializeReceiveConfigStore, index$p_deserializeSendConfigStore as deserializeSendConfigStore, index$p_fetchAllMessageLib as fetchAllMessageLib, index$p_fetchAllReceiveConfigStore as fetchAllReceiveConfigStore, index$p_fetchAllSendConfigStore as fetchAllSendConfigStore, index$p_fetchMessageLib as fetchMessageLib, index$p_fetchReceiveConfigStore as fetchReceiveConfigStore, index$p_fetchSendConfigStore as fetchSendConfigStore, index$p_getMessageLibAccountDataSerializer as getMessageLibAccountDataSerializer, index$p_getMessageLibGpaBuilder as getMessageLibGpaBuilder, index$p_getMessageLibSize as getMessageLibSize, index$p_getReceiveConfigStoreAccountDataSerializer as getReceiveConfigStoreAccountDataSerializer, index$p_getReceiveConfigStoreGpaBuilder as getReceiveConfigStoreGpaBuilder, index$p_getSendConfigStoreAccountDataSerializer as getSendConfigStoreAccountDataSerializer, index$p_getSendConfigStoreGpaBuilder as getSendConfigStoreGpaBuilder, index$p_safeFetchAllMessageLib as safeFetchAllMessageLib, index$p_safeFetchAllReceiveConfigStore as safeFetchAllReceiveConfigStore, index$p_safeFetchAllSendConfigStore as safeFetchAllSendConfigStore, index$p_safeFetchMessageLib as safeFetchMessageLib, index$p_safeFetchReceiveConfigStore as safeFetchReceiveConfigStore, index$p_safeFetchSendConfigStore as safeFetchSendConfigStore }; } /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ /** OnlyWhitelistedCaller */ declare class OnlyWhitelistedCallerError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InsufficientFee */ declare class InsufficientFeeError$1 extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidAmount */ declare class InvalidAmountError$2 extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidConfigType */ declare class InvalidConfigTypeError$1 extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidLzTokenMint */ declare class InvalidLzTokenMintError$1 extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** LzTokenUnavailable */ declare class LzTokenUnavailableError$1 extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** SendReentrancy */ declare class SendReentrancyError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** OnlyRevert */ declare class OnlyRevertError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** * Attempts to resolve a custom program error from the provided error code. * @category Errors */ declare function getSimpleMessagelibErrorFromCode(code: number, program: Program, cause?: Error): ProgramError | null; /** * Attempts to resolve a custom program error from the provided error name, i.e. 'Unauthorized'. * @category Errors */ declare function getSimpleMessagelibErrorFromName(name: string, program: Program, cause?: Error): ProgramError | null; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type index$o_OnlyRevertError = OnlyRevertError; declare const index$o_OnlyRevertError: typeof OnlyRevertError; type index$o_OnlyWhitelistedCallerError = OnlyWhitelistedCallerError; declare const index$o_OnlyWhitelistedCallerError: typeof OnlyWhitelistedCallerError; type index$o_SendReentrancyError = SendReentrancyError; declare const index$o_SendReentrancyError: typeof SendReentrancyError; declare const index$o_getSimpleMessagelibErrorFromCode: typeof getSimpleMessagelibErrorFromCode; declare const index$o_getSimpleMessagelibErrorFromName: typeof getSimpleMessagelibErrorFromName; declare namespace index$o { export { InsufficientFeeError$1 as InsufficientFeeError, InvalidAmountError$2 as InvalidAmountError, InvalidConfigTypeError$1 as InvalidConfigTypeError, InvalidLzTokenMintError$1 as InvalidLzTokenMintError, LzTokenUnavailableError$1 as LzTokenUnavailableError, index$o_OnlyRevertError as OnlyRevertError, index$o_OnlyWhitelistedCallerError as OnlyWhitelistedCallerError, index$o_SendReentrancyError as SendReentrancyError, index$o_getSimpleMessagelibErrorFromCode as getSimpleMessagelibErrorFromCode, index$o_getSimpleMessagelibErrorFromName as getSimpleMessagelibErrorFromName }; } /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type InitConfigInstructionAccounts$1 = { endpoint: Signer; payer?: Signer; messageLib: PublicKey | Pda; sendConfig: PublicKey | Pda; receiveConfig: PublicKey | Pda; systemProgram?: PublicKey | Pda; }; type InitConfigInstructionData$1 = { discriminator: Uint8Array; oapp: PublicKey; eid: number; }; type InitConfigInstructionDataArgs$1 = { oapp: PublicKey; eid: number; }; declare function getInitConfigInstructionDataSerializer$1(): Serializer; type InitConfigInstructionArgs$1 = InitConfigInstructionDataArgs$1; declare function initConfig$1(context: Pick, input: InitConfigInstructionAccounts$1 & InitConfigInstructionArgs$1): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type InitDefaultConfigInstructionAccounts$1 = { admin: Signer; messageLib: PublicKey | Pda; sendConfig: PublicKey | Pda; receiveConfig: PublicKey | Pda; systemProgram?: PublicKey | Pda; }; type InitDefaultConfigInstructionData$1 = { discriminator: Uint8Array; eid: number; sendConfig: Option; receiveConfig: Option; }; type InitDefaultConfigInstructionDataArgs$1 = { eid: number; sendConfig: OptionOrNullable; receiveConfig: OptionOrNullable; }; declare function getInitDefaultConfigInstructionDataSerializer$1(): Serializer; type InitDefaultConfigInstructionArgs$1 = InitDefaultConfigInstructionDataArgs$1; declare function initDefaultConfig$1(context: Pick, accounts: InitDefaultConfigInstructionAccounts$1, args: InitDefaultConfigInstructionArgs$1): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type InitMessageLibInstructionAccounts = { payer?: Signer; messageLib: PublicKey | Pda; systemProgram?: PublicKey | Pda; }; type InitMessageLibInstructionData = { discriminator: Uint8Array; eid: number; endpoint: PublicKey; endpointProgram: PublicKey; admin: PublicKey; fee: bigint; lzTokenFee: bigint; }; type InitMessageLibInstructionDataArgs = { eid: number; endpoint: PublicKey; endpointProgram: PublicKey; admin: PublicKey; fee: number | bigint; lzTokenFee: number | bigint; }; declare function getInitMessageLibInstructionDataSerializer(): Serializer; type InitMessageLibInstructionArgs = InitMessageLibInstructionDataArgs; declare function initMessageLib(context: Pick, input: InitMessageLibInstructionAccounts & InitMessageLibInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type MessagingFee$1 = { nativeFee: bigint; lzTokenFee: bigint; }; type MessagingFeeArgs$1 = { nativeFee: number | bigint; lzTokenFee: number | bigint; }; declare function getMessagingFeeSerializer$1(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type Packet$1 = { nonce: bigint; srcEid: number; sender: PublicKey; dstEid: number; receiver: Uint8Array; guid: Uint8Array; message: Uint8Array; }; type PacketArgs$1 = { nonce: number | bigint; srcEid: number; sender: PublicKey; dstEid: number; receiver: Uint8Array; guid: Uint8Array; message: Uint8Array; }; declare function getPacketSerializer$1(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type Version$2 = { major: bigint; minor: number; endpointVersion: number; }; type VersionArgs$2 = { major: number | bigint; minor: number; endpointVersion: number; }; declare function getVersionSerializer$2(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ declare namespace index$n { export { type MessagingFee$1 as MessagingFee, type MessagingFeeArgs$1 as MessagingFeeArgs, type Packet$1 as Packet, type PacketArgs$1 as PacketArgs, type Version$2 as Version, type VersionArgs$2 as VersionArgs, getMessagingFeeSerializer$1 as getMessagingFeeSerializer, getPacketSerializer$1 as getPacketSerializer, getVersionSerializer$2 as getVersionSerializer }; } /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type QuoteInstructionAccounts$1 = { /** The message lib authority of the endpoint */ endpoint: Signer; messageLib: PublicKey | Pda; }; type QuoteInstructionData$1 = { discriminator: Uint8Array; packet: Packet$1; options: Uint8Array; payInLzToken: boolean; }; type QuoteInstructionDataArgs$1 = { packet: PacketArgs$1; options: Uint8Array; payInLzToken: boolean; }; declare function getQuoteInstructionDataSerializer$1(): Serializer; type QuoteInstructionArgs$1 = QuoteInstructionDataArgs$1; declare function quote$1(context: Pick, input: QuoteInstructionAccounts$1 & QuoteInstructionArgs$1): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type RevertCallInstructionData = { discriminator: Uint8Array; }; type RevertCallInstructionDataArgs = {}; declare function getRevertCallInstructionDataSerializer(): Serializer; declare function revertCall(context: Pick): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type SendInstructionAccounts$1 = { /** The message lib authority of the endpoint */ endpoint: Signer; /** receive the native fee */ messageLib: PublicKey | Pda; /** pay for the native fee */ payer?: Signer; /** for native fee transfer */ systemProgram?: PublicKey | Pda; }; type SendInstructionData$1 = { discriminator: Uint8Array; packet: Packet$1; options: Uint8Array; nativeFee: bigint; }; type SendInstructionDataArgs$1 = { packet: PacketArgs$1; options: Uint8Array; nativeFee: number | bigint; }; declare function getSendInstructionDataSerializer$1(): Serializer; type SendInstructionArgs$1 = SendInstructionDataArgs$1; declare function send$1(context: Pick, input: SendInstructionAccounts$1 & SendInstructionArgs$1): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type SendWithLzTokenInstructionAccounts$1 = { /** The message lib authority of the endpoint */ endpoint: Signer; /** receive the native fee */ messageLib: PublicKey | Pda; messageLibLzToken: PublicKey | Pda; /** pay for the native fee */ payer?: Signer; /** The token account to pay the lz token fee */ lzTokenSource: PublicKey | Pda; lzTokenMint: PublicKey | Pda; tokenProgram?: PublicKey | Pda; /** for native fee transfer */ systemProgram?: PublicKey | Pda; }; type SendWithLzTokenInstructionData$1 = { discriminator: Uint8Array; packet: Packet$1; options: Uint8Array; nativeFee: bigint; lzTokenFee: bigint; lzTokenMint: PublicKey; }; type SendWithLzTokenInstructionDataArgs$1 = { packet: PacketArgs$1; options: Uint8Array; nativeFee: number | bigint; lzTokenFee: number | bigint; lzTokenMint: PublicKey; }; declare function getSendWithLzTokenInstructionDataSerializer$1(): Serializer; type SendWithLzTokenInstructionArgs$1 = SendWithLzTokenInstructionDataArgs$1; declare function sendWithLzToken$1(context: Pick, accounts: SendWithLzTokenInstructionAccounts$1, args: SendWithLzTokenInstructionArgs$1): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type SetConfigInstructionAccounts$2 = { endpoint: Signer; messageLib: PublicKey | Pda; sendConfig: PublicKey | Pda; receiveConfig: PublicKey | Pda; }; type SetConfigInstructionData$2 = { discriminator: Uint8Array; oapp: PublicKey; eid: number; configType: number; config: Uint8Array; }; type SetConfigInstructionDataArgs$2 = { oapp: PublicKey; eid: number; configType: number; config: Uint8Array; }; declare function getSetConfigInstructionDataSerializer$2(): Serializer; type SetConfigInstructionArgs$2 = SetConfigInstructionDataArgs$2; declare function setConfig$2(context: Pick, input: SetConfigInstructionAccounts$2 & SetConfigInstructionArgs$2): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type SetDefaultConfigInstructionAccounts$1 = { admin: Signer; messageLib: PublicKey | Pda; sendConfig: PublicKey | Pda; receiveConfig: PublicKey | Pda; systemProgram?: PublicKey | Pda; }; type SetDefaultConfigInstructionData$1 = { discriminator: Uint8Array; eid: number; sendConfig: Option; receiveConfig: Option; }; type SetDefaultConfigInstructionDataArgs$1 = { eid: number; sendConfig: OptionOrNullable; receiveConfig: OptionOrNullable; }; declare function getSetDefaultConfigInstructionDataSerializer$1(): Serializer; type SetDefaultConfigInstructionArgs$1 = SetDefaultConfigInstructionDataArgs$1; declare function setDefaultConfig$1(context: Pick, accounts: SetDefaultConfigInstructionAccounts$1, args: SetDefaultConfigInstructionArgs$1): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type SetFeeInstructionAccounts = { admin: Signer; messageLib: PublicKey | Pda; }; type SetFeeInstructionData = { discriminator: Uint8Array; fee: bigint; lzTokenFee: bigint; }; type SetFeeInstructionDataArgs = { fee: number | bigint; lzTokenFee: number | bigint; }; declare function getSetFeeInstructionDataSerializer(): Serializer; type SetFeeInstructionArgs = SetFeeInstructionDataArgs; declare function setFee(context: Pick, input: SetFeeInstructionAccounts & SetFeeInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type SetWlCallerInstructionAccounts = { admin: Signer; messageLib: PublicKey | Pda; }; type SetWlCallerInstructionData = { discriminator: Uint8Array; newCaller: PublicKey; }; type SetWlCallerInstructionDataArgs = { newCaller: PublicKey; }; declare function getSetWlCallerInstructionDataSerializer(): Serializer; type SetWlCallerInstructionArgs = SetWlCallerInstructionDataArgs; declare function setWlCaller(context: Pick, input: SetWlCallerInstructionAccounts & SetWlCallerInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type TransferAdminInstructionAccounts$2 = { admin: Signer; messageLib: PublicKey | Pda; }; type TransferAdminInstructionData$2 = { discriminator: Uint8Array; admin: PublicKey; }; type TransferAdminInstructionDataArgs$2 = { admin: PublicKey; }; declare function getTransferAdminInstructionDataSerializer$2(): Serializer; type TransferAdminInstructionArgs$2 = TransferAdminInstructionDataArgs$2; declare function transferAdmin$2(context: Pick, accounts: TransferAdminInstructionAccounts$2, args: TransferAdminInstructionArgs$2): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type ValidatePacketInstructionAccounts = { payer?: Signer; receiveLibrary: PublicKey | Pda; }; type ValidatePacketInstructionData = { discriminator: Uint8Array; packet: Uint8Array; }; type ValidatePacketInstructionDataArgs = { packet: Uint8Array; }; declare function getValidatePacketInstructionDataSerializer(): Serializer; type ValidatePacketInstructionArgs = ValidatePacketInstructionDataArgs; declare function validatePacket(context: Pick, input: ValidatePacketInstructionAccounts & ValidatePacketInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type VersionInstructionData$3 = { discriminator: Uint8Array; }; type VersionInstructionDataArgs$3 = {}; declare function getVersionInstructionDataSerializer$3(): Serializer; declare function version$3(context: Pick): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type WithdrawFeesInstructionAccounts = { admin: Signer; messageLib: PublicKey | Pda; receiver: PublicKey | Pda; }; type WithdrawFeesInstructionData = { discriminator: Uint8Array; amount: bigint; }; type WithdrawFeesInstructionDataArgs = { amount: number | bigint; }; declare function getWithdrawFeesInstructionDataSerializer(): Serializer; type WithdrawFeesInstructionArgs = WithdrawFeesInstructionDataArgs; declare function withdrawFees(context: Pick, input: WithdrawFeesInstructionAccounts & WithdrawFeesInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type index$m_InitMessageLibInstructionAccounts = InitMessageLibInstructionAccounts; type index$m_InitMessageLibInstructionArgs = InitMessageLibInstructionArgs; type index$m_InitMessageLibInstructionData = InitMessageLibInstructionData; type index$m_InitMessageLibInstructionDataArgs = InitMessageLibInstructionDataArgs; type index$m_RevertCallInstructionData = RevertCallInstructionData; type index$m_RevertCallInstructionDataArgs = RevertCallInstructionDataArgs; type index$m_SetFeeInstructionAccounts = SetFeeInstructionAccounts; type index$m_SetFeeInstructionArgs = SetFeeInstructionArgs; type index$m_SetFeeInstructionData = SetFeeInstructionData; type index$m_SetFeeInstructionDataArgs = SetFeeInstructionDataArgs; type index$m_SetWlCallerInstructionAccounts = SetWlCallerInstructionAccounts; type index$m_SetWlCallerInstructionArgs = SetWlCallerInstructionArgs; type index$m_SetWlCallerInstructionData = SetWlCallerInstructionData; type index$m_SetWlCallerInstructionDataArgs = SetWlCallerInstructionDataArgs; type index$m_ValidatePacketInstructionAccounts = ValidatePacketInstructionAccounts; type index$m_ValidatePacketInstructionArgs = ValidatePacketInstructionArgs; type index$m_ValidatePacketInstructionData = ValidatePacketInstructionData; type index$m_ValidatePacketInstructionDataArgs = ValidatePacketInstructionDataArgs; type index$m_WithdrawFeesInstructionAccounts = WithdrawFeesInstructionAccounts; type index$m_WithdrawFeesInstructionArgs = WithdrawFeesInstructionArgs; type index$m_WithdrawFeesInstructionData = WithdrawFeesInstructionData; type index$m_WithdrawFeesInstructionDataArgs = WithdrawFeesInstructionDataArgs; declare const index$m_getInitMessageLibInstructionDataSerializer: typeof getInitMessageLibInstructionDataSerializer; declare const index$m_getRevertCallInstructionDataSerializer: typeof getRevertCallInstructionDataSerializer; declare const index$m_getSetFeeInstructionDataSerializer: typeof getSetFeeInstructionDataSerializer; declare const index$m_getSetWlCallerInstructionDataSerializer: typeof getSetWlCallerInstructionDataSerializer; declare const index$m_getValidatePacketInstructionDataSerializer: typeof getValidatePacketInstructionDataSerializer; declare const index$m_getWithdrawFeesInstructionDataSerializer: typeof getWithdrawFeesInstructionDataSerializer; declare const index$m_initMessageLib: typeof initMessageLib; declare const index$m_revertCall: typeof revertCall; declare const index$m_setFee: typeof setFee; declare const index$m_setWlCaller: typeof setWlCaller; declare const index$m_validatePacket: typeof validatePacket; declare const index$m_withdrawFees: typeof withdrawFees; declare namespace index$m { export { type InitConfigInstructionAccounts$1 as InitConfigInstructionAccounts, type InitConfigInstructionArgs$1 as InitConfigInstructionArgs, type InitConfigInstructionData$1 as InitConfigInstructionData, type InitConfigInstructionDataArgs$1 as InitConfigInstructionDataArgs, type InitDefaultConfigInstructionAccounts$1 as InitDefaultConfigInstructionAccounts, type InitDefaultConfigInstructionArgs$1 as InitDefaultConfigInstructionArgs, type InitDefaultConfigInstructionData$1 as InitDefaultConfigInstructionData, type InitDefaultConfigInstructionDataArgs$1 as InitDefaultConfigInstructionDataArgs, type index$m_InitMessageLibInstructionAccounts as InitMessageLibInstructionAccounts, type index$m_InitMessageLibInstructionArgs as InitMessageLibInstructionArgs, type index$m_InitMessageLibInstructionData as InitMessageLibInstructionData, type index$m_InitMessageLibInstructionDataArgs as InitMessageLibInstructionDataArgs, type QuoteInstructionAccounts$1 as QuoteInstructionAccounts, type QuoteInstructionArgs$1 as QuoteInstructionArgs, type QuoteInstructionData$1 as QuoteInstructionData, type QuoteInstructionDataArgs$1 as QuoteInstructionDataArgs, type index$m_RevertCallInstructionData as RevertCallInstructionData, type index$m_RevertCallInstructionDataArgs as RevertCallInstructionDataArgs, type SendInstructionAccounts$1 as SendInstructionAccounts, type SendInstructionArgs$1 as SendInstructionArgs, type SendInstructionData$1 as SendInstructionData, type SendInstructionDataArgs$1 as SendInstructionDataArgs, type SendWithLzTokenInstructionAccounts$1 as SendWithLzTokenInstructionAccounts, type SendWithLzTokenInstructionArgs$1 as SendWithLzTokenInstructionArgs, type SendWithLzTokenInstructionData$1 as SendWithLzTokenInstructionData, type SendWithLzTokenInstructionDataArgs$1 as SendWithLzTokenInstructionDataArgs, type SetConfigInstructionAccounts$2 as SetConfigInstructionAccounts, type SetConfigInstructionArgs$2 as SetConfigInstructionArgs, type SetConfigInstructionData$2 as SetConfigInstructionData, type SetConfigInstructionDataArgs$2 as SetConfigInstructionDataArgs, type SetDefaultConfigInstructionAccounts$1 as SetDefaultConfigInstructionAccounts, type SetDefaultConfigInstructionArgs$1 as SetDefaultConfigInstructionArgs, type SetDefaultConfigInstructionData$1 as SetDefaultConfigInstructionData, type SetDefaultConfigInstructionDataArgs$1 as SetDefaultConfigInstructionDataArgs, type index$m_SetFeeInstructionAccounts as SetFeeInstructionAccounts, type index$m_SetFeeInstructionArgs as SetFeeInstructionArgs, type index$m_SetFeeInstructionData as SetFeeInstructionData, type index$m_SetFeeInstructionDataArgs as SetFeeInstructionDataArgs, type index$m_SetWlCallerInstructionAccounts as SetWlCallerInstructionAccounts, type index$m_SetWlCallerInstructionArgs as SetWlCallerInstructionArgs, type index$m_SetWlCallerInstructionData as SetWlCallerInstructionData, type index$m_SetWlCallerInstructionDataArgs as SetWlCallerInstructionDataArgs, type TransferAdminInstructionAccounts$2 as TransferAdminInstructionAccounts, type TransferAdminInstructionArgs$2 as TransferAdminInstructionArgs, type TransferAdminInstructionData$2 as TransferAdminInstructionData, type TransferAdminInstructionDataArgs$2 as TransferAdminInstructionDataArgs, type index$m_ValidatePacketInstructionAccounts as ValidatePacketInstructionAccounts, type index$m_ValidatePacketInstructionArgs as ValidatePacketInstructionArgs, type index$m_ValidatePacketInstructionData as ValidatePacketInstructionData, type index$m_ValidatePacketInstructionDataArgs as ValidatePacketInstructionDataArgs, type VersionInstructionData$3 as VersionInstructionData, type VersionInstructionDataArgs$3 as VersionInstructionDataArgs, type index$m_WithdrawFeesInstructionAccounts as WithdrawFeesInstructionAccounts, type index$m_WithdrawFeesInstructionArgs as WithdrawFeesInstructionArgs, type index$m_WithdrawFeesInstructionData as WithdrawFeesInstructionData, type index$m_WithdrawFeesInstructionDataArgs as WithdrawFeesInstructionDataArgs, getInitConfigInstructionDataSerializer$1 as getInitConfigInstructionDataSerializer, getInitDefaultConfigInstructionDataSerializer$1 as getInitDefaultConfigInstructionDataSerializer, index$m_getInitMessageLibInstructionDataSerializer as getInitMessageLibInstructionDataSerializer, getQuoteInstructionDataSerializer$1 as getQuoteInstructionDataSerializer, index$m_getRevertCallInstructionDataSerializer as getRevertCallInstructionDataSerializer, getSendInstructionDataSerializer$1 as getSendInstructionDataSerializer, getSendWithLzTokenInstructionDataSerializer$1 as getSendWithLzTokenInstructionDataSerializer, getSetConfigInstructionDataSerializer$2 as getSetConfigInstructionDataSerializer, getSetDefaultConfigInstructionDataSerializer$1 as getSetDefaultConfigInstructionDataSerializer, index$m_getSetFeeInstructionDataSerializer as getSetFeeInstructionDataSerializer, index$m_getSetWlCallerInstructionDataSerializer as getSetWlCallerInstructionDataSerializer, getTransferAdminInstructionDataSerializer$2 as getTransferAdminInstructionDataSerializer, index$m_getValidatePacketInstructionDataSerializer as getValidatePacketInstructionDataSerializer, getVersionInstructionDataSerializer$3 as getVersionInstructionDataSerializer, index$m_getWithdrawFeesInstructionDataSerializer as getWithdrawFeesInstructionDataSerializer, initConfig$1 as initConfig, initDefaultConfig$1 as initDefaultConfig, index$m_initMessageLib as initMessageLib, quote$1 as quote, index$m_revertCall as revertCall, send$1 as send, sendWithLzToken$1 as sendWithLzToken, setConfig$2 as setConfig, setDefaultConfig$1 as setDefaultConfig, index$m_setFee as setFee, index$m_setWlCaller as setWlCaller, transferAdmin$2 as transferAdmin, index$m_validatePacket as validatePacket, version$3 as version, index$m_withdrawFees as withdrawFees }; } /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ declare const SIMPLE_MESSAGELIB_PROGRAM_ID: PublicKey<"6GsmxMTHAAiFKfemuM4zBjumTjNSX5CAiw4xSSXM2Toy">; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ declare const ENDPOINT_PROGRAM_ID: PublicKey<"76y77prsiCMvXMjuoZ5VRrhG5qYBrUMYTE5WgHqgjEn6">; declare const EventEmitDiscriminator = "e445a52e51cb9a1d"; declare const DefaultMessageLib: PublicKey<"11111111111111111111111111111111">; /** * Class representing an Endpoint. */ declare class Endpoint { programId: PublicKey; readonly pda: EndpointPDA; readonly eventAuthority: PublicKey; readonly programRepo: ProgramRepositoryInterface; constructor(programId?: PublicKey, rpc?: RpcInterface); getProgram(clusterFilter?: ClusterFilter): Program; /** * Initializes the endpoint settings, including eid and admin, and registers the blocked message library. * * @param {number} endpointId - The endpoint ID. * @param {PublicKey} payer - The payer public key. * @param {PublicKey} admin - The admin public key. * @returns {TransactionInstruction} The transaction instruction. */ initEndpoint(payer: Signer, params: { eid: number; admin: PublicKey; }): WrappedInstruction; /** * Registers a library. * call this function after endpoint initialized. Only admin can call this function. * * @param {PublicKey} admin - The admin public key. * @param {PublicKey} messageLibProgram - The message library program public key. * @param {types.MessageLibType} [libType=types.MessageLibType.SendAndReceive] - The library type. * @returns {TransactionInstruction} The transaction instruction. */ registerLibrary(admin: Signer, params: { messageLibProgram: PublicKey; libType?: MessageLibType; }): WrappedInstruction; /** * Sets the default send library for a given remote endpoint. * This function configures the default message library for sending messages to a specified remote endpoint. * It requires administrative privileges to execute. * * @param {RpcInterface} rpc - The connection to the Solana cluster. * @param {Signer} admin - The admin public key. * @param {PublicKey} messageLibProgram - The message library program public key. * @param {number} dstEid - The destination endpoint ID. * @param {Commitment | GetAccountInfoConfig} [commitmentOrConfig] - The commitment level or account info configuration. * @returns {Promise} A promise that resolves to the transaction instruction or null if not needed. * This method initializes or updates the default send library configuration for a specified remote endpoint. * If the configuration does not exist, it initializes it. Otherwise, it updates the existing configuration. */ setDefaultSendLibrary(rpc: RpcInterface, admin: Signer, params: { messageLibProgram: PublicKey; remote: number; }): Promise; /** * Sets the default receive library for a given endpoint. * This function configures the default message library for receiving messages at a specified endpoint. * It requires administrative privileges to execute. * * @param {Connection} connection - The connection to the Solana cluster. * @param {PublicKey} admin - The admin public key. * @param {PublicKey} messageLibProgram - The message library program public key. * @param {number} srcEid - The source endpoint ID. * @param {Commitment | GetAccountInfoConfig} [commitmentOrConfig] - The commitment level or account info configuration. * @returns {Promise} A promise that resolves to the transaction instruction or null if not needed. * This method initializes or updates the default receive library configuration for a specified remote endpoint. * If the configuration does not exist, it initializes it. Otherwise, it updates the existing configuration. */ setDefaultReceiveLibrary(rpc: RpcInterface, admin: Signer, params: { messageLibProgram: PublicKey; remote: number; gracePeriod?: bigint | number; }): Promise; /** * Sets the default receive library timeout for a given message library program and remote endpoint. * * @param admin - The signer who has administrative privileges to set the timeout. * @param param - An object containing the following properties: * @param param.msgLibProgram - The public key of the message library program. * @param param.remote - The remote endpoint identifier. * @param param.expiry - The expiry time for the timeout, can be a bigint or number. * @returns A WrappedInstruction object representing the instruction to set the default receive library timeout. */ setDefaultReceiveLibraryTimeout(admin: Signer, params: { msgLibProgram: PublicKey; remote: number; expiry: bigint | number; }): WrappedInstruction; setLzToken(admin: Signer, lzToken: PublicKey | null): WrappedInstruction; withdrawRent(admin: Signer, params: { amount: bigint; receiver: PublicKey; }): WrappedInstruction; /** * Initializes the OApp configuration. * * @param accounts - The accounts object. * @param accounts.delegate - The delegate public key. * @param accounts.payer - The payer public key. * @param params - The parameters object. * @param params.msgLibSDK - The message library SDK. * @param params.oapp - The OApp ID public key. * @param params.remote - The endpoint ID. * @returns A WrappedInstruction object representing the instruction to initialize the OApp configuration. */ initOAppConfig(accounts: { delegate: Signer; payer: PublicKey; }, params: { msgLibSDK: MessageLibInterface; oapp: PublicKey; remote: number; }): WrappedInstruction; /** * Initializes the OApp nonce. * * @param {PublicKey} delegate - The delegate public key. * @param {number} dstEid - The destination endpoint ID. * @param {PublicKey} oappIDPDA - The OApp ID PDA. * @param {Uint8Array} remoteOappAddr - The remote OApp address. * @returns {TransactionInstruction} The transaction instruction. */ initOAppNonce(delegate: Signer, // the delegate of the oapp params: { localOApp: PublicKey; remote: number; remoteOApp: Uint8Array; }): WrappedInstruction; initOAppSendLibrary(delegate: Signer, params: { sender: PublicKey; remote: number; }): WrappedInstruction; setOAppSendLibrary(delegate: Signer, params: { sender: PublicKey; remote: number; msgLibProgram: PublicKey; }): WrappedInstruction; initOAppReceiveLibrary(delegate: Signer, params: { receiver: PublicKey; remote: number; }): WrappedInstruction; setOAppReceiveLibrary(delegate: Signer, params: { receiver: PublicKey; remote: number; msgLibProgram: PublicKey; gracePeriod?: bigint | number; }): WrappedInstruction; setOAppReceiveLibraryTimeout(delegate: Signer, params: { receiver: PublicKey; msgLibProgram: PublicKey; remote: number; expiry: bigint | number; }): WrappedInstruction; setOAppConfig(rpc: RpcInterface, delegate: Signer, params: { oapp: PublicKey; eid: number; config: { configType: SetConfigType; value: ExecutorConfig | UlnConfig; }; msgLibProgram: PublicKey; msgLibVersion?: Version$2; }, commitment?: Commitment): Promise; oAppNilify(delegate: Signer, args: NilifyInstructionArgs): WrappedInstruction; oAppBurnNonce(delegate: Signer, args: BurnInstructionArgs): WrappedInstruction; /** * * Gets the account metadata for the CPI (Cross-Program Invocation) of the quote instruction. * * caculate the fee for sending a message with ULN: * 1. executorFee: feeForGas + feeForOptionType * * feeForGas: ((gas + gasForCalldata) * gasPriceInUnit * priceRatio / priceRatioDenominator) * multiplier_bps / 10000 * * feeForOptionType: nativeDrop/lzReceive/lzCompose * 2. oracleFee: feeForGas * * feeForGas: same above * * The priceRatioDenominator is 10^20 * totalFee = executorFee + oracleFee * numOracles(requiredOracles + optionalOracles) * * @param {Connection} connection - The connection to the Solana cluster. * @param {PublicKey} payer - The payer public key. * @param {PacketPath} path - The packet path. * @param {MessageLibInterface} msgLibProgram - The message library program. * @returns {Promise} A promise that resolves to an array of account metadata. * @throws {Error} If the default send library is not initialized or the message library is blocked. */ getQuoteIXAccountMetaForCPI(rpc: RpcInterface, payer: PublicKey, params: { path: SolanaPacketPath; msgLibProgram: MessageLibInterface; }, commitment?: Commitment): Promise; /** * Gets the account metadata for the CPI (Cross-Program Invocation) of the send instruction. * * @param {Connection} connection - The connection to the Solana cluster. * @param {PublicKey} payer - The payer public key. * @param {PacketPath} path - The packet path. * @param {MessageLibInterface} msgLibProgram - The message library program. * @param {Commitment | GetAccountInfoConfig} [commitmentOrConfig] - The commitment level or account info configuration. * @returns {Promise} A promise that resolves to an array of account metadata. * @throws {Error} If the default send library is not initialized or the message library is blocked. */ getSendIXAccountMetaForCPI(rpc: RpcInterface, payerOrAccounts: PublicKey | { payer: PublicKey; tokenMint: PublicKey; tokenSource: PublicKey; }, params: { path: SolanaPacketPath; msgLibProgram: MessageLibInterface; tokenProgram?: PublicKey; associatedTokenProgram?: PublicKey; }, commitment?: Commitment): Promise; /** * Skips a message. * * @param {PublicKey} payer - The payer public key. * @param {PublicKey} sender - The sender public key. * @param {PublicKey} receiver - The receiver public key. * @param {number} srcEid - The source endpoint ID. * @param {string} nonce - The nonce. * @returns {Promise} A promise that resolves to the transaction instruction or null if not needed. */ skip(payer: Signer, params: SkipInstructionDataArgs): WrappedInstruction; /** * Initializes the verification process. * * @param {Connection} connection - The connection to the Solana cluster. * @param {PublicKey} payer - The payer public key. * @param {PublicKey} sender - The sender public key. * @param {PublicKey} receiver - The receiver public key. * @param {number} srcEid - The source endpoint ID. * @param {string} nonce - The nonce. * @param {Commitment | GetAccountInfoConfig} [commitmentOrConfig] - The commitment level or account info configuration. * @returns {Promise} A promise that resolves to the transaction instruction or null if not needed. */ initVerify(payer: Signer, params: InitVerifyInstructionArgs$1): WrappedInstruction; /** * Gets the account metadata for the CPI (Cross-Program Invocation) of the verify instruction. * * @param {PacketV1Codec} packet - The packet. * @param {PublicKey} receiveLibrary - The receive library public key. * @returns {AccountMeta[]} An array of account metadata. */ getVerifyIXAccountMetaForCPI(packet: PacketV1Codec, receiveLibrary: PublicKey): AccountMeta[]; /** * Gets the account metadata for the CPI (Cross-Program Invocation) of the register OApp instruction. * * @param {PublicKey} payer - The payer public key. * @param {PublicKey} oapp - The OApp public key. * @returns {AccountMeta[]} An array of account metadata. */ getRegisterOappIxAccountMetaForCPI(payer: PublicKey, oapp: PublicKey): AccountMeta[]; getSetDelegateIxAccountMetaForCPI(oapp: PublicKey): AccountMeta[]; /** * Gets the account metadata for the CPI (Cross-Program Invocation) of the skip instruction. * * @param {PublicKey} receiver - The receiver public key. * @param {Uint8Array} sender - The sender address. * @param {number} srcEid - The source endpoint ID. * @param {number} nonce - The nonce. * @returns {AccountMeta[]} An array of account metadata. */ getSkipIxAccountMetaForCPI(receiver: PublicKey, sender: Uint8Array, srcEid: number, nonce: number | bigint): AccountMeta[]; /** * Checks if the given message library program is the default send library. * * @param {Connection} connection - The connection to the Solana cluster. * @param {PublicKey} messageLibProgram - The message library program public key. * @param {number} dstEid - The destination endpoint ID. * @param {Commitment | GetAccountInfoConfig} [commitmentOrConfig] - The commitment level or account info configuration. * @returns {Promise} A promise that resolves to true if the message library program is the default send library, false otherwise. */ isDefaultSendLibrary(rpc: RpcInterface, messageLibProgram: PublicKey, dstEid: number, commitment?: Commitment): Promise; /** * Checks if the given message library program is the default receive library. * * @param {Connection} connection - The connection to the Solana cluster. * @param {PublicKey} messageLibProgram - The message library program public key. * @param {number} srcEid - The source endpoint ID. * @param {Commitment | GetAccountInfoConfig} [commitmentOrConfig] - The commitment level or account info configuration. * @returns {Promise} A promise that resolves to true if the message library program is the default receive library, false otherwise. */ isDefaultReceiveLibrary(rpc: RpcInterface, messageLibProgram: PublicKey, srcEid: number, commitment?: Commitment): Promise; /** * Gets the endpoint settings. * * @param {Connection} connection - The connection to the Solana cluster. * @param {Commitment | GetAccountInfoConfig} [commitmentOrConfig] - The commitment level or account info configuration. * @returns {Promise} A promise that resolves to the endpoint settings or null if not found. */ getSetting(rpc: RpcInterface, commitment?: Commitment): Promise; /** * Gets the message library information. * * @param {Connection} connection - The connection to the Solana cluster. * @param {PublicKey} messageLibProgram - The message library program public key, It is a PDA of the message library program * @param {Commitment | GetAccountInfoConfig} [commitmentOrConfig] - The commitment level or account info configuration. * @returns {Promise} A promise that resolves to the message library information or null if not found. */ getMessageLibInfo(rpc: RpcInterface, messageLibProgram: PublicKey, commitment?: Commitment): Promise; /** * Gets the default receive library. * * @param {Connection} connection - The connection to the Solana cluster. * @param {number} srcEid - The source endpoint ID. * @param {Commitment | GetAccountInfoConfig} [commitmentOrConfig] - The commitment level or account info configuration. * @returns {Promise<{ msgLib: PublicKey; owner: PublicKey } | null>} A promise that resolves to the default receive library or null if not found. */ getDefaultReceiveLibrary(rpc: RpcInterface, srcEid: number, commitment?: Commitment): Promise<{ msgLib: PublicKey; owner: PublicKey; } | null>; /** * Gets the default send library. * * @param {Connection} connection - The connection to the Solana cluster. * @param {number} dstEid - The destination endpoint ID. * @param {Commitment | GetAccountInfoConfig} [commitmentOrConfig] - The commitment level or account info configuration. * @returns {Promise<{ msgLib: PublicKey; owner: PublicKey } | null>} A promise that resolves to the default send library or null if not found. */ getDefaultSendLibrary(rpc: RpcInterface, dstEid: number, commitment?: Commitment): Promise<{ msgLib: PublicKey; owner: PublicKey; } | null>; /** * Gets the configured send library for the app. * * @param {Connection} connection - The connection to the Solana cluster. * @param {PublicKey} oappPda - The OApp PDA. * @param {number} dstEid - The destination endpoint ID. * @param {Commitment | GetAccountInfoConfig} [commitmentOrConfig='confirmed'] - The commitment level or account info configuration. * @returns {Promise<{ msgLib: PublicKey; programId: PublicKey; isDefault: boolean } | null>} A promise that resolves to the configured send library or null if not found. */ getSendLibrary(rpc: RpcInterface, oappPda: PublicKey, dstEid: number, commitment?: Commitment): Promise<{ msgLib: PublicKey; programId: PublicKey; isDefault: boolean; }>; /** * Gets the configured receive library for the app. * * @param {Connection} connection - The connection to the Solana cluster. * @param {PublicKey} oappPda - The OApp PDA. * @param {number} srcEid - The source endpoint ID. * @param {Commitment | GetAccountInfoConfig} [commitmentOrConfig] - The commitment level or account info configuration. * @returns {Promise<{ msgLib: PublicKey; programId: PublicKey; isDefault: boolean; timeout: { msgLib: PublicKey; expiry: bigint } | null } | null>} A promise that resolves to the configured receive library or null if not found. */ getReceiveLibrary(rpc: RpcInterface, oappPda: PublicKey, srcEid: number, commitment?: Commitment): Promise<{ msgLib: PublicKey; programId: PublicKey; isDefault: boolean; timeout?: { msgLib: PublicKey; expiry: bigint; }; }>; /** * Gets the inbound payload hash. * * @param {Connection} connection - The connection to the Solana cluster. * @param {PublicKey} receiver - The receiver public key. * @param {number} srcEid - The source endpoint ID. * @param {Uint8Array} sender - The sender address. * @param {number} nonce - The nonce. * @param {Uint8Array} _payloadHash - The payload hash. * @param {Commitment | GetAccountInfoConfig} [commitmentOrConfig] - The commitment level or account info configuration. * @returns {Promise} A promise that resolves to the payload hash or null if not found. */ getInboundPayloadHash(rpc: RpcInterface, receiver: PublicKey, srcEid: number, sender: Uint8Array, nonce: number, _payloadHash: Uint8Array, commitment?: Commitment): Promise; /** * Gets the composed message state. * * @param {Connection} connection - The connection to the Solana cluster. * @param {PublicKey} from - The sender public key. * @param {types.SendComposeParams} params - The send compose parameters. * @param {Commitment | GetAccountInfoConfig} [commitmentOrConfig] - The commitment level or account info configuration. * @returns {Promise} A promise that resolves to the composed message state or null if not found. */ getComposedMessageState(rpc: RpcInterface, from: PublicKey, params: SendComposeInstructionArgs, commitment?: Commitment): Promise; /** * Gets the nonce. * * @param {Connection} connection - The connection to the Solana cluster. * @param {PublicKey} oappIDPDA - The OApp ID PDA. * @param {number} remoteEid - The remote endpoint ID. * @param {Uint8Array} remoteOappAddr - The remote OApp address. * @param {Commitment | GetAccountInfoConfig} [commitmentOrConfig] - The commitment level or account info configuration. * @returns {Promise} A promise that resolves to the nonce or null if not found. */ getNonce(rpc: RpcInterface, oappIDPDA: PublicKey, remoteEid: number, remoteOappAddr: Uint8Array, commitment?: Commitment): Promise; /** * Gets the pending inbound nonce. * * @param {Connection} connection - The connection to the Solana cluster. * @param {PublicKey} oappIDPDA - The OApp ID PDA. * @param {number} remoteEid - The remote endpoint ID. * @param {Uint8Array} remoteOappAddr - The remote OApp address. * @param {Commitment | GetAccountInfoConfig} [commitmentOrConfig] - The commitment level or account info configuration. * @returns {Promise} A promise that resolves to the pending inbound nonce or null if not found. */ getPendingInboundNonce(rpc: RpcInterface, oappIDPDA: PublicKey, remoteEid: number, remoteOappAddr: Uint8Array, commitment?: Commitment): Promise; /** * Gets the message library version. * * @param {Connection} connection - The connection to the Solana cluster. * @param {PublicKey} payer - The payer public key. * @param {PublicKey} messageLibProgram - The message library program public key. * @param {Commitment} [commitment='confirmed'] - The commitment level. * @returns {Promise} A promise that resolves to the version or null if not found. */ getMessageLibVersion(rpc: RpcInterface, payer: PublicKey, messageLibProgram: PublicKey, commitment?: Commitment): Promise; /** * Transfers the admin role to a new admin. * * @param {Connection} connection - The connection to the Solana cluster. * @param {PublicKey} admin - The current admin public key. * @param {PublicKey} newAdmin - The new admin public key. * @param {Commitment} [commitment='confirmed'] - The commitment level. * @returns {Promise} A promise that resolves to the transaction instruction or null if not needed. */ transferAdmin(admin: Signer, newAdmin: PublicKey): WrappedInstruction; static checkIfBlockedMessageLib(msgLib: PublicKey): boolean; } declare const endpoint_DefaultMessageLib: typeof DefaultMessageLib; declare const endpoint_ENDPOINT_PROGRAM_ID: typeof ENDPOINT_PROGRAM_ID; type endpoint_Endpoint = Endpoint; declare const endpoint_Endpoint: typeof Endpoint; declare const endpoint_EventEmitDiscriminator: typeof EventEmitDiscriminator; declare namespace endpoint { export { endpoint_DefaultMessageLib as DefaultMessageLib, endpoint_ENDPOINT_PROGRAM_ID as ENDPOINT_PROGRAM_ID, endpoint_Endpoint as Endpoint, endpoint_EventEmitDiscriminator as EventEmitDiscriminator, index$t as accounts, index$s as errors, index$r as events, index$q as instructions, index$u as types }; } /** * Class representing the SimpleMessageLib. * @see {@link MessageLibInterface} */ declare class SimpleMessageLib implements MessageLibInterface { programId: PublicKey; readonly pda: MessageLibPDA; readonly programRepo: ProgramRepositoryInterface; constructor(programId?: PublicKey, rpc?: RpcInterface); getProgram(clusterFilter?: ClusterFilter): Program; /** * Initializes the SimpleMessageLib. * * @param {PublicKey} endpointProgram - The endpoint program public key. * @param {PublicKey} payer - The payer public key. * @param {PublicKey} admin - The admin public key. * @param {number} eid - The endpoint ID. * @param {number} nativeFee - The native fee. * @param {number} [lzTokenFee=0] - The LayerZero token fee. * * @returns {TransactionInstruction} The transaction instruction. */ initSimpleMessageLib(payer: Signer, param: { endpointProgram?: PublicKey; admin: PublicKey; eid: number; nativeFee: number; lzTokenFee: number; }): WrappedInstruction; /** * Sets the whitelist caller. * * @param {Signer} admin - The admin public key. * @param {PublicKey} newCaller - The new caller public key. * * @returns {TransactionInstruction} The transaction instruction. */ setWhitelistCaller(admin: Signer, newCaller: PublicKey): WrappedInstruction; /** * Checks if a caller is whitelisted. * * @param {RpcInterface} rpc - The connection object. * @param {PublicKey} caller - The caller public key. * * @returns {Promise} A promise that resolves to true if the caller is whitelisted, false otherwise. */ isWhiteListed(rpc: RpcInterface, caller: PublicKey): Promise; /** * Gets the whitelisted caller. * * @param {RpcInterface} rpc - The connection object. * @param {Commitment | GetAccountInfoConfig} [commitmentOrConfig] - The commitment or config. * * @returns {Promise} A promise that resolves to the whitelisted caller public key. */ getWhiteListCaller(rpc: RpcInterface): Promise; /** * Validates a packet. * * @param {Signer} payer - The payer public key. * @param {Uint8Array} encodedPacket - The encoded packet. * @param {PublicKey} endpointProgram - The endpoint program public key. * * @returns {TransactionInstruction} The transaction instruction. */ validatePacket(payer: Signer, encodedPacket: Uint8Array, endpointProgram?: PublicKey): WrappedInstruction; /** * Gets the account meta of the send instruction for CPI (Cross-Program Invocation). * * @param {RpcInterface} _rpc - The connection object. * @param {PublicKey} payer - The payer public key. * @param {SolanaPacketPath} _path - The packet path. * * @returns {Promise} A promise that resolves to an array of account meta. */ getSendIXAccountMetaForCPI(_rpc: RpcInterface, payer: PublicKey, _path: SolanaPacketPath): Promise; /*** * Get the account meta of the send instruction for CPI(Cross-Program Invocation ) with lzToken */ getSendWithLzTokenIXAccountMetaForCPI(_rpc: RpcInterface, accounts: { payer: PublicKey; tokenMint: PublicKey; tokenSource: PublicKey; }, _path: SolanaPacketPath, programs?: { tokenProgram?: PublicKey; associatedTokenProgram?: PublicKey; }, _commitment?: Commitment): Promise; /** * Gets the account meta of the quote instruction for CPI (Cross-Program Invocation). * * @param {Connection} _connection - The connection object. * @param {PublicKey} _payer - The payer public key. * @param {PacketPath} _path - The packet path. * @param {Commitment} [commitment] - The commitment. * * @returns {Promise} A promise that resolves to an array of account meta. */ getQuoteIXAccountMetaForCPI(_rpc: RpcInterface, _payer: PublicKey, _path: SolanaPacketPath, _commitment?: Commitment): Promise; /** * Gets the account meta of the init config instruction for CPI (Cross-Program Invocation). * * @param {PublicKey} payer - The payer public key. * @param {PublicKey} oapp - The oapp ID public key. * @param {number} eid - The endpoint ID. * * @returns {AccountMeta[]} An array of account meta. */ getInitConfigIXAccountMetaForCPI(payer: PublicKey, oapp: PublicKey, eid: number): AccountMeta[]; /** * Gets the account meta of the set config instruction for CPI (Cross-Program Invocation). * * @param {PublicKey} oapp - The oapp ID public key. * @param {number} eid - The endpoint ID. * @param {PublicKey} _endpointProgram - The endpoint program public key. * * @returns {Promise} A promise that resolves to an array of account meta. */ getSetConfigIXAccountMetaForCPI(oapp: PublicKey, eid: number, _endpointProgram?: PublicKey): AccountMeta[]; } declare const simpleMessageLib_SIMPLE_MESSAGELIB_PROGRAM_ID: typeof SIMPLE_MESSAGELIB_PROGRAM_ID; type simpleMessageLib_SimpleMessageLib = SimpleMessageLib; declare const simpleMessageLib_SimpleMessageLib: typeof SimpleMessageLib; declare namespace simpleMessageLib { export { simpleMessageLib_SIMPLE_MESSAGELIB_PROGRAM_ID as SIMPLE_MESSAGELIB_PROGRAM_ID, simpleMessageLib_SimpleMessageLib as SimpleMessageLib, index$p as accounts, index$o as errors, index$m as instructions, index$n as types }; } /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type Acl$1 = { allowList: Array; denyList: Array; }; type AclArgs$1 = Acl$1; declare function getAclSerializer$1(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type AdminConfig = { __kind: 'Admins'; fields: [Array]; } | { __kind: 'DefaultMultiplierBps'; fields: [number]; } | { __kind: 'DstConfigs'; fields: [Array]; } | { __kind: 'PriceFeed'; fields: [PublicKey]; } | { __kind: 'RemoveDstConfigs'; fields: [Array]; }; type AdminConfigArgs = { __kind: 'Admins'; fields: [Array]; } | { __kind: 'DefaultMultiplierBps'; fields: [number]; } | { __kind: 'DstConfigs'; fields: [Array]; } | { __kind: 'PriceFeed'; fields: [PublicKey]; } | { __kind: 'RemoveDstConfigs'; fields: [Array]; }; declare function getAdminConfigSerializer(): Serializer; declare function adminConfig(kind: 'Admins', data: GetDataEnumKindContent['fields']): GetDataEnumKind; declare function adminConfig(kind: 'DefaultMultiplierBps', data: GetDataEnumKindContent['fields']): GetDataEnumKind; declare function adminConfig(kind: 'DstConfigs', data: GetDataEnumKindContent['fields']): GetDataEnumKind; declare function adminConfig(kind: 'PriceFeed', data: GetDataEnumKindContent['fields']): GetDataEnumKind; declare function adminConfig(kind: 'RemoveDstConfigs', data: GetDataEnumKindContent['fields']): GetDataEnumKind; declare function isAdminConfig(kind: K, value: AdminConfig): value is AdminConfig & { __kind: K; }; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type DstConfig$1 = { eid: number; dstGas: number; multiplierBps: Option; floorMarginUsd: Option; }; type DstConfigArgs$1 = { eid: number; dstGas: number; multiplierBps: OptionOrNullable; floorMarginUsd: OptionOrNullable; }; declare function getDstConfigSerializer$1(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type ExecuteTransactionDigest = { vid: number; programId: PublicKey; accounts: Array; data: Uint8Array; expiration: bigint; }; type ExecuteTransactionDigestArgs = { vid: number; programId: PublicKey; accounts: Array; data: Uint8Array; expiration: number | bigint; }; declare function getExecuteTransactionDigestSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type LzOption$1 = { optionType: number; params: Uint8Array; }; type LzOptionArgs$1 = LzOption$1; declare function getLzOptionSerializer$1(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type Multisig = { signers: Array; quorum: number; }; type MultisigArgs = Multisig; declare function getMultisigSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type MultisigConfig = { __kind: 'Admins'; fields: [Array]; } | { __kind: 'Allowlist'; fields: [Array]; } | { __kind: 'Denylist'; fields: [Array]; } | { __kind: 'Msglibs'; fields: [Array]; } | { __kind: 'Paused'; fields: [boolean]; } | { __kind: 'Quorum'; fields: [number]; } | { __kind: 'Signers'; fields: [Array]; }; type MultisigConfigArgs = MultisigConfig; declare function getMultisigConfigSerializer(): Serializer; declare function multisigConfig(kind: 'Admins', data: GetDataEnumKindContent['fields']): GetDataEnumKind; declare function multisigConfig(kind: 'Allowlist', data: GetDataEnumKindContent['fields']): GetDataEnumKind; declare function multisigConfig(kind: 'Denylist', data: GetDataEnumKindContent['fields']): GetDataEnumKind; declare function multisigConfig(kind: 'Msglibs', data: GetDataEnumKindContent['fields']): GetDataEnumKind; declare function multisigConfig(kind: 'Paused', data: GetDataEnumKindContent['fields']): GetDataEnumKind; declare function multisigConfig(kind: 'Quorum', data: GetDataEnumKindContent['fields']): GetDataEnumKind; declare function multisigConfig(kind: 'Signers', data: GetDataEnumKindContent['fields']): GetDataEnumKind; declare function isMultisigConfig(kind: K, value: MultisigConfig): value is MultisigConfig & { __kind: K; }; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type TransactionAccount = { pubkey: PublicKey; isSigner: boolean; isWritable: boolean; }; type TransactionAccountArgs = TransactionAccount; declare function getTransactionAccountSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type UlnConfig$1 = { confirmations: bigint; requiredDvnCount: number; optionalDvnCount: number; optionalDvnThreshold: number; requiredDvns: Array; optionalDvns: Array; }; type UlnConfigArgs$1 = { confirmations: number | bigint; requiredDvnCount: number; optionalDvnCount: number; optionalDvnThreshold: number; requiredDvns: Array; optionalDvns: Array; }; declare function getUlnConfigSerializer$1(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ declare enum VerificationState { Verifying = 0, Verifiable = 1, Verified = 2, NotInitializable = 3, VerifiableButCapExceeded = 4 } type VerificationStateArgs = VerificationState; declare function getVerificationStateSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type index$l_AdminConfig = AdminConfig; type index$l_AdminConfigArgs = AdminConfigArgs; type index$l_ExecuteTransactionDigest = ExecuteTransactionDigest; type index$l_ExecuteTransactionDigestArgs = ExecuteTransactionDigestArgs; type index$l_Multisig = Multisig; type index$l_MultisigArgs = MultisigArgs; type index$l_MultisigConfig = MultisigConfig; type index$l_MultisigConfigArgs = MultisigConfigArgs; type index$l_TransactionAccount = TransactionAccount; type index$l_TransactionAccountArgs = TransactionAccountArgs; type index$l_VerificationState = VerificationState; declare const index$l_VerificationState: typeof VerificationState; type index$l_VerificationStateArgs = VerificationStateArgs; declare const index$l_adminConfig: typeof adminConfig; declare const index$l_getAdminConfigSerializer: typeof getAdminConfigSerializer; declare const index$l_getExecuteTransactionDigestSerializer: typeof getExecuteTransactionDigestSerializer; declare const index$l_getMultisigConfigSerializer: typeof getMultisigConfigSerializer; declare const index$l_getMultisigSerializer: typeof getMultisigSerializer; declare const index$l_getTransactionAccountSerializer: typeof getTransactionAccountSerializer; declare const index$l_getVerificationStateSerializer: typeof getVerificationStateSerializer; declare const index$l_isAdminConfig: typeof isAdminConfig; declare const index$l_isMultisigConfig: typeof isMultisigConfig; declare const index$l_multisigConfig: typeof multisigConfig; declare namespace index$l { export { type Acl$1 as Acl, type AclArgs$1 as AclArgs, type index$l_AdminConfig as AdminConfig, type index$l_AdminConfigArgs as AdminConfigArgs, type DstConfig$1 as DstConfig, type DstConfigArgs$1 as DstConfigArgs, type index$l_ExecuteTransactionDigest as ExecuteTransactionDigest, type index$l_ExecuteTransactionDigestArgs as ExecuteTransactionDigestArgs, type LzOption$1 as LzOption, type LzOptionArgs$1 as LzOptionArgs, type index$l_Multisig as Multisig, type index$l_MultisigArgs as MultisigArgs, type index$l_MultisigConfig as MultisigConfig, type index$l_MultisigConfigArgs as MultisigConfigArgs, type index$l_TransactionAccount as TransactionAccount, type index$l_TransactionAccountArgs as TransactionAccountArgs, type UlnConfig$1 as UlnConfig, type UlnConfigArgs$1 as UlnConfigArgs, index$l_VerificationState as VerificationState, type index$l_VerificationStateArgs as VerificationStateArgs, index$l_adminConfig as adminConfig, getAclSerializer$1 as getAclSerializer, index$l_getAdminConfigSerializer as getAdminConfigSerializer, getDstConfigSerializer$1 as getDstConfigSerializer, index$l_getExecuteTransactionDigestSerializer as getExecuteTransactionDigestSerializer, getLzOptionSerializer$1 as getLzOptionSerializer, index$l_getMultisigConfigSerializer as getMultisigConfigSerializer, index$l_getMultisigSerializer as getMultisigSerializer, index$l_getTransactionAccountSerializer as getTransactionAccountSerializer, getUlnConfigSerializer$1 as getUlnConfigSerializer, index$l_getVerificationStateSerializer as getVerificationStateSerializer, index$l_isAdminConfig as isAdminConfig, index$l_isMultisigConfig as isMultisigConfig, index$l_multisigConfig as multisigConfig }; } type DvnConfig = Account; type DvnConfigAccountData = { discriminator: Uint8Array; vid: number; bump: number; multisig: Multisig; acl: Acl$1; paused: boolean; msglibs: Array; admins: Array; priceFeed: PublicKey; dstConfigs: Array; defaultMultiplierBps: number; }; type DvnConfigAccountDataArgs = { vid: number; bump: number; multisig: MultisigArgs; acl: AclArgs$1; paused: boolean; msglibs: Array; admins: Array; priceFeed: PublicKey; dstConfigs: Array; defaultMultiplierBps: number; }; declare function getDvnConfigAccountDataSerializer(): Serializer; declare function deserializeDvnConfig(rawAccount: RpcAccount): DvnConfig; declare function fetchDvnConfig(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function safeFetchDvnConfig(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function fetchAllDvnConfig(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function safeFetchAllDvnConfig(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function getDvnConfigGpaBuilder(context: Pick): _metaplex_foundation_umi.GpaBuilder; admins: Array; priceFeed: PublicKey; dstConfigs: Array; defaultMultiplierBps: number; }>; type ExecuteHash = Account; type ExecuteHashAccountData = { discriminator: Uint8Array; expiration: bigint; bump: number; }; type ExecuteHashAccountDataArgs = { expiration: number | bigint; bump: number; }; declare function getExecuteHashAccountDataSerializer(): Serializer; declare function deserializeExecuteHash(rawAccount: RpcAccount): ExecuteHash; declare function fetchExecuteHash(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function safeFetchExecuteHash(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function fetchAllExecuteHash(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function safeFetchAllExecuteHash(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function getExecuteHashGpaBuilder(context: Pick): _metaplex_foundation_umi.GpaBuilder; declare function getExecuteHashSize(): number; type ReceiveConfig$1 = Account; type ReceiveConfigAccountData$1 = { discriminator: Uint8Array; bump: number; uln: UlnConfig$1; }; type ReceiveConfigAccountDataArgs$1 = { bump: number; uln: UlnConfigArgs$1; }; declare function getReceiveConfigAccountDataSerializer$1(): Serializer; declare function deserializeReceiveConfig$1(rawAccount: RpcAccount): ReceiveConfig$1; declare function fetchReceiveConfig$1(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function safeFetchReceiveConfig$1(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function fetchAllReceiveConfig$1(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function safeFetchAllReceiveConfig$1(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function getReceiveConfigGpaBuilder$1(context: Pick): _metaplex_foundation_umi.GpaBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type index$k_DvnConfig = DvnConfig; type index$k_DvnConfigAccountData = DvnConfigAccountData; type index$k_DvnConfigAccountDataArgs = DvnConfigAccountDataArgs; type index$k_ExecuteHash = ExecuteHash; type index$k_ExecuteHashAccountData = ExecuteHashAccountData; type index$k_ExecuteHashAccountDataArgs = ExecuteHashAccountDataArgs; declare const index$k_deserializeDvnConfig: typeof deserializeDvnConfig; declare const index$k_deserializeExecuteHash: typeof deserializeExecuteHash; declare const index$k_fetchAllDvnConfig: typeof fetchAllDvnConfig; declare const index$k_fetchAllExecuteHash: typeof fetchAllExecuteHash; declare const index$k_fetchDvnConfig: typeof fetchDvnConfig; declare const index$k_fetchExecuteHash: typeof fetchExecuteHash; declare const index$k_getDvnConfigAccountDataSerializer: typeof getDvnConfigAccountDataSerializer; declare const index$k_getDvnConfigGpaBuilder: typeof getDvnConfigGpaBuilder; declare const index$k_getExecuteHashAccountDataSerializer: typeof getExecuteHashAccountDataSerializer; declare const index$k_getExecuteHashGpaBuilder: typeof getExecuteHashGpaBuilder; declare const index$k_getExecuteHashSize: typeof getExecuteHashSize; declare const index$k_safeFetchAllDvnConfig: typeof safeFetchAllDvnConfig; declare const index$k_safeFetchAllExecuteHash: typeof safeFetchAllExecuteHash; declare const index$k_safeFetchDvnConfig: typeof safeFetchDvnConfig; declare const index$k_safeFetchExecuteHash: typeof safeFetchExecuteHash; declare namespace index$k { export { type index$k_DvnConfig as DvnConfig, type index$k_DvnConfigAccountData as DvnConfigAccountData, type index$k_DvnConfigAccountDataArgs as DvnConfigAccountDataArgs, type index$k_ExecuteHash as ExecuteHash, type index$k_ExecuteHashAccountData as ExecuteHashAccountData, type index$k_ExecuteHashAccountDataArgs as ExecuteHashAccountDataArgs, type ReceiveConfig$1 as ReceiveConfig, type ReceiveConfigAccountData$1 as ReceiveConfigAccountData, type ReceiveConfigAccountDataArgs$1 as ReceiveConfigAccountDataArgs, index$k_deserializeDvnConfig as deserializeDvnConfig, index$k_deserializeExecuteHash as deserializeExecuteHash, deserializeReceiveConfig$1 as deserializeReceiveConfig, index$k_fetchAllDvnConfig as fetchAllDvnConfig, index$k_fetchAllExecuteHash as fetchAllExecuteHash, fetchAllReceiveConfig$1 as fetchAllReceiveConfig, index$k_fetchDvnConfig as fetchDvnConfig, index$k_fetchExecuteHash as fetchExecuteHash, fetchReceiveConfig$1 as fetchReceiveConfig, index$k_getDvnConfigAccountDataSerializer as getDvnConfigAccountDataSerializer, index$k_getDvnConfigGpaBuilder as getDvnConfigGpaBuilder, index$k_getExecuteHashAccountDataSerializer as getExecuteHashAccountDataSerializer, index$k_getExecuteHashGpaBuilder as getExecuteHashGpaBuilder, index$k_getExecuteHashSize as getExecuteHashSize, getReceiveConfigAccountDataSerializer$1 as getReceiveConfigAccountDataSerializer, getReceiveConfigGpaBuilder$1 as getReceiveConfigGpaBuilder, index$k_safeFetchAllDvnConfig as safeFetchAllDvnConfig, index$k_safeFetchAllExecuteHash as safeFetchAllExecuteHash, safeFetchAllReceiveConfig$1 as safeFetchAllReceiveConfig, index$k_safeFetchDvnConfig as safeFetchDvnConfig, index$k_safeFetchExecuteHash as safeFetchExecuteHash, safeFetchReceiveConfig$1 as safeFetchReceiveConfig }; } /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ /** InvalidSignatureLen */ declare class InvalidSignatureLenError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** NotAdmin */ declare class NotAdminError$1 extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** MsgLibNotAllowed */ declare class MsgLibNotAllowedError$1 extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidQuorum */ declare class InvalidQuorumError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidSignersLen */ declare class InvalidSignersLenError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** UniqueOwners */ declare class UniqueOwnersError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** SignatureError */ declare class SignatureErrorError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** SignerNotInCommittee */ declare class SignerNotInCommitteeError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** TooManyAdmins */ declare class TooManyAdminsError$1 extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** TooManyOptionTypes */ declare class TooManyOptionTypesError$1 extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** DuplicateSignature */ declare class DuplicateSignatureError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** Expired */ declare class ExpiredError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidVid */ declare class InvalidVidError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** Paused */ declare class PausedError$1 extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** UnexpiredExecuteHash */ declare class UnexpiredExecuteHashError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidAmount */ declare class InvalidAmountError$1 extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** EidNotSupported */ declare class EidNotSupportedError$1 extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** * Attempts to resolve a custom program error from the provided error code. * @category Errors */ declare function getDvnErrorFromCode(code: number, program: Program, cause?: Error): ProgramError | null; /** * Attempts to resolve a custom program error from the provided error name, i.e. 'Unauthorized'. * @category Errors */ declare function getDvnErrorFromName(name: string, program: Program, cause?: Error): ProgramError | null; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type index$j_DuplicateSignatureError = DuplicateSignatureError; declare const index$j_DuplicateSignatureError: typeof DuplicateSignatureError; type index$j_ExpiredError = ExpiredError; declare const index$j_ExpiredError: typeof ExpiredError; type index$j_InvalidQuorumError = InvalidQuorumError; declare const index$j_InvalidQuorumError: typeof InvalidQuorumError; type index$j_InvalidSignatureLenError = InvalidSignatureLenError; declare const index$j_InvalidSignatureLenError: typeof InvalidSignatureLenError; type index$j_InvalidSignersLenError = InvalidSignersLenError; declare const index$j_InvalidSignersLenError: typeof InvalidSignersLenError; type index$j_InvalidVidError = InvalidVidError; declare const index$j_InvalidVidError: typeof InvalidVidError; type index$j_SignatureErrorError = SignatureErrorError; declare const index$j_SignatureErrorError: typeof SignatureErrorError; type index$j_SignerNotInCommitteeError = SignerNotInCommitteeError; declare const index$j_SignerNotInCommitteeError: typeof SignerNotInCommitteeError; type index$j_UnexpiredExecuteHashError = UnexpiredExecuteHashError; declare const index$j_UnexpiredExecuteHashError: typeof UnexpiredExecuteHashError; type index$j_UniqueOwnersError = UniqueOwnersError; declare const index$j_UniqueOwnersError: typeof UniqueOwnersError; declare const index$j_getDvnErrorFromCode: typeof getDvnErrorFromCode; declare const index$j_getDvnErrorFromName: typeof getDvnErrorFromName; declare namespace index$j { export { index$j_DuplicateSignatureError as DuplicateSignatureError, EidNotSupportedError$1 as EidNotSupportedError, index$j_ExpiredError as ExpiredError, InvalidAmountError$1 as InvalidAmountError, index$j_InvalidQuorumError as InvalidQuorumError, index$j_InvalidSignatureLenError as InvalidSignatureLenError, index$j_InvalidSignersLenError as InvalidSignersLenError, index$j_InvalidVidError as InvalidVidError, MsgLibNotAllowedError$1 as MsgLibNotAllowedError, NotAdminError$1 as NotAdminError, PausedError$1 as PausedError, index$j_SignatureErrorError as SignatureErrorError, index$j_SignerNotInCommitteeError as SignerNotInCommitteeError, TooManyAdminsError$1 as TooManyAdminsError, TooManyOptionTypesError$1 as TooManyOptionTypesError, index$j_UnexpiredExecuteHashError as UnexpiredExecuteHashError, index$j_UniqueOwnersError as UniqueOwnersError, index$j_getDvnErrorFromCode as getDvnErrorFromCode, index$j_getDvnErrorFromName as getDvnErrorFromName }; } /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type AdminConfigSetEvent = { config: AdminConfig; }; type AdminConfigSetEventArgs = { config: AdminConfigArgs; }; declare function getAdminConfigSetEventSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type FeeWithdrawnEvent = { receiver: PublicKey; amount: bigint; }; type FeeWithdrawnEventArgs = { receiver: PublicKey; amount: number | bigint; }; declare function getFeeWithdrawnEventSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type MultisigConfigSetEvent = { config: MultisigConfig; }; type MultisigConfigSetEventArgs = { config: MultisigConfigArgs; }; declare function getMultisigConfigSetEventSerializer(): Serializer; type index$i_AdminConfigSetEvent = AdminConfigSetEvent; type index$i_AdminConfigSetEventArgs = AdminConfigSetEventArgs; type index$i_FeeWithdrawnEvent = FeeWithdrawnEvent; type index$i_FeeWithdrawnEventArgs = FeeWithdrawnEventArgs; type index$i_MultisigConfigSetEvent = MultisigConfigSetEvent; type index$i_MultisigConfigSetEventArgs = MultisigConfigSetEventArgs; declare const index$i_getAdminConfigSetEventSerializer: typeof getAdminConfigSetEventSerializer; declare const index$i_getFeeWithdrawnEventSerializer: typeof getFeeWithdrawnEventSerializer; declare const index$i_getMultisigConfigSetEventSerializer: typeof getMultisigConfigSetEventSerializer; declare namespace index$i { export { type index$i_AdminConfigSetEvent as AdminConfigSetEvent, type index$i_AdminConfigSetEventArgs as AdminConfigSetEventArgs, type index$i_FeeWithdrawnEvent as FeeWithdrawnEvent, type index$i_FeeWithdrawnEventArgs as FeeWithdrawnEventArgs, type index$i_MultisigConfigSetEvent as MultisigConfigSetEvent, type index$i_MultisigConfigSetEventArgs as MultisigConfigSetEventArgs, index$i_getAdminConfigSetEventSerializer as getAdminConfigSetEventSerializer, index$i_getFeeWithdrawnEventSerializer as getFeeWithdrawnEventSerializer, index$i_getMultisigConfigSetEventSerializer as getMultisigConfigSetEventSerializer }; } /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type CloseExecuteInstructionAccounts = { admin: Signer; config: PublicKey | Pda; executeHash: PublicKey | Pda; }; type CloseExecuteInstructionData = { discriminator: Uint8Array; digestHash: Uint8Array; }; type CloseExecuteInstructionDataArgs = { digestHash: Uint8Array; }; declare function getCloseExecuteInstructionDataSerializer(): Serializer; type CloseExecuteInstructionArgs = CloseExecuteInstructionDataArgs; declare function closeExecute(context: Pick, input: CloseExecuteInstructionAccounts & CloseExecuteInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type ExtendDvnConfigInstructionAccounts = { admin: Signer; config: PublicKey | Pda; systemProgram?: PublicKey | Pda; }; type ExtendDvnConfigInstructionData = { discriminator: Uint8Array; }; type ExtendDvnConfigInstructionDataArgs = {}; declare function getExtendDvnConfigInstructionDataSerializer(): Serializer; declare function extendDvnConfig(context: Pick, input: ExtendDvnConfigInstructionAccounts): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type InitDvnInstructionAccounts = { payer?: Signer; config: PublicKey | Pda; systemProgram?: PublicKey | Pda; }; type InitDvnInstructionData = { discriminator: Uint8Array; vid: number; msglibs: Array; priceFeed: PublicKey; signers: Array; quorum: number; admins: Array; }; type InitDvnInstructionDataArgs = { vid: number; msglibs: Array; priceFeed: PublicKey; signers: Array; quorum: number; admins: Array; }; declare function getInitDvnInstructionDataSerializer(): Serializer; type InitDvnInstructionArgs = InitDvnInstructionDataArgs; declare function initDvn(context: Pick, input: InitDvnInstructionAccounts & InitDvnInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type InvokeInstructionAccounts = { signer: Signer; config: PublicKey | Pda; executeHash: PublicKey | Pda; systemProgram?: PublicKey | Pda; eventAuthority: PublicKey | Pda; program: PublicKey | Pda; }; type InvokeInstructionData = { discriminator: Uint8Array; digest: ExecuteTransactionDigest; signatures: Array>; }; type InvokeInstructionDataArgs = { digest: ExecuteTransactionDigestArgs; signatures: Array>; }; declare function getInvokeInstructionDataSerializer(): Serializer; type InvokeInstructionArgs = InvokeInstructionDataArgs; declare function invoke(context: Pick, input: InvokeInstructionAccounts & InvokeInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type QuoteDvnInstructionAccounts = { dvnConfig: PublicKey | Pda; priceFeedProgram: PublicKey | Pda; priceFeedConfig: PublicKey | Pda; }; type QuoteDvnInstructionData = { discriminator: Uint8Array; msglib: PublicKey; dstEid: number; sender: PublicKey; packetHeader: Uint8Array; payloadHash: Uint8Array; confirmations: bigint; options: Array; }; type QuoteDvnInstructionDataArgs = { msglib: PublicKey; dstEid: number; sender: PublicKey; packetHeader: Uint8Array; payloadHash: Uint8Array; confirmations: number | bigint; options: Array; }; declare function getQuoteDvnInstructionDataSerializer(): Serializer; type QuoteDvnInstructionArgs = QuoteDvnInstructionDataArgs; declare function quoteDvn(context: Pick, input: QuoteDvnInstructionAccounts & QuoteDvnInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type SetConfigInstructionAccounts$1 = { admin: Signer; config: PublicKey | Pda; eventAuthority: PublicKey | Pda; program: PublicKey | Pda; }; type SetConfigInstructionData$1 = { discriminator: Uint8Array; config: AdminConfig; }; type SetConfigInstructionDataArgs$1 = { config: AdminConfigArgs; }; declare function getSetConfigInstructionDataSerializer$1(): Serializer; type SetConfigInstructionArgs$1 = SetConfigInstructionDataArgs$1; declare function setConfig$1(context: Pick, accounts: SetConfigInstructionAccounts$1, args: SetConfigInstructionArgs$1): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type VerifiableInstructionAccounts = { nonce: PublicKey | Pda; payloadHash: PublicKey | Pda; receiveConfig: PublicKey | Pda; defaultReceiveConfig: PublicKey | Pda; }; type VerifiableInstructionData = { discriminator: Uint8Array; packetHeader: Array; payloadHash: Uint8Array; }; type VerifiableInstructionDataArgs = { packetHeader: Array; payloadHash: Uint8Array; }; declare function getVerifiableInstructionDataSerializer(): Serializer; type VerifiableInstructionArgs = VerifiableInstructionDataArgs; declare function verifiable(context: Pick, accounts: VerifiableInstructionAccounts, args: VerifiableInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type WithdrawFeeInstructionAccounts = { admin: Signer; config: PublicKey | Pda; receiver: PublicKey | Pda; eventAuthority: PublicKey | Pda; program: PublicKey | Pda; }; type WithdrawFeeInstructionData = { discriminator: Uint8Array; amount: bigint; }; type WithdrawFeeInstructionDataArgs = { amount: number | bigint; }; declare function getWithdrawFeeInstructionDataSerializer(): Serializer; type WithdrawFeeInstructionArgs = WithdrawFeeInstructionDataArgs; declare function withdrawFee(context: Pick, input: WithdrawFeeInstructionAccounts & WithdrawFeeInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type index$h_CloseExecuteInstructionAccounts = CloseExecuteInstructionAccounts; type index$h_CloseExecuteInstructionArgs = CloseExecuteInstructionArgs; type index$h_CloseExecuteInstructionData = CloseExecuteInstructionData; type index$h_CloseExecuteInstructionDataArgs = CloseExecuteInstructionDataArgs; type index$h_ExtendDvnConfigInstructionAccounts = ExtendDvnConfigInstructionAccounts; type index$h_ExtendDvnConfigInstructionData = ExtendDvnConfigInstructionData; type index$h_ExtendDvnConfigInstructionDataArgs = ExtendDvnConfigInstructionDataArgs; type index$h_InitDvnInstructionAccounts = InitDvnInstructionAccounts; type index$h_InitDvnInstructionArgs = InitDvnInstructionArgs; type index$h_InitDvnInstructionData = InitDvnInstructionData; type index$h_InitDvnInstructionDataArgs = InitDvnInstructionDataArgs; type index$h_InvokeInstructionAccounts = InvokeInstructionAccounts; type index$h_InvokeInstructionArgs = InvokeInstructionArgs; type index$h_InvokeInstructionData = InvokeInstructionData; type index$h_InvokeInstructionDataArgs = InvokeInstructionDataArgs; type index$h_QuoteDvnInstructionAccounts = QuoteDvnInstructionAccounts; type index$h_QuoteDvnInstructionArgs = QuoteDvnInstructionArgs; type index$h_QuoteDvnInstructionData = QuoteDvnInstructionData; type index$h_QuoteDvnInstructionDataArgs = QuoteDvnInstructionDataArgs; type index$h_VerifiableInstructionAccounts = VerifiableInstructionAccounts; type index$h_VerifiableInstructionArgs = VerifiableInstructionArgs; type index$h_VerifiableInstructionData = VerifiableInstructionData; type index$h_VerifiableInstructionDataArgs = VerifiableInstructionDataArgs; type index$h_WithdrawFeeInstructionAccounts = WithdrawFeeInstructionAccounts; type index$h_WithdrawFeeInstructionArgs = WithdrawFeeInstructionArgs; type index$h_WithdrawFeeInstructionData = WithdrawFeeInstructionData; type index$h_WithdrawFeeInstructionDataArgs = WithdrawFeeInstructionDataArgs; declare const index$h_closeExecute: typeof closeExecute; declare const index$h_extendDvnConfig: typeof extendDvnConfig; declare const index$h_getCloseExecuteInstructionDataSerializer: typeof getCloseExecuteInstructionDataSerializer; declare const index$h_getExtendDvnConfigInstructionDataSerializer: typeof getExtendDvnConfigInstructionDataSerializer; declare const index$h_getInitDvnInstructionDataSerializer: typeof getInitDvnInstructionDataSerializer; declare const index$h_getInvokeInstructionDataSerializer: typeof getInvokeInstructionDataSerializer; declare const index$h_getQuoteDvnInstructionDataSerializer: typeof getQuoteDvnInstructionDataSerializer; declare const index$h_getVerifiableInstructionDataSerializer: typeof getVerifiableInstructionDataSerializer; declare const index$h_getWithdrawFeeInstructionDataSerializer: typeof getWithdrawFeeInstructionDataSerializer; declare const index$h_initDvn: typeof initDvn; declare const index$h_invoke: typeof invoke; declare const index$h_quoteDvn: typeof quoteDvn; declare const index$h_verifiable: typeof verifiable; declare const index$h_withdrawFee: typeof withdrawFee; declare namespace index$h { export { type index$h_CloseExecuteInstructionAccounts as CloseExecuteInstructionAccounts, type index$h_CloseExecuteInstructionArgs as CloseExecuteInstructionArgs, type index$h_CloseExecuteInstructionData as CloseExecuteInstructionData, type index$h_CloseExecuteInstructionDataArgs as CloseExecuteInstructionDataArgs, type index$h_ExtendDvnConfigInstructionAccounts as ExtendDvnConfigInstructionAccounts, type index$h_ExtendDvnConfigInstructionData as ExtendDvnConfigInstructionData, type index$h_ExtendDvnConfigInstructionDataArgs as ExtendDvnConfigInstructionDataArgs, type index$h_InitDvnInstructionAccounts as InitDvnInstructionAccounts, type index$h_InitDvnInstructionArgs as InitDvnInstructionArgs, type index$h_InitDvnInstructionData as InitDvnInstructionData, type index$h_InitDvnInstructionDataArgs as InitDvnInstructionDataArgs, type index$h_InvokeInstructionAccounts as InvokeInstructionAccounts, type index$h_InvokeInstructionArgs as InvokeInstructionArgs, type index$h_InvokeInstructionData as InvokeInstructionData, type index$h_InvokeInstructionDataArgs as InvokeInstructionDataArgs, type index$h_QuoteDvnInstructionAccounts as QuoteDvnInstructionAccounts, type index$h_QuoteDvnInstructionArgs as QuoteDvnInstructionArgs, type index$h_QuoteDvnInstructionData as QuoteDvnInstructionData, type index$h_QuoteDvnInstructionDataArgs as QuoteDvnInstructionDataArgs, type SetConfigInstructionAccounts$1 as SetConfigInstructionAccounts, type SetConfigInstructionArgs$1 as SetConfigInstructionArgs, type SetConfigInstructionData$1 as SetConfigInstructionData, type SetConfigInstructionDataArgs$1 as SetConfigInstructionDataArgs, type index$h_VerifiableInstructionAccounts as VerifiableInstructionAccounts, type index$h_VerifiableInstructionArgs as VerifiableInstructionArgs, type index$h_VerifiableInstructionData as VerifiableInstructionData, type index$h_VerifiableInstructionDataArgs as VerifiableInstructionDataArgs, type index$h_WithdrawFeeInstructionAccounts as WithdrawFeeInstructionAccounts, type index$h_WithdrawFeeInstructionArgs as WithdrawFeeInstructionArgs, type index$h_WithdrawFeeInstructionData as WithdrawFeeInstructionData, type index$h_WithdrawFeeInstructionDataArgs as WithdrawFeeInstructionDataArgs, index$h_closeExecute as closeExecute, index$h_extendDvnConfig as extendDvnConfig, index$h_getCloseExecuteInstructionDataSerializer as getCloseExecuteInstructionDataSerializer, index$h_getExtendDvnConfigInstructionDataSerializer as getExtendDvnConfigInstructionDataSerializer, index$h_getInitDvnInstructionDataSerializer as getInitDvnInstructionDataSerializer, index$h_getInvokeInstructionDataSerializer as getInvokeInstructionDataSerializer, index$h_getQuoteDvnInstructionDataSerializer as getQuoteDvnInstructionDataSerializer, getSetConfigInstructionDataSerializer$1 as getSetConfigInstructionDataSerializer, index$h_getVerifiableInstructionDataSerializer as getVerifiableInstructionDataSerializer, index$h_getWithdrawFeeInstructionDataSerializer as getWithdrawFeeInstructionDataSerializer, index$h_initDvn as initDvn, index$h_invoke as invoke, index$h_quoteDvn as quoteDvn, setConfig$1 as setConfig, index$h_verifiable as verifiable, index$h_withdrawFee as withdrawFee }; } /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ declare const DVN_PROGRAM_ID: PublicKey<"HtEYV4xB4wvsj5fgTkcfuChYpvGYzgzwvNhgDZQNh7wW">; declare function createDvnProgram(): Program; declare function getDvnProgram(context: Pick, clusterFilter?: ClusterFilter): T; declare function getDvnProgramId(context: Pick, clusterFilter?: ClusterFilter): PublicKey; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ /** * Transforms the given object such that the given keys are optional. * @internal */ type PickPartial$1 = Omit & Partial>; /** * Asserts that the given value is not null or undefined. * @internal */ declare function expectSome$1(value: T | null | undefined): T; /** * Asserts that the given value is a PublicKey. * @internal */ declare function expectPublicKey$1(value: PublicKey | Pda | Signer | null | undefined): PublicKey; /** * Asserts that the given value is a PDA. * @internal */ declare function expectPda$1(value: PublicKey | Pda | Signer | null | undefined): Pda; /** * Defines an instruction account to resolve. * @internal */ type ResolvedAccount$1 = { isWritable: boolean; value: T; }; /** * Defines a set of instruction account to resolve. * @internal */ type ResolvedAccounts$1 = Record; /** * Defines a set of instruction account to resolve with their indices. * @internal */ type ResolvedAccountsWithIndices$1 = Record; /** * Get account metas and signers from resolved accounts. * @internal */ declare function getAccountMetasAndSigners$1(accounts: ResolvedAccount$1[], optionalAccountStrategy: 'omitted' | 'programId', programId: PublicKey): [AccountMeta[], Signer[]]; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type index$g_AdminConfig = AdminConfig; type index$g_AdminConfigArgs = AdminConfigArgs; type index$g_CloseExecuteInstructionAccounts = CloseExecuteInstructionAccounts; type index$g_CloseExecuteInstructionArgs = CloseExecuteInstructionArgs; type index$g_CloseExecuteInstructionData = CloseExecuteInstructionData; type index$g_CloseExecuteInstructionDataArgs = CloseExecuteInstructionDataArgs; declare const index$g_DVN_PROGRAM_ID: typeof DVN_PROGRAM_ID; type index$g_DuplicateSignatureError = DuplicateSignatureError; declare const index$g_DuplicateSignatureError: typeof DuplicateSignatureError; type index$g_DvnConfig = DvnConfig; type index$g_DvnConfigAccountData = DvnConfigAccountData; type index$g_DvnConfigAccountDataArgs = DvnConfigAccountDataArgs; type index$g_ExecuteHash = ExecuteHash; type index$g_ExecuteHashAccountData = ExecuteHashAccountData; type index$g_ExecuteHashAccountDataArgs = ExecuteHashAccountDataArgs; type index$g_ExecuteTransactionDigest = ExecuteTransactionDigest; type index$g_ExecuteTransactionDigestArgs = ExecuteTransactionDigestArgs; type index$g_ExpiredError = ExpiredError; declare const index$g_ExpiredError: typeof ExpiredError; type index$g_ExtendDvnConfigInstructionAccounts = ExtendDvnConfigInstructionAccounts; type index$g_ExtendDvnConfigInstructionData = ExtendDvnConfigInstructionData; type index$g_ExtendDvnConfigInstructionDataArgs = ExtendDvnConfigInstructionDataArgs; type index$g_InitDvnInstructionAccounts = InitDvnInstructionAccounts; type index$g_InitDvnInstructionArgs = InitDvnInstructionArgs; type index$g_InitDvnInstructionData = InitDvnInstructionData; type index$g_InitDvnInstructionDataArgs = InitDvnInstructionDataArgs; type index$g_InvalidQuorumError = InvalidQuorumError; declare const index$g_InvalidQuorumError: typeof InvalidQuorumError; type index$g_InvalidSignatureLenError = InvalidSignatureLenError; declare const index$g_InvalidSignatureLenError: typeof InvalidSignatureLenError; type index$g_InvalidSignersLenError = InvalidSignersLenError; declare const index$g_InvalidSignersLenError: typeof InvalidSignersLenError; type index$g_InvalidVidError = InvalidVidError; declare const index$g_InvalidVidError: typeof InvalidVidError; type index$g_InvokeInstructionAccounts = InvokeInstructionAccounts; type index$g_InvokeInstructionArgs = InvokeInstructionArgs; type index$g_InvokeInstructionData = InvokeInstructionData; type index$g_InvokeInstructionDataArgs = InvokeInstructionDataArgs; type index$g_Multisig = Multisig; type index$g_MultisigArgs = MultisigArgs; type index$g_MultisigConfig = MultisigConfig; type index$g_MultisigConfigArgs = MultisigConfigArgs; type index$g_QuoteDvnInstructionAccounts = QuoteDvnInstructionAccounts; type index$g_QuoteDvnInstructionArgs = QuoteDvnInstructionArgs; type index$g_QuoteDvnInstructionData = QuoteDvnInstructionData; type index$g_QuoteDvnInstructionDataArgs = QuoteDvnInstructionDataArgs; type index$g_SignatureErrorError = SignatureErrorError; declare const index$g_SignatureErrorError: typeof SignatureErrorError; type index$g_SignerNotInCommitteeError = SignerNotInCommitteeError; declare const index$g_SignerNotInCommitteeError: typeof SignerNotInCommitteeError; type index$g_TransactionAccount = TransactionAccount; type index$g_TransactionAccountArgs = TransactionAccountArgs; type index$g_UnexpiredExecuteHashError = UnexpiredExecuteHashError; declare const index$g_UnexpiredExecuteHashError: typeof UnexpiredExecuteHashError; type index$g_UniqueOwnersError = UniqueOwnersError; declare const index$g_UniqueOwnersError: typeof UniqueOwnersError; type index$g_VerifiableInstructionAccounts = VerifiableInstructionAccounts; type index$g_VerifiableInstructionArgs = VerifiableInstructionArgs; type index$g_VerifiableInstructionData = VerifiableInstructionData; type index$g_VerifiableInstructionDataArgs = VerifiableInstructionDataArgs; type index$g_VerificationState = VerificationState; declare const index$g_VerificationState: typeof VerificationState; type index$g_VerificationStateArgs = VerificationStateArgs; type index$g_WithdrawFeeInstructionAccounts = WithdrawFeeInstructionAccounts; type index$g_WithdrawFeeInstructionArgs = WithdrawFeeInstructionArgs; type index$g_WithdrawFeeInstructionData = WithdrawFeeInstructionData; type index$g_WithdrawFeeInstructionDataArgs = WithdrawFeeInstructionDataArgs; declare const index$g_adminConfig: typeof adminConfig; declare const index$g_closeExecute: typeof closeExecute; declare const index$g_createDvnProgram: typeof createDvnProgram; declare const index$g_deserializeDvnConfig: typeof deserializeDvnConfig; declare const index$g_deserializeExecuteHash: typeof deserializeExecuteHash; declare const index$g_extendDvnConfig: typeof extendDvnConfig; declare const index$g_fetchAllDvnConfig: typeof fetchAllDvnConfig; declare const index$g_fetchAllExecuteHash: typeof fetchAllExecuteHash; declare const index$g_fetchDvnConfig: typeof fetchDvnConfig; declare const index$g_fetchExecuteHash: typeof fetchExecuteHash; declare const index$g_getAdminConfigSerializer: typeof getAdminConfigSerializer; declare const index$g_getCloseExecuteInstructionDataSerializer: typeof getCloseExecuteInstructionDataSerializer; declare const index$g_getDvnConfigAccountDataSerializer: typeof getDvnConfigAccountDataSerializer; declare const index$g_getDvnConfigGpaBuilder: typeof getDvnConfigGpaBuilder; declare const index$g_getDvnErrorFromCode: typeof getDvnErrorFromCode; declare const index$g_getDvnErrorFromName: typeof getDvnErrorFromName; declare const index$g_getDvnProgram: typeof getDvnProgram; declare const index$g_getDvnProgramId: typeof getDvnProgramId; declare const index$g_getExecuteHashAccountDataSerializer: typeof getExecuteHashAccountDataSerializer; declare const index$g_getExecuteHashGpaBuilder: typeof getExecuteHashGpaBuilder; declare const index$g_getExecuteHashSize: typeof getExecuteHashSize; declare const index$g_getExecuteTransactionDigestSerializer: typeof getExecuteTransactionDigestSerializer; declare const index$g_getExtendDvnConfigInstructionDataSerializer: typeof getExtendDvnConfigInstructionDataSerializer; declare const index$g_getInitDvnInstructionDataSerializer: typeof getInitDvnInstructionDataSerializer; declare const index$g_getInvokeInstructionDataSerializer: typeof getInvokeInstructionDataSerializer; declare const index$g_getMultisigConfigSerializer: typeof getMultisigConfigSerializer; declare const index$g_getMultisigSerializer: typeof getMultisigSerializer; declare const index$g_getQuoteDvnInstructionDataSerializer: typeof getQuoteDvnInstructionDataSerializer; declare const index$g_getTransactionAccountSerializer: typeof getTransactionAccountSerializer; declare const index$g_getVerifiableInstructionDataSerializer: typeof getVerifiableInstructionDataSerializer; declare const index$g_getVerificationStateSerializer: typeof getVerificationStateSerializer; declare const index$g_getWithdrawFeeInstructionDataSerializer: typeof getWithdrawFeeInstructionDataSerializer; declare const index$g_initDvn: typeof initDvn; declare const index$g_invoke: typeof invoke; declare const index$g_isAdminConfig: typeof isAdminConfig; declare const index$g_isMultisigConfig: typeof isMultisigConfig; declare const index$g_multisigConfig: typeof multisigConfig; declare const index$g_quoteDvn: typeof quoteDvn; declare const index$g_safeFetchAllDvnConfig: typeof safeFetchAllDvnConfig; declare const index$g_safeFetchAllExecuteHash: typeof safeFetchAllExecuteHash; declare const index$g_safeFetchDvnConfig: typeof safeFetchDvnConfig; declare const index$g_safeFetchExecuteHash: typeof safeFetchExecuteHash; declare const index$g_verifiable: typeof verifiable; declare const index$g_withdrawFee: typeof withdrawFee; declare namespace index$g { export { type Acl$1 as Acl, type AclArgs$1 as AclArgs, type index$g_AdminConfig as AdminConfig, type index$g_AdminConfigArgs as AdminConfigArgs, type index$g_CloseExecuteInstructionAccounts as CloseExecuteInstructionAccounts, type index$g_CloseExecuteInstructionArgs as CloseExecuteInstructionArgs, type index$g_CloseExecuteInstructionData as CloseExecuteInstructionData, type index$g_CloseExecuteInstructionDataArgs as CloseExecuteInstructionDataArgs, index$g_DVN_PROGRAM_ID as DVN_PROGRAM_ID, type DstConfig$1 as DstConfig, type DstConfigArgs$1 as DstConfigArgs, index$g_DuplicateSignatureError as DuplicateSignatureError, type index$g_DvnConfig as DvnConfig, type index$g_DvnConfigAccountData as DvnConfigAccountData, type index$g_DvnConfigAccountDataArgs as DvnConfigAccountDataArgs, EidNotSupportedError$1 as EidNotSupportedError, type index$g_ExecuteHash as ExecuteHash, type index$g_ExecuteHashAccountData as ExecuteHashAccountData, type index$g_ExecuteHashAccountDataArgs as ExecuteHashAccountDataArgs, type index$g_ExecuteTransactionDigest as ExecuteTransactionDigest, type index$g_ExecuteTransactionDigestArgs as ExecuteTransactionDigestArgs, index$g_ExpiredError as ExpiredError, type index$g_ExtendDvnConfigInstructionAccounts as ExtendDvnConfigInstructionAccounts, type index$g_ExtendDvnConfigInstructionData as ExtendDvnConfigInstructionData, type index$g_ExtendDvnConfigInstructionDataArgs as ExtendDvnConfigInstructionDataArgs, type index$g_InitDvnInstructionAccounts as InitDvnInstructionAccounts, type index$g_InitDvnInstructionArgs as InitDvnInstructionArgs, type index$g_InitDvnInstructionData as InitDvnInstructionData, type index$g_InitDvnInstructionDataArgs as InitDvnInstructionDataArgs, InvalidAmountError$1 as InvalidAmountError, index$g_InvalidQuorumError as InvalidQuorumError, index$g_InvalidSignatureLenError as InvalidSignatureLenError, index$g_InvalidSignersLenError as InvalidSignersLenError, index$g_InvalidVidError as InvalidVidError, type index$g_InvokeInstructionAccounts as InvokeInstructionAccounts, type index$g_InvokeInstructionArgs as InvokeInstructionArgs, type index$g_InvokeInstructionData as InvokeInstructionData, type index$g_InvokeInstructionDataArgs as InvokeInstructionDataArgs, type LzOption$1 as LzOption, type LzOptionArgs$1 as LzOptionArgs, MsgLibNotAllowedError$1 as MsgLibNotAllowedError, type index$g_Multisig as Multisig, type index$g_MultisigArgs as MultisigArgs, type index$g_MultisigConfig as MultisigConfig, type index$g_MultisigConfigArgs as MultisigConfigArgs, NotAdminError$1 as NotAdminError, PausedError$1 as PausedError, type PickPartial$1 as PickPartial, type index$g_QuoteDvnInstructionAccounts as QuoteDvnInstructionAccounts, type index$g_QuoteDvnInstructionArgs as QuoteDvnInstructionArgs, type index$g_QuoteDvnInstructionData as QuoteDvnInstructionData, type index$g_QuoteDvnInstructionDataArgs as QuoteDvnInstructionDataArgs, type ReceiveConfig$1 as ReceiveConfig, type ReceiveConfigAccountData$1 as ReceiveConfigAccountData, type ReceiveConfigAccountDataArgs$1 as ReceiveConfigAccountDataArgs, type ResolvedAccount$1 as ResolvedAccount, type ResolvedAccounts$1 as ResolvedAccounts, type ResolvedAccountsWithIndices$1 as ResolvedAccountsWithIndices, type SetConfigInstructionAccounts$1 as SetConfigInstructionAccounts, type SetConfigInstructionArgs$1 as SetConfigInstructionArgs, type SetConfigInstructionData$1 as SetConfigInstructionData, type SetConfigInstructionDataArgs$1 as SetConfigInstructionDataArgs, index$g_SignatureErrorError as SignatureErrorError, index$g_SignerNotInCommitteeError as SignerNotInCommitteeError, TooManyAdminsError$1 as TooManyAdminsError, TooManyOptionTypesError$1 as TooManyOptionTypesError, type index$g_TransactionAccount as TransactionAccount, type index$g_TransactionAccountArgs as TransactionAccountArgs, type UlnConfig$1 as UlnConfig, type UlnConfigArgs$1 as UlnConfigArgs, index$g_UnexpiredExecuteHashError as UnexpiredExecuteHashError, index$g_UniqueOwnersError as UniqueOwnersError, type index$g_VerifiableInstructionAccounts as VerifiableInstructionAccounts, type index$g_VerifiableInstructionArgs as VerifiableInstructionArgs, type index$g_VerifiableInstructionData as VerifiableInstructionData, type index$g_VerifiableInstructionDataArgs as VerifiableInstructionDataArgs, index$g_VerificationState as VerificationState, type index$g_VerificationStateArgs as VerificationStateArgs, type index$g_WithdrawFeeInstructionAccounts as WithdrawFeeInstructionAccounts, type index$g_WithdrawFeeInstructionArgs as WithdrawFeeInstructionArgs, type index$g_WithdrawFeeInstructionData as WithdrawFeeInstructionData, type index$g_WithdrawFeeInstructionDataArgs as WithdrawFeeInstructionDataArgs, index$g_adminConfig as adminConfig, index$g_closeExecute as closeExecute, index$g_createDvnProgram as createDvnProgram, index$g_deserializeDvnConfig as deserializeDvnConfig, index$g_deserializeExecuteHash as deserializeExecuteHash, deserializeReceiveConfig$1 as deserializeReceiveConfig, expectPda$1 as expectPda, expectPublicKey$1 as expectPublicKey, expectSome$1 as expectSome, index$g_extendDvnConfig as extendDvnConfig, index$g_fetchAllDvnConfig as fetchAllDvnConfig, index$g_fetchAllExecuteHash as fetchAllExecuteHash, fetchAllReceiveConfig$1 as fetchAllReceiveConfig, index$g_fetchDvnConfig as fetchDvnConfig, index$g_fetchExecuteHash as fetchExecuteHash, fetchReceiveConfig$1 as fetchReceiveConfig, getAccountMetasAndSigners$1 as getAccountMetasAndSigners, getAclSerializer$1 as getAclSerializer, index$g_getAdminConfigSerializer as getAdminConfigSerializer, index$g_getCloseExecuteInstructionDataSerializer as getCloseExecuteInstructionDataSerializer, getDstConfigSerializer$1 as getDstConfigSerializer, index$g_getDvnConfigAccountDataSerializer as getDvnConfigAccountDataSerializer, index$g_getDvnConfigGpaBuilder as getDvnConfigGpaBuilder, index$g_getDvnErrorFromCode as getDvnErrorFromCode, index$g_getDvnErrorFromName as getDvnErrorFromName, index$g_getDvnProgram as getDvnProgram, index$g_getDvnProgramId as getDvnProgramId, index$g_getExecuteHashAccountDataSerializer as getExecuteHashAccountDataSerializer, index$g_getExecuteHashGpaBuilder as getExecuteHashGpaBuilder, index$g_getExecuteHashSize as getExecuteHashSize, index$g_getExecuteTransactionDigestSerializer as getExecuteTransactionDigestSerializer, index$g_getExtendDvnConfigInstructionDataSerializer as getExtendDvnConfigInstructionDataSerializer, index$g_getInitDvnInstructionDataSerializer as getInitDvnInstructionDataSerializer, index$g_getInvokeInstructionDataSerializer as getInvokeInstructionDataSerializer, getLzOptionSerializer$1 as getLzOptionSerializer, index$g_getMultisigConfigSerializer as getMultisigConfigSerializer, index$g_getMultisigSerializer as getMultisigSerializer, index$g_getQuoteDvnInstructionDataSerializer as getQuoteDvnInstructionDataSerializer, getReceiveConfigAccountDataSerializer$1 as getReceiveConfigAccountDataSerializer, getReceiveConfigGpaBuilder$1 as getReceiveConfigGpaBuilder, getSetConfigInstructionDataSerializer$1 as getSetConfigInstructionDataSerializer, index$g_getTransactionAccountSerializer as getTransactionAccountSerializer, getUlnConfigSerializer$1 as getUlnConfigSerializer, index$g_getVerifiableInstructionDataSerializer as getVerifiableInstructionDataSerializer, index$g_getVerificationStateSerializer as getVerificationStateSerializer, index$g_getWithdrawFeeInstructionDataSerializer as getWithdrawFeeInstructionDataSerializer, index$g_initDvn as initDvn, index$g_invoke as invoke, index$g_isAdminConfig as isAdminConfig, index$g_isMultisigConfig as isMultisigConfig, index$g_multisigConfig as multisigConfig, index$g_quoteDvn as quoteDvn, index$g_safeFetchAllDvnConfig as safeFetchAllDvnConfig, index$g_safeFetchAllExecuteHash as safeFetchAllExecuteHash, safeFetchAllReceiveConfig$1 as safeFetchAllReceiveConfig, index$g_safeFetchDvnConfig as safeFetchDvnConfig, index$g_safeFetchExecuteHash as safeFetchExecuteHash, safeFetchReceiveConfig$1 as safeFetchReceiveConfig, setConfig$1 as setConfig, index$g_verifiable as verifiable, index$g_withdrawFee as withdrawFee }; } interface SignFunc { sign(message: Buffer): Promise<{ signature: Uint8Array; recoveryId: number; }[]>; } declare class SolanaSignerExt implements SignFunc { private readonly signers; private constructor(); static from(signers: HashSigner[]): SolanaSignerExt; sign(message: Buffer): Promise<{ signature: Uint8Array; recoveryId: number; }[]>; } declare class DVN { readonly programId: PublicKey; readonly pda: DvnPDA; readonly eventAuthority: PublicKey; readonly programRepo: ProgramRepositoryInterface; constructor(programId: PublicKey, rpc?: RpcInterface); getProgram(clusterFilter?: ClusterFilter): Program; initDVN(rpc: RpcInterface, payer: Signer, params: InitDvnInstructionArgs): Promise; getDigest(vid: number, instruction: Instruction, expiration: bigint): ExecuteTransactionDigest; getExecuteHash(hashBytes: Buffer): PublicKey; getHashBytes(digest: ExecuteTransactionDigest): Buffer; invoke(rpc: RpcInterface, payer: Signer, params: { vid: number; instruction: Instruction; expiration: bigint; }, sign: SignFunc): Promise; setMultisigConfig(rpc: RpcInterface, payer: Signer, params: { vid: number; config: MultisigConfig; expiration: bigint; }, sign: SignFunc): Promise<[WrappedInstruction, Buffer]>; setConfig(admin: Signer, adminConfig: AdminConfigArgs): WrappedInstruction; setDstConfig(admin: Signer, dstConfigs: DstConfig$1[]): WrappedInstruction; setAdmins(admin: Signer, admins: PublicKey[]): WrappedInstruction; setDefaultMultiplierBps(admin: Signer, defaultMultiplierBps: number): WrappedInstruction; setPriceFeed(admin: Signer, priceFeedProgram: PublicKey): WrappedInstruction; _getExpiration(): bigint; withdrawFee(admin: Signer, param: { receiver: PublicKey; amount: number | bigint; }): WrappedInstruction; closeExecute(admin: Signer, digestHash: Buffer): WrappedInstruction; quoteDvn(param: { priceFeedProgram: PublicKey; } & QuoteDvnInstructionArgs): WrappedInstruction; verifiable(rpc: RpcInterface, params: { packetBytes: Uint8Array; endpointProgram?: PublicKey; msgLibProgram?: PublicKey; }): Promise; getQuoteIXAccountMetaForCPI(priceFeedConfig: PublicKey, priceFeedProgram: PublicKey, payment: boolean): AccountMeta[]; getConfigState(rpc: RpcInterface, commitment?: Commitment): Promise; } type dvn_DVN = DVN; declare const dvn_DVN: typeof DVN; declare const dvn_DVN_PROGRAM_ID: typeof DVN_PROGRAM_ID; type dvn_SignFunc = SignFunc; type dvn_SolanaSignerExt = SolanaSignerExt; declare const dvn_SolanaSignerExt: typeof SolanaSignerExt; declare namespace dvn { export { dvn_DVN as DVN, dvn_DVN_PROGRAM_ID as DVN_PROGRAM_ID, type dvn_SignFunc as SignFunc, dvn_SolanaSignerExt as SolanaSignerExt, index$k as accounts, index$j as errors, index$i as events, index$h as instructions, index$l as types }; } type ExecutionContextV1 = Account; type ExecutionContextV1AccountData = { discriminator: Uint8Array; initialPayerBalance: bigint; /** * The maximum total lamports allowed to be used by all instructions in this execution. * This is a hard cap for the sum of lamports consumed by all instructions in the execution batch. */ feeLimit: bigint; }; type ExecutionContextV1AccountDataArgs = { initialPayerBalance: number | bigint; /** * The maximum total lamports allowed to be used by all instructions in this execution. * This is a hard cap for the sum of lamports consumed by all instructions in the execution batch. */ feeLimit: number | bigint; }; declare function getExecutionContextV1AccountDataSerializer(): Serializer; declare function deserializeExecutionContextV1(rawAccount: RpcAccount): ExecutionContextV1; declare function fetchExecutionContextV1(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function safeFetchExecutionContextV1(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function fetchAllExecutionContextV1(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function safeFetchAllExecutionContextV1(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function getExecutionContextV1GpaBuilder(context: Pick): _metaplex_foundation_umi.GpaBuilder; declare function getExecutionContextV1Size(): number; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type Acl = { allowList: Array; denyList: Array; }; type AclArgs = Acl; declare function getAclSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type AdminSetConfigParams = { __kind: 'PriceFeed'; fields: [PublicKey]; } | { __kind: 'DefaultMultiplierBps'; fields: [number]; } | { __kind: 'DstConfigs'; fields: [Array]; }; type AdminSetConfigParamsArgs = { __kind: 'PriceFeed'; fields: [PublicKey]; } | { __kind: 'DefaultMultiplierBps'; fields: [number]; } | { __kind: 'DstConfigs'; fields: [Array]; }; declare function getAdminSetConfigParamsSerializer(): Serializer; declare function adminSetConfigParams(kind: 'PriceFeed', data: GetDataEnumKindContent['fields']): GetDataEnumKind; declare function adminSetConfigParams(kind: 'DefaultMultiplierBps', data: GetDataEnumKindContent['fields']): GetDataEnumKind; declare function adminSetConfigParams(kind: 'DstConfigs', data: GetDataEnumKindContent['fields']): GetDataEnumKind; declare function isAdminSetConfigParams(kind: K, value: AdminSetConfigParams): value is AdminSetConfigParams & { __kind: K; }; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type DstConfig = { eid: number; lzReceiveBaseGas: number; lzComposeBaseGas: number; multiplierBps: Option; floorMarginUsd: Option; nativeDropCap: bigint; }; type DstConfigArgs = { eid: number; lzReceiveBaseGas: number; lzComposeBaseGas: number; multiplierBps: OptionOrNullable; floorMarginUsd: OptionOrNullable; nativeDropCap: number | bigint; }; declare function getDstConfigSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ declare enum ExecutionState { NotExecutable = 0, VerifiedButNotExecutable = 1, Executable = 2, Executed = 3 } type ExecutionStateArgs = ExecutionState; declare function getExecutionStateSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type LzComposeParams$1 = { from: PublicKey; to: PublicKey; guid: Uint8Array; index: number; message: Uint8Array; extraData: Uint8Array; }; type LzComposeParamsArgs = LzComposeParams$1; declare function getLzComposeParamsSerializer$1(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type LzOption = { optionType: number; params: Uint8Array; }; type LzOptionArgs = LzOption; declare function getLzOptionSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type LzReceiveParams$1 = { srcEid: number; sender: Uint8Array; nonce: bigint; guid: Uint8Array; message: Uint8Array; extraData: Uint8Array; }; type LzReceiveParamsArgs$1 = { srcEid: number; sender: Uint8Array; nonce: number | bigint; guid: Uint8Array; message: Uint8Array; extraData: Uint8Array; }; declare function getLzReceiveParamsSerializer$1(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type NativeDropRequest = { receiver: PublicKey; amount: bigint; }; type NativeDropRequestArgs = { receiver: PublicKey; amount: number | bigint; }; declare function getNativeDropRequestSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type OwnerSetConfigParams = { __kind: 'Admins'; fields: [Array]; } | { __kind: 'Executors'; fields: [Array]; } | { __kind: 'Msglibs'; fields: [Array]; } | { __kind: 'Owner'; fields: [PublicKey]; } | { __kind: 'Paused'; fields: [boolean]; } | { __kind: 'Allowlist'; fields: [Array]; } | { __kind: 'Denylist'; fields: [Array]; }; type OwnerSetConfigParamsArgs = OwnerSetConfigParams; declare function getOwnerSetConfigParamsSerializer(): Serializer; declare function ownerSetConfigParams(kind: 'Admins', data: GetDataEnumKindContent['fields']): GetDataEnumKind; declare function ownerSetConfigParams(kind: 'Executors', data: GetDataEnumKindContent['fields']): GetDataEnumKind; declare function ownerSetConfigParams(kind: 'Msglibs', data: GetDataEnumKindContent['fields']): GetDataEnumKind; declare function ownerSetConfigParams(kind: 'Owner', data: GetDataEnumKindContent['fields']): GetDataEnumKind; declare function ownerSetConfigParams(kind: 'Paused', data: GetDataEnumKindContent['fields']): GetDataEnumKind; declare function ownerSetConfigParams(kind: 'Allowlist', data: GetDataEnumKindContent['fields']): GetDataEnumKind; declare function ownerSetConfigParams(kind: 'Denylist', data: GetDataEnumKindContent['fields']): GetDataEnumKind; declare function isOwnerSetConfigParams(kind: K, value: OwnerSetConfigParams): value is OwnerSetConfigParams & { __kind: K; }; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type Version$1 = { major: bigint; minor: number; }; type VersionArgs$1 = { major: number | bigint; minor: number; }; declare function getVersionSerializer$1(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type index$f_Acl = Acl; type index$f_AclArgs = AclArgs; type index$f_AdminSetConfigParams = AdminSetConfigParams; type index$f_AdminSetConfigParamsArgs = AdminSetConfigParamsArgs; type index$f_DstConfig = DstConfig; type index$f_DstConfigArgs = DstConfigArgs; type index$f_ExecutionState = ExecutionState; declare const index$f_ExecutionState: typeof ExecutionState; type index$f_ExecutionStateArgs = ExecutionStateArgs; type index$f_LzComposeParamsArgs = LzComposeParamsArgs; type index$f_LzOption = LzOption; type index$f_LzOptionArgs = LzOptionArgs; type index$f_NativeDropRequest = NativeDropRequest; type index$f_NativeDropRequestArgs = NativeDropRequestArgs; type index$f_OwnerSetConfigParams = OwnerSetConfigParams; type index$f_OwnerSetConfigParamsArgs = OwnerSetConfigParamsArgs; declare const index$f_adminSetConfigParams: typeof adminSetConfigParams; declare const index$f_getAclSerializer: typeof getAclSerializer; declare const index$f_getAdminSetConfigParamsSerializer: typeof getAdminSetConfigParamsSerializer; declare const index$f_getDstConfigSerializer: typeof getDstConfigSerializer; declare const index$f_getExecutionStateSerializer: typeof getExecutionStateSerializer; declare const index$f_getLzOptionSerializer: typeof getLzOptionSerializer; declare const index$f_getNativeDropRequestSerializer: typeof getNativeDropRequestSerializer; declare const index$f_getOwnerSetConfigParamsSerializer: typeof getOwnerSetConfigParamsSerializer; declare const index$f_isAdminSetConfigParams: typeof isAdminSetConfigParams; declare const index$f_isOwnerSetConfigParams: typeof isOwnerSetConfigParams; declare const index$f_ownerSetConfigParams: typeof ownerSetConfigParams; declare namespace index$f { export { type index$f_Acl as Acl, type index$f_AclArgs as AclArgs, type index$f_AdminSetConfigParams as AdminSetConfigParams, type index$f_AdminSetConfigParamsArgs as AdminSetConfigParamsArgs, type index$f_DstConfig as DstConfig, type index$f_DstConfigArgs as DstConfigArgs, index$f_ExecutionState as ExecutionState, type index$f_ExecutionStateArgs as ExecutionStateArgs, type LzComposeParams$1 as LzComposeParams, type index$f_LzComposeParamsArgs as LzComposeParamsArgs, type index$f_LzOption as LzOption, type index$f_LzOptionArgs as LzOptionArgs, type LzReceiveParams$1 as LzReceiveParams, type LzReceiveParamsArgs$1 as LzReceiveParamsArgs, type index$f_NativeDropRequest as NativeDropRequest, type index$f_NativeDropRequestArgs as NativeDropRequestArgs, type index$f_OwnerSetConfigParams as OwnerSetConfigParams, type index$f_OwnerSetConfigParamsArgs as OwnerSetConfigParamsArgs, type Version$1 as Version, type VersionArgs$1 as VersionArgs, index$f_adminSetConfigParams as adminSetConfigParams, index$f_getAclSerializer as getAclSerializer, index$f_getAdminSetConfigParamsSerializer as getAdminSetConfigParamsSerializer, index$f_getDstConfigSerializer as getDstConfigSerializer, index$f_getExecutionStateSerializer as getExecutionStateSerializer, getLzComposeParamsSerializer$1 as getLzComposeParamsSerializer, index$f_getLzOptionSerializer as getLzOptionSerializer, getLzReceiveParamsSerializer$1 as getLzReceiveParamsSerializer, index$f_getNativeDropRequestSerializer as getNativeDropRequestSerializer, index$f_getOwnerSetConfigParamsSerializer as getOwnerSetConfigParamsSerializer, getVersionSerializer$1 as getVersionSerializer, index$f_isAdminSetConfigParams as isAdminSetConfigParams, index$f_isOwnerSetConfigParams as isOwnerSetConfigParams, index$f_ownerSetConfigParams as ownerSetConfigParams }; } type ExecutorConfig$1 = Account; type ExecutorConfigAccountData = { discriminator: Uint8Array; bump: number; owner: PublicKey; acl: Acl; admins: Array; executors: Array; msglibs: Array; paused: boolean; defaultMultiplierBps: number; priceFeed: PublicKey; dstConfigs: Array; }; type ExecutorConfigAccountDataArgs = { bump: number; owner: PublicKey; acl: AclArgs; admins: Array; executors: Array; msglibs: Array; paused: boolean; defaultMultiplierBps: number; priceFeed: PublicKey; dstConfigs: Array; }; declare function getExecutorConfigAccountDataSerializer(): Serializer; declare function deserializeExecutorConfig(rawAccount: RpcAccount): ExecutorConfig$1; declare function fetchExecutorConfig(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function safeFetchExecutorConfig(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function fetchAllExecutorConfig(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function safeFetchAllExecutorConfig(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function getExecutorConfigGpaBuilder(context: Pick): _metaplex_foundation_umi.GpaBuilder; executors: Array; msglibs: Array; paused: boolean; defaultMultiplierBps: number; priceFeed: PublicKey; dstConfigs: Array; }>; type Nonce = Account; type NonceAccountData = { discriminator: Uint8Array; bump: number; outboundNonce: bigint; inboundNonce: bigint; }; type NonceAccountDataArgs = { bump: number; outboundNonce: number | bigint; inboundNonce: number | bigint; }; declare function getNonceAccountDataSerializer(): Serializer; declare function deserializeNonce(rawAccount: RpcAccount): Nonce; declare function fetchNonce(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function safeFetchNonce(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function fetchAllNonce(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function safeFetchAllNonce(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function getNonceGpaBuilder(context: Pick): _metaplex_foundation_umi.GpaBuilder; declare function getNonceSize(): number; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type index$e_ExecutionContextV1 = ExecutionContextV1; type index$e_ExecutionContextV1AccountData = ExecutionContextV1AccountData; type index$e_ExecutionContextV1AccountDataArgs = ExecutionContextV1AccountDataArgs; type index$e_ExecutorConfigAccountData = ExecutorConfigAccountData; type index$e_ExecutorConfigAccountDataArgs = ExecutorConfigAccountDataArgs; type index$e_Nonce = Nonce; type index$e_NonceAccountData = NonceAccountData; type index$e_NonceAccountDataArgs = NonceAccountDataArgs; declare const index$e_deserializeExecutionContextV1: typeof deserializeExecutionContextV1; declare const index$e_deserializeExecutorConfig: typeof deserializeExecutorConfig; declare const index$e_deserializeNonce: typeof deserializeNonce; declare const index$e_fetchAllExecutionContextV1: typeof fetchAllExecutionContextV1; declare const index$e_fetchAllExecutorConfig: typeof fetchAllExecutorConfig; declare const index$e_fetchAllNonce: typeof fetchAllNonce; declare const index$e_fetchExecutionContextV1: typeof fetchExecutionContextV1; declare const index$e_fetchExecutorConfig: typeof fetchExecutorConfig; declare const index$e_fetchNonce: typeof fetchNonce; declare const index$e_getExecutionContextV1AccountDataSerializer: typeof getExecutionContextV1AccountDataSerializer; declare const index$e_getExecutionContextV1GpaBuilder: typeof getExecutionContextV1GpaBuilder; declare const index$e_getExecutionContextV1Size: typeof getExecutionContextV1Size; declare const index$e_getExecutorConfigAccountDataSerializer: typeof getExecutorConfigAccountDataSerializer; declare const index$e_getExecutorConfigGpaBuilder: typeof getExecutorConfigGpaBuilder; declare const index$e_getNonceAccountDataSerializer: typeof getNonceAccountDataSerializer; declare const index$e_getNonceGpaBuilder: typeof getNonceGpaBuilder; declare const index$e_getNonceSize: typeof getNonceSize; declare const index$e_safeFetchAllExecutionContextV1: typeof safeFetchAllExecutionContextV1; declare const index$e_safeFetchAllExecutorConfig: typeof safeFetchAllExecutorConfig; declare const index$e_safeFetchAllNonce: typeof safeFetchAllNonce; declare const index$e_safeFetchExecutionContextV1: typeof safeFetchExecutionContextV1; declare const index$e_safeFetchExecutorConfig: typeof safeFetchExecutorConfig; declare const index$e_safeFetchNonce: typeof safeFetchNonce; declare namespace index$e { export { type index$e_ExecutionContextV1 as ExecutionContextV1, type index$e_ExecutionContextV1AccountData as ExecutionContextV1AccountData, type index$e_ExecutionContextV1AccountDataArgs as ExecutionContextV1AccountDataArgs, type ExecutorConfig$1 as ExecutorConfig, type index$e_ExecutorConfigAccountData as ExecutorConfigAccountData, type index$e_ExecutorConfigAccountDataArgs as ExecutorConfigAccountDataArgs, type index$e_Nonce as Nonce, type index$e_NonceAccountData as NonceAccountData, type index$e_NonceAccountDataArgs as NonceAccountDataArgs, index$e_deserializeExecutionContextV1 as deserializeExecutionContextV1, index$e_deserializeExecutorConfig as deserializeExecutorConfig, index$e_deserializeNonce as deserializeNonce, index$e_fetchAllExecutionContextV1 as fetchAllExecutionContextV1, index$e_fetchAllExecutorConfig as fetchAllExecutorConfig, index$e_fetchAllNonce as fetchAllNonce, index$e_fetchExecutionContextV1 as fetchExecutionContextV1, index$e_fetchExecutorConfig as fetchExecutorConfig, index$e_fetchNonce as fetchNonce, index$e_getExecutionContextV1AccountDataSerializer as getExecutionContextV1AccountDataSerializer, index$e_getExecutionContextV1GpaBuilder as getExecutionContextV1GpaBuilder, index$e_getExecutionContextV1Size as getExecutionContextV1Size, index$e_getExecutorConfigAccountDataSerializer as getExecutorConfigAccountDataSerializer, index$e_getExecutorConfigGpaBuilder as getExecutorConfigGpaBuilder, index$e_getNonceAccountDataSerializer as getNonceAccountDataSerializer, index$e_getNonceGpaBuilder as getNonceGpaBuilder, index$e_getNonceSize as getNonceSize, index$e_safeFetchAllExecutionContextV1 as safeFetchAllExecutionContextV1, index$e_safeFetchAllExecutorConfig as safeFetchAllExecutorConfig, index$e_safeFetchAllNonce as safeFetchAllNonce, index$e_safeFetchExecutionContextV1 as safeFetchExecutionContextV1, index$e_safeFetchExecutorConfig as safeFetchExecutorConfig, index$e_safeFetchNonce as safeFetchNonce }; } /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ /** InvalidSize */ declare class InvalidSizeError$1 extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** Paused */ declare class PausedError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** UnsupportedOptionType */ declare class UnsupportedOptionTypeError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** ZeroLzComposeGasProvided */ declare class ZeroLzComposeGasProvidedError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** ZeroLzReceiveGasProvided */ declare class ZeroLzReceiveGasProvidedError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** NativeAmountExceedsCap */ declare class NativeAmountExceedsCapError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** NotAdmin */ declare class NotAdminError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** NotExecutor */ declare class NotExecutorError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** MsgLibNotAllowed */ declare class MsgLibNotAllowedError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** TooManyAdmins */ declare class TooManyAdminsError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** TooManyExecutors */ declare class TooManyExecutorsError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** TooManyOptionTypes */ declare class TooManyOptionTypesError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidNativeDropRequestsLength */ declare class InvalidNativeDropRequestsLengthError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidNativeDropReceiver */ declare class InvalidNativeDropReceiverError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InsufficientBalance */ declare class InsufficientBalanceError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** EidNotSupported */ declare class EidNotSupportedError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** ExecutorIsAdmin */ declare class ExecutorIsAdminError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidOwner */ declare class InvalidOwnerError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidInstructionSequence */ declare class InvalidInstructionSequenceError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** ContextAccountAlreadyInitialized */ declare class ContextAccountAlreadyInitializedError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** * Attempts to resolve a custom program error from the provided error code. * @category Errors */ declare function getExecutorErrorFromCode(code: number, program: Program, cause?: Error): ProgramError | null; /** * Attempts to resolve a custom program error from the provided error name, i.e. 'Unauthorized'. * @category Errors */ declare function getExecutorErrorFromName(name: string, program: Program, cause?: Error): ProgramError | null; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type index$d_ContextAccountAlreadyInitializedError = ContextAccountAlreadyInitializedError; declare const index$d_ContextAccountAlreadyInitializedError: typeof ContextAccountAlreadyInitializedError; type index$d_EidNotSupportedError = EidNotSupportedError; declare const index$d_EidNotSupportedError: typeof EidNotSupportedError; type index$d_ExecutorIsAdminError = ExecutorIsAdminError; declare const index$d_ExecutorIsAdminError: typeof ExecutorIsAdminError; type index$d_InsufficientBalanceError = InsufficientBalanceError; declare const index$d_InsufficientBalanceError: typeof InsufficientBalanceError; type index$d_InvalidInstructionSequenceError = InvalidInstructionSequenceError; declare const index$d_InvalidInstructionSequenceError: typeof InvalidInstructionSequenceError; type index$d_InvalidNativeDropReceiverError = InvalidNativeDropReceiverError; declare const index$d_InvalidNativeDropReceiverError: typeof InvalidNativeDropReceiverError; type index$d_InvalidNativeDropRequestsLengthError = InvalidNativeDropRequestsLengthError; declare const index$d_InvalidNativeDropRequestsLengthError: typeof InvalidNativeDropRequestsLengthError; type index$d_InvalidOwnerError = InvalidOwnerError; declare const index$d_InvalidOwnerError: typeof InvalidOwnerError; type index$d_MsgLibNotAllowedError = MsgLibNotAllowedError; declare const index$d_MsgLibNotAllowedError: typeof MsgLibNotAllowedError; type index$d_NativeAmountExceedsCapError = NativeAmountExceedsCapError; declare const index$d_NativeAmountExceedsCapError: typeof NativeAmountExceedsCapError; type index$d_NotAdminError = NotAdminError; declare const index$d_NotAdminError: typeof NotAdminError; type index$d_NotExecutorError = NotExecutorError; declare const index$d_NotExecutorError: typeof NotExecutorError; type index$d_PausedError = PausedError; declare const index$d_PausedError: typeof PausedError; type index$d_TooManyAdminsError = TooManyAdminsError; declare const index$d_TooManyAdminsError: typeof TooManyAdminsError; type index$d_TooManyExecutorsError = TooManyExecutorsError; declare const index$d_TooManyExecutorsError: typeof TooManyExecutorsError; type index$d_TooManyOptionTypesError = TooManyOptionTypesError; declare const index$d_TooManyOptionTypesError: typeof TooManyOptionTypesError; type index$d_UnsupportedOptionTypeError = UnsupportedOptionTypeError; declare const index$d_UnsupportedOptionTypeError: typeof UnsupportedOptionTypeError; type index$d_ZeroLzComposeGasProvidedError = ZeroLzComposeGasProvidedError; declare const index$d_ZeroLzComposeGasProvidedError: typeof ZeroLzComposeGasProvidedError; type index$d_ZeroLzReceiveGasProvidedError = ZeroLzReceiveGasProvidedError; declare const index$d_ZeroLzReceiveGasProvidedError: typeof ZeroLzReceiveGasProvidedError; declare const index$d_getExecutorErrorFromCode: typeof getExecutorErrorFromCode; declare const index$d_getExecutorErrorFromName: typeof getExecutorErrorFromName; declare namespace index$d { export { index$d_ContextAccountAlreadyInitializedError as ContextAccountAlreadyInitializedError, index$d_EidNotSupportedError as EidNotSupportedError, index$d_ExecutorIsAdminError as ExecutorIsAdminError, index$d_InsufficientBalanceError as InsufficientBalanceError, index$d_InvalidInstructionSequenceError as InvalidInstructionSequenceError, index$d_InvalidNativeDropReceiverError as InvalidNativeDropReceiverError, index$d_InvalidNativeDropRequestsLengthError as InvalidNativeDropRequestsLengthError, index$d_InvalidOwnerError as InvalidOwnerError, InvalidSizeError$1 as InvalidSizeError, index$d_MsgLibNotAllowedError as MsgLibNotAllowedError, index$d_NativeAmountExceedsCapError as NativeAmountExceedsCapError, index$d_NotAdminError as NotAdminError, index$d_NotExecutorError as NotExecutorError, index$d_PausedError as PausedError, index$d_TooManyAdminsError as TooManyAdminsError, index$d_TooManyExecutorsError as TooManyExecutorsError, index$d_TooManyOptionTypesError as TooManyOptionTypesError, index$d_UnsupportedOptionTypeError as UnsupportedOptionTypeError, index$d_ZeroLzComposeGasProvidedError as ZeroLzComposeGasProvidedError, index$d_ZeroLzReceiveGasProvidedError as ZeroLzReceiveGasProvidedError, index$d_getExecutorErrorFromCode as getExecutorErrorFromCode, index$d_getExecutorErrorFromName as getExecutorErrorFromName }; } /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type NativeDropAppliedEvent = { srcEid: number; sender: Uint8Array; nonce: bigint; dstEid: number; oapp: PublicKey; nativeDropRequests: Array; successes: Array; }; type NativeDropAppliedEventArgs = { srcEid: number; sender: Uint8Array; nonce: number | bigint; dstEid: number; oapp: PublicKey; nativeDropRequests: Array; successes: Array; }; declare function getNativeDropAppliedEventSerializer(): Serializer; type index$c_NativeDropAppliedEvent = NativeDropAppliedEvent; type index$c_NativeDropAppliedEventArgs = NativeDropAppliedEventArgs; declare const index$c_getNativeDropAppliedEventSerializer: typeof getNativeDropAppliedEventSerializer; declare namespace index$c { export { type index$c_NativeDropAppliedEvent as NativeDropAppliedEvent, type index$c_NativeDropAppliedEventArgs as NativeDropAppliedEventArgs, index$c_getNativeDropAppliedEventSerializer as getNativeDropAppliedEventSerializer }; } /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type AdminSetConfigInstructionAccounts = { admin: Signer; config: PublicKey | Pda; }; type AdminSetConfigInstructionData = { discriminator: Uint8Array; params: AdminSetConfigParams; }; type AdminSetConfigInstructionDataArgs = { params: AdminSetConfigParamsArgs; }; declare function getAdminSetConfigInstructionDataSerializer(): Serializer; type AdminSetConfigInstructionArgs = AdminSetConfigInstructionDataArgs; declare function adminSetConfig(context: Pick, input: AdminSetConfigInstructionAccounts & AdminSetConfigInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type ComposeInstructionAccounts = { executor: Signer; config: PublicKey | Pda; endpointProgram: PublicKey | Pda; /** The authority for the endpoint program to emit events */ endpointEventAuthority: PublicKey | Pda; eventAuthority: PublicKey | Pda; program: PublicKey | Pda; }; type ComposeInstructionData = { discriminator: Uint8Array; lzCompose: LzComposeParams$1; computeUnits: bigint; value: bigint; }; type ComposeInstructionDataArgs = { lzCompose: LzComposeParamsArgs; computeUnits: number | bigint; value: number | bigint; }; declare function getComposeInstructionDataSerializer(): Serializer; type ComposeInstructionArgs = ComposeInstructionDataArgs; declare function compose(context: Pick, input: ComposeInstructionAccounts & ComposeInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type ExecutableInstructionAccounts = { nonce: PublicKey | Pda; payloadHash: PublicKey | Pda; }; type ExecutableInstructionData = { discriminator: Uint8Array; receiver: PublicKey; srcEid: number; sender: Uint8Array; nonce: bigint; }; type ExecutableInstructionDataArgs = { receiver: PublicKey; srcEid: number; sender: Uint8Array; nonce: number | bigint; }; declare function getExecutableInstructionDataSerializer(): Serializer; type ExecutableInstructionArgs = ExecutableInstructionDataArgs; declare function executable(context: Pick, accounts: ExecutableInstructionAccounts, args: ExecutableInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type ExecuteInstructionAccounts = { executor: Signer; config: PublicKey | Pda; endpointProgram: PublicKey | Pda; /** The authority for the endpoint program to emit events */ endpointEventAuthority: PublicKey | Pda; eventAuthority: PublicKey | Pda; program: PublicKey | Pda; }; type ExecuteInstructionData = { discriminator: Uint8Array; receiver: PublicKey; lzReceive: LzReceiveParams$1; value: bigint; computeUnits: bigint; }; type ExecuteInstructionDataArgs = { receiver: PublicKey; lzReceive: LzReceiveParamsArgs$1; value: number | bigint; computeUnits: number | bigint; }; declare function getExecuteInstructionDataSerializer(): Serializer; type ExecuteInstructionArgs = ExecuteInstructionDataArgs; declare function execute(context: Pick, input: ExecuteInstructionAccounts & ExecuteInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type ExtendExecutorConfigInstructionAccounts = { admin: Signer; config: PublicKey | Pda; systemProgram?: PublicKey | Pda; }; type ExtendExecutorConfigInstructionData = { discriminator: Uint8Array; }; type ExtendExecutorConfigInstructionDataArgs = {}; declare function getExtendExecutorConfigInstructionDataSerializer(): Serializer; declare function extendExecutorConfig(context: Pick, input: ExtendExecutorConfigInstructionAccounts): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type InitExecutorInstructionAccounts = { payer?: Signer; config: PublicKey | Pda; systemProgram?: PublicKey | Pda; }; type InitExecutorInstructionData = { discriminator: Uint8Array; owner: PublicKey; admins: Array; executors: Array; msglibs: Array; priceFeed: PublicKey; }; type InitExecutorInstructionDataArgs = { owner: PublicKey; admins: Array; executors: Array; msglibs: Array; priceFeed: PublicKey; }; declare function getInitExecutorInstructionDataSerializer(): Serializer; type InitExecutorInstructionArgs = InitExecutorInstructionDataArgs; declare function initExecutor(context: Pick, input: InitExecutorInstructionAccounts & InitExecutorInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type NativeDropInstructionAccounts = { executor: Signer; config: PublicKey | Pda; /** For native drop transfer */ systemProgram?: PublicKey | Pda; eventAuthority: PublicKey | Pda; program: PublicKey | Pda; }; type NativeDropInstructionData = { discriminator: Uint8Array; srcEid: number; sender: Uint8Array; nonce: bigint; dstEid: number; oapp: PublicKey; nativeDropRequests: Array; }; type NativeDropInstructionDataArgs = { srcEid: number; sender: Uint8Array; nonce: number | bigint; dstEid: number; oapp: PublicKey; nativeDropRequests: Array; }; declare function getNativeDropInstructionDataSerializer(): Serializer; type NativeDropInstructionArgs = NativeDropInstructionDataArgs; declare function nativeDrop(context: Pick, input: NativeDropInstructionAccounts & NativeDropInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type OwnerSetConfigInstructionAccounts = { owner: Signer; config: PublicKey | Pda; }; type OwnerSetConfigInstructionData = { discriminator: Uint8Array; params: OwnerSetConfigParams; }; type OwnerSetConfigInstructionDataArgs = { params: OwnerSetConfigParamsArgs; }; declare function getOwnerSetConfigInstructionDataSerializer(): Serializer; type OwnerSetConfigInstructionArgs = OwnerSetConfigInstructionDataArgs; declare function ownerSetConfig(context: Pick, input: OwnerSetConfigInstructionAccounts & OwnerSetConfigInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type PostExecuteInstructionAccounts = { executor: Signer; /** Execution context account containing state from pre-execution */ context: PublicKey | Pda; /** Instruction sysvar account for introspection */ instructionSysvar?: PublicKey | Pda; }; type PostExecuteInstructionData = { discriminator: Uint8Array; /** Version of the execution context to use */ contextVersion: number; }; type PostExecuteInstructionDataArgs = { /** Version of the execution context to use */ contextVersion: number; }; declare function getPostExecuteInstructionDataSerializer(): Serializer; type PostExecuteInstructionArgs = PostExecuteInstructionDataArgs; declare function postExecute(context: Pick, input: PostExecuteInstructionAccounts & PostExecuteInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type PreExecuteInstructionAccounts = { executor: Signer; /** * Execution context account that stores state between pre and post execution. * This account is versioned to support future protocol upgrades. */ context: PublicKey | Pda; systemProgram?: PublicKey | Pda; /** Instruction sysvar account for introspection */ instructionSysvar?: PublicKey | Pda; }; type PreExecuteInstructionData = { discriminator: Uint8Array; /** Version of the execution context to use */ contextVersion: number; /** Maximum fee that can be charged for execution */ feeLimit: bigint; }; type PreExecuteInstructionDataArgs = { /** Version of the execution context to use */ contextVersion: number; /** Maximum fee that can be charged for execution */ feeLimit: number | bigint; }; declare function getPreExecuteInstructionDataSerializer(): Serializer; type PreExecuteInstructionArgs = PreExecuteInstructionDataArgs; declare function preExecute(context: Pick, input: PreExecuteInstructionAccounts & PreExecuteInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type QuoteExecutorInstructionAccounts = { executorConfig: PublicKey | Pda; priceFeedProgram: PublicKey | Pda; priceFeedConfig: PublicKey | Pda; }; type QuoteExecutorInstructionData = { discriminator: Uint8Array; msglib: PublicKey; dstEid: number; sender: PublicKey; calldataSize: bigint; options: Array; }; type QuoteExecutorInstructionDataArgs = { msglib: PublicKey; dstEid: number; sender: PublicKey; calldataSize: number | bigint; options: Array; }; declare function getQuoteExecutorInstructionDataSerializer(): Serializer; type QuoteExecutorInstructionArgs = QuoteExecutorInstructionDataArgs; declare function quoteExecutor(context: Pick, input: QuoteExecutorInstructionAccounts & QuoteExecutorInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type VersionInstructionData$2 = { discriminator: Uint8Array; }; type VersionInstructionDataArgs$2 = {}; declare function getVersionInstructionDataSerializer$2(): Serializer; declare function version$2(context: Pick): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type index$b_AdminSetConfigInstructionAccounts = AdminSetConfigInstructionAccounts; type index$b_AdminSetConfigInstructionArgs = AdminSetConfigInstructionArgs; type index$b_AdminSetConfigInstructionData = AdminSetConfigInstructionData; type index$b_AdminSetConfigInstructionDataArgs = AdminSetConfigInstructionDataArgs; type index$b_ComposeInstructionAccounts = ComposeInstructionAccounts; type index$b_ComposeInstructionArgs = ComposeInstructionArgs; type index$b_ComposeInstructionData = ComposeInstructionData; type index$b_ComposeInstructionDataArgs = ComposeInstructionDataArgs; type index$b_ExecutableInstructionAccounts = ExecutableInstructionAccounts; type index$b_ExecutableInstructionArgs = ExecutableInstructionArgs; type index$b_ExecutableInstructionData = ExecutableInstructionData; type index$b_ExecutableInstructionDataArgs = ExecutableInstructionDataArgs; type index$b_ExecuteInstructionAccounts = ExecuteInstructionAccounts; type index$b_ExecuteInstructionArgs = ExecuteInstructionArgs; type index$b_ExecuteInstructionData = ExecuteInstructionData; type index$b_ExecuteInstructionDataArgs = ExecuteInstructionDataArgs; type index$b_ExtendExecutorConfigInstructionAccounts = ExtendExecutorConfigInstructionAccounts; type index$b_ExtendExecutorConfigInstructionData = ExtendExecutorConfigInstructionData; type index$b_ExtendExecutorConfigInstructionDataArgs = ExtendExecutorConfigInstructionDataArgs; type index$b_InitExecutorInstructionAccounts = InitExecutorInstructionAccounts; type index$b_InitExecutorInstructionArgs = InitExecutorInstructionArgs; type index$b_InitExecutorInstructionData = InitExecutorInstructionData; type index$b_InitExecutorInstructionDataArgs = InitExecutorInstructionDataArgs; type index$b_NativeDropInstructionAccounts = NativeDropInstructionAccounts; type index$b_NativeDropInstructionArgs = NativeDropInstructionArgs; type index$b_NativeDropInstructionData = NativeDropInstructionData; type index$b_NativeDropInstructionDataArgs = NativeDropInstructionDataArgs; type index$b_OwnerSetConfigInstructionAccounts = OwnerSetConfigInstructionAccounts; type index$b_OwnerSetConfigInstructionArgs = OwnerSetConfigInstructionArgs; type index$b_OwnerSetConfigInstructionData = OwnerSetConfigInstructionData; type index$b_OwnerSetConfigInstructionDataArgs = OwnerSetConfigInstructionDataArgs; type index$b_PostExecuteInstructionAccounts = PostExecuteInstructionAccounts; type index$b_PostExecuteInstructionArgs = PostExecuteInstructionArgs; type index$b_PostExecuteInstructionData = PostExecuteInstructionData; type index$b_PostExecuteInstructionDataArgs = PostExecuteInstructionDataArgs; type index$b_PreExecuteInstructionAccounts = PreExecuteInstructionAccounts; type index$b_PreExecuteInstructionArgs = PreExecuteInstructionArgs; type index$b_PreExecuteInstructionData = PreExecuteInstructionData; type index$b_PreExecuteInstructionDataArgs = PreExecuteInstructionDataArgs; type index$b_QuoteExecutorInstructionAccounts = QuoteExecutorInstructionAccounts; type index$b_QuoteExecutorInstructionArgs = QuoteExecutorInstructionArgs; type index$b_QuoteExecutorInstructionData = QuoteExecutorInstructionData; type index$b_QuoteExecutorInstructionDataArgs = QuoteExecutorInstructionDataArgs; declare const index$b_adminSetConfig: typeof adminSetConfig; declare const index$b_compose: typeof compose; declare const index$b_executable: typeof executable; declare const index$b_execute: typeof execute; declare const index$b_extendExecutorConfig: typeof extendExecutorConfig; declare const index$b_getAdminSetConfigInstructionDataSerializer: typeof getAdminSetConfigInstructionDataSerializer; declare const index$b_getComposeInstructionDataSerializer: typeof getComposeInstructionDataSerializer; declare const index$b_getExecutableInstructionDataSerializer: typeof getExecutableInstructionDataSerializer; declare const index$b_getExecuteInstructionDataSerializer: typeof getExecuteInstructionDataSerializer; declare const index$b_getExtendExecutorConfigInstructionDataSerializer: typeof getExtendExecutorConfigInstructionDataSerializer; declare const index$b_getInitExecutorInstructionDataSerializer: typeof getInitExecutorInstructionDataSerializer; declare const index$b_getNativeDropInstructionDataSerializer: typeof getNativeDropInstructionDataSerializer; declare const index$b_getOwnerSetConfigInstructionDataSerializer: typeof getOwnerSetConfigInstructionDataSerializer; declare const index$b_getPostExecuteInstructionDataSerializer: typeof getPostExecuteInstructionDataSerializer; declare const index$b_getPreExecuteInstructionDataSerializer: typeof getPreExecuteInstructionDataSerializer; declare const index$b_getQuoteExecutorInstructionDataSerializer: typeof getQuoteExecutorInstructionDataSerializer; declare const index$b_initExecutor: typeof initExecutor; declare const index$b_nativeDrop: typeof nativeDrop; declare const index$b_ownerSetConfig: typeof ownerSetConfig; declare const index$b_postExecute: typeof postExecute; declare const index$b_preExecute: typeof preExecute; declare const index$b_quoteExecutor: typeof quoteExecutor; declare namespace index$b { export { type index$b_AdminSetConfigInstructionAccounts as AdminSetConfigInstructionAccounts, type index$b_AdminSetConfigInstructionArgs as AdminSetConfigInstructionArgs, type index$b_AdminSetConfigInstructionData as AdminSetConfigInstructionData, type index$b_AdminSetConfigInstructionDataArgs as AdminSetConfigInstructionDataArgs, type index$b_ComposeInstructionAccounts as ComposeInstructionAccounts, type index$b_ComposeInstructionArgs as ComposeInstructionArgs, type index$b_ComposeInstructionData as ComposeInstructionData, type index$b_ComposeInstructionDataArgs as ComposeInstructionDataArgs, type index$b_ExecutableInstructionAccounts as ExecutableInstructionAccounts, type index$b_ExecutableInstructionArgs as ExecutableInstructionArgs, type index$b_ExecutableInstructionData as ExecutableInstructionData, type index$b_ExecutableInstructionDataArgs as ExecutableInstructionDataArgs, type index$b_ExecuteInstructionAccounts as ExecuteInstructionAccounts, type index$b_ExecuteInstructionArgs as ExecuteInstructionArgs, type index$b_ExecuteInstructionData as ExecuteInstructionData, type index$b_ExecuteInstructionDataArgs as ExecuteInstructionDataArgs, type index$b_ExtendExecutorConfigInstructionAccounts as ExtendExecutorConfigInstructionAccounts, type index$b_ExtendExecutorConfigInstructionData as ExtendExecutorConfigInstructionData, type index$b_ExtendExecutorConfigInstructionDataArgs as ExtendExecutorConfigInstructionDataArgs, type index$b_InitExecutorInstructionAccounts as InitExecutorInstructionAccounts, type index$b_InitExecutorInstructionArgs as InitExecutorInstructionArgs, type index$b_InitExecutorInstructionData as InitExecutorInstructionData, type index$b_InitExecutorInstructionDataArgs as InitExecutorInstructionDataArgs, type index$b_NativeDropInstructionAccounts as NativeDropInstructionAccounts, type index$b_NativeDropInstructionArgs as NativeDropInstructionArgs, type index$b_NativeDropInstructionData as NativeDropInstructionData, type index$b_NativeDropInstructionDataArgs as NativeDropInstructionDataArgs, type index$b_OwnerSetConfigInstructionAccounts as OwnerSetConfigInstructionAccounts, type index$b_OwnerSetConfigInstructionArgs as OwnerSetConfigInstructionArgs, type index$b_OwnerSetConfigInstructionData as OwnerSetConfigInstructionData, type index$b_OwnerSetConfigInstructionDataArgs as OwnerSetConfigInstructionDataArgs, type index$b_PostExecuteInstructionAccounts as PostExecuteInstructionAccounts, type index$b_PostExecuteInstructionArgs as PostExecuteInstructionArgs, type index$b_PostExecuteInstructionData as PostExecuteInstructionData, type index$b_PostExecuteInstructionDataArgs as PostExecuteInstructionDataArgs, type index$b_PreExecuteInstructionAccounts as PreExecuteInstructionAccounts, type index$b_PreExecuteInstructionArgs as PreExecuteInstructionArgs, type index$b_PreExecuteInstructionData as PreExecuteInstructionData, type index$b_PreExecuteInstructionDataArgs as PreExecuteInstructionDataArgs, type index$b_QuoteExecutorInstructionAccounts as QuoteExecutorInstructionAccounts, type index$b_QuoteExecutorInstructionArgs as QuoteExecutorInstructionArgs, type index$b_QuoteExecutorInstructionData as QuoteExecutorInstructionData, type index$b_QuoteExecutorInstructionDataArgs as QuoteExecutorInstructionDataArgs, type VersionInstructionData$2 as VersionInstructionData, type VersionInstructionDataArgs$2 as VersionInstructionDataArgs, index$b_adminSetConfig as adminSetConfig, index$b_compose as compose, index$b_executable as executable, index$b_execute as execute, index$b_extendExecutorConfig as extendExecutorConfig, index$b_getAdminSetConfigInstructionDataSerializer as getAdminSetConfigInstructionDataSerializer, index$b_getComposeInstructionDataSerializer as getComposeInstructionDataSerializer, index$b_getExecutableInstructionDataSerializer as getExecutableInstructionDataSerializer, index$b_getExecuteInstructionDataSerializer as getExecuteInstructionDataSerializer, index$b_getExtendExecutorConfigInstructionDataSerializer as getExtendExecutorConfigInstructionDataSerializer, index$b_getInitExecutorInstructionDataSerializer as getInitExecutorInstructionDataSerializer, index$b_getNativeDropInstructionDataSerializer as getNativeDropInstructionDataSerializer, index$b_getOwnerSetConfigInstructionDataSerializer as getOwnerSetConfigInstructionDataSerializer, index$b_getPostExecuteInstructionDataSerializer as getPostExecuteInstructionDataSerializer, index$b_getPreExecuteInstructionDataSerializer as getPreExecuteInstructionDataSerializer, index$b_getQuoteExecutorInstructionDataSerializer as getQuoteExecutorInstructionDataSerializer, getVersionInstructionDataSerializer$2 as getVersionInstructionDataSerializer, index$b_initExecutor as initExecutor, index$b_nativeDrop as nativeDrop, index$b_ownerSetConfig as ownerSetConfig, index$b_postExecute as postExecute, index$b_preExecute as preExecute, index$b_quoteExecutor as quoteExecutor, version$2 as version }; } /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ declare const EXECUTOR_PROGRAM_ID: PublicKey<"6doghB248px58JSSwG4qejQ46kFMW4AMj7vzJnWZHNZn">; declare class Executor { programId: PublicKey; readonly pda: ExecutorPDA; readonly programRepo: ProgramRepositoryInterface; readonly eventAuthority: PublicKey; constructor(programId?: PublicKey, rpc?: RpcInterface); getProgram(clusterFilter?: ClusterFilter): Program; initExecutor(payer: Signer, param: InitExecutorInstructionDataArgs): WrappedInstruction; setOwner(owner: Signer, newOwner: PublicKey): WrappedInstruction; setAdmins(owner: Signer, admins: PublicKey[]): WrappedInstruction; setAllowList(owner: Signer, allowlist: PublicKey[]): WrappedInstruction; setDenyList(owner: Signer, denylist: PublicKey[]): WrappedInstruction; setPaused(owner: Signer, paused: boolean): WrappedInstruction; setExecutors(owner: Signer, executors: PublicKey[]): WrappedInstruction; setMsglibByPrograms(owner: Signer, msglibPrograms: PublicKey[]): WrappedInstruction; setMsglibByPDAs(owner: Signer, msglibPDAs: PublicKey[]): WrappedInstruction; setDefaultMultiplierBps(admin: Signer, defaultMultiplierBps: number): WrappedInstruction; setDstConfig(admin: Signer, dstConfigs: DstConfig[]): WrappedInstruction; setPriceFeed(admin: Signer, priceFeedProgram: PublicKey): WrappedInstruction; nativeDrop(executor: Signer, param: NativeDropInstructionDataArgs): WrappedInstruction; quoteExecutor(param: { priceFeedProgram: PublicKey; } & QuoteExecutorInstructionArgs): WrappedInstruction; getExecutorConfig(rpc: RpcInterface, commitment?: Commitment): Promise; getQuoteIXAccountMetaForCPI(priceFeedConfig: PublicKey, priceFeedProgram: PublicKey, payment: boolean): AccountMeta[]; execute(rpc: RpcInterface, executor: Signer, param: { packet: Packet$2; extraData: Uint8Array; value?: bigint; computeUnits?: number; endpointProgram?: PublicKey; }, commitment?: Commitment): Promise<{ signers: Signer[]; instructions: Instruction[]; addressLookupTables: AddressLookupTableInput[]; }>; compose(rpc: RpcInterface, executor: Signer, param: { event: ComposeSentEvent; extraData: Uint8Array; value?: bigint; endpointProgram?: PublicKey; }, commitment?: Commitment): Promise<{ signers: Signer[]; instructions: Instruction[]; addressLookupTables: AddressLookupTableInput[]; }>; preExecute(executor: Signer, version: number, feeLimit: bigint): WrappedInstruction; postExecute(executor: Signer, version: number): WrappedInstruction; } declare const executor_EXECUTOR_PROGRAM_ID: typeof EXECUTOR_PROGRAM_ID; type executor_Executor = Executor; declare const executor_Executor: typeof Executor; declare namespace executor { export { executor_EXECUTOR_PROGRAM_ID as EXECUTOR_PROGRAM_ID, executor_Executor as Executor, index$e as accounts, index$d as errors, index$c as events, index$b as instructions, index$f as types }; } type Confirmations = Account; type ConfirmationsAccountData = { discriminator: Uint8Array; value: Option; bump: number; }; type ConfirmationsAccountDataArgs = { value: OptionOrNullable; bump: number; }; declare function getConfirmationsAccountDataSerializer(): Serializer; declare function deserializeConfirmations(rawAccount: RpcAccount): Confirmations; declare function fetchConfirmations(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function safeFetchConfirmations(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function fetchAllConfirmations(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function safeFetchAllConfirmations(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function getConfirmationsGpaBuilder(context: Pick): _metaplex_foundation_umi.GpaBuilder; bump: number; }>; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type Config = { __kind: 'SendUln'; fields: [UlnConfig]; } | { __kind: 'ReceiveUln'; fields: [UlnConfig]; } | { __kind: 'Executor'; fields: [ExecutorConfig]; }; type ConfigArgs = { __kind: 'SendUln'; fields: [UlnConfigArgs]; } | { __kind: 'ReceiveUln'; fields: [UlnConfigArgs]; } | { __kind: 'Executor'; fields: [ExecutorConfigArgs]; }; declare function getConfigSerializer(): Serializer; declare function config(kind: 'SendUln', data: GetDataEnumKindContent['fields']): GetDataEnumKind; declare function config(kind: 'ReceiveUln', data: GetDataEnumKindContent['fields']): GetDataEnumKind; declare function config(kind: 'Executor', data: GetDataEnumKindContent['fields']): GetDataEnumKind; declare function isConfig(kind: K, value: Config): value is Config & { __kind: K; }; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type ExecutorConfig = { maxMessageSize: number; executor: PublicKey; }; type ExecutorConfigArgs = ExecutorConfig; declare function getExecutorConfigSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type LzTokenTreasury = { receiver: PublicKey; fee: bigint; }; type LzTokenTreasuryArgs = { receiver: PublicKey; fee: number | bigint; }; declare function getLzTokenTreasurySerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type MessagingFee = { nativeFee: bigint; lzTokenFee: bigint; }; type MessagingFeeArgs = { nativeFee: number | bigint; lzTokenFee: number | bigint; }; declare function getMessagingFeeSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type Packet = { nonce: bigint; srcEid: number; sender: PublicKey; dstEid: number; receiver: Uint8Array; guid: Uint8Array; message: Uint8Array; }; type PacketArgs = { nonce: number | bigint; srcEid: number; sender: PublicKey; dstEid: number; receiver: Uint8Array; guid: Uint8Array; message: Uint8Array; }; declare function getPacketSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type Treasury = { admin: Option; nativeReceiver: PublicKey; nativeFeeBps: bigint; lzToken: Option; }; type TreasuryArgs = { admin: OptionOrNullable; nativeReceiver: PublicKey; nativeFeeBps: number | bigint; lzToken: OptionOrNullable; }; declare function getTreasurySerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type TreasuryFee = { treasury: PublicKey; fee: bigint; payInLzToken: boolean; }; type TreasuryFeeArgs = { treasury: PublicKey; fee: number | bigint; payInLzToken: boolean; }; declare function getTreasuryFeeSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type UlnConfig = { confirmations: bigint; requiredDvnCount: number; optionalDvnCount: number; optionalDvnThreshold: number; requiredDvns: Array; optionalDvns: Array; }; type UlnConfigArgs = { confirmations: number | bigint; requiredDvnCount: number; optionalDvnCount: number; optionalDvnThreshold: number; requiredDvns: Array; optionalDvns: Array; }; declare function getUlnConfigSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type Version = { major: bigint; minor: number; endpointVersion: number; }; type VersionArgs = { major: number | bigint; minor: number; endpointVersion: number; }; declare function getVersionSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type WorkerFee = { worker: PublicKey; fee: bigint; }; type WorkerFeeArgs = { worker: PublicKey; fee: number | bigint; }; declare function getWorkerFeeSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type index$a_Config = Config; type index$a_ConfigArgs = ConfigArgs; type index$a_ExecutorConfig = ExecutorConfig; type index$a_ExecutorConfigArgs = ExecutorConfigArgs; type index$a_LzTokenTreasury = LzTokenTreasury; type index$a_LzTokenTreasuryArgs = LzTokenTreasuryArgs; type index$a_MessagingFee = MessagingFee; type index$a_MessagingFeeArgs = MessagingFeeArgs; type index$a_Packet = Packet; type index$a_PacketArgs = PacketArgs; type index$a_Treasury = Treasury; type index$a_TreasuryArgs = TreasuryArgs; type index$a_TreasuryFee = TreasuryFee; type index$a_TreasuryFeeArgs = TreasuryFeeArgs; type index$a_UlnConfig = UlnConfig; type index$a_UlnConfigArgs = UlnConfigArgs; type index$a_Version = Version; type index$a_VersionArgs = VersionArgs; type index$a_WorkerFee = WorkerFee; type index$a_WorkerFeeArgs = WorkerFeeArgs; declare const index$a_config: typeof config; declare const index$a_getConfigSerializer: typeof getConfigSerializer; declare const index$a_getExecutorConfigSerializer: typeof getExecutorConfigSerializer; declare const index$a_getLzTokenTreasurySerializer: typeof getLzTokenTreasurySerializer; declare const index$a_getMessagingFeeSerializer: typeof getMessagingFeeSerializer; declare const index$a_getPacketSerializer: typeof getPacketSerializer; declare const index$a_getTreasuryFeeSerializer: typeof getTreasuryFeeSerializer; declare const index$a_getTreasurySerializer: typeof getTreasurySerializer; declare const index$a_getUlnConfigSerializer: typeof getUlnConfigSerializer; declare const index$a_getVersionSerializer: typeof getVersionSerializer; declare const index$a_getWorkerFeeSerializer: typeof getWorkerFeeSerializer; declare const index$a_isConfig: typeof isConfig; declare namespace index$a { export { type index$a_Config as Config, type index$a_ConfigArgs as ConfigArgs, type index$a_ExecutorConfig as ExecutorConfig, type index$a_ExecutorConfigArgs as ExecutorConfigArgs, type index$a_LzTokenTreasury as LzTokenTreasury, type index$a_LzTokenTreasuryArgs as LzTokenTreasuryArgs, type index$a_MessagingFee as MessagingFee, type index$a_MessagingFeeArgs as MessagingFeeArgs, type index$a_Packet as Packet, type index$a_PacketArgs as PacketArgs, type index$a_Treasury as Treasury, type index$a_TreasuryArgs as TreasuryArgs, type index$a_TreasuryFee as TreasuryFee, type index$a_TreasuryFeeArgs as TreasuryFeeArgs, type index$a_UlnConfig as UlnConfig, type index$a_UlnConfigArgs as UlnConfigArgs, type index$a_Version as Version, type index$a_VersionArgs as VersionArgs, type index$a_WorkerFee as WorkerFee, type index$a_WorkerFeeArgs as WorkerFeeArgs, index$a_config as config, index$a_getConfigSerializer as getConfigSerializer, index$a_getExecutorConfigSerializer as getExecutorConfigSerializer, index$a_getLzTokenTreasurySerializer as getLzTokenTreasurySerializer, index$a_getMessagingFeeSerializer as getMessagingFeeSerializer, index$a_getPacketSerializer as getPacketSerializer, index$a_getTreasuryFeeSerializer as getTreasuryFeeSerializer, index$a_getTreasurySerializer as getTreasurySerializer, index$a_getUlnConfigSerializer as getUlnConfigSerializer, index$a_getVersionSerializer as getVersionSerializer, index$a_getWorkerFeeSerializer as getWorkerFeeSerializer, index$a_isConfig as isConfig }; } type ReceiveConfig = Account; type ReceiveConfigAccountData = { discriminator: Uint8Array; bump: number; uln: UlnConfig; }; type ReceiveConfigAccountDataArgs = { bump: number; uln: UlnConfigArgs; }; declare function getReceiveConfigAccountDataSerializer(): Serializer; declare function deserializeReceiveConfig(rawAccount: RpcAccount): ReceiveConfig; declare function fetchReceiveConfig(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function safeFetchReceiveConfig(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function fetchAllReceiveConfig(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function safeFetchAllReceiveConfig(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function getReceiveConfigGpaBuilder(context: Pick): _metaplex_foundation_umi.GpaBuilder; type SendConfig = Account; type SendConfigAccountData = { discriminator: Uint8Array; bump: number; uln: UlnConfig; executor: ExecutorConfig; }; type SendConfigAccountDataArgs = { bump: number; uln: UlnConfigArgs; executor: ExecutorConfigArgs; }; declare function getSendConfigAccountDataSerializer(): Serializer; declare function deserializeSendConfig(rawAccount: RpcAccount): SendConfig; declare function fetchSendConfig(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function safeFetchSendConfig(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function fetchAllSendConfig(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function safeFetchAllSendConfig(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function getSendConfigGpaBuilder(context: Pick): _metaplex_foundation_umi.GpaBuilder; type UlnSettings = Account; type UlnSettingsAccountData = { discriminator: Uint8Array; eid: number; endpoint: PublicKey; endpointProgram: PublicKey; bump: number; admin: PublicKey; treasury: Option; }; type UlnSettingsAccountDataArgs = { eid: number; endpoint: PublicKey; endpointProgram: PublicKey; bump: number; admin: PublicKey; treasury: OptionOrNullable; }; declare function getUlnSettingsAccountDataSerializer(): Serializer; declare function deserializeUlnSettings(rawAccount: RpcAccount): UlnSettings; declare function fetchUlnSettings(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function safeFetchUlnSettings(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function fetchAllUlnSettings(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function safeFetchAllUlnSettings(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function getUlnSettingsGpaBuilder(context: Pick): _metaplex_foundation_umi.GpaBuilder; }>; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type index$9_Confirmations = Confirmations; type index$9_ConfirmationsAccountData = ConfirmationsAccountData; type index$9_ConfirmationsAccountDataArgs = ConfirmationsAccountDataArgs; type index$9_ReceiveConfig = ReceiveConfig; type index$9_ReceiveConfigAccountData = ReceiveConfigAccountData; type index$9_ReceiveConfigAccountDataArgs = ReceiveConfigAccountDataArgs; type index$9_SendConfig = SendConfig; type index$9_SendConfigAccountData = SendConfigAccountData; type index$9_SendConfigAccountDataArgs = SendConfigAccountDataArgs; type index$9_UlnSettings = UlnSettings; type index$9_UlnSettingsAccountData = UlnSettingsAccountData; type index$9_UlnSettingsAccountDataArgs = UlnSettingsAccountDataArgs; declare const index$9_deserializeConfirmations: typeof deserializeConfirmations; declare const index$9_deserializeReceiveConfig: typeof deserializeReceiveConfig; declare const index$9_deserializeSendConfig: typeof deserializeSendConfig; declare const index$9_deserializeUlnSettings: typeof deserializeUlnSettings; declare const index$9_fetchAllConfirmations: typeof fetchAllConfirmations; declare const index$9_fetchAllReceiveConfig: typeof fetchAllReceiveConfig; declare const index$9_fetchAllSendConfig: typeof fetchAllSendConfig; declare const index$9_fetchAllUlnSettings: typeof fetchAllUlnSettings; declare const index$9_fetchConfirmations: typeof fetchConfirmations; declare const index$9_fetchReceiveConfig: typeof fetchReceiveConfig; declare const index$9_fetchSendConfig: typeof fetchSendConfig; declare const index$9_fetchUlnSettings: typeof fetchUlnSettings; declare const index$9_getConfirmationsAccountDataSerializer: typeof getConfirmationsAccountDataSerializer; declare const index$9_getConfirmationsGpaBuilder: typeof getConfirmationsGpaBuilder; declare const index$9_getReceiveConfigAccountDataSerializer: typeof getReceiveConfigAccountDataSerializer; declare const index$9_getReceiveConfigGpaBuilder: typeof getReceiveConfigGpaBuilder; declare const index$9_getSendConfigAccountDataSerializer: typeof getSendConfigAccountDataSerializer; declare const index$9_getSendConfigGpaBuilder: typeof getSendConfigGpaBuilder; declare const index$9_getUlnSettingsAccountDataSerializer: typeof getUlnSettingsAccountDataSerializer; declare const index$9_getUlnSettingsGpaBuilder: typeof getUlnSettingsGpaBuilder; declare const index$9_safeFetchAllConfirmations: typeof safeFetchAllConfirmations; declare const index$9_safeFetchAllReceiveConfig: typeof safeFetchAllReceiveConfig; declare const index$9_safeFetchAllSendConfig: typeof safeFetchAllSendConfig; declare const index$9_safeFetchAllUlnSettings: typeof safeFetchAllUlnSettings; declare const index$9_safeFetchConfirmations: typeof safeFetchConfirmations; declare const index$9_safeFetchReceiveConfig: typeof safeFetchReceiveConfig; declare const index$9_safeFetchSendConfig: typeof safeFetchSendConfig; declare const index$9_safeFetchUlnSettings: typeof safeFetchUlnSettings; declare namespace index$9 { export { type index$9_Confirmations as Confirmations, type index$9_ConfirmationsAccountData as ConfirmationsAccountData, type index$9_ConfirmationsAccountDataArgs as ConfirmationsAccountDataArgs, type index$9_ReceiveConfig as ReceiveConfig, type index$9_ReceiveConfigAccountData as ReceiveConfigAccountData, type index$9_ReceiveConfigAccountDataArgs as ReceiveConfigAccountDataArgs, type index$9_SendConfig as SendConfig, type index$9_SendConfigAccountData as SendConfigAccountData, type index$9_SendConfigAccountDataArgs as SendConfigAccountDataArgs, type index$9_UlnSettings as UlnSettings, type index$9_UlnSettingsAccountData as UlnSettingsAccountData, type index$9_UlnSettingsAccountDataArgs as UlnSettingsAccountDataArgs, index$9_deserializeConfirmations as deserializeConfirmations, index$9_deserializeReceiveConfig as deserializeReceiveConfig, index$9_deserializeSendConfig as deserializeSendConfig, index$9_deserializeUlnSettings as deserializeUlnSettings, index$9_fetchAllConfirmations as fetchAllConfirmations, index$9_fetchAllReceiveConfig as fetchAllReceiveConfig, index$9_fetchAllSendConfig as fetchAllSendConfig, index$9_fetchAllUlnSettings as fetchAllUlnSettings, index$9_fetchConfirmations as fetchConfirmations, index$9_fetchReceiveConfig as fetchReceiveConfig, index$9_fetchSendConfig as fetchSendConfig, index$9_fetchUlnSettings as fetchUlnSettings, index$9_getConfirmationsAccountDataSerializer as getConfirmationsAccountDataSerializer, index$9_getConfirmationsGpaBuilder as getConfirmationsGpaBuilder, index$9_getReceiveConfigAccountDataSerializer as getReceiveConfigAccountDataSerializer, index$9_getReceiveConfigGpaBuilder as getReceiveConfigGpaBuilder, index$9_getSendConfigAccountDataSerializer as getSendConfigAccountDataSerializer, index$9_getSendConfigGpaBuilder as getSendConfigGpaBuilder, index$9_getUlnSettingsAccountDataSerializer as getUlnSettingsAccountDataSerializer, index$9_getUlnSettingsGpaBuilder as getUlnSettingsGpaBuilder, index$9_safeFetchAllConfirmations as safeFetchAllConfirmations, index$9_safeFetchAllReceiveConfig as safeFetchAllReceiveConfig, index$9_safeFetchAllSendConfig as safeFetchAllSendConfig, index$9_safeFetchAllUlnSettings as safeFetchAllUlnSettings, index$9_safeFetchConfirmations as safeFetchConfirmations, index$9_safeFetchReceiveConfig as safeFetchReceiveConfig, index$9_safeFetchSendConfig as safeFetchSendConfig, index$9_safeFetchUlnSettings as safeFetchUlnSettings }; } /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ /** Unauthorized */ declare class UnauthorizedError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidAmount */ declare class InvalidAmountError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidExecutor */ declare class InvalidExecutorError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** ZeroMessageSize */ declare class ZeroMessageSizeError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidRequiredDVNCount */ declare class InvalidRequiredDVNCountError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidOptionalDVNCount */ declare class InvalidOptionalDVNCountError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidOptionalDVNThreshold */ declare class InvalidOptionalDVNThresholdError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidConfirmations */ declare class InvalidConfirmationsError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** AtLeastOneDVN */ declare class AtLeastOneDVNError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** Unsorted */ declare class UnsortedError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidTreasuryFeeCap */ declare class InvalidTreasuryFeeCapError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidPacketVersion */ declare class InvalidPacketVersionError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidEid */ declare class InvalidEidError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** Verifying */ declare class VerifyingError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidWorkerId */ declare class InvalidWorkerIdError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidOptionType */ declare class InvalidOptionTypeError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidBps */ declare class InvalidBpsError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** ExceededMaxMessageSize */ declare class ExceededMaxMessageSizeError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidExecutorProgram */ declare class InvalidExecutorProgramError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidAccountLength */ declare class InvalidAccountLengthError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidDvnProgram */ declare class InvalidDvnProgramError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidDvn */ declare class InvalidDvnError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** LzTokenUnavailable */ declare class LzTokenUnavailableError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InsufficientFee */ declare class InsufficientFeeError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidTreasury */ declare class InvalidTreasuryError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidLzTokenMint */ declare class InvalidLzTokenMintError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidConfigType */ declare class InvalidConfigTypeError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidConfirmation */ declare class InvalidConfirmationError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidType1Size */ declare class InvalidType1SizeError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidType2Size */ declare class InvalidType2SizeError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** ExceededU128 */ declare class ExceededU128Error extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** NonSigner */ declare class NonSignerError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidPayer */ declare class InvalidPayerError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** * Attempts to resolve a custom program error from the provided error code. * @category Errors */ declare function getUlnErrorFromCode(code: number, program: Program, cause?: Error): ProgramError | null; /** * Attempts to resolve a custom program error from the provided error name, i.e. 'Unauthorized'. * @category Errors */ declare function getUlnErrorFromName(name: string, program: Program, cause?: Error): ProgramError | null; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type index$8_AtLeastOneDVNError = AtLeastOneDVNError; declare const index$8_AtLeastOneDVNError: typeof AtLeastOneDVNError; type index$8_ExceededMaxMessageSizeError = ExceededMaxMessageSizeError; declare const index$8_ExceededMaxMessageSizeError: typeof ExceededMaxMessageSizeError; type index$8_ExceededU128Error = ExceededU128Error; declare const index$8_ExceededU128Error: typeof ExceededU128Error; type index$8_InsufficientFeeError = InsufficientFeeError; declare const index$8_InsufficientFeeError: typeof InsufficientFeeError; type index$8_InvalidAccountLengthError = InvalidAccountLengthError; declare const index$8_InvalidAccountLengthError: typeof InvalidAccountLengthError; type index$8_InvalidAmountError = InvalidAmountError; declare const index$8_InvalidAmountError: typeof InvalidAmountError; type index$8_InvalidBpsError = InvalidBpsError; declare const index$8_InvalidBpsError: typeof InvalidBpsError; type index$8_InvalidConfigTypeError = InvalidConfigTypeError; declare const index$8_InvalidConfigTypeError: typeof InvalidConfigTypeError; type index$8_InvalidConfirmationError = InvalidConfirmationError; declare const index$8_InvalidConfirmationError: typeof InvalidConfirmationError; type index$8_InvalidConfirmationsError = InvalidConfirmationsError; declare const index$8_InvalidConfirmationsError: typeof InvalidConfirmationsError; type index$8_InvalidDvnError = InvalidDvnError; declare const index$8_InvalidDvnError: typeof InvalidDvnError; type index$8_InvalidDvnProgramError = InvalidDvnProgramError; declare const index$8_InvalidDvnProgramError: typeof InvalidDvnProgramError; type index$8_InvalidEidError = InvalidEidError; declare const index$8_InvalidEidError: typeof InvalidEidError; type index$8_InvalidExecutorError = InvalidExecutorError; declare const index$8_InvalidExecutorError: typeof InvalidExecutorError; type index$8_InvalidExecutorProgramError = InvalidExecutorProgramError; declare const index$8_InvalidExecutorProgramError: typeof InvalidExecutorProgramError; type index$8_InvalidLzTokenMintError = InvalidLzTokenMintError; declare const index$8_InvalidLzTokenMintError: typeof InvalidLzTokenMintError; type index$8_InvalidOptionTypeError = InvalidOptionTypeError; declare const index$8_InvalidOptionTypeError: typeof InvalidOptionTypeError; type index$8_InvalidOptionalDVNCountError = InvalidOptionalDVNCountError; declare const index$8_InvalidOptionalDVNCountError: typeof InvalidOptionalDVNCountError; type index$8_InvalidOptionalDVNThresholdError = InvalidOptionalDVNThresholdError; declare const index$8_InvalidOptionalDVNThresholdError: typeof InvalidOptionalDVNThresholdError; type index$8_InvalidPacketVersionError = InvalidPacketVersionError; declare const index$8_InvalidPacketVersionError: typeof InvalidPacketVersionError; type index$8_InvalidPayerError = InvalidPayerError; declare const index$8_InvalidPayerError: typeof InvalidPayerError; type index$8_InvalidRequiredDVNCountError = InvalidRequiredDVNCountError; declare const index$8_InvalidRequiredDVNCountError: typeof InvalidRequiredDVNCountError; type index$8_InvalidTreasuryError = InvalidTreasuryError; declare const index$8_InvalidTreasuryError: typeof InvalidTreasuryError; type index$8_InvalidTreasuryFeeCapError = InvalidTreasuryFeeCapError; declare const index$8_InvalidTreasuryFeeCapError: typeof InvalidTreasuryFeeCapError; type index$8_InvalidType1SizeError = InvalidType1SizeError; declare const index$8_InvalidType1SizeError: typeof InvalidType1SizeError; type index$8_InvalidType2SizeError = InvalidType2SizeError; declare const index$8_InvalidType2SizeError: typeof InvalidType2SizeError; type index$8_InvalidWorkerIdError = InvalidWorkerIdError; declare const index$8_InvalidWorkerIdError: typeof InvalidWorkerIdError; type index$8_LzTokenUnavailableError = LzTokenUnavailableError; declare const index$8_LzTokenUnavailableError: typeof LzTokenUnavailableError; type index$8_NonSignerError = NonSignerError; declare const index$8_NonSignerError: typeof NonSignerError; type index$8_UnauthorizedError = UnauthorizedError; declare const index$8_UnauthorizedError: typeof UnauthorizedError; type index$8_UnsortedError = UnsortedError; declare const index$8_UnsortedError: typeof UnsortedError; type index$8_VerifyingError = VerifyingError; declare const index$8_VerifyingError: typeof VerifyingError; type index$8_ZeroMessageSizeError = ZeroMessageSizeError; declare const index$8_ZeroMessageSizeError: typeof ZeroMessageSizeError; declare const index$8_getUlnErrorFromCode: typeof getUlnErrorFromCode; declare const index$8_getUlnErrorFromName: typeof getUlnErrorFromName; declare namespace index$8 { export { index$8_AtLeastOneDVNError as AtLeastOneDVNError, index$8_ExceededMaxMessageSizeError as ExceededMaxMessageSizeError, index$8_ExceededU128Error as ExceededU128Error, index$8_InsufficientFeeError as InsufficientFeeError, index$8_InvalidAccountLengthError as InvalidAccountLengthError, index$8_InvalidAmountError as InvalidAmountError, index$8_InvalidBpsError as InvalidBpsError, index$8_InvalidConfigTypeError as InvalidConfigTypeError, index$8_InvalidConfirmationError as InvalidConfirmationError, index$8_InvalidConfirmationsError as InvalidConfirmationsError, index$8_InvalidDvnError as InvalidDvnError, index$8_InvalidDvnProgramError as InvalidDvnProgramError, index$8_InvalidEidError as InvalidEidError, index$8_InvalidExecutorError as InvalidExecutorError, index$8_InvalidExecutorProgramError as InvalidExecutorProgramError, index$8_InvalidLzTokenMintError as InvalidLzTokenMintError, index$8_InvalidOptionTypeError as InvalidOptionTypeError, index$8_InvalidOptionalDVNCountError as InvalidOptionalDVNCountError, index$8_InvalidOptionalDVNThresholdError as InvalidOptionalDVNThresholdError, index$8_InvalidPacketVersionError as InvalidPacketVersionError, index$8_InvalidPayerError as InvalidPayerError, index$8_InvalidRequiredDVNCountError as InvalidRequiredDVNCountError, index$8_InvalidTreasuryError as InvalidTreasuryError, index$8_InvalidTreasuryFeeCapError as InvalidTreasuryFeeCapError, index$8_InvalidType1SizeError as InvalidType1SizeError, index$8_InvalidType2SizeError as InvalidType2SizeError, index$8_InvalidWorkerIdError as InvalidWorkerIdError, index$8_LzTokenUnavailableError as LzTokenUnavailableError, index$8_NonSignerError as NonSignerError, index$8_UnauthorizedError as UnauthorizedError, index$8_UnsortedError as UnsortedError, index$8_VerifyingError as VerifyingError, index$8_ZeroMessageSizeError as ZeroMessageSizeError, index$8_getUlnErrorFromCode as getUlnErrorFromCode, index$8_getUlnErrorFromName as getUlnErrorFromName }; } /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type AdminTransferredEvent = { newAdmin: PublicKey; }; type AdminTransferredEventArgs = AdminTransferredEvent; declare function getAdminTransferredEventSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type ConfigSetEvent = { oapp: PublicKey; eid: number; config: Config; }; type ConfigSetEventArgs = { oapp: PublicKey; eid: number; config: ConfigArgs; }; declare function getConfigSetEventSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type DefaultConfigSetEvent = { eid: number; sendUlnConfig: Option; receiveUlnConfig: Option; executorConfig: Option; }; type DefaultConfigSetEventArgs = { eid: number; sendUlnConfig: OptionOrNullable; receiveUlnConfig: OptionOrNullable; executorConfig: OptionOrNullable; }; declare function getDefaultConfigSetEventSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type FeesPaidEvent = { executor: WorkerFee; dvns: Array; treasury: Option; }; type FeesPaidEventArgs = { executor: WorkerFeeArgs; dvns: Array; treasury: OptionOrNullable; }; declare function getFeesPaidEventSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type PayloadVerifiedEvent = { dvn: PublicKey; header: Array; confirmations: bigint; proofHash: Uint8Array; }; type PayloadVerifiedEventArgs = { dvn: PublicKey; header: Array; confirmations: number | bigint; proofHash: Uint8Array; }; declare function getPayloadVerifiedEventSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type RentWithdrawnEvent = { receiver: PublicKey; amount: bigint; }; type RentWithdrawnEventArgs = { receiver: PublicKey; amount: number | bigint; }; declare function getRentWithdrawnEventSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type TreasurySetEvent = { treasury: Option; }; type TreasurySetEventArgs = { treasury: OptionOrNullable; }; declare function getTreasurySetEventSerializer(): Serializer; type index$7_AdminTransferredEvent = AdminTransferredEvent; type index$7_AdminTransferredEventArgs = AdminTransferredEventArgs; type index$7_ConfigSetEvent = ConfigSetEvent; type index$7_ConfigSetEventArgs = ConfigSetEventArgs; type index$7_DefaultConfigSetEvent = DefaultConfigSetEvent; type index$7_DefaultConfigSetEventArgs = DefaultConfigSetEventArgs; type index$7_FeesPaidEvent = FeesPaidEvent; type index$7_FeesPaidEventArgs = FeesPaidEventArgs; type index$7_PayloadVerifiedEvent = PayloadVerifiedEvent; type index$7_PayloadVerifiedEventArgs = PayloadVerifiedEventArgs; type index$7_RentWithdrawnEvent = RentWithdrawnEvent; type index$7_RentWithdrawnEventArgs = RentWithdrawnEventArgs; type index$7_TreasurySetEvent = TreasurySetEvent; type index$7_TreasurySetEventArgs = TreasurySetEventArgs; declare const index$7_getAdminTransferredEventSerializer: typeof getAdminTransferredEventSerializer; declare const index$7_getConfigSetEventSerializer: typeof getConfigSetEventSerializer; declare const index$7_getDefaultConfigSetEventSerializer: typeof getDefaultConfigSetEventSerializer; declare const index$7_getFeesPaidEventSerializer: typeof getFeesPaidEventSerializer; declare const index$7_getPayloadVerifiedEventSerializer: typeof getPayloadVerifiedEventSerializer; declare const index$7_getRentWithdrawnEventSerializer: typeof getRentWithdrawnEventSerializer; declare const index$7_getTreasurySetEventSerializer: typeof getTreasurySetEventSerializer; declare namespace index$7 { export { type index$7_AdminTransferredEvent as AdminTransferredEvent, type index$7_AdminTransferredEventArgs as AdminTransferredEventArgs, type index$7_ConfigSetEvent as ConfigSetEvent, type index$7_ConfigSetEventArgs as ConfigSetEventArgs, type index$7_DefaultConfigSetEvent as DefaultConfigSetEvent, type index$7_DefaultConfigSetEventArgs as DefaultConfigSetEventArgs, type index$7_FeesPaidEvent as FeesPaidEvent, type index$7_FeesPaidEventArgs as FeesPaidEventArgs, type index$7_PayloadVerifiedEvent as PayloadVerifiedEvent, type index$7_PayloadVerifiedEventArgs as PayloadVerifiedEventArgs, type index$7_RentWithdrawnEvent as RentWithdrawnEvent, type index$7_RentWithdrawnEventArgs as RentWithdrawnEventArgs, type index$7_TreasurySetEvent as TreasurySetEvent, type index$7_TreasurySetEventArgs as TreasurySetEventArgs, index$7_getAdminTransferredEventSerializer as getAdminTransferredEventSerializer, index$7_getConfigSetEventSerializer as getConfigSetEventSerializer, index$7_getDefaultConfigSetEventSerializer as getDefaultConfigSetEventSerializer, index$7_getFeesPaidEventSerializer as getFeesPaidEventSerializer, index$7_getPayloadVerifiedEventSerializer as getPayloadVerifiedEventSerializer, index$7_getRentWithdrawnEventSerializer as getRentWithdrawnEventSerializer, index$7_getTreasurySetEventSerializer as getTreasurySetEventSerializer }; } /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type CloseVerifyInstructionAccounts = { dvn: Signer; receiver: PublicKey | Pda; confirmations: PublicKey | Pda; }; type CloseVerifyInstructionData = { discriminator: Uint8Array; packetHeaderHash: Uint8Array; payloadHash: Uint8Array; }; type CloseVerifyInstructionDataArgs = { packetHeaderHash: Uint8Array; payloadHash: Uint8Array; }; declare function getCloseVerifyInstructionDataSerializer(): Serializer; type CloseVerifyInstructionArgs = CloseVerifyInstructionDataArgs; declare function closeVerify(context: Pick, input: CloseVerifyInstructionAccounts & CloseVerifyInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type CommitVerificationInstructionAccounts = { /** The custom receive config account may be uninitialized, so deserialize it only if it's initialized */ receiveConfig: PublicKey | Pda; defaultReceiveConfig: PublicKey | Pda; uln: PublicKey | Pda; }; type CommitVerificationInstructionData = { discriminator: Uint8Array; packetHeader: Array; payloadHash: Uint8Array; }; type CommitVerificationInstructionDataArgs = { packetHeader: Array; payloadHash: Uint8Array; }; declare function getCommitVerificationInstructionDataSerializer(): Serializer; type CommitVerificationInstructionArgs = CommitVerificationInstructionDataArgs; declare function commitVerification(context: Pick, input: CommitVerificationInstructionAccounts & CommitVerificationInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type InitConfigInstructionAccounts = { endpoint: Signer; payer?: Signer; uln: PublicKey | Pda; sendConfig: PublicKey | Pda; receiveConfig: PublicKey | Pda; systemProgram?: PublicKey | Pda; }; type InitConfigInstructionData = { discriminator: Uint8Array; oapp: PublicKey; eid: number; }; type InitConfigInstructionDataArgs = { oapp: PublicKey; eid: number; }; declare function getInitConfigInstructionDataSerializer(): Serializer; type InitConfigInstructionArgs = InitConfigInstructionDataArgs; declare function initConfig(context: Pick, input: InitConfigInstructionAccounts & InitConfigInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type InitDefaultConfigInstructionAccounts = { admin: Signer; uln: PublicKey | Pda; sendConfig: PublicKey | Pda; receiveConfig: PublicKey | Pda; systemProgram?: PublicKey | Pda; eventAuthority: PublicKey | Pda; program: PublicKey | Pda; }; type InitDefaultConfigInstructionData = { discriminator: Uint8Array; eid: number; sendUlnConfig: UlnConfig; receiveUlnConfig: UlnConfig; executorConfig: ExecutorConfig; }; type InitDefaultConfigInstructionDataArgs = { eid: number; sendUlnConfig: UlnConfigArgs; receiveUlnConfig: UlnConfigArgs; executorConfig: ExecutorConfigArgs; }; declare function getInitDefaultConfigInstructionDataSerializer(): Serializer; type InitDefaultConfigInstructionArgs = InitDefaultConfigInstructionDataArgs; declare function initDefaultConfig(context: Pick, input: InitDefaultConfigInstructionAccounts & InitDefaultConfigInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type InitUlnInstructionAccounts = { payer?: Signer; uln: PublicKey | Pda; systemProgram?: PublicKey | Pda; }; type InitUlnInstructionData = { discriminator: Uint8Array; eid: number; endpoint: PublicKey; endpointProgram: PublicKey; admin: PublicKey; }; type InitUlnInstructionDataArgs = { eid: number; endpoint: PublicKey; endpointProgram: PublicKey; admin: PublicKey; }; declare function getInitUlnInstructionDataSerializer(): Serializer; type InitUlnInstructionArgs = InitUlnInstructionDataArgs; declare function initUln(context: Pick, input: InitUlnInstructionAccounts & InitUlnInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type InitVerifyInstructionAccounts = { payer?: Signer; confirmations: PublicKey | Pda; systemProgram?: PublicKey | Pda; }; type InitVerifyInstructionData = { discriminator: Uint8Array; packetHeader: Array; payloadHash: Uint8Array; dvn: PublicKey; }; type InitVerifyInstructionDataArgs = { packetHeader: Array; payloadHash: Uint8Array; dvn: PublicKey; }; declare function getInitVerifyInstructionDataSerializer(): Serializer; type InitVerifyInstructionArgs = InitVerifyInstructionDataArgs; declare function initVerify(context: Pick, input: InitVerifyInstructionAccounts & InitVerifyInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type QuoteInstructionAccounts = { endpoint: Signer; uln: PublicKey | Pda; /** The custom send config account may be uninitialized, so deserialize it only if it's initialized */ sendConfig: PublicKey | Pda; defaultSendConfig: PublicKey | Pda; }; type QuoteInstructionData = { discriminator: Uint8Array; packet: Packet; options: Uint8Array; payInLzToken: boolean; }; type QuoteInstructionDataArgs = { packet: PacketArgs; options: Uint8Array; payInLzToken: boolean; }; declare function getQuoteInstructionDataSerializer(): Serializer; type QuoteInstructionArgs = QuoteInstructionDataArgs; declare function quote(context: Pick, input: QuoteInstructionAccounts & QuoteInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type SendInstructionAccounts = { endpoint: Signer; uln: PublicKey | Pda; /** The custom send config account may be uninitialized, so deserialize it only if it's initialized */ sendConfig: PublicKey | Pda; defaultSendConfig: PublicKey | Pda; /** pay for the native fee */ payer?: Signer; /** The treasury account to receive the native fee */ treasury?: PublicKey | Pda; /** for native fee transfer */ systemProgram?: PublicKey | Pda; eventAuthority: PublicKey | Pda; program: PublicKey | Pda; }; type SendInstructionData = { discriminator: Uint8Array; packet: Packet; options: Uint8Array; nativeFee: bigint; }; type SendInstructionDataArgs = { packet: PacketArgs; options: Uint8Array; nativeFee: number | bigint; }; declare function getSendInstructionDataSerializer(): Serializer; type SendInstructionArgs = SendInstructionDataArgs; declare function send(context: Pick, input: SendInstructionAccounts & SendInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type SendWithLzTokenInstructionAccounts = { endpoint: Signer; uln: PublicKey | Pda; /** The custom send config account may be uninitialized, so deserialize it only if it's initialized */ sendConfig: PublicKey | Pda; defaultSendConfig: PublicKey | Pda; /** pay for the native fee */ payer?: Signer; /** for native fee transfer */ systemProgram?: PublicKey | Pda; /** The token account to pay the lz token fee */ lzTokenSource: PublicKey | Pda; /** The treasury token account to receive the lz token fee */ lzTokenTreasury: PublicKey | Pda; lzTokenMint: PublicKey | Pda; tokenProgram?: PublicKey | Pda; eventAuthority: PublicKey | Pda; program: PublicKey | Pda; }; type SendWithLzTokenInstructionData = { discriminator: Uint8Array; packet: Packet; options: Uint8Array; nativeFee: bigint; lzTokenFee: bigint; lzTokenMint: PublicKey; }; type SendWithLzTokenInstructionDataArgs = { packet: PacketArgs; options: Uint8Array; nativeFee: number | bigint; lzTokenFee: number | bigint; lzTokenMint: PublicKey; }; declare function getSendWithLzTokenInstructionDataSerializer(): Serializer; type SendWithLzTokenInstructionArgs = SendWithLzTokenInstructionDataArgs; declare function sendWithLzToken(context: Pick, accounts: SendWithLzTokenInstructionAccounts, args: SendWithLzTokenInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type SetConfigInstructionAccounts = { endpoint: Signer; uln: PublicKey | Pda; sendConfig: PublicKey | Pda; receiveConfig: PublicKey | Pda; defaultSendConfig: PublicKey | Pda; defaultReceiveConfig: PublicKey | Pda; eventAuthority: PublicKey | Pda; program: PublicKey | Pda; }; type SetConfigInstructionData = { discriminator: Uint8Array; oapp: PublicKey; eid: number; configType: number; config: Uint8Array; }; type SetConfigInstructionDataArgs = { oapp: PublicKey; eid: number; configType: number; config: Uint8Array; }; declare function getSetConfigInstructionDataSerializer(): Serializer; type SetConfigInstructionArgs = SetConfigInstructionDataArgs; declare function setConfig(context: Pick, input: SetConfigInstructionAccounts & SetConfigInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type SetDefaultConfigInstructionAccounts = { admin: Signer; uln: PublicKey | Pda; sendConfig: PublicKey | Pda; receiveConfig: PublicKey | Pda; eventAuthority: PublicKey | Pda; program: PublicKey | Pda; }; type SetDefaultConfigInstructionData = { discriminator: Uint8Array; eid: number; sendUlnConfig: Option; receiveUlnConfig: Option; executorConfig: Option; }; type SetDefaultConfigInstructionDataArgs = { eid: number; sendUlnConfig: OptionOrNullable; receiveUlnConfig: OptionOrNullable; executorConfig: OptionOrNullable; }; declare function getSetDefaultConfigInstructionDataSerializer(): Serializer; type SetDefaultConfigInstructionArgs = SetDefaultConfigInstructionDataArgs; declare function setDefaultConfig(context: Pick, input: SetDefaultConfigInstructionAccounts & SetDefaultConfigInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type SetTreasuryInstructionAccounts = { /** The admin or treasury admin */ signer: Signer; uln: PublicKey | Pda; eventAuthority: PublicKey | Pda; program: PublicKey | Pda; }; type SetTreasuryInstructionData = { discriminator: Uint8Array; treasury: Option; }; type SetTreasuryInstructionDataArgs = { treasury: OptionOrNullable; }; declare function getSetTreasuryInstructionDataSerializer(): Serializer; type SetTreasuryInstructionArgs = SetTreasuryInstructionDataArgs; declare function setTreasury(context: Pick, input: SetTreasuryInstructionAccounts & SetTreasuryInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type TransferAdminInstructionAccounts$1 = { admin: Signer; uln: PublicKey | Pda; eventAuthority: PublicKey | Pda; program: PublicKey | Pda; }; type TransferAdminInstructionData$1 = { discriminator: Uint8Array; admin: PublicKey; }; type TransferAdminInstructionDataArgs$1 = { admin: PublicKey; }; declare function getTransferAdminInstructionDataSerializer$1(): Serializer; type TransferAdminInstructionArgs$1 = TransferAdminInstructionDataArgs$1; declare function transferAdmin$1(context: Pick, accounts: TransferAdminInstructionAccounts$1, args: TransferAdminInstructionArgs$1): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type VerifyInstructionAccounts = { dvn: Signer; confirmations: PublicKey | Pda; eventAuthority: PublicKey | Pda; program: PublicKey | Pda; }; type VerifyInstructionData = { discriminator: Uint8Array; packetHeader: Array; payloadHash: Uint8Array; confirmations: bigint; }; type VerifyInstructionDataArgs = { packetHeader: Array; payloadHash: Uint8Array; confirmations: number | bigint; }; declare function getVerifyInstructionDataSerializer(): Serializer; type VerifyInstructionArgs = VerifyInstructionDataArgs; declare function verify(context: Pick, accounts: VerifyInstructionAccounts, args: VerifyInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type VersionInstructionData$1 = { discriminator: Uint8Array; }; type VersionInstructionDataArgs$1 = {}; declare function getVersionInstructionDataSerializer$1(): Serializer; declare function version$1(context: Pick): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type WithdrawRentInstructionAccounts = { admin: Signer; uln: PublicKey | Pda; receiver: PublicKey | Pda; eventAuthority: PublicKey | Pda; program: PublicKey | Pda; }; type WithdrawRentInstructionData = { discriminator: Uint8Array; amount: bigint; }; type WithdrawRentInstructionDataArgs = { amount: number | bigint; }; declare function getWithdrawRentInstructionDataSerializer(): Serializer; type WithdrawRentInstructionArgs = WithdrawRentInstructionDataArgs; declare function withdrawRent(context: Pick, input: WithdrawRentInstructionAccounts & WithdrawRentInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type index$6_CloseVerifyInstructionAccounts = CloseVerifyInstructionAccounts; type index$6_CloseVerifyInstructionArgs = CloseVerifyInstructionArgs; type index$6_CloseVerifyInstructionData = CloseVerifyInstructionData; type index$6_CloseVerifyInstructionDataArgs = CloseVerifyInstructionDataArgs; type index$6_CommitVerificationInstructionAccounts = CommitVerificationInstructionAccounts; type index$6_CommitVerificationInstructionArgs = CommitVerificationInstructionArgs; type index$6_CommitVerificationInstructionData = CommitVerificationInstructionData; type index$6_CommitVerificationInstructionDataArgs = CommitVerificationInstructionDataArgs; type index$6_InitConfigInstructionAccounts = InitConfigInstructionAccounts; type index$6_InitConfigInstructionArgs = InitConfigInstructionArgs; type index$6_InitConfigInstructionData = InitConfigInstructionData; type index$6_InitConfigInstructionDataArgs = InitConfigInstructionDataArgs; type index$6_InitDefaultConfigInstructionAccounts = InitDefaultConfigInstructionAccounts; type index$6_InitDefaultConfigInstructionArgs = InitDefaultConfigInstructionArgs; type index$6_InitDefaultConfigInstructionData = InitDefaultConfigInstructionData; type index$6_InitDefaultConfigInstructionDataArgs = InitDefaultConfigInstructionDataArgs; type index$6_InitUlnInstructionAccounts = InitUlnInstructionAccounts; type index$6_InitUlnInstructionArgs = InitUlnInstructionArgs; type index$6_InitUlnInstructionData = InitUlnInstructionData; type index$6_InitUlnInstructionDataArgs = InitUlnInstructionDataArgs; type index$6_InitVerifyInstructionAccounts = InitVerifyInstructionAccounts; type index$6_InitVerifyInstructionArgs = InitVerifyInstructionArgs; type index$6_InitVerifyInstructionData = InitVerifyInstructionData; type index$6_InitVerifyInstructionDataArgs = InitVerifyInstructionDataArgs; type index$6_QuoteInstructionAccounts = QuoteInstructionAccounts; type index$6_QuoteInstructionArgs = QuoteInstructionArgs; type index$6_QuoteInstructionData = QuoteInstructionData; type index$6_QuoteInstructionDataArgs = QuoteInstructionDataArgs; type index$6_SendInstructionAccounts = SendInstructionAccounts; type index$6_SendInstructionArgs = SendInstructionArgs; type index$6_SendInstructionData = SendInstructionData; type index$6_SendInstructionDataArgs = SendInstructionDataArgs; type index$6_SendWithLzTokenInstructionAccounts = SendWithLzTokenInstructionAccounts; type index$6_SendWithLzTokenInstructionArgs = SendWithLzTokenInstructionArgs; type index$6_SendWithLzTokenInstructionData = SendWithLzTokenInstructionData; type index$6_SendWithLzTokenInstructionDataArgs = SendWithLzTokenInstructionDataArgs; type index$6_SetConfigInstructionAccounts = SetConfigInstructionAccounts; type index$6_SetConfigInstructionArgs = SetConfigInstructionArgs; type index$6_SetConfigInstructionData = SetConfigInstructionData; type index$6_SetConfigInstructionDataArgs = SetConfigInstructionDataArgs; type index$6_SetDefaultConfigInstructionAccounts = SetDefaultConfigInstructionAccounts; type index$6_SetDefaultConfigInstructionArgs = SetDefaultConfigInstructionArgs; type index$6_SetDefaultConfigInstructionData = SetDefaultConfigInstructionData; type index$6_SetDefaultConfigInstructionDataArgs = SetDefaultConfigInstructionDataArgs; type index$6_SetTreasuryInstructionAccounts = SetTreasuryInstructionAccounts; type index$6_SetTreasuryInstructionArgs = SetTreasuryInstructionArgs; type index$6_SetTreasuryInstructionData = SetTreasuryInstructionData; type index$6_SetTreasuryInstructionDataArgs = SetTreasuryInstructionDataArgs; type index$6_VerifyInstructionAccounts = VerifyInstructionAccounts; type index$6_VerifyInstructionArgs = VerifyInstructionArgs; type index$6_VerifyInstructionData = VerifyInstructionData; type index$6_VerifyInstructionDataArgs = VerifyInstructionDataArgs; type index$6_WithdrawRentInstructionAccounts = WithdrawRentInstructionAccounts; type index$6_WithdrawRentInstructionArgs = WithdrawRentInstructionArgs; type index$6_WithdrawRentInstructionData = WithdrawRentInstructionData; type index$6_WithdrawRentInstructionDataArgs = WithdrawRentInstructionDataArgs; declare const index$6_closeVerify: typeof closeVerify; declare const index$6_commitVerification: typeof commitVerification; declare const index$6_getCloseVerifyInstructionDataSerializer: typeof getCloseVerifyInstructionDataSerializer; declare const index$6_getCommitVerificationInstructionDataSerializer: typeof getCommitVerificationInstructionDataSerializer; declare const index$6_getInitConfigInstructionDataSerializer: typeof getInitConfigInstructionDataSerializer; declare const index$6_getInitDefaultConfigInstructionDataSerializer: typeof getInitDefaultConfigInstructionDataSerializer; declare const index$6_getInitUlnInstructionDataSerializer: typeof getInitUlnInstructionDataSerializer; declare const index$6_getInitVerifyInstructionDataSerializer: typeof getInitVerifyInstructionDataSerializer; declare const index$6_getQuoteInstructionDataSerializer: typeof getQuoteInstructionDataSerializer; declare const index$6_getSendInstructionDataSerializer: typeof getSendInstructionDataSerializer; declare const index$6_getSendWithLzTokenInstructionDataSerializer: typeof getSendWithLzTokenInstructionDataSerializer; declare const index$6_getSetConfigInstructionDataSerializer: typeof getSetConfigInstructionDataSerializer; declare const index$6_getSetDefaultConfigInstructionDataSerializer: typeof getSetDefaultConfigInstructionDataSerializer; declare const index$6_getSetTreasuryInstructionDataSerializer: typeof getSetTreasuryInstructionDataSerializer; declare const index$6_getVerifyInstructionDataSerializer: typeof getVerifyInstructionDataSerializer; declare const index$6_getWithdrawRentInstructionDataSerializer: typeof getWithdrawRentInstructionDataSerializer; declare const index$6_initConfig: typeof initConfig; declare const index$6_initDefaultConfig: typeof initDefaultConfig; declare const index$6_initUln: typeof initUln; declare const index$6_initVerify: typeof initVerify; declare const index$6_quote: typeof quote; declare const index$6_send: typeof send; declare const index$6_sendWithLzToken: typeof sendWithLzToken; declare const index$6_setConfig: typeof setConfig; declare const index$6_setDefaultConfig: typeof setDefaultConfig; declare const index$6_setTreasury: typeof setTreasury; declare const index$6_verify: typeof verify; declare const index$6_withdrawRent: typeof withdrawRent; declare namespace index$6 { export { type index$6_CloseVerifyInstructionAccounts as CloseVerifyInstructionAccounts, type index$6_CloseVerifyInstructionArgs as CloseVerifyInstructionArgs, type index$6_CloseVerifyInstructionData as CloseVerifyInstructionData, type index$6_CloseVerifyInstructionDataArgs as CloseVerifyInstructionDataArgs, type index$6_CommitVerificationInstructionAccounts as CommitVerificationInstructionAccounts, type index$6_CommitVerificationInstructionArgs as CommitVerificationInstructionArgs, type index$6_CommitVerificationInstructionData as CommitVerificationInstructionData, type index$6_CommitVerificationInstructionDataArgs as CommitVerificationInstructionDataArgs, type index$6_InitConfigInstructionAccounts as InitConfigInstructionAccounts, type index$6_InitConfigInstructionArgs as InitConfigInstructionArgs, type index$6_InitConfigInstructionData as InitConfigInstructionData, type index$6_InitConfigInstructionDataArgs as InitConfigInstructionDataArgs, type index$6_InitDefaultConfigInstructionAccounts as InitDefaultConfigInstructionAccounts, type index$6_InitDefaultConfigInstructionArgs as InitDefaultConfigInstructionArgs, type index$6_InitDefaultConfigInstructionData as InitDefaultConfigInstructionData, type index$6_InitDefaultConfigInstructionDataArgs as InitDefaultConfigInstructionDataArgs, type index$6_InitUlnInstructionAccounts as InitUlnInstructionAccounts, type index$6_InitUlnInstructionArgs as InitUlnInstructionArgs, type index$6_InitUlnInstructionData as InitUlnInstructionData, type index$6_InitUlnInstructionDataArgs as InitUlnInstructionDataArgs, type index$6_InitVerifyInstructionAccounts as InitVerifyInstructionAccounts, type index$6_InitVerifyInstructionArgs as InitVerifyInstructionArgs, type index$6_InitVerifyInstructionData as InitVerifyInstructionData, type index$6_InitVerifyInstructionDataArgs as InitVerifyInstructionDataArgs, type index$6_QuoteInstructionAccounts as QuoteInstructionAccounts, type index$6_QuoteInstructionArgs as QuoteInstructionArgs, type index$6_QuoteInstructionData as QuoteInstructionData, type index$6_QuoteInstructionDataArgs as QuoteInstructionDataArgs, type index$6_SendInstructionAccounts as SendInstructionAccounts, type index$6_SendInstructionArgs as SendInstructionArgs, type index$6_SendInstructionData as SendInstructionData, type index$6_SendInstructionDataArgs as SendInstructionDataArgs, type index$6_SendWithLzTokenInstructionAccounts as SendWithLzTokenInstructionAccounts, type index$6_SendWithLzTokenInstructionArgs as SendWithLzTokenInstructionArgs, type index$6_SendWithLzTokenInstructionData as SendWithLzTokenInstructionData, type index$6_SendWithLzTokenInstructionDataArgs as SendWithLzTokenInstructionDataArgs, type index$6_SetConfigInstructionAccounts as SetConfigInstructionAccounts, type index$6_SetConfigInstructionArgs as SetConfigInstructionArgs, type index$6_SetConfigInstructionData as SetConfigInstructionData, type index$6_SetConfigInstructionDataArgs as SetConfigInstructionDataArgs, type index$6_SetDefaultConfigInstructionAccounts as SetDefaultConfigInstructionAccounts, type index$6_SetDefaultConfigInstructionArgs as SetDefaultConfigInstructionArgs, type index$6_SetDefaultConfigInstructionData as SetDefaultConfigInstructionData, type index$6_SetDefaultConfigInstructionDataArgs as SetDefaultConfigInstructionDataArgs, type index$6_SetTreasuryInstructionAccounts as SetTreasuryInstructionAccounts, type index$6_SetTreasuryInstructionArgs as SetTreasuryInstructionArgs, type index$6_SetTreasuryInstructionData as SetTreasuryInstructionData, type index$6_SetTreasuryInstructionDataArgs as SetTreasuryInstructionDataArgs, type TransferAdminInstructionAccounts$1 as TransferAdminInstructionAccounts, type TransferAdminInstructionArgs$1 as TransferAdminInstructionArgs, type TransferAdminInstructionData$1 as TransferAdminInstructionData, type TransferAdminInstructionDataArgs$1 as TransferAdminInstructionDataArgs, type index$6_VerifyInstructionAccounts as VerifyInstructionAccounts, type index$6_VerifyInstructionArgs as VerifyInstructionArgs, type index$6_VerifyInstructionData as VerifyInstructionData, type index$6_VerifyInstructionDataArgs as VerifyInstructionDataArgs, type VersionInstructionData$1 as VersionInstructionData, type VersionInstructionDataArgs$1 as VersionInstructionDataArgs, type index$6_WithdrawRentInstructionAccounts as WithdrawRentInstructionAccounts, type index$6_WithdrawRentInstructionArgs as WithdrawRentInstructionArgs, type index$6_WithdrawRentInstructionData as WithdrawRentInstructionData, type index$6_WithdrawRentInstructionDataArgs as WithdrawRentInstructionDataArgs, index$6_closeVerify as closeVerify, index$6_commitVerification as commitVerification, index$6_getCloseVerifyInstructionDataSerializer as getCloseVerifyInstructionDataSerializer, index$6_getCommitVerificationInstructionDataSerializer as getCommitVerificationInstructionDataSerializer, index$6_getInitConfigInstructionDataSerializer as getInitConfigInstructionDataSerializer, index$6_getInitDefaultConfigInstructionDataSerializer as getInitDefaultConfigInstructionDataSerializer, index$6_getInitUlnInstructionDataSerializer as getInitUlnInstructionDataSerializer, index$6_getInitVerifyInstructionDataSerializer as getInitVerifyInstructionDataSerializer, index$6_getQuoteInstructionDataSerializer as getQuoteInstructionDataSerializer, index$6_getSendInstructionDataSerializer as getSendInstructionDataSerializer, index$6_getSendWithLzTokenInstructionDataSerializer as getSendWithLzTokenInstructionDataSerializer, index$6_getSetConfigInstructionDataSerializer as getSetConfigInstructionDataSerializer, index$6_getSetDefaultConfigInstructionDataSerializer as getSetDefaultConfigInstructionDataSerializer, index$6_getSetTreasuryInstructionDataSerializer as getSetTreasuryInstructionDataSerializer, getTransferAdminInstructionDataSerializer$1 as getTransferAdminInstructionDataSerializer, index$6_getVerifyInstructionDataSerializer as getVerifyInstructionDataSerializer, getVersionInstructionDataSerializer$1 as getVersionInstructionDataSerializer, index$6_getWithdrawRentInstructionDataSerializer as getWithdrawRentInstructionDataSerializer, index$6_initConfig as initConfig, index$6_initDefaultConfig as initDefaultConfig, index$6_initUln as initUln, index$6_initVerify as initVerify, index$6_quote as quote, index$6_send as send, index$6_sendWithLzToken as sendWithLzToken, index$6_setConfig as setConfig, index$6_setDefaultConfig as setDefaultConfig, index$6_setTreasury as setTreasury, transferAdmin$1 as transferAdmin, index$6_verify as verify, version$1 as version, index$6_withdrawRent as withdrawRent }; } /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ declare const ULN_PROGRAM_ID: PublicKey<"7a4WjyR8VZ7yZz5XJAKm39BUGn5iT9CKcv2pmG9tdXVH">; /** * Interface representing the maximum message size. */ interface MaxMessageSize { /** * The size of the message. */ size: number; /** * The kind of the message size. */ __kind: 'MaxMessageSize'; } /** * Interface representing the outbound confirmations. */ interface OutboundConfirmations { /** * The number of confirmations. */ confirmations: number; /** * The kind of the outbound confirmations. */ __kind: 'OutboundConfirmations'; } /** * Interface representing the inbound confirmations. */ interface InboundConfirmations { /** * The number of confirmations. */ confirmations: number; /** * The kind of the inbound confirmations. */ __kind: 'InboundConfirmations'; } /** * Interface representing the oracles. */ interface Oracles { /** * Indicates if custom oracles are used. */ useCustomOracles: boolean; /** * The array of oracle public keys. */ oracles: PublicKey[]; /** * The kind of the oracles. */ __kind: 'Oracles'; } /** * Interface representing the optional oracles. */ interface OptionalOracles { /** * Indicates if custom optional oracles are used. */ useCustomOptionalOracles: boolean; /** * The array of optional oracle public keys. */ optionalOracles: PublicKey[]; /** * The threshold for the optional oracles. */ threshold: number; /** * The kind of the optional oracles. */ __kind: 'OptionalOracles'; } /** * Class representing the ULN (Ultra Light Node). * @see {@link MessageLibInterface} */ declare class Uln implements MessageLibInterface { programId: PublicKey; readonly pda: UlnPDA; readonly programRepo: ProgramRepositoryInterface; readonly eventAuthority: PublicKey; /** * Creates an instance of the Uln class. * * @param {PublicKey} programId - The program public key. */ constructor(programId?: PublicKey, rpc?: RpcInterface); getProgram(clusterFilter?: ClusterFilter): Program; initUln(payer: Signer, param: { admin: PublicKey; eid: number; endpointProgram?: PublicKey; }): WrappedInstruction; /** * Initializes or updates the default configuration. * before calling this function, you should call initUln to initialize the uln * * @param {Connection} connection - The connection to the Solana cluster. * @param {PublicKey} admin - The admin public key. * @param {number} eid - The endpoint ID. * @param {types.UlnConfig} sendUlnConfig - The send ULN configuration. * @param {types.UlnConfig} receiveUlnConfig - The receive ULN configuration. * @param {types.ExecutorConfig} executorConfig - The executor configuration. * @param {Commitment | GetAccountInfoConfig} [commitmentOrConfig] - The commitment level or account info configuration. * @returns {Promise} A promise that resolves to the transaction instruction. */ initOrUpdateDefaultConfig(rpc: RpcInterface, admin: Signer, param: { remote: number; sendUlnConfig: Option; receiveUlnConfig: Option; executorConfig: Option; }): Promise; /** * Sets the treasury. * before calling this function, you should call initUln to initialize the uln * * @param {PublicKey} admin - The admin public key. * @param {object} treasury - The treasury object. * @param {PublicKey} treasury.admin - The treasury admin public key. * @param {PublicKey} treasury.nativeReceiver - The native receiver public key. * @param {number} treasury.nativeFeeBps - The native fee basis points. * @param {object} treasury.lzToken - The LZ token object. * @param {PublicKey} treasury.lzToken.receiver - The LZ token receiver public key. * @param {number} treasury.lzToken.fee - The LZ token fee. * @returns {Promise} A promise that resolves to the transaction instruction. */ setTreasury(admin: Signer, treasury: { admin: PublicKey; nativeReceiver: PublicKey; nativeFeeBps: number; lzToken: { receiver: PublicKey; fee: number; } | null; } | null): WrappedInstruction; transferAdmin(admin: Signer, newAdmin: PublicKey): WrappedInstruction; /** * Gets the account metadata for the CPI (Cross-Program Invocation) of the quote instruction. * * @param {RpcInterface} rpc - The connection to the Solana cluster. * @param {PublicKey} _payer - The payer public key. * @param {SolanaPacketPath} path - The packet path. * @param {Commitment} [commitment] - The commitment level. * @returns {Promise} A promise that resolves to an array of account metadata. */ getQuoteIXAccountMetaForCPI(rpc: RpcInterface, _payer: PublicKey, path: SolanaPacketPath, commitment?: Commitment): Promise; /** * Gets the account metadata for the CPI (Cross-Program Invocation) of the send instruction. * * @param {Connection} connection - The connection to the Solana cluster. * @param {PublicKey} payer - The payer public key. * @param {PacketPath} path - The packet path. * @param {Commitment} [commitment='confirmed'] - The commitment level. * @returns {Promise} A promise that resolves to an array of account metadata. */ getSendIXAccountMetaForCPI(rpc: RpcInterface, payer: PublicKey, path: SolanaPacketPath, commitment?: Commitment): Promise; /*** * Get the account meta of the send instruction for CPI(Cross-Program Invocation ) with lzToken */ getSendWithLzTokenIXAccountMetaForCPI(rpc: RpcInterface, accounts: { payer: PublicKey; tokenMint: PublicKey; tokenSource: PublicKey; }, path: SolanaPacketPath, programs: { tokenProgram?: PublicKey; associatedTokenProgram?: PublicKey; }, commitment?: Commitment): Promise; /** * Gets the remaining accounts for the send instruction. * * @param {Connection} connection - The connection to the Solana cluster. * @param {PublicKey} sender - The sender public key. * @param {number} dstEid - The destination endpoint ID. * @param {boolean} payment - Indicates if payment is required. * @param {Commitment | GetAccountInfoConfig} [commitment='confirmed'] - The commitment level or account info configuration. * @returns {Promise} A promise that resolves to an array of account metadata. */ getSendIxRemainingAccounts(rpc: RpcInterface, sender: PublicKey, dstEid: number, payment: boolean, commitment?: Commitment): Promise; /** * Gets all workers (executor and DVN). * 2 RPC requests * * @param {Connection} connection - The connection to the Solana cluster. * @param {PublicKey} sender - The sender public key. * @param {number} eid - The endpoint ID. * @param {Commitment | GetAccountInfoConfig} [commitment='confirmed'] - The commitment level or account info configuration. * @returns {Promise<{ executor: { config: ExecutorAccounts.ExecutorConfig; owner: PublicKey }; dvns: { config: DvnAccounts.DvnConfig; owner: PublicKey }[] }>} A promise that resolves to an object containing the executor and DVN configurations. */ getWorkers(rpc: RpcInterface, sender: PublicKey, eid: number, commitment?: Commitment): Promise<{ executor: { config: ExecutorConfig$1; owner: PublicKey; }; dvns: { config: DvnConfig; owner: PublicKey; }[]; }>; /** * Initializes the verification process. * */ initVerify(payer: Signer, param: { dvn: PublicKey; packetBytes: Uint8Array; }): WrappedInstruction; verify(dvn: Signer, param: { packetBytes: Uint8Array; confirmations: number | bigint; }): WrappedInstruction; closeVerify(dvn: Signer, param: { receiver: PublicKey; packetBytes: Uint8Array; }): WrappedInstruction; /** * Checks if the DVN is verified. * * @param {Connection} connection - The connection to the Solana cluster. * @param {PublicKey} endpointProgram - The endpoint program public key. * @param {PublicKey} dvn - The DVN public key. * @param {Uint8Array} packetBytes - The packet bytes. * @param {Commitment | GetAccountInfoConfig} [commitmentOrConfig='confirmed'] - The commitment level or account info configuration. * @returns {Promise} A promise that resolves to true if the DVN is verified, false otherwise. */ isDvnVerified(rpc: RpcInterface, endpointProgram: PublicKey, dvn: PublicKey, packetBytes: Uint8Array, commitment?: Commitment): Promise; /** * Commits the verification process. * * @param {Connection} connection - The connection to the Solana cluster. * @param {PublicKey} endpointProgram - The endpoint program public key. * @param {Uint8Array} packetBytes - The packet bytes. * @returns {Promise} A promise that resolves to the transaction instruction. */ commitVerification(rpc: RpcInterface, packetBytes: Uint8Array, endpointProgram?: PublicKey): Promise; /** * Gets the account metadata for the CPI (Cross-Program Invocation) of the init config instruction. * * @param {PublicKey} payer - The payer public key. * @param {PublicKey} oappID - The OApp ID public key. * @param {number} eid - The endpoint ID. * @returns {AccountMeta[]} An array of account metadata. */ getInitConfigIXAccountMetaForCPI(payer: PublicKey, oappID: PublicKey, eid: number): AccountMeta[]; /** * Constructs the set config data. * * @param {SetConfigType} configType - The configuration type. * @param {types.ExecutorConfig | types.UlnConfig} configData - The configuration data. * @returns {Uint8Array} The constructed set config data. * @throws {Error} If the configuration type is invalid. */ static constructSetConfigData(configType: SetConfigType, configData: ExecutorConfig | UlnConfig): Uint8Array; /** * Gets the account metadata for the CPI (Cross-Program Invocation) of the set config instruction. * * @param {PublicKey} endpointProgram - The endpoint program public key. * @param {PublicKey} oappID - The OApp ID public key. * @param {number} eid - The endpoint ID. * @returns {Promise} A promise that resolves to an array of account metadata. */ getSetConfigIXAccountMetaForCPI(oapp: PublicKey, eid: number, endpointProgram?: PublicKey): AccountMeta[]; /** * Gets the ULN settings. * * @param {RpcInterface} rpc - The connection to the Solana cluster. * @param {Commitment} [commitment] - The commitment level or account info configuration. * @returns {Promise} A promise that resolves to the ULN settings or null if not found. */ getSetting(rpc: RpcInterface, commitment?: Commitment): Promise; /** * Gets the default send configuration state. * * @param {Connection} connection - The connection to the Solana cluster. * @param {number} eid - The endpoint ID. * @param {Commitment | GetAccountInfoConfig} [commitmentOrConfig] - The commitment level or account info configuration. * @returns {Promise} A promise that resolves to the default send configuration state or null if not found. */ getDefaultSendConfigState(rpc: RpcInterface, eid: number, commitment?: Commitment): Promise; /** * Gets the send configuration state. * * @param {Connection} connection - The connection to the Solana cluster. * @param {PublicKey} sender - The sender public key. * @param {number} eid - The endpoint ID. * @param {Commitment | GetAccountInfoConfig} [commitmentOrConfig] - The commitment level or account info configuration. * @returns {Promise} A promise that resolves to the send configuration state or null if not found. */ getSendConfigState(rpc: RpcInterface, sender: PublicKey, eid: number, commitment?: Commitment): Promise; /** * Gets the default receive configuration state. * * @param {Connection} connection - The connection to the Solana cluster. * @param {number} eid - The endpoint ID. * @param {Commitment | GetAccountInfoConfig} [commitmentOrConfig] - The commitment level or account info configuration. * @returns {Promise} A promise that resolves to the default receive configuration state or null if not found. */ getDefaultReceiveConfigState(rpc: RpcInterface, eid: number, commitment?: Commitment): Promise; /** * Gets the receive configuration state. * * @param {Connection} connection - The connection to the Solana cluster. * @param {PublicKey} receiver - The receiver public key. * @param {number} eid - The endpoint ID. * @param {Commitment | GetAccountInfoConfig} [commitmentOrConfig] - The commitment level or account info configuration. * @returns {Promise} A promise that resolves to the receive configuration state or null if not found. */ getReceiveConfigState(rpc: RpcInterface, receiver: PublicKey, eid: number, commitment?: Commitment): Promise; /** * Gets the final receive configuration state. * * @param {Connection} connection - The connection to the Solana cluster. * @param {PublicKey} receiver - The receiver public key. * @param {number} eid - The endpoint ID. * @param {Commitment | GetAccountInfoConfig} [commitmentOrConfig='confirmed'] - The commitment level or account info configuration. * @returns {Promise} A promise that resolves to the final receive configuration state. * @throws {Error} If no DVN is found. */ getFinalReceiveConfigState(rpc: RpcInterface, receiver: PublicKey, eid: number, commitment?: Commitment): Promise; getFinalSendConfigState(rpc: RpcInterface, sender: PublicKey, eid: number, commitment?: Commitment): Promise; private getUlnConfigState; private getExecutorConfigState; } type uln_InboundConfirmations = InboundConfirmations; type uln_MaxMessageSize = MaxMessageSize; type uln_OptionalOracles = OptionalOracles; type uln_Oracles = Oracles; type uln_OutboundConfirmations = OutboundConfirmations; declare const uln_ULN_PROGRAM_ID: typeof ULN_PROGRAM_ID; type uln_Uln = Uln; declare const uln_Uln: typeof Uln; declare namespace uln { export { type uln_InboundConfirmations as InboundConfirmations, type uln_MaxMessageSize as MaxMessageSize, type uln_OptionalOracles as OptionalOracles, type uln_Oracles as Oracles, type uln_OutboundConfirmations as OutboundConfirmations, uln_ULN_PROGRAM_ID as ULN_PROGRAM_ID, uln_Uln as Uln, index$9 as accounts, index$8 as errors, index$7 as events, index$6 as instructions, index$a as types }; } /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type ModelType = { __kind: 'Arbitrum'; gasPerL2Tx: bigint; gasPerL1CalldataByte: number; } | { __kind: 'Optimism'; l1Eid: number; }; type ModelTypeArgs = { __kind: 'Arbitrum'; gasPerL2Tx: number | bigint; gasPerL1CalldataByte: number; } | { __kind: 'Optimism'; l1Eid: number; }; declare function getModelTypeSerializer(): Serializer; declare function modelType(kind: 'Arbitrum', data: GetDataEnumKindContent): GetDataEnumKind; declare function modelType(kind: 'Optimism', data: GetDataEnumKindContent): GetDataEnumKind; declare function isModelType(kind: K, value: ModelType): value is ModelType & { __kind: K; }; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type Price = { eid: number; priceRatio: bigint; gasPriceInUnit: bigint; gasPerByte: number; modelType: Option; }; type PriceArgs = { eid: number; priceRatio: number | bigint; gasPriceInUnit: number | bigint; gasPerByte: number; modelType: OptionOrNullable; }; declare function getPriceSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type PriceParams = { priceRatio: bigint; gasPriceInUnit: bigint; gasPerByte: number; modelType: Option; }; type PriceParamsArgs = { priceRatio: number | bigint; gasPriceInUnit: number | bigint; gasPerByte: number; modelType: OptionOrNullable; }; declare function getPriceParamsSerializer(): Serializer; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type index$5_ModelType = ModelType; type index$5_ModelTypeArgs = ModelTypeArgs; type index$5_Price = Price; type index$5_PriceArgs = PriceArgs; type index$5_PriceParams = PriceParams; type index$5_PriceParamsArgs = PriceParamsArgs; declare const index$5_getModelTypeSerializer: typeof getModelTypeSerializer; declare const index$5_getPriceParamsSerializer: typeof getPriceParamsSerializer; declare const index$5_getPriceSerializer: typeof getPriceSerializer; declare const index$5_isModelType: typeof isModelType; declare const index$5_modelType: typeof modelType; declare namespace index$5 { export { type index$5_ModelType as ModelType, type index$5_ModelTypeArgs as ModelTypeArgs, type index$5_Price as Price, type index$5_PriceArgs as PriceArgs, type index$5_PriceParams as PriceParams, type index$5_PriceParamsArgs as PriceParamsArgs, index$5_getModelTypeSerializer as getModelTypeSerializer, index$5_getPriceParamsSerializer as getPriceParamsSerializer, index$5_getPriceSerializer as getPriceSerializer, index$5_isModelType as isModelType, index$5_modelType as modelType }; } type PriceFeed$1 = Account; type PriceFeedAccountData = { discriminator: Uint8Array; admin: PublicKey; updaters: Array; priceRatioDenominator: bigint; arbitrumCompressionPercent: bigint; nativeTokenPriceUsd: Option; prices: Array; bump: number; }; type PriceFeedAccountDataArgs = { admin: PublicKey; updaters: Array; priceRatioDenominator: number | bigint; arbitrumCompressionPercent: number | bigint; nativeTokenPriceUsd: OptionOrNullable; prices: Array; bump: number; }; declare function getPriceFeedAccountDataSerializer(): Serializer; declare function deserializePriceFeed(rawAccount: RpcAccount): PriceFeed$1; declare function fetchPriceFeed(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function safeFetchPriceFeed(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; declare function fetchAllPriceFeed(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function safeFetchAllPriceFeed(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; declare function getPriceFeedGpaBuilder(context: Pick): _metaplex_foundation_umi.GpaBuilder; priceRatioDenominator: number | bigint; arbitrumCompressionPercent: number | bigint; nativeTokenPriceUsd: OptionOrNullable; prices: Array; bump: number; }>; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type index$4_PriceFeedAccountData = PriceFeedAccountData; type index$4_PriceFeedAccountDataArgs = PriceFeedAccountDataArgs; declare const index$4_deserializePriceFeed: typeof deserializePriceFeed; declare const index$4_fetchAllPriceFeed: typeof fetchAllPriceFeed; declare const index$4_fetchPriceFeed: typeof fetchPriceFeed; declare const index$4_getPriceFeedAccountDataSerializer: typeof getPriceFeedAccountDataSerializer; declare const index$4_getPriceFeedGpaBuilder: typeof getPriceFeedGpaBuilder; declare const index$4_safeFetchAllPriceFeed: typeof safeFetchAllPriceFeed; declare const index$4_safeFetchPriceFeed: typeof safeFetchPriceFeed; declare namespace index$4 { export { type PriceFeed$1 as PriceFeed, type index$4_PriceFeedAccountData as PriceFeedAccountData, type index$4_PriceFeedAccountDataArgs as PriceFeedAccountDataArgs, index$4_deserializePriceFeed as deserializePriceFeed, index$4_fetchAllPriceFeed as fetchAllPriceFeed, index$4_fetchPriceFeed as fetchPriceFeed, index$4_getPriceFeedAccountDataSerializer as getPriceFeedAccountDataSerializer, index$4_getPriceFeedGpaBuilder as getPriceFeedGpaBuilder, index$4_safeFetchAllPriceFeed as safeFetchAllPriceFeed, index$4_safeFetchPriceFeed as safeFetchPriceFeed }; } /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ /** TooManyUpdaters */ declare class TooManyUpdatersError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidUpdater */ declare class InvalidUpdaterError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** NotFound */ declare class NotFoundError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** InvalidSize */ declare class InvalidSizeError extends ProgramError { readonly name: string; readonly code: number; constructor(program: Program, cause?: Error); } /** * Attempts to resolve a custom program error from the provided error code. * @category Errors */ declare function getPricefeedErrorFromCode(code: number, program: Program, cause?: Error): ProgramError | null; /** * Attempts to resolve a custom program error from the provided error name, i.e. 'Unauthorized'. * @category Errors */ declare function getPricefeedErrorFromName(name: string, program: Program, cause?: Error): ProgramError | null; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type index$3_InvalidSizeError = InvalidSizeError; declare const index$3_InvalidSizeError: typeof InvalidSizeError; type index$3_InvalidUpdaterError = InvalidUpdaterError; declare const index$3_InvalidUpdaterError: typeof InvalidUpdaterError; type index$3_NotFoundError = NotFoundError; declare const index$3_NotFoundError: typeof NotFoundError; type index$3_TooManyUpdatersError = TooManyUpdatersError; declare const index$3_TooManyUpdatersError: typeof TooManyUpdatersError; declare const index$3_getPricefeedErrorFromCode: typeof getPricefeedErrorFromCode; declare const index$3_getPricefeedErrorFromName: typeof getPricefeedErrorFromName; declare namespace index$3 { export { index$3_InvalidSizeError as InvalidSizeError, index$3_InvalidUpdaterError as InvalidUpdaterError, index$3_NotFoundError as NotFoundError, index$3_TooManyUpdatersError as TooManyUpdatersError, index$3_getPricefeedErrorFromCode as getPricefeedErrorFromCode, index$3_getPricefeedErrorFromName as getPricefeedErrorFromName }; } /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type ExtendPriceFeedInstructionAccounts = { admin: Signer; priceFeed: PublicKey | Pda; systemProgram?: PublicKey | Pda; }; type ExtendPriceFeedInstructionData = { discriminator: Uint8Array; }; type ExtendPriceFeedInstructionDataArgs = {}; declare function getExtendPriceFeedInstructionDataSerializer(): Serializer; declare function extendPriceFeed(context: Pick, input: ExtendPriceFeedInstructionAccounts): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type GetFeeInstructionAccounts = { priceFeed: PublicKey | Pda; }; type GetFeeInstructionData = { discriminator: Uint8Array; dstEid: number; calldataSize: bigint; totalGas: bigint; }; type GetFeeInstructionDataArgs = { dstEid: number; calldataSize: number | bigint; totalGas: number | bigint; }; declare function getGetFeeInstructionDataSerializer(): Serializer; type GetFeeInstructionArgs = GetFeeInstructionDataArgs; declare function getFee(context: Pick, input: GetFeeInstructionAccounts & GetFeeInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type InitPriceFeedInstructionAccounts = { payer?: Signer; priceFeed: PublicKey | Pda; systemProgram?: PublicKey | Pda; }; type InitPriceFeedInstructionData = { discriminator: Uint8Array; admin: PublicKey; updaters: Array; }; type InitPriceFeedInstructionDataArgs = { admin: PublicKey; updaters: Array; }; declare function getInitPriceFeedInstructionDataSerializer(): Serializer; type InitPriceFeedInstructionArgs = InitPriceFeedInstructionDataArgs; declare function initPriceFeed(context: Pick, input: InitPriceFeedInstructionAccounts & InitPriceFeedInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type SetPriceInstructionAccounts = { updater: Signer; priceFeed: PublicKey | Pda; }; type SetPriceInstructionData = { discriminator: Uint8Array; dstEid: number; params: Option; }; type SetPriceInstructionDataArgs = { dstEid: number; params: OptionOrNullable; }; declare function getSetPriceInstructionDataSerializer(): Serializer; type SetPriceInstructionArgs = SetPriceInstructionDataArgs; declare function setPrice(context: Pick, input: SetPriceInstructionAccounts & SetPriceInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type SetPriceFeedInstructionAccounts = { admin: Signer; priceFeed: PublicKey | Pda; }; type SetPriceFeedInstructionData = { discriminator: Uint8Array; updaters: Array; priceRatioDenominator: bigint; arbitrumCompressionPercent: bigint; }; type SetPriceFeedInstructionDataArgs = { updaters: Array; priceRatioDenominator: number | bigint; arbitrumCompressionPercent: number | bigint; }; declare function getSetPriceFeedInstructionDataSerializer(): Serializer; type SetPriceFeedInstructionArgs = SetPriceFeedInstructionDataArgs; declare function setPriceFeed(context: Pick, input: SetPriceFeedInstructionAccounts & SetPriceFeedInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type SetSolPriceInstructionAccounts = { updater: Signer; priceFeed: PublicKey | Pda; }; type SetSolPriceInstructionData = { discriminator: Uint8Array; nativeTokenPriceUsd: Option; }; type SetSolPriceInstructionDataArgs = { nativeTokenPriceUsd: OptionOrNullable; }; declare function getSetSolPriceInstructionDataSerializer(): Serializer; type SetSolPriceInstructionArgs = SetSolPriceInstructionDataArgs; declare function setSolPrice(context: Pick, input: SetSolPriceInstructionAccounts & SetSolPriceInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type TransferAdminInstructionAccounts = { admin: Signer; priceFeed: PublicKey | Pda; }; type TransferAdminInstructionData = { discriminator: Uint8Array; admin: PublicKey; }; type TransferAdminInstructionDataArgs = { admin: PublicKey; }; declare function getTransferAdminInstructionDataSerializer(): Serializer; type TransferAdminInstructionArgs = TransferAdminInstructionDataArgs; declare function transferAdmin(context: Pick, accounts: TransferAdminInstructionAccounts, args: TransferAdminInstructionArgs): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type index$2_ExtendPriceFeedInstructionAccounts = ExtendPriceFeedInstructionAccounts; type index$2_ExtendPriceFeedInstructionData = ExtendPriceFeedInstructionData; type index$2_ExtendPriceFeedInstructionDataArgs = ExtendPriceFeedInstructionDataArgs; type index$2_GetFeeInstructionAccounts = GetFeeInstructionAccounts; type index$2_GetFeeInstructionArgs = GetFeeInstructionArgs; type index$2_GetFeeInstructionData = GetFeeInstructionData; type index$2_GetFeeInstructionDataArgs = GetFeeInstructionDataArgs; type index$2_InitPriceFeedInstructionAccounts = InitPriceFeedInstructionAccounts; type index$2_InitPriceFeedInstructionArgs = InitPriceFeedInstructionArgs; type index$2_InitPriceFeedInstructionData = InitPriceFeedInstructionData; type index$2_InitPriceFeedInstructionDataArgs = InitPriceFeedInstructionDataArgs; type index$2_SetPriceFeedInstructionAccounts = SetPriceFeedInstructionAccounts; type index$2_SetPriceFeedInstructionArgs = SetPriceFeedInstructionArgs; type index$2_SetPriceFeedInstructionData = SetPriceFeedInstructionData; type index$2_SetPriceFeedInstructionDataArgs = SetPriceFeedInstructionDataArgs; type index$2_SetPriceInstructionAccounts = SetPriceInstructionAccounts; type index$2_SetPriceInstructionArgs = SetPriceInstructionArgs; type index$2_SetPriceInstructionData = SetPriceInstructionData; type index$2_SetPriceInstructionDataArgs = SetPriceInstructionDataArgs; type index$2_SetSolPriceInstructionAccounts = SetSolPriceInstructionAccounts; type index$2_SetSolPriceInstructionArgs = SetSolPriceInstructionArgs; type index$2_SetSolPriceInstructionData = SetSolPriceInstructionData; type index$2_SetSolPriceInstructionDataArgs = SetSolPriceInstructionDataArgs; type index$2_TransferAdminInstructionAccounts = TransferAdminInstructionAccounts; type index$2_TransferAdminInstructionArgs = TransferAdminInstructionArgs; type index$2_TransferAdminInstructionData = TransferAdminInstructionData; type index$2_TransferAdminInstructionDataArgs = TransferAdminInstructionDataArgs; declare const index$2_extendPriceFeed: typeof extendPriceFeed; declare const index$2_getExtendPriceFeedInstructionDataSerializer: typeof getExtendPriceFeedInstructionDataSerializer; declare const index$2_getFee: typeof getFee; declare const index$2_getGetFeeInstructionDataSerializer: typeof getGetFeeInstructionDataSerializer; declare const index$2_getInitPriceFeedInstructionDataSerializer: typeof getInitPriceFeedInstructionDataSerializer; declare const index$2_getSetPriceFeedInstructionDataSerializer: typeof getSetPriceFeedInstructionDataSerializer; declare const index$2_getSetPriceInstructionDataSerializer: typeof getSetPriceInstructionDataSerializer; declare const index$2_getSetSolPriceInstructionDataSerializer: typeof getSetSolPriceInstructionDataSerializer; declare const index$2_getTransferAdminInstructionDataSerializer: typeof getTransferAdminInstructionDataSerializer; declare const index$2_initPriceFeed: typeof initPriceFeed; declare const index$2_setPrice: typeof setPrice; declare const index$2_setPriceFeed: typeof setPriceFeed; declare const index$2_setSolPrice: typeof setSolPrice; declare const index$2_transferAdmin: typeof transferAdmin; declare namespace index$2 { export { type index$2_ExtendPriceFeedInstructionAccounts as ExtendPriceFeedInstructionAccounts, type index$2_ExtendPriceFeedInstructionData as ExtendPriceFeedInstructionData, type index$2_ExtendPriceFeedInstructionDataArgs as ExtendPriceFeedInstructionDataArgs, type index$2_GetFeeInstructionAccounts as GetFeeInstructionAccounts, type index$2_GetFeeInstructionArgs as GetFeeInstructionArgs, type index$2_GetFeeInstructionData as GetFeeInstructionData, type index$2_GetFeeInstructionDataArgs as GetFeeInstructionDataArgs, type index$2_InitPriceFeedInstructionAccounts as InitPriceFeedInstructionAccounts, type index$2_InitPriceFeedInstructionArgs as InitPriceFeedInstructionArgs, type index$2_InitPriceFeedInstructionData as InitPriceFeedInstructionData, type index$2_InitPriceFeedInstructionDataArgs as InitPriceFeedInstructionDataArgs, type index$2_SetPriceFeedInstructionAccounts as SetPriceFeedInstructionAccounts, type index$2_SetPriceFeedInstructionArgs as SetPriceFeedInstructionArgs, type index$2_SetPriceFeedInstructionData as SetPriceFeedInstructionData, type index$2_SetPriceFeedInstructionDataArgs as SetPriceFeedInstructionDataArgs, type index$2_SetPriceInstructionAccounts as SetPriceInstructionAccounts, type index$2_SetPriceInstructionArgs as SetPriceInstructionArgs, type index$2_SetPriceInstructionData as SetPriceInstructionData, type index$2_SetPriceInstructionDataArgs as SetPriceInstructionDataArgs, type index$2_SetSolPriceInstructionAccounts as SetSolPriceInstructionAccounts, type index$2_SetSolPriceInstructionArgs as SetSolPriceInstructionArgs, type index$2_SetSolPriceInstructionData as SetSolPriceInstructionData, type index$2_SetSolPriceInstructionDataArgs as SetSolPriceInstructionDataArgs, type index$2_TransferAdminInstructionAccounts as TransferAdminInstructionAccounts, type index$2_TransferAdminInstructionArgs as TransferAdminInstructionArgs, type index$2_TransferAdminInstructionData as TransferAdminInstructionData, type index$2_TransferAdminInstructionDataArgs as TransferAdminInstructionDataArgs, index$2_extendPriceFeed as extendPriceFeed, index$2_getExtendPriceFeedInstructionDataSerializer as getExtendPriceFeedInstructionDataSerializer, index$2_getFee as getFee, index$2_getGetFeeInstructionDataSerializer as getGetFeeInstructionDataSerializer, index$2_getInitPriceFeedInstructionDataSerializer as getInitPriceFeedInstructionDataSerializer, index$2_getSetPriceFeedInstructionDataSerializer as getSetPriceFeedInstructionDataSerializer, index$2_getSetPriceInstructionDataSerializer as getSetPriceInstructionDataSerializer, index$2_getSetSolPriceInstructionDataSerializer as getSetSolPriceInstructionDataSerializer, index$2_getTransferAdminInstructionDataSerializer as getTransferAdminInstructionDataSerializer, index$2_initPriceFeed as initPriceFeed, index$2_setPrice as setPrice, index$2_setPriceFeed as setPriceFeed, index$2_setSolPrice as setSolPrice, index$2_transferAdmin as transferAdmin }; } /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ declare const PRICEFEED_PROGRAM_ID: PublicKey<"8ahPGPjEbpgGaZx2NV1iG5Shj7TDwvsjkEDcGWjt94TP">; /** * Class representing the PriceFeed. */ declare class PriceFeed { readonly programId: PublicKey; readonly pda: PriceFeedPDA; readonly programRepo: ProgramRepositoryInterface; constructor(programId?: PublicKey, rpc?: RpcInterface); getProgram(clusterFilter?: ClusterFilter): Program; initPriceFeed(payer: Signer, param: InitPriceFeedInstructionDataArgs): WrappedInstruction; setPriceFeed(admin: Signer, param: SetPriceFeedInstructionArgs): WrappedInstruction; setPrice(updater: Signer, param: { dstEid: number; } & OptionOrNullable): WrappedInstruction; setSolPrice(updater: Signer, nativeTokenPriceUsd: OptionOrNullable): WrappedInstruction; transferAdmin(admin: Signer, newAdmin: PublicKey): WrappedInstruction; getFee(param: GetFeeInstructionArgs): WrappedInstruction; /** * Retrieves the price feed account. * * @param {RpcInterface} rpc - The Solana connection object. * @param {Commitment} [commitment] - Optional commitment or configuration. * * @returns {Promise} The price feed account or null if not found. */ getPriceFeed(rpc: RpcInterface, commitment?: Commitment): Promise; } declare const pricefeed_PRICEFEED_PROGRAM_ID: typeof PRICEFEED_PROGRAM_ID; type pricefeed_PriceFeed = PriceFeed; declare const pricefeed_PriceFeed: typeof PriceFeed; declare namespace pricefeed { export { pricefeed_PRICEFEED_PROGRAM_ID as PRICEFEED_PROGRAM_ID, pricefeed_PriceFeed as PriceFeed, index$4 as accounts, index$3 as errors, index$2 as instructions, index$5 as types }; } /** * Extracts the sent packet event by transaction hash. * * @param {web3.Connection | RpcInterface} connection - The connection to the Solana cluster. * @param {PublicKey | web3.PublicKey} program - The program public key. * @param {web3.TransactionSignature | web3.ParsedTransactionWithMeta | null} signature - The transaction signature or parsed transaction. * @param {web3.Finality | web3.GetVersionedTransactionConfig} [commitment] - The commitment level. * @param {boolean} [unsafeParseErr=false] - Whether to parse the event even if the transaction failed. * @returns {Promise} A promise that resolves to an array of sent packet events or null if not found. */ declare function extractPacketSentEventByTxHash(connection: web3.Connection | RpcInterface, program: PublicKey | web3.PublicKey, signature: web3.TransactionSignature | web3.ParsedTransactionWithMeta | null, commitment?: web3.Finality | web3.GetVersionedTransactionConfig, unsafeParseErr?: boolean): Promise; /** * Extracts the verified packet event by transaction hash. * * @param {Connection} connection - The connection to the Solana cluster. * @param {PublicKey} program - The program public key. * @param {TransactionSignature | Awaited>} signature - The transaction signature or parsed transaction. * @param {Finality | GetVersionedTransactionConfig} [commitment] - The commitment level. * @param {boolean} [unsafeParseErr=false] - Whether to parse the event even if the transaction failed. * @returns {Promise} A promise that resolves to an array of verified packet events or null if not found. */ declare function extractVerifiedPacketEventByTxHash(connection: web3.Connection | RpcInterface, program: PublicKey | web3.PublicKey, signature: web3.TransactionSignature | web3.ParsedTransactionWithMeta | null, commitment?: web3.Finality | web3.GetVersionedTransactionConfig, unsafeParseErr?: boolean): Promise; /** * Extracts the received packet event by transaction hash. * * @param {Connection} connection - The connection to the Solana cluster. * @param {PublicKey} program - The program public key. * @param {TransactionSignature | Awaited>} signature - The transaction signature or parsed transaction. * @param {Finality | GetVersionedTransactionConfig} [commitment] - The commitment level. * @param {boolean} [unsafeParseErr=false] - Whether to parse the event even if the transaction failed. * @returns {Promise} A promise that resolves to an array of received packet events or null if not found. */ declare function extractReceivedPacketEventByTxHash(connection: web3.Connection | RpcInterface, program: PublicKey | web3.PublicKey, signature: web3.TransactionSignature | web3.ParsedTransactionWithMeta | null, commitment?: web3.Finality | web3.GetVersionedTransactionConfig, unsafeParseErr?: boolean): Promise; /** * Extracts the compose sent event by transaction hash. * * @param {Connection} connection - The connection to the Solana cluster. * @param {PublicKey} program - The program public key. * @param {TransactionSignature | Awaited>} signature - The transaction signature or parsed transaction. * @param {Finality | GetVersionedTransactionConfig} [commitment] - The commitment level. * @param {boolean} [unsafeParseErr=false] - Whether to parse the event even if the transaction failed. * @returns {Promise} A promise that resolves to an array of compose sent events or null if not found. */ declare function extractComposeSentEventByTxHash(connection: web3.Connection | RpcInterface, program: PublicKey | web3.PublicKey, signature: web3.TransactionSignature | web3.ParsedTransactionWithMeta | null, commitment?: web3.Finality | web3.GetVersionedTransactionConfig, unsafeParseErr?: boolean): Promise; /** * Extracts the compose delivered event by transaction hash. * * @param {Connection} connection - The connection to the Solana cluster. * @param {PublicKey} program - The program public key. * @param {TransactionSignature | Awaited>} signature - The transaction signature or parsed transaction. * @param {Finality | GetVersionedTransactionConfig} [commitment] - The commitment level. * @param {boolean} [unsafeParseErr=false] - Whether to parse the event even if the transaction failed. * @returns {Promise} A promise that resolves to an array of compose delivered events or null if not found. */ declare function extractComposeDeliveredEventByTxHash(connection: web3.Connection | RpcInterface, program: PublicKey | web3.PublicKey, signature: web3.TransactionSignature | web3.ParsedTransactionWithMeta | null, commitment?: web3.Finality | web3.GetVersionedTransactionConfig, unsafeParseErr?: boolean): Promise; /** * Extracts the worker fee paid event by transaction hash. * * @param {Connection} connection - The connection to the Solana cluster. * @param {PublicKey} program - The program public key. * @param {TransactionSignature | Awaited>} signature - The transaction signature or parsed transaction. * @param {Finality | GetVersionedTransactionConfig} [commitment] - The commitment level. * @param {boolean} [unsafeParseErr=false] - Whether to parse the event even if the transaction failed. * @returns {Promise} A promise that resolves to an array of worker fee paid events or null if not found. */ declare function extractWorkerFeePaidEventByTxHash(connection: web3.Connection | RpcInterface, program: PublicKey | web3.PublicKey, signature: web3.TransactionSignature | web3.ParsedTransactionWithMeta | null, commitment?: web3.Finality | web3.GetVersionedTransactionConfig, unsafeParseErr?: boolean): Promise; /** * Extracts events from a transaction signature. * * @param {Connection} connection - The connection to the Solana cluster. * @param {PublicKey} program - The program public key, extract event from specific program id * @param {TransactionSignature | Awaited>} signature - The transaction signature(tx hash) or parsed transaction. * @param {beet.FixableBeetArgsStruct | beet.BeetArgsStruct} eventBeet - The beet struct for the event. * @param {Finality | GetVersionedTransactionConfig} [commitment] - The commitment level. * @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. * @returns {Promise} A promise that resolves to an array of events or null if not found. */ declare function extractEventFromTransactionSignature(rpc: web3.Connection | RpcInterface, _program: PublicKey | web3.PublicKey, signature: web3.TransactionSignature | web3.ParsedTransactionWithMeta | null, serializer: Serializer, commitment?: web3.Finality | web3.GetVersionedTransactionConfig, unsafeParseErr?: boolean): Promise; /** * Generates an address lookup table. * * @param {Connection} connection - The connection to the Solana cluster. * @param {PublicKey} payer - The payer public key. * @param {PublicKey} authority - The authority public key. * @param {PublicKey[]} addresses - The addresses to include in the lookup table. * @returns {Promise<{ instructions: TransactionInstruction[]; address: PublicKey }>} A promise that resolves to the instructions and lookup table address. */ declare function generateAddressLookupTable(connection: web3.Connection, payer: web3.PublicKey, authority: web3.PublicKey, addresses: web3.PublicKey[]): Promise<{ instructions: web3.TransactionInstruction[]; address: web3.PublicKey; }>; /** * Deactivates an address lookup table. * To properly terminate the lookup table, it is advisable to initially invoke `deactivateLookupTable`, * pause for a duration of 500 blocks, and subsequently invoke `closeLookupTable`. * * @param {web3.PublicKey} authority - The authority public key. * @param {web3.PublicKey} lookupTable - The lookup table public key. * @returns {web3.TransactionInstruction} The transaction instruction. */ declare function deactivateLookupTable(authority: web3.PublicKey, lookupTable: web3.PublicKey): web3.TransactionInstruction; /** * Closes an address lookup table. * To properly terminate the lookup table, it is advisable to initially invoke `deactivateLookupTable`, * pause for a duration of 500 blocks, and subsequently invoke `closeLookupTable`. * * @param {PublicKey} recipient - The recipient public key. * @param {PublicKey} authority - The authority public key. * @param {PublicKey} lookupTable - The lookup table public key. * @returns {TransactionInstruction} The transaction instruction. */ declare function closeLookupTable(recipient: web3.PublicKey, authority: web3.PublicKey, lookupTable: web3.PublicKey): web3.TransactionInstruction; /** * Creates a versioned transaction with an address lookup table. * * @param {Connection} connection - The connection to the Solana cluster. * @param {PublicKey} payer - The payer public key. * @param {TransactionInstruction[]} instructions - The transaction instructions. * @param {Blockhash} [recentBlockHash] - The recent block hash. * @param {PublicKey} [_tableAddrs] - The array of address lookup table public keys. * @returns {Promise} A promise that resolves to the versioned transaction. */ declare function txWithAddressLookupTable(connection: web3.Connection, payer: web3.PublicKey, instructions: web3.TransactionInstruction[], recentBlockHash?: web3.Blockhash, _tableAddrs?: web3.PublicKey | web3.PublicKey[]): Promise; /** * Creates a nonce account transaction. * * @param {Connection} connection - The connection to the Solana cluster. * @param {PublicKey} auth - The authorized public key. * @param {number} [lamportsForRent] - The lamports for rent. * @returns {Promise<{ tx: Transaction; nonceAccount: Keypair }>} A promise that resolves to the transaction and nonce account. */ declare function createNonceAccountTX(connection: web3.Connection, auth: web3.PublicKey, lamportsForRent?: number): Promise<{ tx: web3.Transaction; nonceAccount: web3.Keypair; }>; /** * Creates a transaction with a nonce. * * @param {Connection} connection - The connection to the Solana cluster. * @param {PublicKey} noncePubkey - The nonce public key. * @param {TransactionInstruction[]} instructions - The transaction instructions. * @param {NonceAccount} [nonceInfo] - The nonce account information. * @returns {Promise} A promise that resolves to the transaction or null if not found. */ declare function txWithNonce(connection: web3.Connection, noncePubkey: web3.PublicKey, instructions: web3.TransactionInstruction[], nonceInfo?: web3.NonceAccount): Promise; /** * Checks if an account is initialized. * * @param {Connection} connection - The connection to the Solana cluster. * @param {PublicKey} account - The account public key. * @param {Commitment | GetAccountInfoConfig} [commitmentOrConfig] - The commitment level or account info configuration. * @returns {Promise} A promise that resolves to true if the account is initialized, false otherwise. */ declare function isAccountInitialized(connection: web3.Connection, account: web3.PublicKey, commitmentOrConfig?: web3.Commitment | web3.GetAccountInfoConfig): Promise; /** * Builds a version 0 message. * * @param {Connection} connection - The connection to the Solana cluster. * @param {PublicKey} payerKey - The payer public key. * @param {TransactionInstruction[]} instructions - The transaction instructions. * @param {Commitment | GetAccountInfoConfig} [commitmentOrConfig='confirmed'] - The commitment level or account info configuration. * @param {Blockhash} [blockhash] - The blockhash. * @returns {Promise} A promise that resolves to the version 0 message. */ declare function buildMessageV0(connection: web3.Connection, payerKey: web3.PublicKey, instructions: web3.TransactionInstruction[], commitmentOrConfig?: web3.Commitment | web3.GetAccountInfoConfig, blockhash?: web3.Blockhash): Promise; /** * Builds a versioned transaction. * * @param {Connection} connection - The connection to the Solana cluster. * @param {PublicKey} payerKey - The payer public key. * @param {TransactionInstruction[]} instructions - The transaction instructions. * @param {Commitment | GetAccountInfoConfig} [commitmentOrConfig='confirmed'] - The commitment level or account info configuration. * @param {Blockhash} [blockhash] - The blockhash. * @param {PublicKey} [lookupTableAddresses] - The array of lookup table addresses. * @returns {Promise} A promise that resolves to the versioned transaction. */ declare function buildVersionedTransaction(connection: web3.Connection, payerKey: web3.PublicKey, instructions: web3.TransactionInstruction[], commitmentOrConfig?: web3.Commitment | web3.GetAccountInfoConfig, blockhash?: web3.Blockhash, lookupTableAddresses?: web3.PublicKey | web3.PublicKey[]): Promise; /** * Generates an instruction discriminator. * * @param {string} method - The method name. * @returns {Buffer} The instruction discriminator. */ declare function instructionDiscriminator(method: string): Buffer; /** * Simulates a transaction. * * @param {string | web3.Connection | RpcInterface} _connection - The connection to the Solana cluster. * @param {web3.TransactionInstruction[] | WrappedInstruction[] | Instruction[]} _instructions - The transaction instructions. * @param {web3.PublicKey | PublicKey} _programId - The program public key. * @param {web3.PublicKey | PublicKey} _payer - The payer public key. * @param {Serializer} serializer - The serializer. * @param {web3.Commitment} [commitment='confirmed'] - The commitment level. * @param {web3.Blockhash} [blockhash] - The blockhash. * @param {web3.PublicKey | PublicKey} [_lookupTableAddresses] - The array of lookup table addresses. * @returns {Promise} A promise that resolves to the simulation result. * @throws {Error} If the simulation fails. */ declare function simulateWeb3JsTransaction(_connection: string | web3.Connection | RpcInterface, _instructions: web3.TransactionInstruction[] | WrappedInstruction[] | Instruction[], _programId: web3.PublicKey | PublicKey, _payer: web3.PublicKey | PublicKey, serializer: Serializer, commitment?: web3.Commitment, blockhash?: web3.Blockhash, _lookupTableAddresses?: web3.PublicKey | PublicKey | web3.PublicKey[] | PublicKey[]): Promise; declare function toWeb3Connection(rpc: RpcInterface | web3.Connection): web3.Connection; /** * Array of IDL types. */ declare const idlTypes: string[]; /** * Array of message libraries. */ declare const messageLibs: string[]; /** * Faucet URLs for different environments. */ declare const FAUCET_URL: { [env in Environment]: string; }; /** * Offset for message type. */ declare const MSG_TYPE_OFFSET = 0; /** * Enum representing different message types. */ declare enum MessageType { /** * Vanilla message type. */ VANILLA = 1, /** * Composed message type. */ COMPOSED_TYPE = 2, /** * ABA message type. */ ABA = 3 } /** * Interface representing the parameters for LzReceive. */ interface LzReceiveParams { /** * Source EID. */ srcEid: number; /** * Sender address (size: 32). */ sender: Uint8Array; nonce: bigint; /** * GUID (size: 32). */ guid: Uint8Array; /** * Message content. */ message: Uint8Array; /** * Caller parameters. */ callerParams: Uint8Array; } interface LzReceiveParamsArgs { srcEid: number; sender: Uint8Array; nonce: number | bigint; guid: Uint8Array; message: Uint8Array; callerParams: Uint8Array; } declare function getLzReceiveParamsSerializer(): Serializer; /** * pub from: Pubkey, pub to: Pubkey, pub guid: [u8; 32], pub index: u16, pub message: Vec, pub extra_data: Vec, **/ /** * Interface representing the parameters for LzCompose. */ interface LzComposeParams { /** * Sender public key. */ from: PublicKey; /** * Recipient public key. */ to: PublicKey; /** * GUID (size: 32). */ guid: Uint8Array; /** * Index value. */ index: number; /** * Message content. */ message: Uint8Array; /** * Extra data. */ extraData: Uint8Array; } declare function getLzComposeParamsSerializer(): Serializer; /** * Interface representing an LzReceive account. */ interface LzReceiveAccount { /** * Public key of the account. */ pubkey: PublicKey; /** * Indicates if the account is a signer. */ isSigner: boolean; /** * Indicates if the account is writable. */ isWritable: boolean; } declare function getLzReceiveAccountSerializer(): Serializer; /** * Enum representing different executor option types. */ declare enum ExecutorOptionType { /** * Placeholder option type. */ PlaceHolder = 0, /** * LzReceive option type. */ LzReceive = 1, /** * NativeDrop option type. */ NativeDrop = 2, /** * LzCompose option type. */ LzCompose = 3, /** * OrderExecution option type. */ OrderExecution = 4 } /** * Maximum length for executor option types. */ declare const MaxExecutorOptionTypeLength = 10; interface LzReceiveTypesV2Accounts { accounts: PublicKey[]; } interface LzComposeTypesV2Accounts { accounts: PublicKey[]; } type AddressLocator = { __kind: 'Address'; fields: [PublicKey]; } | { __kind: 'AltIndex'; fields: [number, number]; } | { __kind: 'Payer'; } | { __kind: 'Signer'; fields: [number]; } | { __kind: 'Context'; }; interface AccountMetaRef { pubkey: AddressLocator; isWritable: boolean; } type InstructionForLzReceive = { __kind: 'LzReceive'; accounts: AccountMetaRef[]; } | { __kind: 'Standard'; programId: PublicKey; accounts: AccountMetaRef[]; data: Uint8Array; }; type InstructionForLzCompose = { __kind: 'LzCompose'; accounts: AccountMetaRef[]; } | { __kind: 'Standard'; programId: PublicKey; accounts: AccountMetaRef[]; data: Uint8Array; }; interface LzReceiveTypesV2Result { contextVersion: number; alts: PublicKey[]; instructions: InstructionForLzReceive[]; } interface LzComposeTypesV2Result { contextVersion: number; alts: PublicKey[]; instructions: InstructionForLzCompose[]; } declare function getAddressLocatorSerializer(): Serializer; declare function getLzReceiveTypesV2AccountsSerializer(): Serializer; declare function getLzComposeTypesV2AccountsSerializer(): Serializer; declare function getAccountMetaRefSerializer(): Serializer; declare function getInstructionForLzReceiveSerializer(): Serializer; declare function getInstructionForLzComposeSerializer(): Serializer; declare function getLzReceiveTypesV2ResultSerializer(): Serializer; declare function getLzComposeTypesV2ResultSerializer(): Serializer; declare function addressLocator(kind: 'Payer'): GetDataEnumKind; declare function addressLocator(kind: 'Signer', data: GetDataEnumKindContent['fields']): GetDataEnumKind; declare function addressLocator(kind: 'Address', data: GetDataEnumKindContent['fields']): GetDataEnumKind; declare function addressLocator(kind: 'AltIndex', data: GetDataEnumKindContent['fields']): GetDataEnumKind; declare function isAddressLocator(kind: K, value: AddressLocator): value is AddressLocator & { __kind: K; }; /** * Retrieves the instructions and signers required for the LzCompose instruction (V2). * This is used for lz_compose_types version 2. */ declare function buildLzComposeExecutionPlan(rpc: RpcInterface, executorProgram: PublicKey, payer: PublicKey, to: PublicKey, composerProgram: PublicKey, params: LzComposeParams, composeTypesAccounts?: LzComposeTypesV2Accounts, commitment?: Commitment): Promise<{ contextVersion: number; signers: KeypairSigner[]; instructions: Instruction[]; addressLookupTables: AddressLookupTableInput[]; }>; /** * Fetches the metadata for lz_compose_types (versioned, V2). * This reads the PDA account and deserializes the version, alts, and accounts. */ declare function getLzComposeTypesInfo(rpc: RpcInterface, payer: PublicKey, to: PublicKey, composerProgram: PublicKey, params: LzComposeParams, commitment?: Commitment): Promise; /** * Retrieves the instructions and signers required for the LzReceive instruction (V2). * This is used for lz_receive_types version 2. */ declare function buildLzReceiveExecutionPlan(rpc: RpcInterface, executorProgram: PublicKey, payer: PublicKey, receiver: PublicKey, receiverProgram: PublicKey, params: LzReceiveParams, receiveTypesAccounts?: LzReceiveTypesV2Accounts, commitment?: Commitment): Promise<{ contextVersion: number; signers: KeypairSigner[]; instructions: Instruction[]; addressLookupTables: AddressLookupTableInput[]; }>; /** * Fetches the metadata for lz_receive_types (versioned, V2). * This reads the PDA account and deserializes the version, alts, and accounts. */ declare function getLzReceiveTypesInfo(rpc: RpcInterface, payer: PublicKey, receiver: PublicKey, receiverProgram: PublicKey, params: LzReceiveParams, commitment?: Commitment): Promise; /** * Unified entry point for receiving a LayerZero message on Solana. * This function automatically detects the lz_receive_types version and dispatches to the correct logic. * * For V1: returns a single Instruction (legacy behavior). * For V2: returns { signers, instructions } for multi-instruction atomic execution. */ declare function lzReceive(rpc: RpcInterface, payer: PublicKey, packet: Pick, callerParams?: Uint8Array, executorProgram?: PublicKey, commitment?: Commitment): Promise<{ instruction: Instruction; contextVersion: number; } | ReturnType>; /** * Unified entry point for composing a LayerZero message on Solana. * This function automatically detects the lz_compose_types version and dispatches to the correct logic. * * For V1: returns a single Instruction (legacy behavior). * For V2: returns { signers, instructions } for multi-instruction atomic execution. */ declare function lzCompose(rpc: RpcInterface, payer: PublicKey, event: ComposeSentEvent, extraData?: Uint8Array, executorProgram?: PublicKey, commitment?: Commitment): Promise<{ instruction: Instruction; contextVersion: number; } | ReturnType>; /** * Get the accounts required for lz_receive by querying lz_receive_types_v1. */ declare function getLzReceiveAccountsFromTypesV1(rpc: RpcInterface, payer: PublicKey, receiver: PublicKey, receiverProgram: PublicKey, params: LzReceiveParams, commitment?: Commitment): Promise; /** * Get the accounts required for lz_compose by querying lz_compose_types_v1. */ declare function getLzComposeAccountsFromTypesV1(rpc: RpcInterface, payer: PublicKey, to: PublicKey, composerProgram: PublicKey, params: LzComposeParams, commitment?: Commitment): Promise; /** * Supported programs. */ type SupportedPrograms = 'endpoint' | 'simple_messagelib' | 'uln' | 'blocked_messagelib' | 'executor' | 'pricefeed' | 'dvn'; /** * Interface representing a deployment. */ interface Deployment { /** * The name of the supported program. */ name: SupportedPrograms; /** * The network of the deployment. */ network: Network; /** * The address of the deployment. */ address: string; /** * Compatible versions of the deployment. */ compatibleVersions: string[]; /** * The deployer of the deployment. */ deployer: string; } /** * Gets the program keypair. * * @param {Network | 'default'} network - The network. * @param {SupportedPrograms} program - The supported program. * @returns {PublicKey} The public key of the program. */ declare function getProgramKeypair(network: Network | 'default', program: SupportedPrograms): PublicKey; /** * Gets the endpoint program ID. * * @param {Network | 'default'} network - The network. * @returns {PublicKey} The public key of the endpoint program. */ declare function getEndpointProgramId(network: Network | 'default'): PublicKey; /** * Gets the simple message library program ID. * * @param {Network | 'default'} network - The network. * @returns {PublicKey} The public key of the simple message library program. */ declare function getSimpleMessageLibProgramId(network: Network | 'default'): PublicKey; /** * Gets the ULN program ID. * * @param {Network | 'default'} network - The network. * @returns {PublicKey} The public key of the ULN program. */ declare function getULNProgramId(network: Network | 'default'): PublicKey; /** * Gets the DVN program ID. * * @param {Network | 'default'} network - The network. * @returns {PublicKey} The public key of the DVN program. */ declare function getDVNProgramId(network: Network | 'default'): PublicKey; /** * Gets the blocked message library program ID. * * @param {Network | 'default'} network - The network. * @returns {PublicKey} The public key of the blocked message library program. */ declare function getBlockedMessageLibProgramId(network: Network | 'default'): PublicKey; /** * Gets the executor program ID. * * @param {Network | 'default'} network - The network. * @returns {PublicKey} The public key of the executor program. */ declare function getExecutorProgramId(network: Network | 'default'): PublicKey; /** * Gets the pricefeed program ID. * * @param {Network | 'default'} network - The network. * @returns {PublicKey} The public key of the pricefeed program. */ declare function getPricefeedProgramId(network: Network | 'default'): PublicKey; interface NextNonceInstructionData { discriminator: Uint8Array; srcEid: number; sender: Uint8Array; receiver: PublicKey; } interface NextNonceInstructionDataArgs { srcEid: number; sender: Uint8Array; receiver: PublicKey; } declare function getNextNonceInstructionDataSerializer(): Serializer; declare function nextNonce(rpc: RpcInterface | web3.Connection, payer: PublicKey | web3.PublicKey, packet: Pick, commitment?: Commitment): Promise; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ /** * Attempts to resolve a custom program error from the provided error code. * @category Errors */ declare function getBlockedMessagelibErrorFromCode(code: number, program: Program, cause?: Error): ProgramError | null; /** * Attempts to resolve a custom program error from the provided error name, i.e. 'Unauthorized'. * @category Errors */ declare function getBlockedMessagelibErrorFromName(name: string, program: Program, cause?: Error): ProgramError | null; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ type VersionInstructionData = { discriminator: Uint8Array; }; type VersionInstructionDataArgs = {}; declare function getVersionInstructionDataSerializer(): Serializer; declare function version(context: Pick): TransactionBuilder; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ declare const BLOCKED_MESSAGELIB_PROGRAM_ID: PublicKey<"2XrYqmhBMPJgDsb4SVbjV1PnJBprurd5bzRCkHwiFCJB">; declare function createBlockedMessagelibProgram(): Program; declare function getBlockedMessagelibProgram(context: Pick, clusterFilter?: ClusterFilter): T; declare function getBlockedMessagelibProgramId(context: Pick, clusterFilter?: ClusterFilter): PublicKey; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ /** * Transforms the given object such that the given keys are optional. * @internal */ type PickPartial = Omit & Partial>; /** * Asserts that the given value is not null or undefined. * @internal */ declare function expectSome(value: T | null | undefined): T; /** * Asserts that the given value is a PublicKey. * @internal */ declare function expectPublicKey(value: PublicKey | Pda | Signer | null | undefined): PublicKey; /** * Asserts that the given value is a PDA. * @internal */ declare function expectPda(value: PublicKey | Pda | Signer | null | undefined): Pda; /** * Defines an instruction account to resolve. * @internal */ type ResolvedAccount = { isWritable: boolean; value: T; }; /** * Defines a set of instruction account to resolve. * @internal */ type ResolvedAccounts = Record; /** * Defines a set of instruction account to resolve with their indices. * @internal */ type ResolvedAccountsWithIndices = Record; /** * Get account metas and signers from resolved accounts. * @internal */ declare function getAccountMetasAndSigners(accounts: ResolvedAccount[], optionalAccountStrategy: 'omitted' | 'programId', programId: PublicKey): [AccountMeta[], Signer[]]; /** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/kinobi-so/kinobi */ declare const index$1_BLOCKED_MESSAGELIB_PROGRAM_ID: typeof BLOCKED_MESSAGELIB_PROGRAM_ID; type index$1_PickPartial = PickPartial; type index$1_ResolvedAccount = ResolvedAccount; type index$1_ResolvedAccounts = ResolvedAccounts; type index$1_ResolvedAccountsWithIndices = ResolvedAccountsWithIndices; type index$1_VersionInstructionData = VersionInstructionData; type index$1_VersionInstructionDataArgs = VersionInstructionDataArgs; declare const index$1_createBlockedMessagelibProgram: typeof createBlockedMessagelibProgram; declare const index$1_expectPda: typeof expectPda; declare const index$1_expectPublicKey: typeof expectPublicKey; declare const index$1_expectSome: typeof expectSome; declare const index$1_getAccountMetasAndSigners: typeof getAccountMetasAndSigners; declare const index$1_getBlockedMessagelibErrorFromCode: typeof getBlockedMessagelibErrorFromCode; declare const index$1_getBlockedMessagelibErrorFromName: typeof getBlockedMessagelibErrorFromName; declare const index$1_getBlockedMessagelibProgram: typeof getBlockedMessagelibProgram; declare const index$1_getBlockedMessagelibProgramId: typeof getBlockedMessagelibProgramId; declare const index$1_getVersionInstructionDataSerializer: typeof getVersionInstructionDataSerializer; declare const index$1_version: typeof version; declare namespace index$1 { export { index$1_BLOCKED_MESSAGELIB_PROGRAM_ID as BLOCKED_MESSAGELIB_PROGRAM_ID, type index$1_PickPartial as PickPartial, type index$1_ResolvedAccount as ResolvedAccount, type index$1_ResolvedAccounts as ResolvedAccounts, type index$1_ResolvedAccountsWithIndices as ResolvedAccountsWithIndices, type index$1_VersionInstructionData as VersionInstructionData, type index$1_VersionInstructionDataArgs as VersionInstructionDataArgs, index$1_createBlockedMessagelibProgram as createBlockedMessagelibProgram, index$1_expectPda as expectPda, index$1_expectPublicKey as expectPublicKey, index$1_expectSome as expectSome, index$1_getAccountMetasAndSigners as getAccountMetasAndSigners, index$1_getBlockedMessagelibErrorFromCode as getBlockedMessagelibErrorFromCode, index$1_getBlockedMessagelibErrorFromName as getBlockedMessagelibErrorFromName, index$1_getBlockedMessagelibProgram as getBlockedMessagelibProgram, index$1_getBlockedMessagelibProgramId as getBlockedMessagelibProgramId, index$1_getVersionInstructionDataSerializer as getVersionInstructionDataSerializer, index$1_version as version }; } /** * Class representing a helper for sending transactions. */ declare class SendHelper { readonly endpointProgram: PublicKey; readonly ulnProgram: PublicKey; readonly simpleMsgLibProgram: PublicKey; private endpoint; private uln; private simpleMsgLib; private accounts; /** * Creates an instance of the SendHelper class. * * @param {PublicKey} [endpointProgram=EndpointProgram.PROGRAM_ID] - The endpoint program public key. * @param {PublicKey} [ulnProgram=UlnProgram.PROGRAM_ID] - The ULN program public key. * @param {PublicKey} [simpleMsgLibProgram=SimpleMessageLibProgram.PROGRAM_ID] - The simple message library program public key. */ constructor(endpointProgram?: PublicKey, ulnProgram?: PublicKey, simpleMsgLibProgram?: PublicKey); /** * Fetches multiple account information. * * @param {Connection} connection - The connection to the Solana cluster. * @param {PublicKey[]} keys - The public keys of the accounts. * @param {Commitment | GetAccountInfoConfig} [commitment] - The commitment level or account info configuration. * @returns {Promise<(AccountInfo | null)[]>} A promise that resolves to an array of account information. */ private getMultipleAccountsInfo; getQuoteAccounts(rpc: RpcInterface, params: { payer: PublicKey | web3.PublicKey; sender: PublicKey | web3.PublicKey; dstEid: number; receiver: string | Uint8Array; }, commitment?: Commitment): Promise; /** * @param connection * @param payer * @param sender the PDA of the oApp * @param dstEid the destination endpoint id * @param receiver the remote peer's address * @param commitmentOrConfig * 1 or 3(1+2) RPC calls * */ getSendAccounts(rpc: RpcInterface, params: { payer: PublicKey | web3.PublicKey; sender: PublicKey | web3.PublicKey; dstEid: number; receiver: string | Uint8Array; }, commitment?: Commitment): Promise; /** * Gets the account metadata for the endpoint. * * @param {PublicKey} msgLibProgram - The message library program public key. * @param {PublicKey} msgLib - The message library public key. * @param {PublicKey} sender - The sender public key. * @param {number} dstEid - The destination endpoint ID. * @param {string} receiver - The receiver address. * @param {QuoteOrSend} quoteOrSend - The quote or send action. * @returns {AccountMeta[]} An array of account metadata. */ private getEndpointAccounts; /** * Gets the account metadata for the simple message library. * * @param {PublicKey} payer - The payer public key. * @param {QuoteOrSend} quoteOrSend - The quote or send action. * @returns {AccountMeta[]} An array of account metadata. */ private getSimpleMsgLibAccounts; /** * Gets the account metadata for the ULN. * * @param {Connection} connection - The connection to the Solana cluster. * @param {PublicKey} payer - The payer public key. * @param {KeyedAccountInfo} ulnInfo - The ULN account information. * @param {KeyedAccountInfo} ulnDefaultSendConfigInfo - The ULN default send configuration account information. * @param {KeyedAccountInfo} ulnSendConfigInfo - The ULN send configuration account information. * @param {QuoteOrSend} quoteOrSend - The quote or send action. * @param {Commitment | GetAccountInfoConfig} [commitment] - The commitment level or account info configuration. * @returns {Promise} A promise that resolves to an array of account metadata. */ private getUlnAccounts; } /** * Enum representing different configuration types. */ declare enum SetConfigType { /** * Executor configuration type. */ EXECUTOR = 1, /** * Send ULN configuration type. */ SEND_ULN = 2, /** * Receive ULN configuration type. */ RECEIVE_ULN = 3 } interface SolanaPacketPath { sender: PublicKey; dstEid: number; receiver: Uint8Array; } /** * Interface representing the Message Library. */ interface MessageLibInterface { programId: PublicKey; /** * Gets the account metadata for a quote instruction. * * @param {Connection} connection - The Solana connection. * @param {PublicKey} payer - The payer public key. * @param {PacketPath} path - The packet path. * @param {Commitment} [commitment] - The commitment level. * @returns {Promise} A promise that resolves to an array of account metadata. */ getQuoteIXAccountMetaForCPI(rpc: RpcInterface, payer: PublicKey, path: SolanaPacketPath, commitment?: Commitment): Promise; getSendIXAccountMetaForCPI(rpc: RpcInterface, payer: PublicKey, path: SolanaPacketPath): Promise; getSendWithLzTokenIXAccountMetaForCPI(rpc: RpcInterface, accounts: { payer: PublicKey; tokenMint: PublicKey; tokenSource: PublicKey; }, path: SolanaPacketPath, programs: { tokenProgram?: PublicKey; associatedTokenProgram?: PublicKey; }, commitment: Commitment): Promise; /** * Gets the account metadata for an init config instruction. * * @param {PublicKey} payer - The payer public key. * @param {PublicKey} oappID - The OAPP ID. * @param {number} eid - The endpoint ID. * @returns {AccountMeta[]} An array of account metadata. */ getInitConfigIXAccountMetaForCPI(payer: PublicKey, oapp: PublicKey, eid: number): AccountMeta[]; /** * Gets the account metadata for a set config instruction. * * @param {PublicKey} endpointProgram - The endpoint program public key. * @param {PublicKey} oappID - The OAPP ID. * @param {number} eid - The endpoint ID. * @returns {Promise} A promise that resolves to an array of account metadata. */ getSetConfigIXAccountMetaForCPI(oapp: PublicKey, eid: number, endpointProgram?: PublicKey): AccountMeta[]; } type index_AccountMetaRef = AccountMetaRef; type index_AddressLocator = AddressLocator; type index_Deployment = Deployment; type index_DvnPDA = DvnPDA; declare const index_DvnPDA: typeof DvnPDA; declare const index_EDDSA: typeof EDDSA; declare const index_ENFORCED_OPTIONS_SEED: typeof ENFORCED_OPTIONS_SEED; type index_EndpointPDA = EndpointPDA; declare const index_EndpointPDA: typeof EndpointPDA; type index_EventPDA = EventPDA; declare const index_EventPDA: typeof EventPDA; type index_ExecutorOptionType = ExecutorOptionType; declare const index_ExecutorOptionType: typeof ExecutorOptionType; type index_ExecutorPDA = ExecutorPDA; declare const index_ExecutorPDA: typeof ExecutorPDA; declare const index_FAUCET_URL: typeof FAUCET_URL; type index_InstructionForLzCompose = InstructionForLzCompose; type index_InstructionForLzReceive = InstructionForLzReceive; type index_LzComposeParams = LzComposeParams; type index_LzComposeTypesV2Accounts = LzComposeTypesV2Accounts; type index_LzComposeTypesV2Result = LzComposeTypesV2Result; type index_LzReceiveAccount = LzReceiveAccount; type index_LzReceiveParams = LzReceiveParams; type index_LzReceiveParamsArgs = LzReceiveParamsArgs; type index_LzReceiveTypesV2Accounts = LzReceiveTypesV2Accounts; type index_LzReceiveTypesV2Result = LzReceiveTypesV2Result; declare const index_MINT_SEED: typeof MINT_SEED; declare const index_MSG_TYPE_OFFSET: typeof MSG_TYPE_OFFSET; declare const index_MaxExecutorOptionTypeLength: typeof MaxExecutorOptionTypeLength; type index_MessageLibInterface = MessageLibInterface; type index_MessageLibPDA = MessageLibPDA; declare const index_MessageLibPDA: typeof MessageLibPDA; type index_MessageType = MessageType; declare const index_MessageType: typeof MessageType; type index_NextNonceInstructionData = NextNonceInstructionData; type index_NextNonceInstructionDataArgs = NextNonceInstructionDataArgs; type index_OmniAppPDA = OmniAppPDA; declare const index_OmniAppPDA: typeof OmniAppPDA; declare const index_PEER_SEED: typeof PEER_SEED; type index_PriceFeedPDA = PriceFeedPDA; declare const index_PriceFeedPDA: typeof PriceFeedPDA; type index_SendHelper = SendHelper; declare const index_SendHelper: typeof SendHelper; type index_SetConfigType = SetConfigType; declare const index_SetConfigType: typeof SetConfigType; type index_SolanaPacketPath = SolanaPacketPath; type index_SupportedPrograms = SupportedPrograms; type index_UlnPDA = UlnPDA; declare const index_UlnPDA: typeof UlnPDA; declare const index_addressLocator: typeof addressLocator; declare const index_buildLzComposeExecutionPlan: typeof buildLzComposeExecutionPlan; declare const index_buildLzReceiveExecutionPlan: typeof buildLzReceiveExecutionPlan; declare const index_buildMessageV0: typeof buildMessageV0; declare const index_buildVersionedTransaction: typeof buildVersionedTransaction; declare const index_closeLookupTable: typeof closeLookupTable; declare const index_createNonceAccountTX: typeof createNonceAccountTX; declare const index_deactivateLookupTable: typeof deactivateLookupTable; declare const index_extractComposeDeliveredEventByTxHash: typeof extractComposeDeliveredEventByTxHash; declare const index_extractComposeSentEventByTxHash: typeof extractComposeSentEventByTxHash; declare const index_extractEventFromTransactionSignature: typeof extractEventFromTransactionSignature; declare const index_extractPacketSentEventByTxHash: typeof extractPacketSentEventByTxHash; declare const index_extractReceivedPacketEventByTxHash: typeof extractReceivedPacketEventByTxHash; declare const index_extractVerifiedPacketEventByTxHash: typeof extractVerifiedPacketEventByTxHash; declare const index_extractWorkerFeePaidEventByTxHash: typeof extractWorkerFeePaidEventByTxHash; declare const index_generateAddressLookupTable: typeof generateAddressLookupTable; declare const index_getAccountMetaRefSerializer: typeof getAccountMetaRefSerializer; declare const index_getAddressLocatorSerializer: typeof getAddressLocatorSerializer; declare const index_getBlockedMessageLibProgramId: typeof getBlockedMessageLibProgramId; declare const index_getDVNProgramId: typeof getDVNProgramId; declare const index_getEndpointProgramId: typeof getEndpointProgramId; declare const index_getExecutorProgramId: typeof getExecutorProgramId; declare const index_getInstructionForLzComposeSerializer: typeof getInstructionForLzComposeSerializer; declare const index_getInstructionForLzReceiveSerializer: typeof getInstructionForLzReceiveSerializer; declare const index_getLzComposeAccountsFromTypesV1: typeof getLzComposeAccountsFromTypesV1; declare const index_getLzComposeParamsSerializer: typeof getLzComposeParamsSerializer; declare const index_getLzComposeTypesInfo: typeof getLzComposeTypesInfo; declare const index_getLzComposeTypesV2AccountsSerializer: typeof getLzComposeTypesV2AccountsSerializer; declare const index_getLzComposeTypesV2ResultSerializer: typeof getLzComposeTypesV2ResultSerializer; declare const index_getLzReceiveAccountSerializer: typeof getLzReceiveAccountSerializer; declare const index_getLzReceiveAccountsFromTypesV1: typeof getLzReceiveAccountsFromTypesV1; declare const index_getLzReceiveParamsSerializer: typeof getLzReceiveParamsSerializer; declare const index_getLzReceiveTypesInfo: typeof getLzReceiveTypesInfo; declare const index_getLzReceiveTypesV2AccountsSerializer: typeof getLzReceiveTypesV2AccountsSerializer; declare const index_getLzReceiveTypesV2ResultSerializer: typeof getLzReceiveTypesV2ResultSerializer; declare const index_getNextNonceInstructionDataSerializer: typeof getNextNonceInstructionDataSerializer; declare const index_getPricefeedProgramId: typeof getPricefeedProgramId; declare const index_getProgramKeypair: typeof getProgramKeypair; declare const index_getSimpleMessageLibProgramId: typeof getSimpleMessageLibProgramId; declare const index_getULNProgramId: typeof getULNProgramId; declare const index_idlTypes: typeof idlTypes; declare const index_instructionDiscriminator: typeof instructionDiscriminator; declare const index_isAccountInitialized: typeof isAccountInitialized; declare const index_isAddressLocator: typeof isAddressLocator; declare const index_lzCompose: typeof lzCompose; declare const index_lzReceive: typeof lzReceive; declare const index_messageLibs: typeof messageLibs; declare const index_nextNonce: typeof nextNonce; declare const index_simulateWeb3JsTransaction: typeof simulateWeb3JsTransaction; declare const index_toWeb3Connection: typeof toWeb3Connection; declare const index_txWithAddressLookupTable: typeof txWithAddressLookupTable; declare const index_txWithNonce: typeof txWithNonce; declare namespace index { export { type index_AccountMetaRef as AccountMetaRef, type index_AddressLocator as AddressLocator, index$1 as BlockedMessageLibProgram, dvn as DVNProgram, type index_Deployment as Deployment, index_DvnPDA as DvnPDA, index$g as DvnProgram, index_EDDSA as EDDSA, index_ENFORCED_OPTIONS_SEED as ENFORCED_OPTIONS_SEED, index_EndpointPDA as EndpointPDA, endpoint as EndpointProgram, index_EventPDA as EventPDA, index_ExecutorOptionType as ExecutorOptionType, index_ExecutorPDA as ExecutorPDA, executor as ExecutorProgram, index_FAUCET_URL as FAUCET_URL, type index_InstructionForLzCompose as InstructionForLzCompose, type index_InstructionForLzReceive as InstructionForLzReceive, type index_LzComposeParams as LzComposeParams, type index_LzComposeTypesV2Accounts as LzComposeTypesV2Accounts, type index_LzComposeTypesV2Result as LzComposeTypesV2Result, type index_LzReceiveAccount as LzReceiveAccount, type index_LzReceiveParams as LzReceiveParams, type index_LzReceiveParamsArgs as LzReceiveParamsArgs, type index_LzReceiveTypesV2Accounts as LzReceiveTypesV2Accounts, type index_LzReceiveTypesV2Result as LzReceiveTypesV2Result, index_MINT_SEED as MINT_SEED, index_MSG_TYPE_OFFSET as MSG_TYPE_OFFSET, index_MaxExecutorOptionTypeLength as MaxExecutorOptionTypeLength, type index_MessageLibInterface as MessageLibInterface, index_MessageLibPDA as MessageLibPDA, index_MessageType as MessageType, type index_NextNonceInstructionData as NextNonceInstructionData, type index_NextNonceInstructionDataArgs as NextNonceInstructionDataArgs, index_OmniAppPDA as OmniAppPDA, index_PEER_SEED as PEER_SEED, index_PriceFeedPDA as PriceFeedPDA, pricefeed as PriceFeedProgram, index_SendHelper as SendHelper, index_SetConfigType as SetConfigType, simpleMessageLib as SimpleMessageLibProgram, type index_SolanaPacketPath as SolanaPacketPath, type index_SupportedPrograms as SupportedPrograms, index_UlnPDA as UlnPDA, uln as UlnProgram, index_addressLocator as addressLocator, index_buildLzComposeExecutionPlan as buildLzComposeExecutionPlan, index_buildLzReceiveExecutionPlan as buildLzReceiveExecutionPlan, index_buildMessageV0 as buildMessageV0, index_buildVersionedTransaction as buildVersionedTransaction, index_closeLookupTable as closeLookupTable, index_createNonceAccountTX as createNonceAccountTX, index_deactivateLookupTable as deactivateLookupTable, index_extractComposeDeliveredEventByTxHash as extractComposeDeliveredEventByTxHash, index_extractComposeSentEventByTxHash as extractComposeSentEventByTxHash, index_extractEventFromTransactionSignature as extractEventFromTransactionSignature, index_extractPacketSentEventByTxHash as extractPacketSentEventByTxHash, index_extractReceivedPacketEventByTxHash as extractReceivedPacketEventByTxHash, index_extractVerifiedPacketEventByTxHash as extractVerifiedPacketEventByTxHash, index_extractWorkerFeePaidEventByTxHash as extractWorkerFeePaidEventByTxHash, index_generateAddressLookupTable as generateAddressLookupTable, index_getAccountMetaRefSerializer as getAccountMetaRefSerializer, index_getAddressLocatorSerializer as getAddressLocatorSerializer, index_getBlockedMessageLibProgramId as getBlockedMessageLibProgramId, index_getDVNProgramId as getDVNProgramId, index_getEndpointProgramId as getEndpointProgramId, index_getExecutorProgramId as getExecutorProgramId, index_getInstructionForLzComposeSerializer as getInstructionForLzComposeSerializer, index_getInstructionForLzReceiveSerializer as getInstructionForLzReceiveSerializer, index_getLzComposeAccountsFromTypesV1 as getLzComposeAccountsFromTypesV1, index_getLzComposeParamsSerializer as getLzComposeParamsSerializer, index_getLzComposeTypesInfo as getLzComposeTypesInfo, index_getLzComposeTypesV2AccountsSerializer as getLzComposeTypesV2AccountsSerializer, index_getLzComposeTypesV2ResultSerializer as getLzComposeTypesV2ResultSerializer, index_getLzReceiveAccountSerializer as getLzReceiveAccountSerializer, index_getLzReceiveAccountsFromTypesV1 as getLzReceiveAccountsFromTypesV1, index_getLzReceiveParamsSerializer as getLzReceiveParamsSerializer, index_getLzReceiveTypesInfo as getLzReceiveTypesInfo, index_getLzReceiveTypesV2AccountsSerializer as getLzReceiveTypesV2AccountsSerializer, index_getLzReceiveTypesV2ResultSerializer as getLzReceiveTypesV2ResultSerializer, index_getNextNonceInstructionDataSerializer as getNextNonceInstructionDataSerializer, index_getPricefeedProgramId as getPricefeedProgramId, index_getProgramKeypair as getProgramKeypair, index_getSimpleMessageLibProgramId as getSimpleMessageLibProgramId, index_getULNProgramId as getULNProgramId, index_idlTypes as idlTypes, index_instructionDiscriminator as instructionDiscriminator, index_isAccountInitialized as isAccountInitialized, index_isAddressLocator as isAddressLocator, index_lzCompose as lzCompose, index_lzReceive as lzReceive, index_messageLibs as messageLibs, index_nextNonce as nextNonce, index_simulateWeb3JsTransaction as simulateWeb3JsTransaction, index_toWeb3Connection as toWeb3Connection, index_txWithAddressLookupTable as txWithAddressLookupTable, index_txWithNonce as txWithNonce }; } export { getLzComposeTypesInfo as $, closeLookupTable as A, txWithAddressLookupTable as B, createNonceAccountTX as C, DvnPDA as D, ENFORCED_OPTIONS_SEED as E, txWithNonce as F, isAccountInitialized as G, buildMessageV0 as H, buildVersionedTransaction as I, instructionDiscriminator as J, simulateWeb3JsTransaction as K, toWeb3Connection as L, type MessageLibInterface as M, idlTypes as N, OmniAppPDA as O, PEER_SEED as P, messageLibs as Q, FAUCET_URL as R, SetConfigType as S, lzReceive as T, UlnPDA as U, lzCompose as V, getLzReceiveAccountsFromTypesV1 as W, buildLzReceiveExecutionPlan as X, getLzReceiveTypesInfo as Y, getLzComposeAccountsFromTypesV1 as Z, buildLzComposeExecutionPlan as _, type SolanaPacketPath as a, MSG_TYPE_OFFSET as a0, MessageType as a1, type LzReceiveParams as a2, type LzReceiveParamsArgs as a3, getLzReceiveParamsSerializer as a4, type LzComposeParams as a5, getLzComposeParamsSerializer as a6, type LzReceiveAccount as a7, getLzReceiveAccountSerializer as a8, ExecutorOptionType as a9, getBlockedMessageLibProgramId as aA, getExecutorProgramId as aB, getPricefeedProgramId as aC, type NextNonceInstructionData as aD, type NextNonceInstructionDataArgs as aE, getNextNonceInstructionDataSerializer as aF, nextNonce as aG, SendHelper as aH, MaxExecutorOptionTypeLength as aa, type LzReceiveTypesV2Accounts as ab, type LzComposeTypesV2Accounts as ac, type AddressLocator as ad, type AccountMetaRef as ae, type InstructionForLzReceive as af, type InstructionForLzCompose as ag, type LzReceiveTypesV2Result as ah, type LzComposeTypesV2Result as ai, getAddressLocatorSerializer as aj, getLzReceiveTypesV2AccountsSerializer as ak, getLzComposeTypesV2AccountsSerializer as al, getAccountMetaRefSerializer as am, getInstructionForLzReceiveSerializer as an, getInstructionForLzComposeSerializer as ao, getLzReceiveTypesV2ResultSerializer as ap, getLzComposeTypesV2ResultSerializer as aq, addressLocator as ar, isAddressLocator as as, type SupportedPrograms as at, type Deployment as au, getProgramKeypair as av, getEndpointProgramId as aw, getSimpleMessageLibProgramId as ax, getULNProgramId as ay, getDVNProgramId as az, executor as b, index$1 as c, dvn as d, endpoint as e, index$g as f, MINT_SEED as g, EDDSA as h, index as i, EndpointPDA as j, MessageLibPDA as k, EventPDA as l, ExecutorPDA as m, PriceFeedPDA as n, extractPacketSentEventByTxHash as o, pricefeed as p, extractVerifiedPacketEventByTxHash as q, extractReceivedPacketEventByTxHash as r, simpleMessageLib as s, extractComposeSentEventByTxHash as t, uln as u, extractComposeDeliveredEventByTxHash as v, extractWorkerFeePaidEventByTxHash as w, extractEventFromTransactionSignature as x, generateAddressLookupTable as y, deactivateLookupTable as z };