Coda by Ian Macalinao
    Preparing search index...

    Type Alias CreateProgramGovernanceInput<TAccountRealmAccount, TAccountProgramGovernanceAccount, TAccountGovernedProgram, TAccountProgramData, TAccountCurrentUpgradeAuthority, TAccountGoverningTokenOwnerRecord, TAccountPayer, TAccountBpfUpgradeableLoaderProgram, TAccountSystemProgram, TAccountGovernanceAuthority, TAccountRealmConfig, TAccountVoterWeightRecord>

    type CreateProgramGovernanceInput<
        TAccountRealmAccount extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountProgramGovernanceAccount extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountGovernedProgram extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountProgramData extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountCurrentUpgradeAuthority extends
            InstructionSignerInput = InstructionSignerInput,
        TAccountGoverningTokenOwnerRecord extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountPayer extends InstructionSignerInput = InstructionSignerInput,
        TAccountBpfUpgradeableLoaderProgram extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountSystemProgram extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountGovernanceAuthority extends
            InstructionSignerInput = InstructionSignerInput,
        TAccountRealmConfig extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountVoterWeightRecord extends
            InstructionAccountInput = InstructionAccountInput,
    > = {
        bpfUpgradeableLoaderProgram?: TAccountBpfUpgradeableLoaderProgram;
        config: CreateProgramGovernanceInstructionDataArgs["config"];
        currentUpgradeAuthority: TAccountCurrentUpgradeAuthority;
        governanceAuthority: TAccountGovernanceAuthority;
        governedProgram: TAccountGovernedProgram;
        governingTokenOwnerRecord: TAccountGoverningTokenOwnerRecord;
        payer: TAccountPayer;
        programData: TAccountProgramData;
        programGovernanceAccount: TAccountProgramGovernanceAccount;
        realmAccount: TAccountRealmAccount;
        realmConfig: TAccountRealmConfig;
        systemProgram?: TAccountSystemProgram;
        transferUpgradeAuthority: CreateProgramGovernanceInstructionDataArgs["transferUpgradeAuthority"];
        voterWeightRecord?: TAccountVoterWeightRecord;
    }

    Type Parameters

    • TAccountRealmAccount extends InstructionAccountInput = InstructionAccountInput
    • TAccountProgramGovernanceAccount extends InstructionAccountInput = InstructionAccountInput
    • TAccountGovernedProgram extends InstructionAccountInput = InstructionAccountInput
    • TAccountProgramData extends InstructionAccountInput = InstructionAccountInput
    • TAccountCurrentUpgradeAuthority extends InstructionSignerInput = InstructionSignerInput
    • TAccountGoverningTokenOwnerRecord extends InstructionAccountInput = InstructionAccountInput
    • TAccountPayer extends InstructionSignerInput = InstructionSignerInput
    • TAccountBpfUpgradeableLoaderProgram extends InstructionAccountInput = InstructionAccountInput
    • TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput
    • TAccountGovernanceAuthority extends InstructionSignerInput = InstructionSignerInput
    • TAccountRealmConfig extends InstructionAccountInput = InstructionAccountInput
    • TAccountVoterWeightRecord extends InstructionAccountInput = InstructionAccountInput
    Index
    bpfUpgradeableLoaderProgram?: TAccountBpfUpgradeableLoaderProgram

    bpf_upgradeable_loader_program program

    currentUpgradeAuthority: TAccountCurrentUpgradeAuthority

    Current Upgrade Authority account of the Program governed by this Governance account

    governanceAuthority: TAccountGovernanceAuthority
    governedProgram: TAccountGovernedProgram

    Program governed by this Governance account

    governingTokenOwnerRecord: TAccountGoverningTokenOwnerRecord

    Governing TokenOwnerRecord account (Used only if not signed by RealmAuthority)

    programData: TAccountProgramData

    Program Data account of the Program governed by this Governance account

    programGovernanceAccount: TAccountProgramGovernanceAccount

    Program Governance account. seeds: ['program-governance', realm, governed_program]

    realmAccount: TAccountRealmAccount

    Realm account the created Governance belongs to

    realmConfig: TAccountRealmConfig

    RealmConfig account. seeds=['realm-config', realm]

    systemProgram?: TAccountSystemProgram
    voterWeightRecord?: TAccountVoterWeightRecord

    Optional Voter Weight Record