/** * 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, getAddressDecoder, getAddressEncoder, getStructDecoder, getStructEncoder, getU64Decoder, getU64Encoder, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, } from '@solana/kit'; export type OrderInfo = { /** The price in Atlas (Floyds) */ price: bigint; /** The quantity of cargo being sold */ quantity: bigint; /** A unique (for the market) id for this order */ orderId: bigint; /** The maker id of the maker who placed the order */ maker: Address; }; export type OrderInfoArgs = { /** The price in Atlas (Floyds) */ price: number | bigint; /** The quantity of cargo being sold */ quantity: number | bigint; /** A unique (for the market) id for this order */ orderId: number | bigint; /** The maker id of the maker who placed the order */ maker: Address; }; export function getOrderInfoEncoder(): FixedSizeEncoder { return getStructEncoder([ ['price', getU64Encoder()], ['quantity', getU64Encoder()], ['orderId', getU64Encoder()], ['maker', getAddressEncoder()], ]); } export function getOrderInfoDecoder(): FixedSizeDecoder { return getStructDecoder([ ['price', getU64Decoder()], ['quantity', getU64Decoder()], ['orderId', getU64Decoder()], ['maker', getAddressDecoder()], ]); } export function getOrderInfoCodec(): FixedSizeCodec { return combineCodec(getOrderInfoEncoder(), getOrderInfoDecoder()); }