/**
 * 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, getAddressDecoder, getAddressEncoder, getArrayDecoder, getArrayEncoder, getBooleanDecoder, getBooleanEncoder, getStructDecoder, getStructEncoder, getU32Decoder, getU32Encoder, getU64Decoder, getU64Encoder, } from "@solana/kit";
export function getExecutedRelayerRefundRootEncoder() {
    return getStructEncoder([
        ["amountToReturn", getU64Encoder()],
        ["chainId", getU64Encoder()],
        ["refundAmounts", getArrayEncoder(getU64Encoder())],
        ["rootBundleId", getU32Encoder()],
        ["leafId", getU32Encoder()],
        ["l2TokenAddress", getAddressEncoder()],
        ["refundAddresses", getArrayEncoder(getAddressEncoder())],
        ["deferredRefunds", getBooleanEncoder()],
        ["caller", getAddressEncoder()],
    ]);
}
export function getExecutedRelayerRefundRootDecoder() {
    return getStructDecoder([
        ["amountToReturn", getU64Decoder()],
        ["chainId", getU64Decoder()],
        ["refundAmounts", getArrayDecoder(getU64Decoder())],
        ["rootBundleId", getU32Decoder()],
        ["leafId", getU32Decoder()],
        ["l2TokenAddress", getAddressDecoder()],
        ["refundAddresses", getArrayDecoder(getAddressDecoder())],
        ["deferredRefunds", getBooleanDecoder()],
        ["caller", getAddressDecoder()],
    ]);
}
export function getExecutedRelayerRefundRootCodec() {
    return combineCodec(getExecutedRelayerRefundRootEncoder(), getExecutedRelayerRefundRootDecoder());
}
//# sourceMappingURL=executedRelayerRefundRoot.js.map