@orbs-network/spot-ui 0.0.13 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package.json.d.ts +1 -1
- package/dist/spot-ui.js +86 -81
- package/dist/spot-ui.umd.cjs +10 -10
- package/dist/src/lib/analytics.d.ts +2 -1
- package/dist/src/lib/analytics.d.ts.map +1 -1
- package/dist/src/lib/consts.d.ts +1 -0
- package/dist/src/lib/consts.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/package.json.d.ts
CHANGED
package/dist/spot-ui.js
CHANGED
|
@@ -691,7 +691,7 @@ const rt = { chainName: "ftm", chainId: 250, twapVersion: 4, twapAddress: "0xd3B
|
|
|
691
691
|
]
|
|
692
692
|
}
|
|
693
693
|
], Wt = /* @__PURE__ */ JSON.parse('[{"inputs":[{"internalType":"address","name":"_iweth","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"id","type":"uint64"},{"indexed":true,"internalType":"address","name":"maker","type":"address"},{"indexed":true,"internalType":"address","name":"exchange","type":"address"},{"indexed":false,"internalType":"uint32","name":"slippagePercent","type":"uint32"},{"components":[{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"address","name":"taker","type":"address"},{"internalType":"address","name":"exchange","type":"address"},{"internalType":"uint256","name":"dstAmount","type":"uint256"},{"internalType":"uint256","name":"dstFee","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"indexed":false,"internalType":"struct OrderLib.Bid","name":"bid","type":"tuple"}],"name":"OrderBid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"id","type":"uint64"},{"indexed":true,"internalType":"address","name":"maker","type":"address"},{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"OrderCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"id","type":"uint64"},{"indexed":true,"internalType":"address","name":"maker","type":"address"},{"indexed":true,"internalType":"address","name":"exchange","type":"address"},{"indexed":false,"internalType":"address","name":"taker","type":"address"}],"name":"OrderCompleted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"id","type":"uint64"},{"indexed":true,"internalType":"address","name":"maker","type":"address"},{"indexed":true,"internalType":"address","name":"exchange","type":"address"},{"components":[{"internalType":"address","name":"exchange","type":"address"},{"internalType":"address","name":"srcToken","type":"address"},{"internalType":"address","name":"dstToken","type":"address"},{"internalType":"uint256","name":"srcAmount","type":"uint256"},{"internalType":"uint256","name":"srcBidAmount","type":"uint256"},{"internalType":"uint256","name":"dstMinAmount","type":"uint256"},{"internalType":"uint32","name":"deadline","type":"uint32"},{"internalType":"uint32","name":"bidDelay","type":"uint32"},{"internalType":"uint32","name":"fillDelay","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"indexed":false,"internalType":"struct OrderLib.Ask","name":"ask","type":"tuple"}],"name":"OrderCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"id","type":"uint64"},{"indexed":true,"internalType":"address","name":"maker","type":"address"},{"indexed":true,"internalType":"address","name":"exchange","type":"address"},{"indexed":false,"internalType":"address","name":"taker","type":"address"},{"indexed":false,"internalType":"uint256","name":"srcAmountIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"dstAmountOut","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"dstFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"srcFilledAmount","type":"uint256"}],"name":"OrderFilled","type":"event"},{"inputs":[],"name":"MIN_BID_DELAY_SECONDS","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_OUTBID_PERCENT","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERCENT_BASE","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STALE_BID_SECONDS","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STATUS_CANCELED","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STATUS_COMPLETED","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VERSION","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"exchange","type":"address"},{"internalType":"address","name":"srcToken","type":"address"},{"internalType":"address","name":"dstToken","type":"address"},{"internalType":"uint256","name":"srcAmount","type":"uint256"},{"internalType":"uint256","name":"srcBidAmount","type":"uint256"},{"internalType":"uint256","name":"dstMinAmount","type":"uint256"},{"internalType":"uint32","name":"deadline","type":"uint32"},{"internalType":"uint32","name":"bidDelay","type":"uint32"},{"internalType":"uint32","name":"fillDelay","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Ask","name":"_ask","type":"tuple"}],"name":"ask","outputs":[{"internalType":"uint64","name":"id","type":"uint64"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"id","type":"uint64"},{"internalType":"address","name":"exchange","type":"address"},{"internalType":"uint256","name":"dstFee","type":"uint256"},{"internalType":"uint32","name":"slippagePercent","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"bid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"book","outputs":[{"internalType":"uint64","name":"id","type":"uint64"},{"internalType":"uint32","name":"status","type":"uint32"},{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"uint32","name":"filledTime","type":"uint32"},{"internalType":"uint256","name":"srcFilledAmount","type":"uint256"},{"internalType":"address","name":"maker","type":"address"},{"components":[{"internalType":"address","name":"exchange","type":"address"},{"internalType":"address","name":"srcToken","type":"address"},{"internalType":"address","name":"dstToken","type":"address"},{"internalType":"uint256","name":"srcAmount","type":"uint256"},{"internalType":"uint256","name":"srcBidAmount","type":"uint256"},{"internalType":"uint256","name":"dstMinAmount","type":"uint256"},{"internalType":"uint32","name":"deadline","type":"uint32"},{"internalType":"uint32","name":"bidDelay","type":"uint32"},{"internalType":"uint32","name":"fillDelay","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Ask","name":"ask","type":"tuple"},{"components":[{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"address","name":"taker","type":"address"},{"internalType":"address","name":"exchange","type":"address"},{"internalType":"uint256","name":"dstAmount","type":"uint256"},{"internalType":"uint256","name":"dstFee","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Bid","name":"bid","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"id","type":"uint64"}],"name":"cancel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"id","type":"uint64"}],"name":"fill","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"iweth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"length","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"makerOrders","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"id","type":"uint64"}],"name":"order","outputs":[{"components":[{"internalType":"uint64","name":"id","type":"uint64"},{"internalType":"uint32","name":"status","type":"uint32"},{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"uint32","name":"filledTime","type":"uint32"},{"internalType":"uint256","name":"srcFilledAmount","type":"uint256"},{"internalType":"address","name":"maker","type":"address"},{"components":[{"internalType":"address","name":"exchange","type":"address"},{"internalType":"address","name":"srcToken","type":"address"},{"internalType":"address","name":"dstToken","type":"address"},{"internalType":"uint256","name":"srcAmount","type":"uint256"},{"internalType":"uint256","name":"srcBidAmount","type":"uint256"},{"internalType":"uint256","name":"dstMinAmount","type":"uint256"},{"internalType":"uint32","name":"deadline","type":"uint32"},{"internalType":"uint32","name":"bidDelay","type":"uint32"},{"internalType":"uint32","name":"fillDelay","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Ask","name":"ask","type":"tuple"},{"components":[{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"address","name":"taker","type":"address"},{"internalType":"address","name":"exchange","type":"address"},{"internalType":"uint256","name":"dstAmount","type":"uint256"},{"internalType":"uint256","name":"dstFee","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Bid","name":"bid","type":"tuple"}],"internalType":"struct OrderLib.Order","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"maker","type":"address"}],"name":"orderIdsByMaker","outputs":[{"internalType":"uint64[]","name":"","type":"uint64[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"id","type":"uint64"}],"name":"prune","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"status","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]'), zt = /* @__PURE__ */ JSON.parse('[{"inputs":[{"internalType":"contract TWAP","name":"_twap","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"maker","type":"address"},{"internalType":"uint256","name":"srcBidAmountNext","type":"uint256"}],"name":"hasAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"maker","type":"address"},{"internalType":"uint256","name":"srcBidAmountNext","type":"uint256"}],"name":"hasBalance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"length","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"maker","type":"address"}],"name":"makerOrders","outputs":[{"components":[{"internalType":"uint64","name":"id","type":"uint64"},{"internalType":"uint32","name":"status","type":"uint32"},{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"uint32","name":"filledTime","type":"uint32"},{"internalType":"uint256","name":"srcFilledAmount","type":"uint256"},{"internalType":"address","name":"maker","type":"address"},{"components":[{"internalType":"address","name":"exchange","type":"address"},{"internalType":"address","name":"srcToken","type":"address"},{"internalType":"address","name":"dstToken","type":"address"},{"internalType":"uint256","name":"srcAmount","type":"uint256"},{"internalType":"uint256","name":"srcBidAmount","type":"uint256"},{"internalType":"uint256","name":"dstMinAmount","type":"uint256"},{"internalType":"uint32","name":"deadline","type":"uint32"},{"internalType":"uint32","name":"bidDelay","type":"uint32"},{"internalType":"uint32","name":"fillDelay","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Ask","name":"ask","type":"tuple"},{"components":[{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"address","name":"taker","type":"address"},{"internalType":"address","name":"exchange","type":"address"},{"internalType":"uint256","name":"dstAmount","type":"uint256"},{"internalType":"uint256","name":"dstFee","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Bid","name":"bid","type":"tuple"}],"internalType":"struct OrderLib.Order[]","name":"result","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"taker","type":"address"},{"internalType":"uint64","name":"lastIndex","type":"uint64"},{"internalType":"uint64","name":"pageSize","type":"uint64"}],"name":"takerBiddableOrders","outputs":[{"components":[{"internalType":"uint64","name":"id","type":"uint64"},{"internalType":"uint32","name":"status","type":"uint32"},{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"uint32","name":"filledTime","type":"uint32"},{"internalType":"uint256","name":"srcFilledAmount","type":"uint256"},{"internalType":"address","name":"maker","type":"address"},{"components":[{"internalType":"address","name":"exchange","type":"address"},{"internalType":"address","name":"srcToken","type":"address"},{"internalType":"address","name":"dstToken","type":"address"},{"internalType":"uint256","name":"srcAmount","type":"uint256"},{"internalType":"uint256","name":"srcBidAmount","type":"uint256"},{"internalType":"uint256","name":"dstMinAmount","type":"uint256"},{"internalType":"uint32","name":"deadline","type":"uint32"},{"internalType":"uint32","name":"bidDelay","type":"uint32"},{"internalType":"uint32","name":"fillDelay","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Ask","name":"ask","type":"tuple"},{"components":[{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"address","name":"taker","type":"address"},{"internalType":"address","name":"exchange","type":"address"},{"internalType":"uint256","name":"dstAmount","type":"uint256"},{"internalType":"uint256","name":"dstFee","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Bid","name":"bid","type":"tuple"}],"internalType":"struct OrderLib.Order[]","name":"result","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"taker","type":"address"},{"internalType":"uint64","name":"lastIndex","type":"uint64"},{"internalType":"uint64","name":"pageSize","type":"uint64"}],"name":"takerFillableOrders","outputs":[{"components":[{"internalType":"uint64","name":"id","type":"uint64"},{"internalType":"uint32","name":"status","type":"uint32"},{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"uint32","name":"filledTime","type":"uint32"},{"internalType":"uint256","name":"srcFilledAmount","type":"uint256"},{"internalType":"address","name":"maker","type":"address"},{"components":[{"internalType":"address","name":"exchange","type":"address"},{"internalType":"address","name":"srcToken","type":"address"},{"internalType":"address","name":"dstToken","type":"address"},{"internalType":"uint256","name":"srcAmount","type":"uint256"},{"internalType":"uint256","name":"srcBidAmount","type":"uint256"},{"internalType":"uint256","name":"dstMinAmount","type":"uint256"},{"internalType":"uint32","name":"deadline","type":"uint32"},{"internalType":"uint32","name":"bidDelay","type":"uint32"},{"internalType":"uint32","name":"fillDelay","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Ask","name":"ask","type":"tuple"},{"components":[{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"address","name":"taker","type":"address"},{"internalType":"address","name":"exchange","type":"address"},{"internalType":"uint256","name":"dstAmount","type":"uint256"},{"internalType":"uint256","name":"dstFee","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Bid","name":"bid","type":"tuple"}],"internalType":"struct OrderLib.Order[]","name":"result","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"twap","outputs":[{"internalType":"contract TWAP","name":"","type":"address"}],"stateMutability":"view","type":"function"}]'), In = Ut, _n = Lt, Rn = Vt, Mn = Pt, Pn = Nt, Nn = Wt, Un = zt;
|
|
694
|
-
var
|
|
694
|
+
var q = /* @__PURE__ */ ((e) => (e.TWAP = "TWAP", e.LIMIT = "LIMIT", e.STOP_LOSS = "STOP_LOSS", e.TAKE_PROFIT = "TAKE_PROFIT", e))(q || {}), se = /* @__PURE__ */ ((e) => (e.Open = "OPEN", e.Canceled = "CANCELED", e.Completed = "COMPLETED", e.Expired = "EXPIRED", e))(se || {}), ne = /* @__PURE__ */ ((e) => (e[e.Minutes = 6e4] = "Minutes", e[e.Hours = 36e5] = "Hours", e[e.Weeks = 6048e5] = "Weeks", e[e.Days = 864e5] = "Days", e[e.Months = 2592e6] = "Months", e[e.Years = 31536e6] = "Years", e))(ne || {}), j = /* @__PURE__ */ ((e) => (e.LIMIT = "limit", e.TWAP_LIMIT = "twap-limit", e.TWAP_MARKET = "twap-market", e.TRIGGER_PRICE_MARKET = "trigger-price-market", e.TRIGGER_PRICE_LIMIT = "trigger-price-limit", e))(j || {}), $t = /* @__PURE__ */ ((e) => (e.Arbidex = "arbidex", e.Blackhole = "blackhole", e.Chronos = "chronos", e.Dragon = "dragon", e.Kodiak = "kodiak", e.Lynex = "lynex", e.Nami = "nami", e.Newera = "newera", e.Omni = "omni", e.Pancake = "pancake", e.Quick = "quick", e.Ramses = "ramses", e.Shadow = "shadow", e.Spark = "spark", e.Spooky = "spooky", e.Swapx = "swapx", e.Teafi = "teafi", e.Thena = "thena", e.Yowie = "yowie", e))($t || {});
|
|
695
695
|
const U = "0x0000000000000000000000000000000000000000", H = {
|
|
696
696
|
eth: {
|
|
697
697
|
id: 1,
|
|
@@ -1142,8 +1142,8 @@ const U = "0x0000000000000000000000000000000000000000", H = {
|
|
|
1142
1142
|
eip1559: !0
|
|
1143
1143
|
}
|
|
1144
1144
|
};
|
|
1145
|
-
var Ht = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, Fe = Math.ceil, J = Math.floor,
|
|
1146
|
-
function
|
|
1145
|
+
var Ht = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, Fe = Math.ceil, J = Math.floor, G = "[BigNumber Error] ", Ue = G + "Number primitive has more than 15 significant digits: ", te = 1e14, S = 14, ke = 9007199254740991, De = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], oe = 1e7, V = 1e9;
|
|
1146
|
+
function qe(e) {
|
|
1147
1147
|
var a, i, f, u = T.prototype = { constructor: T, toString: null, valueOf: null }, b = new T(1), A = 20, x = 4, k = -7, E = 21, O = -1e7, C = 1e7, D = !1, M = 1, _ = 0, le = {
|
|
1148
1148
|
prefix: "",
|
|
1149
1149
|
groupSize: 3,
|
|
@@ -1221,7 +1221,7 @@ function Ge(e) {
|
|
|
1221
1221
|
} else
|
|
1222
1222
|
c.c = [c.e = 0];
|
|
1223
1223
|
}
|
|
1224
|
-
T.clone =
|
|
1224
|
+
T.clone = qe, T.ROUND_UP = 0, T.ROUND_DOWN = 1, T.ROUND_CEIL = 2, T.ROUND_FLOOR = 3, T.ROUND_HALF_UP = 4, T.ROUND_HALF_DOWN = 5, T.ROUND_HALF_EVEN = 6, T.ROUND_HALF_CEIL = 7, T.ROUND_HALF_FLOOR = 8, T.EUCLID = 9, T.config = T.set = function(t) {
|
|
1225
1225
|
var n, s;
|
|
1226
1226
|
if (t != null)
|
|
1227
1227
|
if (typeof t == "object") {
|
|
@@ -1231,28 +1231,28 @@ function Ge(e) {
|
|
|
1231
1231
|
else if (R(s, -V, V, n), s)
|
|
1232
1232
|
O = -(C = s < 0 ? -s : s);
|
|
1233
1233
|
else
|
|
1234
|
-
throw Error(
|
|
1234
|
+
throw Error(G + n + " cannot be zero: " + s);
|
|
1235
1235
|
if (t.hasOwnProperty(n = "CRYPTO"))
|
|
1236
1236
|
if (s = t[n], s === !!s)
|
|
1237
1237
|
if (s)
|
|
1238
1238
|
if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes))
|
|
1239
1239
|
D = s;
|
|
1240
1240
|
else
|
|
1241
|
-
throw D = !s, Error(
|
|
1241
|
+
throw D = !s, Error(G + "crypto unavailable");
|
|
1242
1242
|
else
|
|
1243
1243
|
D = s;
|
|
1244
1244
|
else
|
|
1245
|
-
throw Error(
|
|
1245
|
+
throw Error(G + n + " not true or false: " + s);
|
|
1246
1246
|
if (t.hasOwnProperty(n = "MODULO_MODE") && (s = t[n], R(s, 0, 9, n), M = s), t.hasOwnProperty(n = "POW_PRECISION") && (s = t[n], R(s, 0, V, n), _ = s), t.hasOwnProperty(n = "FORMAT"))
|
|
1247
1247
|
if (s = t[n], typeof s == "object") le = s;
|
|
1248
|
-
else throw Error(
|
|
1248
|
+
else throw Error(G + n + " not an object: " + s);
|
|
1249
1249
|
if (t.hasOwnProperty(n = "ALPHABET"))
|
|
1250
1250
|
if (s = t[n], typeof s == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(s))
|
|
1251
1251
|
ye = s.slice(0, 10) == "0123456789", re = s;
|
|
1252
1252
|
else
|
|
1253
|
-
throw Error(
|
|
1253
|
+
throw Error(G + n + " invalid: " + s);
|
|
1254
1254
|
} else
|
|
1255
|
-
throw Error(
|
|
1255
|
+
throw Error(G + "Object expected: " + t);
|
|
1256
1256
|
return {
|
|
1257
1257
|
DECIMAL_PLACES: A,
|
|
1258
1258
|
ROUNDING_MODE: x,
|
|
@@ -1282,7 +1282,7 @@ function Ge(e) {
|
|
|
1282
1282
|
}
|
|
1283
1283
|
} else if (l === null && d === null && (o === null || o === 1 || o === -1))
|
|
1284
1284
|
return !0;
|
|
1285
|
-
throw Error(
|
|
1285
|
+
throw Error(G + "Invalid BigNumber: " + t);
|
|
1286
1286
|
}, T.maximum = T.max = function() {
|
|
1287
1287
|
return Ne(arguments, -1);
|
|
1288
1288
|
}, T.minimum = T.min = function() {
|
|
@@ -1305,7 +1305,7 @@ function Ge(e) {
|
|
|
1305
1305
|
r = (l[p] & 31) * 281474976710656 + l[p + 1] * 1099511627776 + l[p + 2] * 4294967296 + l[p + 3] * 16777216 + (l[p + 4] << 16) + (l[p + 5] << 8) + l[p + 6], r >= 9e15 ? crypto.randomBytes(7).copy(l, p) : (y.push(r % 1e14), p += 7);
|
|
1306
1306
|
p = m / 7;
|
|
1307
1307
|
} else
|
|
1308
|
-
throw D = !1, Error(
|
|
1308
|
+
throw D = !1, Error(G + "crypto unavailable");
|
|
1309
1309
|
if (!D)
|
|
1310
1310
|
for (; p < m; )
|
|
1311
1311
|
r = n(), r < 9e15 && (y[p++] = r % 1e14);
|
|
@@ -1452,7 +1452,7 @@ function Ge(e) {
|
|
|
1452
1452
|
}), p && (y = p, c = c.replace(n, "$1").replace(s, "0.$1")), m != c))
|
|
1453
1453
|
return new T(c, y);
|
|
1454
1454
|
if (T.DEBUG)
|
|
1455
|
-
throw Error(
|
|
1455
|
+
throw Error(G + "Not a" + (p ? " base " + p : "") + " number: " + m);
|
|
1456
1456
|
o.s = null;
|
|
1457
1457
|
}
|
|
1458
1458
|
o.c = o.e = null;
|
|
@@ -1521,7 +1521,7 @@ function Ge(e) {
|
|
|
1521
1521
|
}, u.exponentiatedBy = u.pow = function(t, n) {
|
|
1522
1522
|
var s, l, d, o, m, r, p, y, c, h = this;
|
|
1523
1523
|
if (t = new T(t), t.c && !t.isInteger())
|
|
1524
|
-
throw Error(
|
|
1524
|
+
throw Error(G + "Exponent not an integer: " + ie(t));
|
|
1525
1525
|
if (n != null && (n = new T(n)), r = t.e > 14, !h.c || !h.c[0] || h.c[0] == 1 && !h.e && h.c.length == 1 || !t.c || !t.c[0])
|
|
1526
1526
|
return c = new T(Math.pow(+ie(h), r ? t.s * (2 - Te(t)) : +ie(t))), n ? c.mod(n) : c;
|
|
1527
1527
|
if (p = t.s < 0, n) {
|
|
@@ -1681,7 +1681,7 @@ function Ge(e) {
|
|
|
1681
1681
|
if (s == null)
|
|
1682
1682
|
t != null && n && typeof n == "object" ? (s = n, n = null) : t && typeof t == "object" ? (s = t, t = n = null) : s = le;
|
|
1683
1683
|
else if (typeof s != "object")
|
|
1684
|
-
throw Error(
|
|
1684
|
+
throw Error(G + "Argument not an object: " + s);
|
|
1685
1685
|
if (l = d.toFixed(t, n), d.c) {
|
|
1686
1686
|
var o, m = l.split("."), r = +s.groupSize, p = +s.secondaryGroupSize, y = s.groupSeparator || "", c = m[0], h = m[1], w = d.s < 0, F = w ? c.slice(1) : c, v = F.length;
|
|
1687
1687
|
if (p && (o = r, r = p, p = o, v -= o), r > 0 && v > 0) {
|
|
@@ -1697,7 +1697,7 @@ function Ge(e) {
|
|
|
1697
1697
|
}, u.toFraction = function(t) {
|
|
1698
1698
|
var n, s, l, d, o, m, r, p, y, c, h, w, F = this, v = F.c;
|
|
1699
1699
|
if (t != null && (r = new T(t), !r.isInteger() && (r.c || r.s !== 1) || r.lt(b)))
|
|
1700
|
-
throw Error(
|
|
1700
|
+
throw Error(G + "Argument " + (r.isInteger() ? "out of range: " : "not an integer: ") + ie(r));
|
|
1701
1701
|
if (!v) return new T(F);
|
|
1702
1702
|
for (n = new T(b), y = s = new T(b), l = p = new T(b), w = Z(v), o = n.e = w.length - F.e - 1, n.c[0] = De[(m = o % S) < 0 ? S + m : m], t = !t || r.comparedTo(n) > 0 ? o > 0 ? n : y : r, m = C, C = 1 / 0, r = new T(w), p.c[0] = 0; c = a(r, n, 0, 1), d = s.plus(c.times(l)), d.comparedTo(t) != 1; )
|
|
1703
1703
|
s = l, l = d, y = p.plus(c.times(d = y)), p = d, n = r.minus(c.times(d = n)), r = d;
|
|
@@ -1739,7 +1739,7 @@ function ce(e, a) {
|
|
|
1739
1739
|
}
|
|
1740
1740
|
function R(e, a, i, f) {
|
|
1741
1741
|
if (e < a || e > i || e !== J(e))
|
|
1742
|
-
throw Error(
|
|
1742
|
+
throw Error(G + (f || "Argument") + (typeof e == "number" ? e < a || e > i ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(e));
|
|
1743
1743
|
}
|
|
1744
1744
|
function Te(e) {
|
|
1745
1745
|
var a = e.c.length - 1;
|
|
@@ -1759,12 +1759,12 @@ function de(e, a, i) {
|
|
|
1759
1759
|
} else a < f && (e = e.slice(0, a) + "." + e.slice(a));
|
|
1760
1760
|
return e;
|
|
1761
1761
|
}
|
|
1762
|
-
var g =
|
|
1762
|
+
var g = qe();
|
|
1763
1763
|
const Ln = (e, a) => {
|
|
1764
1764
|
if (!e || !a) return "";
|
|
1765
1765
|
const i = g(10).pow(e || 0);
|
|
1766
1766
|
return g(a).times(i).idiv(i).div(i).toFixed();
|
|
1767
|
-
}, Vn = (e, a) => !e || !a ? "" :
|
|
1767
|
+
}, Vn = (e, a) => !e || !a ? "" : Gt(a).times(g(10).pow(e)).decimalPlaces(0).toFixed(0), Kt = g(0);
|
|
1768
1768
|
g(1);
|
|
1769
1769
|
g(10);
|
|
1770
1770
|
g(1e18);
|
|
@@ -1774,13 +1774,13 @@ function Le(e, a) {
|
|
|
1774
1774
|
function ge(e, a) {
|
|
1775
1775
|
return e == a || e.toLowerCase() == a.toLowerCase();
|
|
1776
1776
|
}
|
|
1777
|
-
function
|
|
1777
|
+
function Gt(e, a, i) {
|
|
1778
1778
|
if (typeof e != "string") return Le(e);
|
|
1779
1779
|
const f = ".", u = e.replace(new RegExp(`[^${f}\\d-]+`, "g"), "");
|
|
1780
1780
|
return Le(u);
|
|
1781
1781
|
}
|
|
1782
1782
|
const Wn = (e) => !!Jt.find((a) => ge(a, e || ""));
|
|
1783
|
-
function
|
|
1783
|
+
function qt(e) {
|
|
1784
1784
|
return [ne.Years, ne.Months, ne.Weeks, ne.Days, ne.Hours, ne.Minutes].find((i) => i <= e) || ne.Minutes;
|
|
1785
1785
|
}
|
|
1786
1786
|
const ue = (e) => e ? e.value * e.unit : 0, jt = (e) => !e || e === "NaN" ? "0" : g(e).decimalPlaces(0).toFixed(), zn = (e) => Object.values(H).find((a) => a.id === e), Xt = (e) => {
|
|
@@ -1797,7 +1797,7 @@ const Kn = (e) => {
|
|
|
1797
1797
|
/* ENV */
|
|
1798
1798
|
);
|
|
1799
1799
|
return e === "prod" ? Se : e === "dev" ? Ve : Ie === "prod" ? Se : Ie === "dev" ? Ve : Se;
|
|
1800
|
-
},
|
|
1800
|
+
}, Gn = 100, qn = 1, _e = 300 * 1e3, fe = 365 * 24 * 60 * 60 * 1e3, We = 300 * 1e3, Qt = new Date(
|
|
1801
1801
|
_e
|
|
1802
1802
|
).getMinutes(), ze = (e) => `https://hub.orbs.network/api/private/project_cm7nb67z86nyr01z12gs0fxpf/subgraphs/orbs-twap-${e}/prod/gn`, Y = "https://hub.orbs.network/api/apikey/subgraphs/id", Zt = {
|
|
1803
1803
|
[H.eth.id]: `${Y}/Bf7bvMYcJbDAvYWJmhMpHZ4cpFjqzkhK6GXXEpnPRq6`,
|
|
@@ -2000,7 +2000,7 @@ const Kn = (e) => {
|
|
|
2000
2000
|
]
|
|
2001
2001
|
}, Zn = "https://www.orbs.com/dtwap-and-dlimit-faq/", Yn = "https://www.orbs.com/dtwap-and-dlimit-faq/#dSLTP", Jn = "https://raw.githubusercontent.com/orbs-network/twap-ui/master/logo/orbslogo.svg", ea = "https://www.orbs.com/assets/img/common/logo.svg", ta = "https://www.orbs.com/", na = "https://www.orbs.com/dtwap-dlimit-disclaimer";
|
|
2002
2002
|
var Qe = /* @__PURE__ */ ((e) => (e.FRESHNESS = "freshness", e.MIN_CHUNK_SIZE_USD = "minChunkSizeUsd", e.ENV = "env", e))(Qe || {});
|
|
2003
|
-
const aa = "-5", sa = "10", ra = "-10", ia = "5";
|
|
2003
|
+
const aa = "-5", sa = "10", ra = "-10", ia = "5", da = "Something went wrong";
|
|
2004
2004
|
function an(e) {
|
|
2005
2005
|
throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
2006
2006
|
}
|
|
@@ -2041,75 +2041,75 @@ function rn() {
|
|
|
2041
2041
|
return Be = { config: f, abis: i, raw: e }, Be;
|
|
2042
2042
|
}
|
|
2043
2043
|
var Ze = rn();
|
|
2044
|
-
const
|
|
2044
|
+
const pa = (e, a, i) => {
|
|
2045
2045
|
if (!e || !a || !i) return;
|
|
2046
2046
|
const f = g(e).times(a), u = g(10).pow(i);
|
|
2047
2047
|
return f.div(u).toFixed(0);
|
|
2048
|
-
},
|
|
2048
|
+
}, oa = (e, a, i, f) => {
|
|
2049
2049
|
if (i || !f || !e || !a)
|
|
2050
2050
|
return g(0).toString();
|
|
2051
2051
|
const u = g(e).times(g(a)), b = g(10).pow(f), A = u.div(b);
|
|
2052
2052
|
return g.max(1, A).integerValue(g.ROUND_FLOOR).toFixed(0);
|
|
2053
|
-
},
|
|
2054
|
-
if (e ===
|
|
2053
|
+
}, ua = (e, a, i, f) => {
|
|
2054
|
+
if (e === q.TWAP || e === q.LIMIT)
|
|
2055
2055
|
return "0";
|
|
2056
2056
|
if (!f || !a || !i) return;
|
|
2057
2057
|
const u = g(a).times(g(i)), b = g(10).pow(f), A = u.div(b);
|
|
2058
2058
|
return g.max(1, A).integerValue(g.ROUND_FLOOR).toFixed(0) || "0";
|
|
2059
|
-
},
|
|
2060
|
-
const u = ue(i) * 2 * a, b =
|
|
2061
|
-
return f || (e ===
|
|
2062
|
-
},
|
|
2059
|
+
}, ca = (e, a, i, f) => {
|
|
2060
|
+
const u = ue(i) * 2 * a, b = qt(u);
|
|
2061
|
+
return f || (e === q.LIMIT ? { unit: ne.Days, value: 7 } : e === q.STOP_LOSS || e === q.TAKE_PROFIT ? { unit: ne.Days, value: 1 } : { unit: b, value: Number(g(u / b).toFixed(2)) });
|
|
2062
|
+
}, la = (e, a, i) => a !== q.TWAP ? 1 : i !== void 0 ? i : e, ya = (e, a, i, f) => {
|
|
2063
2063
|
if (!a || !i || !f) return 1;
|
|
2064
2064
|
const b = g(i).times(a).div(f).integerValue(g.ROUND_FLOOR).toNumber(), A = Math.floor(
|
|
2065
2065
|
fe / 2 / ue(e)
|
|
2066
2066
|
);
|
|
2067
2067
|
return Math.max(1, Math.min(b, A));
|
|
2068
|
-
},
|
|
2068
|
+
}, ma = (e) => Ye(e) / 1e3 / 60, fa = (e, a) => e + ue(a) + 6e4, Ye = (e) => e.bidDelaySeconds * 1e3 * 2, ha = (e, a) => !e || !a ? "0" : g(e).div(a).integerValue(g.ROUND_FLOOR).toFixed(0), ba = (e, a) => ({
|
|
2069
2069
|
isError: !(e.unit === $e.unit && e.value === $e.value) && ue(e) * a > fe,
|
|
2070
2070
|
value: Math.floor(fe / a)
|
|
2071
|
-
}),
|
|
2072
|
-
if (i ===
|
|
2071
|
+
}), Ta = (e = "", a = "", i) => {
|
|
2072
|
+
if (i === q.STOP_LOSS)
|
|
2073
2073
|
return {
|
|
2074
2074
|
isError: g(a || 0).gte(g(e || 0)),
|
|
2075
2075
|
value: e
|
|
2076
2076
|
};
|
|
2077
|
-
},
|
|
2078
|
-
if (i ===
|
|
2077
|
+
}, Aa = (e = "", a = "", i) => {
|
|
2078
|
+
if (i === q.TAKE_PROFIT)
|
|
2079
2079
|
return {
|
|
2080
2080
|
isError: g(a || 0).lte(g(e || 0)),
|
|
2081
2081
|
value: e
|
|
2082
2082
|
};
|
|
2083
|
-
},
|
|
2084
|
-
if (!i && f ===
|
|
2083
|
+
}, ga = (e = "", a = "", i = !1, f) => {
|
|
2084
|
+
if (!i && f === q.STOP_LOSS)
|
|
2085
2085
|
return {
|
|
2086
2086
|
isError: g(a || 0).gte(g(e || 0)),
|
|
2087
2087
|
value: e
|
|
2088
2088
|
};
|
|
2089
|
-
},
|
|
2090
|
-
if (!i && f ===
|
|
2089
|
+
}, xa = (e = "", a = "", i = !1, f) => {
|
|
2090
|
+
if (!i && f === q.TAKE_PROFIT)
|
|
2091
2091
|
return {
|
|
2092
2092
|
isError: g(a || 0).gte(g(e || 0)),
|
|
2093
2093
|
value: e
|
|
2094
2094
|
};
|
|
2095
|
-
},
|
|
2095
|
+
}, Ea = (e, a) => e === q.STOP_LOSS || e === q.TAKE_PROFIT ? {
|
|
2096
2096
|
isError: ue(a) > 5184e6,
|
|
2097
2097
|
value: 5184e6
|
|
2098
2098
|
} : {
|
|
2099
2099
|
isError: ue(a) > fe,
|
|
2100
2100
|
// 365 days
|
|
2101
2101
|
value: fe
|
|
2102
|
-
},
|
|
2102
|
+
}, wa = (e) => ({
|
|
2103
2103
|
isError: ue(e) < We,
|
|
2104
2104
|
value: We
|
|
2105
|
-
}),
|
|
2105
|
+
}), Ca = (e) => ({
|
|
2106
2106
|
isError: ue(e) < _e,
|
|
2107
2107
|
value: _e
|
|
2108
|
-
}),
|
|
2108
|
+
}), Fa = (e, a, i) => ({
|
|
2109
2109
|
isError: g(a || 0).multipliedBy(e || 0).isLessThan(i),
|
|
2110
2110
|
value: i
|
|
2111
|
-
}),
|
|
2112
|
-
isError: i ===
|
|
2111
|
+
}), ka = (e, a, i) => ({
|
|
2112
|
+
isError: i === q.TWAP && g(e).isGreaterThan(a),
|
|
2113
2113
|
value: a
|
|
2114
2114
|
}), dn = (e, a) => {
|
|
2115
2115
|
var i;
|
|
@@ -2136,7 +2136,7 @@ const da = (e, a, i) => {
|
|
|
2136
2136
|
config: dn(Number(a), u)
|
|
2137
2137
|
}));
|
|
2138
2138
|
}).sort((a, i) => a.name.localeCompare(i.name));
|
|
2139
|
-
},
|
|
2139
|
+
}, Da = ({
|
|
2140
2140
|
chainId: e,
|
|
2141
2141
|
srcToken: a,
|
|
2142
2142
|
dstToken: i,
|
|
@@ -2199,11 +2199,11 @@ const da = (e, a, i) => {
|
|
|
2199
2199
|
types: nn,
|
|
2200
2200
|
primaryType: tn
|
|
2201
2201
|
};
|
|
2202
|
-
}, on = "0.0.
|
|
2202
|
+
}, on = "0.0.14", un = {
|
|
2203
2203
|
version: on
|
|
2204
2204
|
}, cn = 0.7, ln = `https://bi.orbs.network/putes/twap-ui-${cn}`, Je = un.version;
|
|
2205
2205
|
let Re = "unknown";
|
|
2206
|
-
function
|
|
2206
|
+
function Sa(e) {
|
|
2207
2207
|
Re = e;
|
|
2208
2208
|
}
|
|
2209
2209
|
function Oe() {
|
|
@@ -2316,6 +2316,10 @@ class mn {
|
|
|
2316
2316
|
onApproveError(a) {
|
|
2317
2317
|
this.onTxError(a);
|
|
2318
2318
|
}
|
|
2319
|
+
onCrash(a) {
|
|
2320
|
+
var i;
|
|
2321
|
+
this.updateAndSend({ action: "crash", actionError: ((i = a == null ? void 0 : a.message) == null ? void 0 : i.toLowerCase()) || (a == null ? void 0 : a.toLowerCase()) });
|
|
2322
|
+
}
|
|
2319
2323
|
onTxError(a) {
|
|
2320
2324
|
var f;
|
|
2321
2325
|
const i = ((f = a == null ? void 0 : a.message) == null ? void 0 : f.toLowerCase()) || (a == null ? void 0 : a.toLowerCase());
|
|
@@ -2474,7 +2478,7 @@ const ve = new mn(), fn = (e) => {
|
|
|
2474
2478
|
srcAmountPerTrade: e.order.witness.input.amount,
|
|
2475
2479
|
txHash: "",
|
|
2476
2480
|
totalTradesAmount: f,
|
|
2477
|
-
isMarketPrice:
|
|
2481
|
+
isMarketPrice: g(i || 0).lte(1),
|
|
2478
2482
|
chainId: e.order.witness.chainid,
|
|
2479
2483
|
filledOrderTimestamp: 0,
|
|
2480
2484
|
status: Tn(e, a),
|
|
@@ -2482,7 +2486,7 @@ const ve = new mn(), fn = (e) => {
|
|
|
2482
2486
|
};
|
|
2483
2487
|
}, An = async ({ chainId: e, signal: a, account: i }) => i ? (await (await fetch(`${Xe()}/orders?swapper=${i}&chainId=${e}`, {
|
|
2484
2488
|
signal: a
|
|
2485
|
-
})).json()).orders.map(et) : [],
|
|
2489
|
+
})).json()).orders.map(et) : [], Ba = async (e, a) => {
|
|
2486
2490
|
try {
|
|
2487
2491
|
const i = {
|
|
2488
2492
|
signature: a,
|
|
@@ -2592,17 +2596,17 @@ const ve = new mn(), fn = (e) => {
|
|
|
2592
2596
|
filledDollarValueOut: i.dollarValueOut.toFixed(),
|
|
2593
2597
|
dexFee: i.dexFee.toFixed()
|
|
2594
2598
|
};
|
|
2595
|
-
},
|
|
2599
|
+
}, Ge = (e, a) => {
|
|
2596
2600
|
const i = g(e || 0).gt(1);
|
|
2597
2601
|
return !i && a === 1 ? j.TWAP_MARKET : a > 1 && i ? j.TWAP_LIMIT : i ? j.LIMIT : j.TWAP_MARKET;
|
|
2598
2602
|
}, xn = (e) => e === j.TWAP_MARKET || e === j.TRIGGER_PRICE_MARKET, En = (e, a, i, f) => {
|
|
2599
2603
|
var _;
|
|
2600
|
-
const { filledDstAmount: u, filledSrcAmount: b, filledDollarValueIn: A, filledDollarValueOut: x, dexFee: k } = tt(i || []), E = new g(e.ask_srcAmount || 0).div(e.ask_srcBidAmount).integerValue(g.ROUND_FLOOR).toNumber(), C = (i == null ? void 0 : i.length) === E ? (_ = i == null ? void 0 : i[(i == null ? void 0 : i.length) - 1]) == null ? void 0 : _.timestamp : void 0, D = nt(e.ask_srcAmount, b), M =
|
|
2604
|
+
const { filledDstAmount: u, filledSrcAmount: b, filledDollarValueIn: A, filledDollarValueOut: x, dexFee: k } = tt(i || []), E = new g(e.ask_srcAmount || 0).div(e.ask_srcBidAmount).integerValue(g.ROUND_FLOOR).toNumber(), C = (i == null ? void 0 : i.length) === E ? (_ = i == null ? void 0 : i[(i == null ? void 0 : i.length) - 1]) == null ? void 0 : _.timestamp : void 0, D = nt(e.ask_srcAmount, b), M = Ge(e.ask_dstMinAmount, E);
|
|
2601
2605
|
return {
|
|
2602
2606
|
version: 1,
|
|
2603
2607
|
id: e.Contract_id.toString(),
|
|
2604
2608
|
hash: "",
|
|
2605
|
-
type:
|
|
2609
|
+
type: Ge(e.ask_dstMinAmount, E),
|
|
2606
2610
|
srcTokenAddress: e.ask_srcToken,
|
|
2607
2611
|
dstTokenAddress: e.ask_dstToken,
|
|
2608
2612
|
exchangeAddress: e.exchange,
|
|
@@ -2801,7 +2805,7 @@ const Sn = async ({
|
|
|
2801
2805
|
if (!a || !e) return 0;
|
|
2802
2806
|
const i = g(a).dividedBy(e).toNumber();
|
|
2803
2807
|
return i >= 0.99 ? 100 : i <= 0 ? 0 : Number((i * 100).toFixed(2));
|
|
2804
|
-
}, On = (e, a, i) => e === 100 ? se.Completed : i === "CANCELED" ? se.Canceled : i === "COMPLETED" ? se.Completed : a > Date.now() ? se.Open : se.Expired,
|
|
2808
|
+
}, On = (e, a, i) => e === 100 ? se.Completed : i === "CANCELED" ? se.Canceled : i === "COMPLETED" ? se.Completed : a > Date.now() ? se.Open : se.Expired, Oa = async ({
|
|
2805
2809
|
signal: e,
|
|
2806
2810
|
page: a,
|
|
2807
2811
|
chainId: i,
|
|
@@ -2813,6 +2817,7 @@ const Sn = async ({
|
|
|
2813
2817
|
An({ chainId: i, signal: e, account: b })
|
|
2814
2818
|
]).then(([k, E]) => [...k, ...E])).sort((k, E) => E.createdAt - k.createdAt);
|
|
2815
2819
|
export {
|
|
2820
|
+
da as CRASH_ERROR_MESSAGE,
|
|
2816
2821
|
$ as Configs,
|
|
2817
2822
|
$e as DEFAULT_FILL_DELAY,
|
|
2818
2823
|
ra as DEFAULT_STOP_LOSS_LIMIT_PERCENTAGE,
|
|
@@ -2829,11 +2834,11 @@ export {
|
|
|
2829
2834
|
en as LEGACY_EXCHANGES_MAP,
|
|
2830
2835
|
Un as LENS_ABI,
|
|
2831
2836
|
fe as MAX_ORDER_DURATION_MILLIS,
|
|
2832
|
-
|
|
2837
|
+
qn as MIN_CHUNKS,
|
|
2833
2838
|
_e as MIN_FILL_DELAY_MILLIS,
|
|
2834
2839
|
Qt as MIN_FILL_DELAY_MINUTES,
|
|
2835
2840
|
We as MIN_ORDER_DURATION_MILLIS,
|
|
2836
|
-
|
|
2841
|
+
q as Module,
|
|
2837
2842
|
Jn as ORBS_LOGO,
|
|
2838
2843
|
ea as ORBS_LOGO_FALLBACK,
|
|
2839
2844
|
Yn as ORBS_SLTP_FAQ_URL,
|
|
@@ -2846,50 +2851,50 @@ export {
|
|
|
2846
2851
|
In as REACTOR_ABI,
|
|
2847
2852
|
Rn as REPERMIT_ABI,
|
|
2848
2853
|
tn as REPERMIT_PRIMARY_TYPE,
|
|
2849
|
-
|
|
2854
|
+
Gn as SUGGEST_CHUNK_VALUE,
|
|
2850
2855
|
Zt as THE_GRAPH_ORDERS_API,
|
|
2851
2856
|
Nn as TWAP_ABI,
|
|
2852
2857
|
ne as TimeUnit,
|
|
2853
2858
|
Vn as amountBN,
|
|
2854
2859
|
Ln as amountUi,
|
|
2855
2860
|
ve as analytics,
|
|
2856
|
-
|
|
2861
|
+
Da as buildRePermitOrderData,
|
|
2857
2862
|
ge as eqIgnoreCase,
|
|
2858
|
-
|
|
2863
|
+
Oa as getAccountOrders,
|
|
2859
2864
|
Xe as getApiEndpoint,
|
|
2860
|
-
|
|
2865
|
+
la as getChunks,
|
|
2861
2866
|
dn as getConfig,
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2867
|
+
fa as getDeadline,
|
|
2868
|
+
pa as getDestTokenAmount,
|
|
2869
|
+
oa as getDestTokenMinAmountPerChunk,
|
|
2870
|
+
ca as getDuration,
|
|
2866
2871
|
Ye as getEstimatedDelayBetweenChunksMillis,
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2872
|
+
ka as getMaxChunksError,
|
|
2873
|
+
ba as getMaxFillDelayError,
|
|
2874
|
+
Ea as getMaxOrderDurationError,
|
|
2875
|
+
ya as getMaxPossibleChunks,
|
|
2876
|
+
Ca as getMinFillDelayError,
|
|
2877
|
+
wa as getMinOrderDurationError,
|
|
2878
|
+
Fa as getMinTradeSizeError,
|
|
2879
|
+
ma as getMinimumDelayMinutes,
|
|
2875
2880
|
zn as getNetwork,
|
|
2876
2881
|
$n as getOrderFillDelayMillis,
|
|
2877
2882
|
Hn as getPartnerChains,
|
|
2878
2883
|
K as getPartnerIdentifier,
|
|
2879
2884
|
pn as getPartners,
|
|
2880
2885
|
je as getQueryParam,
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2886
|
+
ha as getSrcTokenChunkAmount,
|
|
2887
|
+
ga as getStopLossLimitPriceError,
|
|
2888
|
+
Ta as getStopLossPriceError,
|
|
2889
|
+
xa as getTakeProfitLimitPriceError,
|
|
2890
|
+
Aa as getTakeProfitPriceError,
|
|
2891
|
+
ua as getTriggerPricePerChunk,
|
|
2887
2892
|
Wn as isNativeAddress,
|
|
2888
2893
|
jn as maxUint256,
|
|
2889
2894
|
Jt as nativeTokenAddresses,
|
|
2890
2895
|
H as networks,
|
|
2891
2896
|
Kn as setApiMode,
|
|
2892
|
-
|
|
2893
|
-
|
|
2897
|
+
Sa as setUIVersion,
|
|
2898
|
+
Ba as submitOrder,
|
|
2894
2899
|
Yt as zeroAddress
|
|
2895
2900
|
};
|