"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.getRelayExecutionEventInfoEncoder = getRelayExecutionEventInfoEncoder;
exports.getRelayExecutionEventInfoDecoder = getRelayExecutionEventInfoDecoder;
exports.getRelayExecutionEventInfoCodec = getRelayExecutionEventInfoCodec;
const web3_v2_js_1 = require("@solana/web3-v2.js");
const _1 = require(".");
function getRelayExecutionEventInfoEncoder() {
    return (0, web3_v2_js_1.getStructEncoder)([
        ['updatedRecipient', (0, web3_v2_js_1.getAddressEncoder)()],
        ['updatedMessageHash', (0, web3_v2_js_1.fixEncoderSize)((0, web3_v2_js_1.getBytesEncoder)(), 32)],
        ['updatedOutputAmount', (0, web3_v2_js_1.getU64Encoder)()],
        ['fillType', (0, _1.getFillTypeEncoder)()],
    ]);
}
function getRelayExecutionEventInfoDecoder() {
    return (0, web3_v2_js_1.getStructDecoder)([
        ['updatedRecipient', (0, web3_v2_js_1.getAddressDecoder)()],
        ['updatedMessageHash', (0, web3_v2_js_1.fixDecoderSize)((0, web3_v2_js_1.getBytesDecoder)(), 32)],
        ['updatedOutputAmount', (0, web3_v2_js_1.getU64Decoder)()],
        ['fillType', (0, _1.getFillTypeDecoder)()],
    ]);
}
function getRelayExecutionEventInfoCodec() {
    return (0, web3_v2_js_1.combineCodec)(getRelayExecutionEventInfoEncoder(), getRelayExecutionEventInfoDecoder());
}
