Coda by Ian Macalinao
    Preparing search index...

    Type Alias CastVoteInstruction<TProgram, TAccountLocker, TAccountEscrow, TAccountVoteDelegate, TAccountProposal, TAccountVote, TAccountGovernor, TAccountGovernProgram, TRemainingAccounts>

    CastVoteInstruction: Instruction<TProgram> & InstructionWithData<
        ReadonlyUint8Array,
    > & InstructionWithAccounts<
        [
            TAccountLocker extends string
                ? ReadonlyAccount<TAccountLocker>
                : TAccountLocker,
            TAccountEscrow extends string
                ? ReadonlyAccount<TAccountEscrow>
                : TAccountEscrow,
            TAccountVoteDelegate extends string
                ? ReadonlySignerAccount<TAccountVoteDelegate> & AccountSignerMeta<
                    TAccountVoteDelegate,
                >
                : TAccountVoteDelegate,
            TAccountProposal extends string
                ? WritableAccount<TAccountProposal>
                : TAccountProposal,
            TAccountVote extends string ? WritableAccount<TAccountVote> : TAccountVote,
            TAccountGovernor extends string
                ? ReadonlyAccount<TAccountGovernor>
                : TAccountGovernor,
            TAccountGovernProgram extends string
                ? ReadonlyAccount<TAccountGovernProgram>
                : TAccountGovernProgram,
            ...TRemainingAccounts,
        ],
    >

    Type Parameters

    • TProgram extends string = typeof LOCKED_VOTER_PROGRAM_ADDRESS
    • TAccountLocker extends string | AccountMeta = string
    • TAccountEscrow extends string | AccountMeta = string
    • TAccountVoteDelegate extends string | AccountMeta = string
    • TAccountProposal extends string | AccountMeta = string
    • TAccountVote extends string | AccountMeta = string
    • TAccountGovernor extends string | AccountMeta = string
    • TAccountGovernProgram extends string | AccountMeta = string
    • TRemainingAccounts extends readonly AccountMeta[] = []