/** * 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, getArrayDecoder, getArrayEncoder, getStructDecoder, getStructEncoder, getU8Decoder, getU8Encoder, type Codec, type Decoder, type Encoder, } from "@solana/kit"; /** A Merkle proof used to validate membership against a rule's root hash. */ export type ProofInfo = { /** The sibling hashes forming the Merkle proof. */ proof: Array>; }; export type ProofInfoArgs = ProofInfo; export function getProofInfoEncoder(): Encoder { return getStructEncoder([ ["proof", getArrayEncoder(getArrayEncoder(getU8Encoder(), { size: 32 }))], ]); } export function getProofInfoDecoder(): Decoder { return getStructDecoder([ ["proof", getArrayDecoder(getArrayDecoder(getU8Decoder(), { size: 32 }))], ]); } export function getProofInfoCodec(): Codec { return combineCodec(getProofInfoEncoder(), getProofInfoDecoder()); }