UNPKG

@dydxprotocol/exchange-wrappers

Version:

Collection of exchange wrapper contracts used by the dYdX Protocol

24 lines 926 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SaiDaiExchangeWrapper = void 0; var deployed_json_1 = require("../../migrations/deployed.json"); var SaiDaiExchangeWrapper = /** @class */ (function () { function SaiDaiExchangeWrapper(networkId) { this.networkId = networkId; } SaiDaiExchangeWrapper.prototype.setNetworkId = function (networkId) { this.networkId = networkId; }; SaiDaiExchangeWrapper.prototype.getAddress = function () { return deployed_json_1.SaiDaiExchangeWrapper[this.networkId.toString()].address; }; SaiDaiExchangeWrapper.prototype.orderToBytes = function (order) { if (!order) { throw new Error('no SaiDaiOrder'); } return '0x'; }; return SaiDaiExchangeWrapper; }()); exports.SaiDaiExchangeWrapper = SaiDaiExchangeWrapper; //# sourceMappingURL=SaiDaiExchangeWrapper.js.map