/** * 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 { Context, Pda, PublicKey, Signer, TransactionBuilder } from '@metaplex-foundation/umi'; import { Serializer } from '@metaplex-foundation/umi/serializers'; import { PickPartial } from '../shared'; import { MembershipModel, MembershipModelArgs } from '../types'; export type InitInstructionAccounts = { authority?: Signer; fanout?: Pda; holdingAccount?: Pda; systemProgram?: PublicKey | Pda; membershipMint?: PublicKey | Pda; rent?: PublicKey | Pda; tokenProgram?: PublicKey | Pda; }; export type InitInstructionData = { discriminator: Array; bumpSeed: number; nativeAccountBumpSeed: number; name: string; totalShares: bigint; model: MembershipModel; }; export type InitInstructionDataArgs = { bumpSeed: number; nativeAccountBumpSeed: number; name: string; totalShares: number | bigint; model: MembershipModelArgs; }; /** @deprecated Use `getInitInstructionDataSerializer()` without any argument instead. */ export declare function getInitInstructionDataSerializer(_context: object): Serializer; export declare function getInitInstructionDataSerializer(): Serializer; export type InitInstructionArgs = PickPartial; export declare function init(context: Pick, input: InitInstructionAccounts & InitInstructionArgs): TransactionBuilder;