Coda by Ian Macalinao
    Preparing search index...

    Type Alias ParsedDelegateAndFreezeV2Instruction<TProgram, TAccountMetas>

    type ParsedDelegateAndFreezeV2Instruction<
        TProgram extends string = typeof BUBBLEGUM_PROGRAM_ADDRESS,
        TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[],
    > = {
        accounts: {
            compressionProgram: TAccountMetas[7];
            leafOwner?: TAccountMetas[2];
            logWrapper: TAccountMetas[6];
            merkleTree: TAccountMetas[5];
            newLeafDelegate: TAccountMetas[4];
            payer: TAccountMetas[1];
            previousLeafDelegate?: TAccountMetas[3];
            systemProgram: TAccountMetas[8];
            treeAuthority: TAccountMetas[0];
        };
        data: DelegateAndFreezeV2InstructionData;
        programAddress: Address<TProgram>;
    }

    Type Parameters

    • TProgram extends string = typeof BUBBLEGUM_PROGRAM_ADDRESS
    • TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]
    Index

    Properties

    accounts: {
        compressionProgram: TAccountMetas[7];
        leafOwner?: TAccountMetas[2];
        logWrapper: TAccountMetas[6];
        merkleTree: TAccountMetas[5];
        newLeafDelegate: TAccountMetas[4];
        payer: TAccountMetas[1];
        previousLeafDelegate?: TAccountMetas[3];
        systemProgram: TAccountMetas[8];
        treeAuthority: TAccountMetas[0];
    }

    Type Declaration

    • compressionProgram: TAccountMetas[7]

      The SPL/MPL Account Compression program that owns and manages the Merkle tree.

    • OptionalleafOwner?: TAccountMetas[2]

      Optional leaf owner, defaults to payer.

    • logWrapper: TAccountMetas[6]

      The SPL/MPL Noop program, used to log leaf data so off-chain indexers can reconstruct the tree.

    • merkleTree: TAccountMetas[5]

      The concurrent Merkle tree account storing the compressed leaves, owned by the account compression program.

    • newLeafDelegate: TAccountMetas[4]

      Delegate to set on the leaf; pass the leaf owner to clear an existing delegate.

    • payer: TAccountMetas[1]

      Account that pays for the transaction and any account rent.

    • OptionalpreviousLeafDelegate?: TAccountMetas[3]

      Defaults to leafOwner.

    • systemProgram: TAccountMetas[8]

      The Solana System program.

    • treeAuthority: TAccountMetas[0]

      The tree's TreeConfig PDA, which stores its configuration and acts as the tree's authority for CPIs into the compression program.

    programAddress: Address<TProgram>