/** * 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 { addDecoderSizePrefix, addEncoderSizePrefix, combineCodec, getArrayDecoder, getArrayEncoder, getBytesDecoder, getBytesEncoder, getStructDecoder, getStructEncoder, getU32Decoder, getU32Encoder, type Codec, type Decoder, type Encoder, type ReadonlyUint8Array, } from "@solana/kit"; /** A list of seeds used to derive and match a program address in a rule. */ export type SeedsVec = { /** The ordered seed byte-strings. */ seeds: Array; }; export type SeedsVecArgs = SeedsVec; export function getSeedsVecEncoder(): Encoder { return getStructEncoder([ [ "seeds", getArrayEncoder(addEncoderSizePrefix(getBytesEncoder(), getU32Encoder())), ], ]); } export function getSeedsVecDecoder(): Decoder { return getStructDecoder([ [ "seeds", getArrayDecoder(addDecoderSizePrefix(getBytesDecoder(), getU32Decoder())), ], ]); } export function getSeedsVecCodec(): Codec { return combineCodec(getSeedsVecEncoder(), getSeedsVecDecoder()); }