Coda by Ian Macalinao
    Preparing search index...

    Type Alias CreateRealmInput<TAccountRealmAccount, TAccountRealmAuthority, TAccountCommunityTokenMint, TAccountCommunityTokenHoldingAccount, TAccountPayer, TAccountSystemProgram, TAccountTokenProgram, TAccountRent, TAccountCouncilTokenMint, TAccountCouncilTokenHoldingAccount, TAccountRealmConfig, TAccountCommunityVoterWeightAddin, TAccountMaxCommunityVoterWeightAddin, TAccountCouncilVoterWeightAddin, TAccountMaxCouncilVoterWeightAddin>

    type CreateRealmInput<
        TAccountRealmAccount extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountRealmAuthority extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountCommunityTokenMint extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountCommunityTokenHoldingAccount extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountPayer extends InstructionSignerInput = InstructionSignerInput,
        TAccountSystemProgram extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountTokenProgram extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountRent extends InstructionAccountInput = InstructionAccountInput,
        TAccountCouncilTokenMint extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountCouncilTokenHoldingAccount extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountRealmConfig extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountCommunityVoterWeightAddin extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountMaxCommunityVoterWeightAddin extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountCouncilVoterWeightAddin extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountMaxCouncilVoterWeightAddin extends
            InstructionAccountInput = InstructionAccountInput,
    > = {
        communityTokenHoldingAccount: TAccountCommunityTokenHoldingAccount;
        communityTokenMint: TAccountCommunityTokenMint;
        communityVoterWeightAddin?: TAccountCommunityVoterWeightAddin;
        configArgs: CreateRealmInstructionDataArgs["configArgs"];
        councilTokenHoldingAccount?: TAccountCouncilTokenHoldingAccount;
        councilTokenMint?: TAccountCouncilTokenMint;
        councilVoterWeightAddin?: TAccountCouncilVoterWeightAddin;
        maxCommunityVoterWeightAddin?: TAccountMaxCommunityVoterWeightAddin;
        maxCouncilVoterWeightAddin?: TAccountMaxCouncilVoterWeightAddin;
        name: CreateRealmInstructionDataArgs["name"];
        payer: TAccountPayer;
        realmAccount: TAccountRealmAccount;
        realmAuthority: TAccountRealmAuthority;
        realmConfig: TAccountRealmConfig;
        rent?: TAccountRent;
        systemProgram?: TAccountSystemProgram;
        tokenProgram?: TAccountTokenProgram;
    }

    Type Parameters

    • TAccountRealmAccount extends InstructionAccountInput = InstructionAccountInput
    • TAccountRealmAuthority extends InstructionAccountInput = InstructionAccountInput
    • TAccountCommunityTokenMint extends InstructionAccountInput = InstructionAccountInput
    • TAccountCommunityTokenHoldingAccount extends InstructionAccountInput = InstructionAccountInput
    • TAccountPayer extends InstructionSignerInput = InstructionSignerInput
    • TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput
    • TAccountTokenProgram extends InstructionAccountInput = InstructionAccountInput
    • TAccountRent extends InstructionAccountInput = InstructionAccountInput
    • TAccountCouncilTokenMint extends InstructionAccountInput = InstructionAccountInput
    • TAccountCouncilTokenHoldingAccount extends InstructionAccountInput = InstructionAccountInput
    • TAccountRealmConfig extends InstructionAccountInput = InstructionAccountInput
    • TAccountCommunityVoterWeightAddin extends InstructionAccountInput = InstructionAccountInput
    • TAccountMaxCommunityVoterWeightAddin extends InstructionAccountInput = InstructionAccountInput
    • TAccountCouncilVoterWeightAddin extends InstructionAccountInput = InstructionAccountInput
    • TAccountMaxCouncilVoterWeightAddin extends InstructionAccountInput = InstructionAccountInput
    Index
    communityTokenHoldingAccount: TAccountCommunityTokenHoldingAccount

    The account to hold the community tokens. PDA seeds=['governance', realm, community_mint]

    communityTokenMint: TAccountCommunityTokenMint

    The mint address of the token to be used as the community mint

    communityVoterWeightAddin?: TAccountCommunityVoterWeightAddin

    Optional Community Voter Weight Addin Program Id

    councilTokenHoldingAccount?: TAccountCouncilTokenHoldingAccount

    The account to hold the council tokens. PDA seeds: ['governance',realm,council_mint]

    councilTokenMint?: TAccountCouncilTokenMint

    The mint address of the token to be used as the council mint

    councilVoterWeightAddin?: TAccountCouncilVoterWeightAddin

    Optional Council Voter Weight Addin Program Id

    maxCommunityVoterWeightAddin?: TAccountMaxCommunityVoterWeightAddin

    Optional Max Community Voter Weight Addin Program Id

    maxCouncilVoterWeightAddin?: TAccountMaxCouncilVoterWeightAddin

    Optional Max Council Voter Weight Addin Program Id

    the payer of this transaction

    realmAccount: TAccountRealmAccount

    Governance Realm account

    realmAuthority: TAccountRealmAuthority

    The authority of the Realm

    realmConfig: TAccountRealmConfig

    Realm Config account

    SysVar Rent

    systemProgram?: TAccountSystemProgram

    System Program

    tokenProgram?: TAccountTokenProgram

    SPL Token Program