/** * 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, getStructDecoder, getStructEncoder, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, } from '@solana/kit'; import { getCurrencyConfigDecoder, getCurrencyConfigEncoder, type CurrencyConfig, type CurrencyConfigArgs, } from '.'; export type Currencies = { /** ATLAS currency config */ atlas: CurrencyConfig; /** POLIS currency config */ polis: CurrencyConfig; }; export type CurrenciesArgs = { /** ATLAS currency config */ atlas: CurrencyConfigArgs; /** POLIS currency config */ polis: CurrencyConfigArgs; }; export function getCurrenciesEncoder(): FixedSizeEncoder { return getStructEncoder([ ['atlas', getCurrencyConfigEncoder()], ['polis', getCurrencyConfigEncoder()], ]); } export function getCurrenciesDecoder(): FixedSizeDecoder { return getStructDecoder([ ['atlas', getCurrencyConfigDecoder()], ['polis', getCurrencyConfigDecoder()], ]); } export function getCurrenciesCodec(): FixedSizeCodec< CurrenciesArgs, Currencies > { return combineCodec(getCurrenciesEncoder(), getCurrenciesDecoder()); }