Coda by Ian Macalinao
    Preparing search index...

    Type Alias CreateProposalInput<TAccountRealmAccount, TAccountProposalAccount, TAccountGovernanceAccount, TAccountTokenOwnerRecord, TAccountGoverningTokenMint, TAccountGovernanceAuthority, TAccountPayer, TAccountSystemProgram, TAccountRealmConfig, TAccountVoterWeightRecord, TAccountProposalDepositAccount>

    type CreateProposalInput<
        TAccountRealmAccount extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountProposalAccount extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountGovernanceAccount extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountTokenOwnerRecord extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountGoverningTokenMint extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountGovernanceAuthority extends
            InstructionSignerInput = InstructionSignerInput,
        TAccountPayer extends InstructionSignerInput = InstructionSignerInput,
        TAccountSystemProgram extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountRealmConfig extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountVoterWeightRecord extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountProposalDepositAccount extends
            InstructionAccountInput = InstructionAccountInput,
    > = {
        descriptionLink: CreateProposalInstructionDataArgs["descriptionLink"];
        governanceAccount: TAccountGovernanceAccount;
        governanceAuthority: TAccountGovernanceAuthority;
        governingTokenMint: TAccountGoverningTokenMint;
        name: CreateProposalInstructionDataArgs["name"];
        options: CreateProposalInstructionDataArgs["options"];
        payer: TAccountPayer;
        proposalAccount: TAccountProposalAccount;
        proposalDepositAccount?: TAccountProposalDepositAccount;
        proposalSeed: CreateProposalInstructionDataArgs["proposalSeed"];
        realmAccount: TAccountRealmAccount;
        realmConfig: TAccountRealmConfig;
        systemProgram?: TAccountSystemProgram;
        tokenOwnerRecord: TAccountTokenOwnerRecord;
        useDenyOption: CreateProposalInstructionDataArgs["useDenyOption"];
        voterWeightRecord?: TAccountVoterWeightRecord;
        voteType: CreateProposalInstructionDataArgs["voteType"];
    }

    Type Parameters

    • TAccountRealmAccount extends InstructionAccountInput = InstructionAccountInput
    • TAccountProposalAccount extends InstructionAccountInput = InstructionAccountInput
    • TAccountGovernanceAccount extends InstructionAccountInput = InstructionAccountInput
    • TAccountTokenOwnerRecord extends InstructionAccountInput = InstructionAccountInput
    • TAccountGoverningTokenMint extends InstructionAccountInput = InstructionAccountInput
    • TAccountGovernanceAuthority extends InstructionSignerInput = InstructionSignerInput
    • TAccountPayer extends InstructionSignerInput = InstructionSignerInput
    • TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput
    • TAccountRealmConfig extends InstructionAccountInput = InstructionAccountInput
    • TAccountVoterWeightRecord extends InstructionAccountInput = InstructionAccountInput
    • TAccountProposalDepositAccount extends InstructionAccountInput = InstructionAccountInput
    Index
    governanceAccount: TAccountGovernanceAccount

    Governance account

    governanceAuthority: TAccountGovernanceAuthority

    Governance Authority (Token Owner or Governance Delegate)

    governingTokenMint: TAccountGoverningTokenMint

    Token Mint the Proposal is created for

    proposalAccount: TAccountProposalAccount

    Proposal account. PDA seeds ['governance',governance, governing_token_mint, proposal_index]

    proposalDepositAccount?: TAccountProposalDepositAccount

    Optional Proposal deposit is required when there are more active proposals than the configured deposit exempt amount. PDA seeds: ['proposal-deposit', proposal, deposit payer]

    realmAccount: TAccountRealmAccount

    Realm account the created Proposal belongs to

    realmConfig: TAccountRealmConfig

    RealmConfig account. PDA seeds: ['realm-config', realm]

    systemProgram?: TAccountSystemProgram
    tokenOwnerRecord: TAccountTokenOwnerRecord

    TokenOwnerRecord account of the Proposal owner

    voterWeightRecord?: TAccountVoterWeightRecord

    Optional Voter Weight Record