"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.getEnabledDepositRouteEncoder = getEnabledDepositRouteEncoder;
exports.getEnabledDepositRouteDecoder = getEnabledDepositRouteDecoder;
exports.getEnabledDepositRouteCodec = getEnabledDepositRouteCodec;
const kit_1 = require("@solana/kit");
function getEnabledDepositRouteEncoder() {
    return (0, kit_1.getStructEncoder)([
        ['originToken', (0, kit_1.getAddressEncoder)()],
        ['destinationChainId', (0, kit_1.getU64Encoder)()],
        ['enabled', (0, kit_1.getBooleanEncoder)()],
    ]);
}
function getEnabledDepositRouteDecoder() {
    return (0, kit_1.getStructDecoder)([
        ['originToken', (0, kit_1.getAddressDecoder)()],
        ['destinationChainId', (0, kit_1.getU64Decoder)()],
        ['enabled', (0, kit_1.getBooleanDecoder)()],
    ]);
}
function getEnabledDepositRouteCodec() {
    return (0, kit_1.combineCodec)(getEnabledDepositRouteEncoder(), getEnabledDepositRouteDecoder());
}
