"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getRelayedRootBundleEncoder = getRelayedRootBundleEncoder;
exports.getRelayedRootBundleDecoder = getRelayedRootBundleDecoder;
exports.getRelayedRootBundleCodec = getRelayedRootBundleCodec;
var kit_1 = require("@solana/kit");
function getRelayedRootBundleEncoder() {
    return (0, kit_1.getStructEncoder)([
        ["rootBundleId", (0, kit_1.getU32Encoder)()],
        ["relayerRefundRoot", (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 32)],
        ["slowRelayRoot", (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 32)],
    ]);
}
function getRelayedRootBundleDecoder() {
    return (0, kit_1.getStructDecoder)([
        ["rootBundleId", (0, kit_1.getU32Decoder)()],
        ["relayerRefundRoot", (0, kit_1.fixDecoderSize)((0, kit_1.getBytesDecoder)(), 32)],
        ["slowRelayRoot", (0, kit_1.fixDecoderSize)((0, kit_1.getBytesDecoder)(), 32)],
    ]);
}
function getRelayedRootBundleCodec() {
    return (0, kit_1.combineCodec)(getRelayedRootBundleEncoder(), getRelayedRootBundleDecoder());
}
//# sourceMappingURL=relayedRootBundle.js.map