Coda by Ian Macalinao
    Preparing search index...

    Type Alias CastVoteInput<TAccountRealmAccount, TAccountGovernanceAccount, TAccountProposalAccount, TAccountProposalTokenOwnerRecord, TAccountVoterTokenOwnerRecord, TAccountGovernanceAuthority, TAccountProposalVoteRecord, TAccountGoverningTokenMint, TAccountPayer, TAccountSystemProgram, TAccountRealmConfigAccount, TAccountVoterWeightRecord, TAccountMaxVoterWeightRecord>

    type CastVoteInput<
        TAccountRealmAccount extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountGovernanceAccount extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountProposalAccount extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountProposalTokenOwnerRecord extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountVoterTokenOwnerRecord extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountGovernanceAuthority extends
            InstructionSignerInput = InstructionSignerInput,
        TAccountProposalVoteRecord extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountGoverningTokenMint extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountPayer extends InstructionSignerInput = InstructionSignerInput,
        TAccountSystemProgram extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountRealmConfigAccount extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountVoterWeightRecord extends
            InstructionAccountInput = InstructionAccountInput,
        TAccountMaxVoterWeightRecord extends
            InstructionAccountInput = InstructionAccountInput,
    > = {
        governanceAccount: TAccountGovernanceAccount;
        governanceAuthority: TAccountGovernanceAuthority;
        governingTokenMint: TAccountGoverningTokenMint;
        maxVoterWeightRecord?: TAccountMaxVoterWeightRecord;
        payer: TAccountPayer;
        proposalAccount: TAccountProposalAccount;
        proposalTokenOwnerRecord: TAccountProposalTokenOwnerRecord;
        proposalVoteRecord: TAccountProposalVoteRecord;
        realmAccount: TAccountRealmAccount;
        realmConfigAccount: TAccountRealmConfigAccount;
        systemProgram?: TAccountSystemProgram;
        vote: CastVoteInstructionDataArgs["vote"];
        voterTokenOwnerRecord: TAccountVoterTokenOwnerRecord;
        voterWeightRecord?: TAccountVoterWeightRecord;
    }

    Type Parameters

    • TAccountRealmAccount extends InstructionAccountInput = InstructionAccountInput
    • TAccountGovernanceAccount extends InstructionAccountInput = InstructionAccountInput
    • TAccountProposalAccount extends InstructionAccountInput = InstructionAccountInput
    • TAccountProposalTokenOwnerRecord extends InstructionAccountInput = InstructionAccountInput
    • TAccountVoterTokenOwnerRecord extends InstructionAccountInput = InstructionAccountInput
    • TAccountGovernanceAuthority extends InstructionSignerInput = InstructionSignerInput
    • TAccountProposalVoteRecord extends InstructionAccountInput = InstructionAccountInput
    • TAccountGoverningTokenMint extends InstructionAccountInput = InstructionAccountInput
    • TAccountPayer extends InstructionSignerInput = InstructionSignerInput
    • TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput
    • TAccountRealmConfigAccount extends InstructionAccountInput = InstructionAccountInput
    • TAccountVoterWeightRecord extends InstructionAccountInput = InstructionAccountInput
    • TAccountMaxVoterWeightRecord extends InstructionAccountInput = InstructionAccountInput
    Index
    governanceAccount: TAccountGovernanceAccount
    governanceAuthority: TAccountGovernanceAuthority

    Governance Authority (Token Owner or Governance Delegate)

    governingTokenMint: TAccountGoverningTokenMint

    The Governing Token Mint which is used to cast the vote (vote_governing_token_mint). The voting token mint is the governing_token_mint of the Proposal for Approve, Deny and Abstain votes. For Veto vote the voting token mint is the mint of the opposite voting population. Council mint to veto Community proposals and Community mint to veto Council proposals Note: In the current version only Council veto is supported

    maxVoterWeightRecord?: TAccountMaxVoterWeightRecord

    Optional Max Voter Weight Record

    proposalAccount: TAccountProposalAccount
    proposalTokenOwnerRecord: TAccountProposalTokenOwnerRecord

    TokenOwnerRecord of the Proposal owner

    proposalVoteRecord: TAccountProposalVoteRecord

    Proposal VoteRecord account. PDA seeds: ['governance',proposal,token_owner_record]

    realmAccount: TAccountRealmAccount
    realmConfigAccount: TAccountRealmConfigAccount

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

    systemProgram?: TAccountSystemProgram
    voterTokenOwnerRecord: TAccountVoterTokenOwnerRecord

    TokenOwnerRecord of the voter. PDA seeds: ['governance',realm, vote_governing_token_mint, governing_token_owner]

    voterWeightRecord?: TAccountVoterWeightRecord

    Optional Voter Weight Record