Coda by Ian Macalinao
    Preparing search index...

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

    interface CastVoteInput<
        TAccountRealmAccount extends string = string,
        TAccountGovernanceAccount extends string = string,
        TAccountProposalAccount extends string = string,
        TAccountProposalTokenOwnerRecord extends string = string,
        TAccountVoterTokenOwnerRecord extends string = string,
        TAccountGovernanceAuthority extends string = string,
        TAccountProposalVoteRecord extends string = string,
        TAccountGoverningTokenMint extends string = string,
        TAccountPayer extends string = string,
        TAccountSystemProgram extends string = string,
        TAccountRealmConfigAccount extends string = string,
        TAccountVoterWeightRecord extends string = string,
        TAccountMaxVoterWeightRecord extends string = string,
    > {
        governanceAccount: Address<TAccountGovernanceAccount>;
        governanceAuthority: TransactionSigner<TAccountGovernanceAuthority>;
        governingTokenMint: Address<TAccountGoverningTokenMint>;
        maxVoterWeightRecord?: Address<TAccountMaxVoterWeightRecord>;
        payer: TransactionSigner<TAccountPayer>;
        proposalAccount: Address<TAccountProposalAccount>;
        proposalTokenOwnerRecord: Address<TAccountProposalTokenOwnerRecord>;
        proposalVoteRecord: Address<TAccountProposalVoteRecord>;
        realmAccount: Address<TAccountRealmAccount>;
        realmConfigAccount: Address<TAccountRealmConfigAccount>;
        systemProgram?: Address<TAccountSystemProgram>;
        vote: VoteArgs;
        voterTokenOwnerRecord: Address<TAccountVoterTokenOwnerRecord>;
        voterWeightRecord?: Address<TAccountVoterWeightRecord>;
    }

    Type Parameters

    • TAccountRealmAccount extends string = string
    • TAccountGovernanceAccount extends string = string
    • TAccountProposalAccount extends string = string
    • TAccountProposalTokenOwnerRecord extends string = string
    • TAccountVoterTokenOwnerRecord extends string = string
    • TAccountGovernanceAuthority extends string = string
    • TAccountProposalVoteRecord extends string = string
    • TAccountGoverningTokenMint extends string = string
    • TAccountPayer extends string = string
    • TAccountSystemProgram extends string = string
    • TAccountRealmConfigAccount extends string = string
    • TAccountVoterWeightRecord extends string = string
    • TAccountMaxVoterWeightRecord extends string = string
    Index

    Properties

    governanceAccount: Address<TAccountGovernanceAccount>
    governanceAuthority: TransactionSigner<TAccountGovernanceAuthority>

    Governance Authority (Token Owner or Governance Delegate)

    governingTokenMint: Address<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?: Address<TAccountMaxVoterWeightRecord>

    Optional Max Voter Weight Record

    payer: TransactionSigner<TAccountPayer>
    proposalAccount: Address<TAccountProposalAccount>
    proposalTokenOwnerRecord: Address<TAccountProposalTokenOwnerRecord>

    TokenOwnerRecord of the Proposal owner

    proposalVoteRecord: Address<TAccountProposalVoteRecord>

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

    realmAccount: Address<TAccountRealmAccount>
    realmConfigAccount: Address<TAccountRealmConfigAccount>

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

    systemProgram?: Address<TAccountSystemProgram>
    vote: VoteArgs
    voterTokenOwnerRecord: Address<TAccountVoterTokenOwnerRecord>

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

    voterWeightRecord?: Address<TAccountVoterWeightRecord>

    Optional Voter Weight Record