Coda by Ian Macalinao
    Preparing search index...

    Type Alias DepositGoverningTokensInput<TAccountRealmAccount, TAccountGoverningTokenHoldingAccount, TAccountGoverningTokenSourceAccount, TAccountGoverningTokenOwnerAccount, TAccountGoverningTokenSourceAccountAuthority, TAccountTokenOwnerRecord, TAccountPayer, TAccountSystemProgram, TAccountTokenProgram, TAccountRealmConfigAccount>

    type DepositGoverningTokensInput<
        TAccountRealmAccount extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountGoverningTokenHoldingAccount extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountGoverningTokenSourceAccount extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountGoverningTokenOwnerAccount extends
            InstructionSignerInput = InstructionSignerInput,
        TAccountGoverningTokenSourceAccountAuthority extends
            InstructionSignerInput = InstructionSignerInput,
        TAccountTokenOwnerRecord extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountPayer extends InstructionSignerInput = InstructionSignerInput,
        TAccountSystemProgram extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountTokenProgram extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountRealmConfigAccount extends
            InstructionAccountInput = InstructionAccountInput,
    > = {
        amount: DepositGoverningTokensInstructionDataArgs["amount"];
        governingTokenHoldingAccount: TAccountGoverningTokenHoldingAccount;
        governingTokenOwnerAccount: TAccountGoverningTokenOwnerAccount;
        governingTokenSourceAccount: TAccountGoverningTokenSourceAccount;
        governingTokenSourceAccountAuthority: TAccountGoverningTokenSourceAccountAuthority;
        payer: TAccountPayer;
        realmAccount: TAccountRealmAccount;
        realmConfigAccount: TAccountRealmConfigAccount;
        systemProgram?: TAccountSystemProgram;
        tokenOwnerRecord: TAccountTokenOwnerRecord;
        tokenProgram?: TAccountTokenProgram;
    }

    Type Parameters

    • TAccountRealmAccount extends InstructionAccountInput = InstructionAccountInput
    • TAccountGoverningTokenHoldingAccount extends InstructionAccountInput = InstructionAccountInput
    • TAccountGoverningTokenSourceAccount extends InstructionAccountInput = InstructionAccountInput
    • TAccountGoverningTokenOwnerAccount extends InstructionSignerInput = InstructionSignerInput
    • TAccountGoverningTokenSourceAccountAuthority extends InstructionSignerInput = InstructionSignerInput
    • TAccountTokenOwnerRecord extends InstructionAccountInput = InstructionAccountInput
    • TAccountPayer extends InstructionSignerInput = InstructionSignerInput
    • TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput
    • TAccountTokenProgram extends InstructionAccountInput = InstructionAccountInput
    • TAccountRealmConfigAccount extends InstructionAccountInput = InstructionAccountInput
    Index
    governingTokenHoldingAccount: TAccountGoverningTokenHoldingAccount

    seeds=['governance', realm, governing_token_mint]

    governingTokenOwnerAccount: TAccountGoverningTokenOwnerAccount
    governingTokenSourceAccount: TAccountGoverningTokenSourceAccount

    It can either be spl-token TokenAccount or MintAccount. Tokens will be transferred or minted to the holding account

    governingTokenSourceAccountAuthority: TAccountGoverningTokenSourceAccountAuthority

    It should be owner for TokenAccount and mint_authority for MintAccount

    realmAccount: TAccountRealmAccount
    realmConfigAccount: TAccountRealmConfigAccount

    seeds=['realm-config', realm]

    systemProgram?: TAccountSystemProgram
    tokenOwnerRecord: TAccountTokenOwnerRecord

    seeds=['governance', realm, governing_token_mint, governing_token_owner]

    tokenProgram?: TAccountTokenProgram