/** * 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, getU8Decoder, getU8Encoder, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, } from '@solana/kit'; /** The identity-bound result of one committed settlement (the stake is implied by the authority PDA). */ export type RentSettlementReceipt = { incarnation: bigint; nonce: bigint; debit: bigint; newClock: bigint; reached: number; }; export type RentSettlementReceiptArgs = { incarnation: number | bigint; nonce: number | bigint; debit: number | bigint; newClock: number | bigint; reached: number; }; export function getRentSettlementReceiptEncoder(): FixedSizeEncoder { return getStructEncoder([ ['incarnation', getU64Encoder()], ['nonce', getU64Encoder()], ['debit', getU64Encoder()], ['newClock', getI64Encoder()], ['reached', getU8Encoder()], ]); } export function getRentSettlementReceiptDecoder(): FixedSizeDecoder { return getStructDecoder([ ['incarnation', getU64Decoder()], ['nonce', getU64Decoder()], ['debit', getU64Decoder()], ['newClock', getI64Decoder()], ['reached', getU8Decoder()], ]); } export function getRentSettlementReceiptCodec(): FixedSizeCodec< RentSettlementReceiptArgs, RentSettlementReceipt > { return combineCodec( getRentSettlementReceiptEncoder(), getRentSettlementReceiptDecoder(), ); }