"use strict";
/**
 * 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
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.getHandleReceiveMessageParamsEncoder = getHandleReceiveMessageParamsEncoder;
exports.getHandleReceiveMessageParamsDecoder = getHandleReceiveMessageParamsDecoder;
exports.getHandleReceiveMessageParamsCodec = getHandleReceiveMessageParamsCodec;
const kit_1 = require("@solana/kit");
function getHandleReceiveMessageParamsEncoder() {
    return (0, kit_1.getStructEncoder)([
        ['remoteDomain', (0, kit_1.getU32Encoder)()],
        ['sender', (0, kit_1.getAddressEncoder)()],
        ['finalityThresholdExecuted', (0, kit_1.getU32Encoder)()],
        ['messageBody', (0, kit_1.addEncoderSizePrefix)((0, kit_1.getBytesEncoder)(), (0, kit_1.getU32Encoder)())],
        ['authorityBump', (0, kit_1.getU8Encoder)()],
    ]);
}
function getHandleReceiveMessageParamsDecoder() {
    return (0, kit_1.getStructDecoder)([
        ['remoteDomain', (0, kit_1.getU32Decoder)()],
        ['sender', (0, kit_1.getAddressDecoder)()],
        ['finalityThresholdExecuted', (0, kit_1.getU32Decoder)()],
        ['messageBody', (0, kit_1.addDecoderSizePrefix)((0, kit_1.getBytesDecoder)(), (0, kit_1.getU32Decoder)())],
        ['authorityBump', (0, kit_1.getU8Decoder)()],
    ]);
}
function getHandleReceiveMessageParamsCodec() {
    return (0, kit_1.combineCodec)(getHandleReceiveMessageParamsEncoder(), getHandleReceiveMessageParamsDecoder());
}
