"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const token_math_1 = require("@melonproject/token-math");
const types_1 = require("@0x/types");
const Contracts_1 = require("../../../../../Contracts");
const callFactory_1 = require("../../../../../utils/solidity/callFactory");
const prepareArgs = (_, { assetProxyId = types_1.AssetProxyId.ERC20 }) => [assetProxyId.toString()];
const postProcess = (_, result) => new token_math_1.Address(result);
const getAssetProxy = callFactory_1.callFactory('getAssetProxy', Contracts_1.Contracts.ZeroExExchange, {
    postProcess,
    prepareArgs,
});
exports.getAssetProxy = getAssetProxy;
