Coda by Ian Macalinao
    Preparing search index...

    Type Alias CreateGovernanceInput<TAccountRealmAccount, TAccountGovernanceAccount, TAccountGovernedAccount, TAccountGoverningTokenOwnerRecord, TAccountPayer, TAccountSystemProgram, TAccountGovernanceAuthority, TAccountRealmConfigAccount, TAccountVoterWeightRecord>

    type CreateGovernanceInput<
        TAccountRealmAccount extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountGovernanceAccount extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountGovernedAccount extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountGoverningTokenOwnerRecord extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountPayer extends InstructionSignerInput = InstructionSignerInput,
        TAccountSystemProgram extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountGovernanceAuthority extends
            InstructionSignerInput = InstructionSignerInput,
        TAccountRealmConfigAccount extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountVoterWeightRecord extends
            InstructionAccountInput = InstructionAccountInput,
    > = {
        config: CreateGovernanceInstructionDataArgs["config"];
        governanceAccount: TAccountGovernanceAccount;
        governanceAuthority: TAccountGovernanceAuthority;
        governedAccount: TAccountGovernedAccount;
        governingTokenOwnerRecord: TAccountGoverningTokenOwnerRecord;
        payer: TAccountPayer;
        realmAccount: TAccountRealmAccount;
        realmConfigAccount: TAccountRealmConfigAccount;
        systemProgram?: TAccountSystemProgram;
        voterWeightRecord?: TAccountVoterWeightRecord;
    }

    Type Parameters

    • TAccountRealmAccount extends InstructionAccountInput = InstructionAccountInput
    • TAccountGovernanceAccount extends InstructionAccountInput = InstructionAccountInput
    • TAccountGovernedAccount extends InstructionAccountInput = InstructionAccountInput
    • TAccountGoverningTokenOwnerRecord extends InstructionAccountInput = InstructionAccountInput
    • TAccountPayer extends InstructionSignerInput = InstructionSignerInput
    • TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput
    • TAccountGovernanceAuthority extends InstructionSignerInput = InstructionSignerInput
    • TAccountRealmConfigAccount extends InstructionAccountInput = InstructionAccountInput
    • TAccountVoterWeightRecord extends InstructionAccountInput = InstructionAccountInput
    Index
    governanceAccount: TAccountGovernanceAccount

    seeds=['account-governance', realm, governed_account]

    governanceAuthority: TAccountGovernanceAuthority
    governedAccount: TAccountGovernedAccount

    Account governed by this Governance (governing_account). Note: the account doesn't have to exist and can be used only as a unique identified for the Governance account

    governingTokenOwnerRecord: TAccountGoverningTokenOwnerRecord

    Used only if not signed by RealmAuthority

    realmAccount: TAccountRealmAccount

    Realm account the created governance belongs to

    realmConfigAccount: TAccountRealmConfigAccount

    seeds=['realm-config', realm]

    systemProgram?: TAccountSystemProgram
    voterWeightRecord?: TAccountVoterWeightRecord

    Optional Voter Weight Record