/** * 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/metaplex-foundation/kinobi */ import { Account, Context, Pda, PublicKey, RpcAccount, RpcGetAccountOptions, RpcGetAccountsOptions } from '@metaplex-foundation/umi'; import { Serializer } from '@metaplex-foundation/umi/serializers'; export type FanoutMint = Account; export type FanoutMintAccountData = { discriminator: Array; mint: PublicKey; fanout: PublicKey; tokenAccount: PublicKey; totalInflow: bigint; lastSnapshotAmount: bigint; bumpSeed: number; }; export type FanoutMintAccountDataArgs = { mint: PublicKey; fanout: PublicKey; tokenAccount: PublicKey; totalInflow: number | bigint; lastSnapshotAmount: number | bigint; bumpSeed: number; }; /** @deprecated Use `getFanoutMintAccountDataSerializer()` without any argument instead. */ export declare function getFanoutMintAccountDataSerializer(_context: object): Serializer; export declare function getFanoutMintAccountDataSerializer(): Serializer; /** @deprecated Use `deserializeFanoutMint(rawAccount)` without any context instead. */ export declare function deserializeFanoutMint(context: object, rawAccount: RpcAccount): FanoutMint; export declare function deserializeFanoutMint(rawAccount: RpcAccount): FanoutMint; export declare function fetchFanoutMint(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; export declare function safeFetchFanoutMint(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; export declare function fetchAllFanoutMint(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; export declare function safeFetchAllFanoutMint(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; export declare function getFanoutMintGpaBuilder(context: Pick): import("@metaplex-foundation/umi").GpaBuilder; mint: PublicKey; fanout: PublicKey; tokenAccount: PublicKey; totalInflow: number | bigint; lastSnapshotAmount: number | bigint; bumpSeed: number; }>; export declare function getFanoutMintSize(): number; export declare function findFanoutMintPda(context: Pick, seeds: { /** The address of the fanout account */ fanout: PublicKey; /** The address of the mint account */ mint: PublicKey; }): Pda; export declare function fetchFanoutMintFromSeeds(context: Pick, seeds: Parameters[1], options?: RpcGetAccountOptions): Promise; export declare function safeFetchFanoutMintFromSeeds(context: Pick, seeds: Parameters[1], options?: RpcGetAccountOptions): Promise;