Coda by Ian Macalinao
    Preparing search index...

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

    interface CreateGovernanceInput<
        TAccountRealmAccount extends string = string,
        TAccountGovernanceAccount extends string = string,
        TAccountGovernedAccount extends string = string,
        TAccountGoverningTokenOwnerRecord extends string = string,
        TAccountPayer extends string = string,
        TAccountSystemProgram extends string = string,
        TAccountGovernanceAuthority extends string = string,
        TAccountRealmConfigAccount extends string = string,
        TAccountVoterWeightRecord extends string = string,
    > {
        config: GovernanceConfigArgs;
        governanceAccount: Address<TAccountGovernanceAccount>;
        governanceAuthority: TransactionSigner<TAccountGovernanceAuthority>;
        governedAccount: Address<TAccountGovernedAccount>;
        governingTokenOwnerRecord: Address<TAccountGoverningTokenOwnerRecord>;
        payer: TransactionSigner<TAccountPayer>;
        realmAccount: Address<TAccountRealmAccount>;
        realmConfigAccount: Address<TAccountRealmConfigAccount>;
        systemProgram?: Address<TAccountSystemProgram>;
        voterWeightRecord?: Address<TAccountVoterWeightRecord>;
    }

    Type Parameters

    • TAccountRealmAccount extends string = string
    • TAccountGovernanceAccount extends string = string
    • TAccountGovernedAccount extends string = string
    • TAccountGoverningTokenOwnerRecord extends string = string
    • TAccountPayer extends string = string
    • TAccountSystemProgram extends string = string
    • TAccountGovernanceAuthority extends string = string
    • TAccountRealmConfigAccount extends string = string
    • TAccountVoterWeightRecord extends string = string
    Index

    Properties

    governanceAccount: Address<TAccountGovernanceAccount>

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

    governanceAuthority: TransactionSigner<TAccountGovernanceAuthority>
    governedAccount: Address<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: Address<TAccountGoverningTokenOwnerRecord>

    Used only if not signed by RealmAuthority

    payer: TransactionSigner<TAccountPayer>
    realmAccount: Address<TAccountRealmAccount>

    Realm account the created governance belongs to

    realmConfigAccount: Address<TAccountRealmConfigAccount>

    seeds=['realm-config', realm]

    systemProgram?: Address<TAccountSystemProgram>
    voterWeightRecord?: Address<TAccountVoterWeightRecord>

    Optional Voter Weight Record