Coda by Ian Macalinao
    Preparing search index...

    Type Alias ParsedSetTreeDelegateInstruction<TProgram, TAccountMetas>

    type ParsedSetTreeDelegateInstruction<
        TProgram extends string = typeof BUBBLEGUM_PROGRAM_ADDRESS,
        TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[],
    > = {
        accounts: {
            merkleTree: TAccountMetas[3];
            newTreeDelegate: TAccountMetas[2];
            systemProgram: TAccountMetas[4];
            treeAuthority: TAccountMetas[0];
            treeCreator: TAccountMetas[1];
        };
        data: SetTreeDelegateInstructionData;
        programAddress: Address<TProgram>;
    }

    Type Parameters

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

    Properties

    accounts: {
        merkleTree: TAccountMetas[3];
        newTreeDelegate: TAccountMetas[2];
        systemProgram: TAccountMetas[4];
        treeAuthority: TAccountMetas[0];
        treeCreator: TAccountMetas[1];
    }

    Type Declaration

    • merkleTree: TAccountMetas[3]

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

    • newTreeDelegate: TAccountMetas[2]

      New delegate authority to set for the tree.

    • systemProgram: TAccountMetas[4]

      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.

    • treeCreator: TAccountMetas[1]

      Creator of the tree, recorded in TreeConfig when the tree was created.

    programAddress: Address<TProgram>