Coda by Ian Macalinao
    Preparing search index...

    Type Alias CreateTokenGovernanceInput<TAccountRealmAccount, TAccountTokenGovernanceAccount, TAccountTokenAccount, TAccountTokenAccountAuthority, TAccountGoverningTokenOwnerRecord, TAccountPayer, TAccountTokenProgram, TAccountSystemProgram, TAccountGovernanceAuthority, TAccountRealmConfig, TAccountVoterWeightRecord>

    type CreateTokenGovernanceInput<
        TAccountRealmAccount extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountTokenGovernanceAccount extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountTokenAccount extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountTokenAccountAuthority extends
            InstructionSignerInput = InstructionSignerInput,
        TAccountGoverningTokenOwnerRecord extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountPayer extends InstructionSignerInput = InstructionSignerInput,
        TAccountTokenProgram extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountSystemProgram extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountGovernanceAuthority extends
            InstructionSignerInput = InstructionSignerInput,
        TAccountRealmConfig extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountVoterWeightRecord extends
            InstructionAccountInput = InstructionAccountInput,
    > = {
        config: CreateTokenGovernanceInstructionDataArgs["config"];
        governanceAuthority: TAccountGovernanceAuthority;
        governingTokenOwnerRecord: TAccountGoverningTokenOwnerRecord;
        payer: TAccountPayer;
        realmAccount: TAccountRealmAccount;
        realmConfig: TAccountRealmConfig;
        systemProgram?: TAccountSystemProgram;
        tokenAccount: TAccountTokenAccount;
        tokenAccountAuthority: TAccountTokenAccountAuthority;
        tokenGovernanceAccount: TAccountTokenGovernanceAccount;
        tokenProgram?: TAccountTokenProgram;
        transferAccountAuthorities: CreateTokenGovernanceInstructionDataArgs["transferAccountAuthorities"];
        voterWeightRecord?: TAccountVoterWeightRecord;
    }

    Type Parameters

    • TAccountRealmAccount extends InstructionAccountInput = InstructionAccountInput
    • TAccountTokenGovernanceAccount extends InstructionAccountInput = InstructionAccountInput
    • TAccountTokenAccount extends InstructionAccountInput = InstructionAccountInput
    • TAccountTokenAccountAuthority extends InstructionSignerInput = InstructionSignerInput
    • TAccountGoverningTokenOwnerRecord extends InstructionAccountInput = InstructionAccountInput
    • TAccountPayer extends InstructionSignerInput = InstructionSignerInput
    • TAccountTokenProgram extends InstructionAccountInput = InstructionAccountInput
    • TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput
    • TAccountGovernanceAuthority extends InstructionSignerInput = InstructionSignerInput
    • TAccountRealmConfig extends InstructionAccountInput = InstructionAccountInput
    • TAccountVoterWeightRecord extends InstructionAccountInput = InstructionAccountInput
    Index
    governanceAuthority: TAccountGovernanceAuthority
    governingTokenOwnerRecord: TAccountGoverningTokenOwnerRecord

    Governing TokenOwnerRecord account (Used only if not signed by RealmAuthority

    realmAccount: TAccountRealmAccount

    Realm account the created Governance belongs to

    realmConfig: TAccountRealmConfig

    seeds=['realm-config', realm]

    systemProgram?: TAccountSystemProgram
    tokenAccount: TAccountTokenAccount

    Token account governed by this Governance account

    tokenAccountAuthority: TAccountTokenAccountAuthority

    Current token account authority (AccountOwner and optionally CloseAccount

    tokenGovernanceAccount: TAccountTokenGovernanceAccount

    Token Governance account. seeds=['token-governance', realm, governed_token]

    tokenProgram?: TAccountTokenProgram
    voterWeightRecord?: TAccountVoterWeightRecord

    Optional Voter Weight Record