/** * 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, Option, OptionOrNullable, Pda, PublicKey, RpcAccount, RpcGetAccountOptions, RpcGetAccountsOptions } from '@metaplex-foundation/umi'; import { Serializer } from '@metaplex-foundation/umi/serializers'; import { MembershipModel, MembershipModelArgs } from '../types'; export type Fanout = Account; export type FanoutAccountData = { discriminator: Array; authority: PublicKey; name: string; accountKey: PublicKey; totalShares: bigint; totalMembers: bigint; totalInflow: bigint; lastSnapshotAmount: bigint; bumpSeed: number; accountOwnerBumpSeed: number; totalAvailableShares: bigint; membershipModel: MembershipModel; membershipMint: Option; totalStakedShares: Option; }; export type FanoutAccountDataArgs = { authority: PublicKey; name: string; accountKey: PublicKey; totalShares: number | bigint; totalMembers: number | bigint; totalInflow: number | bigint; lastSnapshotAmount: number | bigint; bumpSeed: number; accountOwnerBumpSeed: number; totalAvailableShares: number | bigint; membershipModel: MembershipModelArgs; membershipMint: OptionOrNullable; totalStakedShares: OptionOrNullable; }; /** @deprecated Use `getFanoutAccountDataSerializer()` without any argument instead. */ export declare function getFanoutAccountDataSerializer(_context: object): Serializer; export declare function getFanoutAccountDataSerializer(): Serializer; /** @deprecated Use `deserializeFanout(rawAccount)` without any context instead. */ export declare function deserializeFanout(context: object, rawAccount: RpcAccount): Fanout; export declare function deserializeFanout(rawAccount: RpcAccount): Fanout; export declare function fetchFanout(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; export declare function safeFetchFanout(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; export declare function fetchAllFanout(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; export declare function safeFetchAllFanout(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; export declare function getFanoutGpaBuilder(context: Pick): import("@metaplex-foundation/umi").GpaBuilder; authority: PublicKey; name: string; accountKey: PublicKey; totalShares: number | bigint; totalMembers: number | bigint; totalInflow: number | bigint; lastSnapshotAmount: number | bigint; bumpSeed: number; accountOwnerBumpSeed: number; totalAvailableShares: number | bigint; membershipModel: MembershipModelArgs; membershipMint: OptionOrNullable; totalStakedShares: OptionOrNullable; }>; export declare function getFanoutSize(): number; export declare function findFanoutPda(context: Pick, seeds: { /** The name of the fanout account */ name: string; }): Pda; export declare function fetchFanoutFromSeeds(context: Pick, seeds: Parameters[1], options?: RpcGetAccountOptions): Promise; export declare function safeFetchFanoutFromSeeds(context: Pick, seeds: Parameters[1], options?: RpcGetAccountOptions): Promise;