UNPKG

gill

Version:

a modern javascript/typescript client library for interacting with the Solana blockchain

52 lines 2.31 kB
/** * This code was AUTOGENERATED using the codama library. * And vendored in from various codama generated client to help * minimize redundancy and bundle sizes * * @see https://github.com/codama-idl/codama */ import { type Address, type ProgramDerivedAddress } from "@solana/kit"; import { type IAccountMeta } from "@solana/kit"; import { type IAccountSignerMeta, type TransactionSigner } from "@solana/kit"; /** * Asserts that the given value is not null or undefined. * @internal */ export declare function expectSome<T>(value: T | null | undefined): T; /** * Asserts that the given value is a PublicKey. * @internal */ export declare function expectAddress<T extends string = string>(value: Address<T> | ProgramDerivedAddress<T> | TransactionSigner<T> | null | undefined): Address<T>; /** * Asserts that the given value is a PDA. * @internal */ export declare function expectProgramDerivedAddress<T extends string = string>(value: Address<T> | ProgramDerivedAddress<T> | TransactionSigner<T> | null | undefined): ProgramDerivedAddress<T>; /** * Asserts that the given value is a TransactionSigner. * @internal */ export declare function expectTransactionSigner<T extends string = string>(value: Address<T> | ProgramDerivedAddress<T> | TransactionSigner<T> | null | undefined): TransactionSigner<T>; /** * Defines an instruction account to resolve. * @internal */ export type ResolvedAccount<T extends string = string, U extends Address<T> | ProgramDerivedAddress<T> | TransactionSigner<T> | null = Address<T> | ProgramDerivedAddress<T> | TransactionSigner<T> | null> = { isWritable: boolean; value: U; }; /** * Defines an instruction that stores additional bytes on-chain. * @internal */ export type IInstructionWithByteDelta = { byteDelta: number; }; /** * Get account metas and signers from resolved accounts. * @internal */ export declare function getAccountMetaFactory(programAddress: Address, optionalAccountStrategy: "omitted" | "programId"): (account: ResolvedAccount) => IAccountMeta | IAccountSignerMeta | undefined; export declare function isTransactionSigner<TAddress extends string = string>(value: Address<TAddress> | ProgramDerivedAddress<TAddress> | TransactionSigner<TAddress>): value is TransactionSigner<TAddress>; //# sourceMappingURL=index.d.ts.map