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