/**
 * 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 { combineCodec, fixDecoderSize, fixEncoderSize, getBytesDecoder, getBytesEncoder, getStructDecoder, getStructEncoder, getU32Decoder, getU32Encoder, } from "@solana/kit";
export function getRelayedRootBundleEncoder() {
    return getStructEncoder([
        ["rootBundleId", getU32Encoder()],
        ["relayerRefundRoot", fixEncoderSize(getBytesEncoder(), 32)],
        ["slowRelayRoot", fixEncoderSize(getBytesEncoder(), 32)],
    ]);
}
export function getRelayedRootBundleDecoder() {
    return getStructDecoder([
        ["rootBundleId", getU32Decoder()],
        ["relayerRefundRoot", fixDecoderSize(getBytesDecoder(), 32)],
        ["slowRelayRoot", fixDecoderSize(getBytesDecoder(), 32)],
    ]);
}
export function getRelayedRootBundleCodec() {
    return combineCodec(getRelayedRootBundleEncoder(), getRelayedRootBundleDecoder());
}
//# sourceMappingURL=relayedRootBundle.js.map