"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.getRelayerRefundLeafEncoder = getRelayerRefundLeafEncoder;
exports.getRelayerRefundLeafDecoder = getRelayerRefundLeafDecoder;
exports.getRelayerRefundLeafCodec = getRelayerRefundLeafCodec;
const web3_v2_js_1 = require("@solana/web3-v2.js");
function getRelayerRefundLeafEncoder() {
    return (0, web3_v2_js_1.getStructEncoder)([
        ['amountToReturn', (0, web3_v2_js_1.getU64Encoder)()],
        ['chainId', (0, web3_v2_js_1.getU64Encoder)()],
        ['refundAmounts', (0, web3_v2_js_1.getArrayEncoder)((0, web3_v2_js_1.getU64Encoder)())],
        ['leafId', (0, web3_v2_js_1.getU32Encoder)()],
        ['mintPublicKey', (0, web3_v2_js_1.getAddressEncoder)()],
        ['refundAddresses', (0, web3_v2_js_1.getArrayEncoder)((0, web3_v2_js_1.getAddressEncoder)())],
    ]);
}
function getRelayerRefundLeafDecoder() {
    return (0, web3_v2_js_1.getStructDecoder)([
        ['amountToReturn', (0, web3_v2_js_1.getU64Decoder)()],
        ['chainId', (0, web3_v2_js_1.getU64Decoder)()],
        ['refundAmounts', (0, web3_v2_js_1.getArrayDecoder)((0, web3_v2_js_1.getU64Decoder)())],
        ['leafId', (0, web3_v2_js_1.getU32Decoder)()],
        ['mintPublicKey', (0, web3_v2_js_1.getAddressDecoder)()],
        ['refundAddresses', (0, web3_v2_js_1.getArrayDecoder)((0, web3_v2_js_1.getAddressDecoder)())],
    ]);
}
function getRelayerRefundLeafCodec() {
    return (0, web3_v2_js_1.combineCodec)(getRelayerRefundLeafEncoder(), getRelayerRefundLeafDecoder());
}
