/** * 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, getU16Decoder, getU16Encoder, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, } from '@solana/kit'; export type DistributionEntry = { recipient: Address; bps: number }; export type DistributionEntryArgs = DistributionEntry; export function getDistributionEntryEncoder(): FixedSizeEncoder { return getStructEncoder([ ['recipient', getAddressEncoder()], ['bps', getU16Encoder()], ]); } export function getDistributionEntryDecoder(): FixedSizeDecoder { return getStructDecoder([ ['recipient', getAddressDecoder()], ['bps', getU16Decoder()], ]); } export function getDistributionEntryCodec(): FixedSizeCodec { return combineCodec(getDistributionEntryEncoder(), getDistributionEntryDecoder()); }