Coda by Ian Macalinao
    Preparing search index...

    Interface ParsedCastVoteInstruction<TProgram, TAccountMetas>

    interface ParsedCastVoteInstruction<
        TProgram extends string = typeof SPL_GOVERNANCE_PROGRAM_ADDRESS,
        TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[],
    > {
        accounts: {
            governanceAccount: TAccountMetas[1];
            governanceAuthority: TAccountMetas[5];
            governingTokenMint: TAccountMetas[7];
            maxVoterWeightRecord?: TAccountMetas[12];
            payer: TAccountMetas[8];
            proposalAccount: TAccountMetas[2];
            proposalTokenOwnerRecord: TAccountMetas[3];
            proposalVoteRecord: TAccountMetas[6];
            realmAccount: TAccountMetas[0];
            realmConfigAccount: TAccountMetas[10];
            systemProgram: TAccountMetas[9];
            voterTokenOwnerRecord: TAccountMetas[4];
            voterWeightRecord?: TAccountMetas[11];
        };
        data: CastVoteInstructionData;
        programAddress: Address<TProgram>;
    }

    Type Parameters

    Index

    Properties

    accounts: {
        governanceAccount: TAccountMetas[1];
        governanceAuthority: TAccountMetas[5];
        governingTokenMint: TAccountMetas[7];
        maxVoterWeightRecord?: TAccountMetas[12];
        payer: TAccountMetas[8];
        proposalAccount: TAccountMetas[2];
        proposalTokenOwnerRecord: TAccountMetas[3];
        proposalVoteRecord: TAccountMetas[6];
        realmAccount: TAccountMetas[0];
        realmConfigAccount: TAccountMetas[10];
        systemProgram: TAccountMetas[9];
        voterTokenOwnerRecord: TAccountMetas[4];
        voterWeightRecord?: TAccountMetas[11];
    }

    Type Declaration

    • governanceAccount: TAccountMetas[1]
    • governanceAuthority: TAccountMetas[5]

      Governance Authority (Token Owner or Governance Delegate)

    • governingTokenMint: TAccountMetas[7]

      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

    • OptionalmaxVoterWeightRecord?: TAccountMetas[12]

      Optional Max Voter Weight Record

    • payer: TAccountMetas[8]
    • proposalAccount: TAccountMetas[2]
    • proposalTokenOwnerRecord: TAccountMetas[3]

      TokenOwnerRecord of the Proposal owner

    • proposalVoteRecord: TAccountMetas[6]

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

    • realmAccount: TAccountMetas[0]
    • realmConfigAccount: TAccountMetas[10]

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

    • systemProgram: TAccountMetas[9]
    • voterTokenOwnerRecord: TAccountMetas[4]

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

    • OptionalvoterWeightRecord?: TAccountMetas[11]

      Optional Voter Weight Record

    programAddress: Address<TProgram>