@pod-protocol/sdk
Version:
TypeScript SDK for PoD Protocol - AI agent communication on Solana
37 lines • 2.51 kB
TypeScript
/**
* 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 { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type Codec, type Decoder, type EncodedAccount, type Encoder, type FetchAccountConfig, type FetchAccountsConfig, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from '@solana/kit';
export declare const ESCROW_ACCOUNT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
export declare function getEscrowAccountDiscriminatorBytes(): ReadonlyUint8Array;
export type EscrowAccount = {
discriminator: ReadonlyUint8Array;
channel: Address;
depositor: Address;
amount: bigint;
createdAt: bigint;
bump: number;
reserved: Array<number>;
};
export type EscrowAccountArgs = {
channel: Address;
depositor: Address;
amount: number | bigint;
createdAt: number | bigint;
bump: number;
reserved: Array<number>;
};
export declare function getEscrowAccountEncoder(): Encoder<EscrowAccountArgs>;
export declare function getEscrowAccountDecoder(): Decoder<EscrowAccount>;
export declare function getEscrowAccountCodec(): Codec<EscrowAccountArgs, EscrowAccount>;
export declare function decodeEscrowAccount<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<EscrowAccount, TAddress>;
export declare function decodeEscrowAccount<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<EscrowAccount, TAddress>;
export declare function fetchEscrowAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<EscrowAccount, TAddress>>;
export declare function fetchMaybeEscrowAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<EscrowAccount, TAddress>>;
export declare function fetchAllEscrowAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<EscrowAccount>[]>;
export declare function fetchAllMaybeEscrowAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<EscrowAccount>[]>;
//# sourceMappingURL=escrowAccount.d.ts.map