"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.getRequestedSlowFillEncoder = getRequestedSlowFillEncoder;
exports.getRequestedSlowFillDecoder = getRequestedSlowFillDecoder;
exports.getRequestedSlowFillCodec = getRequestedSlowFillCodec;
const web3_v2_js_1 = require("@solana/web3-v2.js");
function getRequestedSlowFillEncoder() {
    return (0, web3_v2_js_1.getStructEncoder)([
        ['inputToken', (0, web3_v2_js_1.getAddressEncoder)()],
        ['outputToken', (0, web3_v2_js_1.getAddressEncoder)()],
        ['inputAmount', (0, web3_v2_js_1.getU64Encoder)()],
        ['outputAmount', (0, web3_v2_js_1.getU64Encoder)()],
        ['originChainId', (0, web3_v2_js_1.getU64Encoder)()],
        ['depositId', (0, web3_v2_js_1.fixEncoderSize)((0, web3_v2_js_1.getBytesEncoder)(), 32)],
        ['fillDeadline', (0, web3_v2_js_1.getU32Encoder)()],
        ['exclusivityDeadline', (0, web3_v2_js_1.getU32Encoder)()],
        ['exclusiveRelayer', (0, web3_v2_js_1.getAddressEncoder)()],
        ['depositor', (0, web3_v2_js_1.getAddressEncoder)()],
        ['recipient', (0, web3_v2_js_1.getAddressEncoder)()],
        ['messageHash', (0, web3_v2_js_1.fixEncoderSize)((0, web3_v2_js_1.getBytesEncoder)(), 32)],
    ]);
}
function getRequestedSlowFillDecoder() {
    return (0, web3_v2_js_1.getStructDecoder)([
        ['inputToken', (0, web3_v2_js_1.getAddressDecoder)()],
        ['outputToken', (0, web3_v2_js_1.getAddressDecoder)()],
        ['inputAmount', (0, web3_v2_js_1.getU64Decoder)()],
        ['outputAmount', (0, web3_v2_js_1.getU64Decoder)()],
        ['originChainId', (0, web3_v2_js_1.getU64Decoder)()],
        ['depositId', (0, web3_v2_js_1.fixDecoderSize)((0, web3_v2_js_1.getBytesDecoder)(), 32)],
        ['fillDeadline', (0, web3_v2_js_1.getU32Decoder)()],
        ['exclusivityDeadline', (0, web3_v2_js_1.getU32Decoder)()],
        ['exclusiveRelayer', (0, web3_v2_js_1.getAddressDecoder)()],
        ['depositor', (0, web3_v2_js_1.getAddressDecoder)()],
        ['recipient', (0, web3_v2_js_1.getAddressDecoder)()],
        ['messageHash', (0, web3_v2_js_1.fixDecoderSize)((0, web3_v2_js_1.getBytesDecoder)(), 32)],
    ]);
}
function getRequestedSlowFillCodec() {
    return (0, web3_v2_js_1.combineCodec)(getRequestedSlowFillEncoder(), getRequestedSlowFillDecoder());
}
