UNPKG

@pod-protocol/sdk

Version:

TypeScript SDK for PoD Protocol - AI agent communication on Solana

60 lines 5.27 kB
/** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ import { type Address, type Codec, type Decoder, type Encoder, type IAccountMeta, type IAccountSignerMeta, type IInstruction, type IInstructionWithAccounts, type IInstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit'; import { POD_COM_PROGRAM_ADDRESS } from '../programs'; export declare const DEPOSIT_ESCROW_DISCRIMINATOR: Uint8Array<ArrayBuffer>; export declare function getDepositEscrowDiscriminatorBytes(): ReadonlyUint8Array; export type DepositEscrowInstruction<TProgram extends string = typeof POD_COM_PROGRAM_ADDRESS, TAccountEscrowAccount extends string | IAccountMeta<string> = string, TAccountChannelAccount extends string | IAccountMeta<string> = string, TAccountDepositor extends string | IAccountMeta<string> = string, TAccountSystemProgram extends string | IAccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[ TAccountEscrowAccount extends string ? WritableAccount<TAccountEscrowAccount> : TAccountEscrowAccount, TAccountChannelAccount extends string ? WritableAccount<TAccountChannelAccount> : TAccountChannelAccount, TAccountDepositor extends string ? WritableSignerAccount<TAccountDepositor> & IAccountSignerMeta<TAccountDepositor> : TAccountDepositor, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, ...TRemainingAccounts ]>; export type DepositEscrowInstructionData = { discriminator: ReadonlyUint8Array; amount: bigint; }; export type DepositEscrowInstructionDataArgs = { amount: number | bigint; }; export declare function getDepositEscrowInstructionDataEncoder(): Encoder<DepositEscrowInstructionDataArgs>; export declare function getDepositEscrowInstructionDataDecoder(): Decoder<DepositEscrowInstructionData>; export declare function getDepositEscrowInstructionDataCodec(): Codec<DepositEscrowInstructionDataArgs, DepositEscrowInstructionData>; export type DepositEscrowAsyncInput<TAccountEscrowAccount extends string = string, TAccountChannelAccount extends string = string, TAccountDepositor extends string = string, TAccountSystemProgram extends string = string> = { escrowAccount?: Address<TAccountEscrowAccount>; channelAccount: Address<TAccountChannelAccount>; depositor: TransactionSigner<TAccountDepositor>; systemProgram?: Address<TAccountSystemProgram>; amount: DepositEscrowInstructionDataArgs['amount']; }; export declare function getDepositEscrowInstructionAsync<TAccountEscrowAccount extends string, TAccountChannelAccount extends string, TAccountDepositor extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof POD_COM_PROGRAM_ADDRESS>(input: DepositEscrowAsyncInput<TAccountEscrowAccount, TAccountChannelAccount, TAccountDepositor, TAccountSystemProgram>, config?: { programAddress?: TProgramAddress; }): Promise<DepositEscrowInstruction<TProgramAddress, TAccountEscrowAccount, TAccountChannelAccount, TAccountDepositor, TAccountSystemProgram>>; export type DepositEscrowInput<TAccountEscrowAccount extends string = string, TAccountChannelAccount extends string = string, TAccountDepositor extends string = string, TAccountSystemProgram extends string = string> = { escrowAccount: Address<TAccountEscrowAccount>; channelAccount: Address<TAccountChannelAccount>; depositor: TransactionSigner<TAccountDepositor>; systemProgram?: Address<TAccountSystemProgram>; amount: DepositEscrowInstructionDataArgs['amount']; }; export declare function getDepositEscrowInstruction<TAccountEscrowAccount extends string, TAccountChannelAccount extends string, TAccountDepositor extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof POD_COM_PROGRAM_ADDRESS>(input: DepositEscrowInput<TAccountEscrowAccount, TAccountChannelAccount, TAccountDepositor, TAccountSystemProgram>, config?: { programAddress?: TProgramAddress; }): DepositEscrowInstruction<TProgramAddress, TAccountEscrowAccount, TAccountChannelAccount, TAccountDepositor, TAccountSystemProgram>; export type ParsedDepositEscrowInstruction<TProgram extends string = typeof POD_COM_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = { programAddress: Address<TProgram>; accounts: { escrowAccount: TAccountMetas[0]; channelAccount: TAccountMetas[1]; depositor: TAccountMetas[2]; systemProgram: TAccountMetas[3]; }; data: DepositEscrowInstructionData; }; export declare function parseDepositEscrowInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedDepositEscrowInstruction<TProgram, TAccountMetas>; //# sourceMappingURL=depositEscrow.d.ts.map