/** * 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, getU64Decoder, getU64Encoder, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, } from '@solana/kit'; export type CreateEncounterTreasuryArgs = { /** Circuit-breaker epoch length, seconds. The per-epoch ATLAS-out cap resets each window. */ epochLenSecs: bigint; /** Max ATLAS the treasury may emit on the faucet leg per epoch (inflation ceiling). */ atlasOutCapPerEpoch: bigint; }; export type CreateEncounterTreasuryArgsArgs = { /** Circuit-breaker epoch length, seconds. The per-epoch ATLAS-out cap resets each window. */ epochLenSecs: number | bigint; /** Max ATLAS the treasury may emit on the faucet leg per epoch (inflation ceiling). */ atlasOutCapPerEpoch: number | bigint; }; export function getCreateEncounterTreasuryArgsEncoder(): FixedSizeEncoder { return getStructEncoder([ ['epochLenSecs', getI64Encoder()], ['atlasOutCapPerEpoch', getU64Encoder()], ]); } export function getCreateEncounterTreasuryArgsDecoder(): FixedSizeDecoder { return getStructDecoder([ ['epochLenSecs', getI64Decoder()], ['atlasOutCapPerEpoch', getU64Decoder()], ]); } export function getCreateEncounterTreasuryArgsCodec(): FixedSizeCodec< CreateEncounterTreasuryArgsArgs, CreateEncounterTreasuryArgs > { return combineCodec( getCreateEncounterTreasuryArgsEncoder(), getCreateEncounterTreasuryArgsDecoder(), ); }