/** * 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 CreateFactionTreasuryArgs = { /** Circuit-breaker epoch length, seconds. The per-epoch faucet ATLAS-out cap resets each window. */ epochLenSecs: bigint; /** Max ATLAS the treasury may emit on the faucet (sell-back) leg per epoch. */ atlasOutCapPerEpoch: bigint; }; export type CreateFactionTreasuryArgsArgs = { /** Circuit-breaker epoch length, seconds. The per-epoch faucet ATLAS-out cap resets each window. */ epochLenSecs: number | bigint; /** Max ATLAS the treasury may emit on the faucet (sell-back) leg per epoch. */ atlasOutCapPerEpoch: number | bigint; }; export function getCreateFactionTreasuryArgsEncoder(): FixedSizeEncoder { return getStructEncoder([ ['epochLenSecs', getI64Encoder()], ['atlasOutCapPerEpoch', getU64Encoder()], ]); } export function getCreateFactionTreasuryArgsDecoder(): FixedSizeDecoder { return getStructDecoder([ ['epochLenSecs', getI64Decoder()], ['atlasOutCapPerEpoch', getU64Decoder()], ]); } export function getCreateFactionTreasuryArgsCodec(): FixedSizeCodec< CreateFactionTreasuryArgsArgs, CreateFactionTreasuryArgs > { return combineCodec( getCreateFactionTreasuryArgsEncoder(), getCreateFactionTreasuryArgsDecoder(), ); }