/** * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ import { combineCodec, getI64Decoder, getI64Encoder, getStructDecoder, getStructEncoder, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, } from '@solana/kit'; export type SetContestedArgs = { /** New contested window (0 = clear; else strictly-future + capped). */ contestedUntil: bigint; }; export type SetContestedArgsArgs = { /** New contested window (0 = clear; else strictly-future + capped). */ contestedUntil: number | bigint; }; export function getSetContestedArgsEncoder(): FixedSizeEncoder { return getStructEncoder([['contestedUntil', getI64Encoder()]]); } export function getSetContestedArgsDecoder(): FixedSizeDecoder { return getStructDecoder([['contestedUntil', getI64Decoder()]]); } export function getSetContestedArgsCodec(): FixedSizeCodec< SetContestedArgsArgs, SetContestedArgs > { return combineCodec( getSetContestedArgsEncoder(), getSetContestedArgsDecoder(), ); }