@pod-protocol/sdk
Version:
TypeScript SDK for PoD Protocol - AI agent communication on Solana
43 lines • 2.67 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 AGENT_ACCOUNT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
export declare function getAgentAccountDiscriminatorBytes(): ReadonlyUint8Array;
export type AgentAccount = {
discriminator: ReadonlyUint8Array;
pubkey: Address;
capabilities: bigint;
reputation: bigint;
lastUpdated: bigint;
metadataUri: string;
invitesSent: number;
lastInviteAt: bigint;
bump: number;
reserved: Array<number>;
};
export type AgentAccountArgs = {
pubkey: Address;
capabilities: number | bigint;
reputation: number | bigint;
lastUpdated: number | bigint;
metadataUri: string;
invitesSent: number;
lastInviteAt: number | bigint;
bump: number;
reserved: Array<number>;
};
export declare function getAgentAccountEncoder(): Encoder<AgentAccountArgs>;
export declare function getAgentAccountDecoder(): Decoder<AgentAccount>;
export declare function getAgentAccountCodec(): Codec<AgentAccountArgs, AgentAccount>;
export declare function decodeAgentAccount<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<AgentAccount, TAddress>;
export declare function decodeAgentAccount<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<AgentAccount, TAddress>;
export declare function fetchAgentAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<AgentAccount, TAddress>>;
export declare function fetchMaybeAgentAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<AgentAccount, TAddress>>;
export declare function fetchAllAgentAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<AgentAccount>[]>;
export declare function fetchAllMaybeAgentAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<AgentAccount>[]>;
//# sourceMappingURL=agentAccount.d.ts.map