/**
 * 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, fixDecoderSize, fixEncoderSize, getAddressDecoder, getAddressEncoder, getBytesDecoder, getBytesEncoder, getStructDecoder, getStructEncoder, getU32Decoder, getU32Encoder, } from "@solana/kit";
export function getMessageReceivedEncoder() {
    return getStructEncoder([
        ["caller", getAddressEncoder()],
        ["sourceDomain", getU32Encoder()],
        ["nonce", fixEncoderSize(getBytesEncoder(), 32)],
        ["sender", getAddressEncoder()],
        ["finalityThresholdExecuted", getU32Encoder()],
        ["messageBody", addEncoderSizePrefix(getBytesEncoder(), getU32Encoder())],
    ]);
}
export function getMessageReceivedDecoder() {
    return getStructDecoder([
        ["caller", getAddressDecoder()],
        ["sourceDomain", getU32Decoder()],
        ["nonce", fixDecoderSize(getBytesDecoder(), 32)],
        ["sender", getAddressDecoder()],
        ["finalityThresholdExecuted", getU32Decoder()],
        ["messageBody", addDecoderSizePrefix(getBytesDecoder(), getU32Decoder())],
    ]);
}
export function getMessageReceivedCodec() {
    return combineCodec(getMessageReceivedEncoder(), getMessageReceivedDecoder());
}
//# sourceMappingURL=messageReceived.js.map