"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.getRelayedRootBundleEncoder = getRelayedRootBundleEncoder;
exports.getRelayedRootBundleDecoder = getRelayedRootBundleDecoder;
exports.getRelayedRootBundleCodec = getRelayedRootBundleCodec;
const web3_v2_js_1 = require("@solana/web3-v2.js");
function getRelayedRootBundleEncoder() {
    return (0, web3_v2_js_1.getStructEncoder)([
        ['rootBundleId', (0, web3_v2_js_1.getU32Encoder)()],
        ['relayerRefundRoot', (0, web3_v2_js_1.fixEncoderSize)((0, web3_v2_js_1.getBytesEncoder)(), 32)],
        ['slowRelayRoot', (0, web3_v2_js_1.fixEncoderSize)((0, web3_v2_js_1.getBytesEncoder)(), 32)],
    ]);
}
function getRelayedRootBundleDecoder() {
    return (0, web3_v2_js_1.getStructDecoder)([
        ['rootBundleId', (0, web3_v2_js_1.getU32Decoder)()],
        ['relayerRefundRoot', (0, web3_v2_js_1.fixDecoderSize)((0, web3_v2_js_1.getBytesDecoder)(), 32)],
        ['slowRelayRoot', (0, web3_v2_js_1.fixDecoderSize)((0, web3_v2_js_1.getBytesDecoder)(), 32)],
    ]);
}
function getRelayedRootBundleCodec() {
    return (0, web3_v2_js_1.combineCodec)(getRelayedRootBundleEncoder(), getRelayedRootBundleDecoder());
}
