@thorswap-lib/swapkit-entities
Advanced tools
Comparing version 1.0.0-rc.28 to 1.0.0-rc.29
var Ge = Object.defineProperty; | ||
var Fe = (t, s, f) => s in t ? Ge(t, s, { enumerable: !0, configurable: !0, writable: !0, value: f }) : t[s] = f; | ||
var P = (t, s, f) => (Fe(t, typeof s != "symbol" ? s + "" : s, f), f); | ||
var m = /* @__PURE__ */ ((t) => (t.INVALID_INPUT_PARAMETERS = "1000", t.UNKNOWN_PROVIDERS = "1001", t.CANNOT_FIND_INBOUND_ADDRESS = "1002", t.NO_INBOUND_ADDRESSES = "1003", t.CHAIN_HALTED_OR_UNSUPPORTED = "1004", t.MISSING_INPUT_PARAMETER = "1005", t.INVALID_TYPE_GENERIC = "1100", t.INVALID_NUMBER_STRING = "1101", t.INVALID_NUMBER = "1102", t.INVALID_BOOLEAN = "1103", t.INVALID_OBJECT = "1104", t.INVALID_ARRAY = "1105", t.SELL_AMOUNT_MUST_BE_POSITIVE_INTEGER = "2000", t.SELL_BUY_ASSETS_ARE_THE_SAME = "2001", t.MISSING_SOURCE_ADDRESS_FOR_SYNTH = "2002", t.AFF_ADDRESS_AND_BPS_OR_NEITHER = "2003", t.AFF_ADDRESS_TOO_LONG = "2004", t.AFF_BPS_INTEGER_0_100 = "2005", t.SOURCE_ADDRESS_INVALID_FOR_SELL_CHAIN = "2006", t.DESTINATION_ADDRESS_INVALID_FOR_BUY_CHAIN = "2007", t.PREFERRED_PROFVIDER_NOT_SUPPORTED = "2008", t.DESTINATION_ADDRESS_SMART_CONTRACT = "2009", t.BUY_AMOUNT_MUST_BE_POSITIVE_INTEGER = "2010", t.SOURCE_ADDRESS_SMART_CONTRACT = "2011", t.INVALID_PROVIDER = "2100", t.MISSING_CROSS_CHAIN_PROVIDER = "2101", t.MISSING_AVAX_PROVIDER = "2102", t.MISSING_BSC_PROVIDER = "2103", t.MISSING_ETH_PROVIDER = "2104", t.INVALID_PROVIDER_FOR_SWAP_OUT = "2105", t.MISSING_ARB_PROVIDER = "2106", t.INVALID_CHAIN = "2200", t.INVALID_ASSET = "2201", t.INVALID_ASSET_IDENTIFIER = "2202", t.UNSUPPORTED_CHAIN = "2204", t.UNSUPPORTED_ASSET = "2203", t.UNSUPPORTED_ASSET_FOR_SWAPOUT = "2205", t.INVALID_SOURCE_ADDRESS = "2300", t.INVALID_DESTINATION_ADDRESS = "2301", t.THORNODE_QUOTE_GENERIC_ERROR = "3000", t.NOT_ENOUGH_SYNTH_BALANCE = "3001", t.SYNTH_MINTING_CAP_REACHED = "3002", t.INVALID_QUOTE_MODE = "4000", t.NO_QUOTES = "4001", t.SERVICE_UNAVAILABLE_GENERIC = "5000", t.MISSING_GAS_DATA_GENERIC = "5100", t.MISSING_TOKEN_INFO_GENERIC = "5200", t.CANT_FIND_TOKEN_LIST = "5201", t.NO_PRICE = "5202", t.PRICE_IS_STALE = "5203", t.ADDRESS_NOT_WHITELISTED = "6000", t.ADDRESS_ALREADY_CLAIMED = "6001", t.TEMPORARY_ERROR = "9999", t))(m || {}); | ||
m.INVALID_INPUT_PARAMETERS + "", m.UNKNOWN_PROVIDERS + "", m.CANNOT_FIND_INBOUND_ADDRESS + "", m.NO_INBOUND_ADDRESSES + "", m.CHAIN_HALTED_OR_UNSUPPORTED + "", m.MISSING_INPUT_PARAMETER + "", m.INVALID_TYPE_GENERIC + "", m.INVALID_NUMBER_STRING + "", m.INVALID_NUMBER + "", m.INVALID_BOOLEAN + "", m.INVALID_OBJECT + "", m.INVALID_ARRAY + "", m.SELL_AMOUNT_MUST_BE_POSITIVE_INTEGER + "", m.SELL_BUY_ASSETS_ARE_THE_SAME + "", m.MISSING_SOURCE_ADDRESS_FOR_SYNTH + "", m.AFF_ADDRESS_AND_BPS_OR_NEITHER + "", m.AFF_ADDRESS_TOO_LONG + "", m.AFF_BPS_INTEGER_0_100 + "", m.SOURCE_ADDRESS_INVALID_FOR_SELL_CHAIN + "", m.DESTINATION_ADDRESS_INVALID_FOR_BUY_CHAIN + "", m.PREFERRED_PROFVIDER_NOT_SUPPORTED + "", m.DESTINATION_ADDRESS_SMART_CONTRACT + "", m.BUY_AMOUNT_MUST_BE_POSITIVE_INTEGER + "", m.INVALID_PROVIDER + "", m.MISSING_CROSS_CHAIN_PROVIDER + "", m.MISSING_AVAX_PROVIDER + "", m.MISSING_BSC_PROVIDER + "", m.MISSING_ETH_PROVIDER + "", m.MISSING_ARB_PROVIDER + "", m.INVALID_PROVIDER_FOR_SWAP_OUT + "", m.INVALID_CHAIN + "", m.INVALID_ASSET + "", m.UNSUPPORTED_CHAIN + "", m.UNSUPPORTED_ASSET + "", m.UNSUPPORTED_ASSET_FOR_SWAPOUT + "", m.THORNODE_QUOTE_GENERIC_ERROR + "", m.INVALID_SOURCE_ADDRESS + "", m.INVALID_DESTINATION_ADDRESS + "", m.NOT_ENOUGH_SYNTH_BALANCE + "", m.SYNTH_MINTING_CAP_REACHED + "", m.INVALID_QUOTE_MODE + "", m.NO_QUOTES + "", m.SERVICE_UNAVAILABLE_GENERIC + "", m.MISSING_GAS_DATA_GENERIC + "", m.MISSING_TOKEN_INFO_GENERIC + "", m.CANT_FIND_TOKEN_LIST + "", m.NO_PRICE + "", m.PRICE_IS_STALE + "", m.ADDRESS_NOT_WHITELISTED + "", m.ADDRESS_ALREADY_CLAIMED + ""; | ||
var Ve = (t, s, f) => s in t ? Ge(t, s, { enumerable: !0, configurable: !0, writable: !0, value: f }) : t[s] = f; | ||
var P = (t, s, f) => (Ve(t, typeof s != "symbol" ? s + "" : s, f), f); | ||
var m = /* @__PURE__ */ ((t) => (t.INVALID_INPUT_PARAMETERS = "1000", t.UNKNOWN_PROVIDERS = "1001", t.CANNOT_FIND_INBOUND_ADDRESS = "1002", t.NO_INBOUND_ADDRESSES = "1003", t.CHAIN_HALTED_OR_UNSUPPORTED = "1004", t.MISSING_INPUT_PARAMETER = "1005", t.INVALID_TYPE_GENERIC = "1100", t.INVALID_NUMBER_STRING = "1101", t.INVALID_NUMBER = "1102", t.INVALID_BOOLEAN = "1103", t.INVALID_OBJECT = "1104", t.INVALID_ARRAY = "1105", t.SELL_AMOUNT_MUST_BE_POSITIVE_INTEGER = "2000", t.SELL_BUY_ASSETS_ARE_THE_SAME = "2001", t.MISSING_SOURCE_ADDRESS_FOR_SYNTH = "2002", t.AFF_ADDRESS_AND_BPS_OR_NEITHER = "2003", t.AFF_ADDRESS_TOO_LONG = "2004", t.AFF_BPS_INTEGER_MAX_500 = "2005", t.SOURCE_ADDRESS_INVALID_FOR_SELL_CHAIN = "2006", t.DESTINATION_ADDRESS_INVALID_FOR_BUY_CHAIN = "2007", t.PREFERRED_PROVIDER_NOT_SUPPORTED = "2008", t.DESTINATION_ADDRESS_SMART_CONTRACT = "2009", t.BUY_AMOUNT_MUST_BE_POSITIVE_INTEGER = "2010", t.SOURCE_ADDRESS_SMART_CONTRACT = "2011", t.INVALID_PROVIDER = "2100", t.MISSING_CROSS_CHAIN_PROVIDER = "2101", t.MISSING_AVAX_PROVIDER = "2102", t.MISSING_BSC_PROVIDER = "2103", t.MISSING_ETH_PROVIDER = "2104", t.INVALID_PROVIDER_FOR_SWAP_OUT = "2105", t.MISSING_ARB_PROVIDER = "2106", t.INVALID_CHAIN = "2200", t.INVALID_ASSET = "2201", t.INVALID_ASSET_IDENTIFIER = "2202", t.UNSUPPORTED_CHAIN = "2204", t.UNSUPPORTED_ASSET = "2203", t.UNSUPPORTED_ASSET_FOR_SWAPOUT = "2205", t.INVALID_SOURCE_ADDRESS = "2300", t.INVALID_DESTINATION_ADDRESS = "2301", t.THORNODE_QUOTE_GENERIC_ERROR = "3000", t.NOT_ENOUGH_SYNTH_BALANCE = "3001", t.SYNTH_MINTING_CAP_REACHED = "3002", t.INVALID_QUOTE_MODE = "4000", t.NO_QUOTES = "4001", t.SERVICE_UNAVAILABLE_GENERIC = "5000", t.MISSING_GAS_DATA_GENERIC = "5100", t.MISSING_TOKEN_INFO_GENERIC = "5200", t.CANT_FIND_TOKEN_LIST = "5201", t.NO_PRICE = "5202", t.PRICE_IS_STALE = "5203", t.ADDRESS_NOT_WHITELISTED = "6000", t.ADDRESS_ALREADY_CLAIMED = "6001", t.TEMPORARY_ERROR = "9999", t))(m || {}); | ||
m.INVALID_INPUT_PARAMETERS + "", m.UNKNOWN_PROVIDERS + "", m.CANNOT_FIND_INBOUND_ADDRESS + "", m.NO_INBOUND_ADDRESSES + "", m.CHAIN_HALTED_OR_UNSUPPORTED + "", m.MISSING_INPUT_PARAMETER + "", m.INVALID_TYPE_GENERIC + "", m.INVALID_NUMBER_STRING + "", m.INVALID_NUMBER + "", m.INVALID_BOOLEAN + "", m.INVALID_OBJECT + "", m.INVALID_ARRAY + "", m.SELL_AMOUNT_MUST_BE_POSITIVE_INTEGER + "", m.SELL_BUY_ASSETS_ARE_THE_SAME + "", m.MISSING_SOURCE_ADDRESS_FOR_SYNTH + "", m.AFF_ADDRESS_AND_BPS_OR_NEITHER + "", m.AFF_ADDRESS_TOO_LONG + "", m.AFF_BPS_INTEGER_MAX_500 + "", m.SOURCE_ADDRESS_INVALID_FOR_SELL_CHAIN + "", m.DESTINATION_ADDRESS_INVALID_FOR_BUY_CHAIN + "", m.PREFERRED_PROVIDER_NOT_SUPPORTED + "", m.DESTINATION_ADDRESS_SMART_CONTRACT + "", m.BUY_AMOUNT_MUST_BE_POSITIVE_INTEGER + "", m.INVALID_PROVIDER + "", m.MISSING_CROSS_CHAIN_PROVIDER + "", m.MISSING_AVAX_PROVIDER + "", m.MISSING_BSC_PROVIDER + "", m.MISSING_ETH_PROVIDER + "", m.MISSING_ARB_PROVIDER + "", m.INVALID_PROVIDER_FOR_SWAP_OUT + "", m.INVALID_CHAIN + "", m.INVALID_ASSET + "", m.UNSUPPORTED_CHAIN + "", m.UNSUPPORTED_ASSET + "", m.UNSUPPORTED_ASSET_FOR_SWAPOUT + "", m.THORNODE_QUOTE_GENERIC_ERROR + "", m.INVALID_SOURCE_ADDRESS + "", m.INVALID_DESTINATION_ADDRESS + "", m.NOT_ENOUGH_SYNTH_BALANCE + "", m.SYNTH_MINTING_CAP_REACHED + "", m.INVALID_QUOTE_MODE + "", m.NO_QUOTES + "", m.SERVICE_UNAVAILABLE_GENERIC + "", m.MISSING_GAS_DATA_GENERIC + "", m.MISSING_TOKEN_INFO_GENERIC + "", m.CANT_FIND_TOKEN_LIST + "", m.NO_PRICE + "", m.PRICE_IS_STALE + "", m.ADDRESS_NOT_WHITELISTED + "", m.ADDRESS_ALREADY_CLAIMED + ""; | ||
var D = /* @__PURE__ */ ((t) => (t.Arbitrum = "ARB", t.Avalanche = "AVAX", t.Binance = "BNB", t.BinanceSmartChain = "BSC", t.Bitcoin = "BTC", t.BitcoinCash = "BCH", t.Cosmos = "GAIA", t.Dogecoin = "DOGE", t.Ethereum = "ETH", t.Kujira = "KUJI", t.Litecoin = "LTC", t.Maya = "MAYA", t.Optimism = "OP", t.Polygon = "MATIC", t.THORChain = "THOR", t))(D || {}), j = /* @__PURE__ */ ((t) => (t[t.ARB = 18] = "ARB", t[t.AVAX = 18] = "AVAX", t[t.BCH = 8] = "BCH", t[t.BNB = 8] = "BNB", t[t.BSC = 18] = "BSC", t[t.BTC = 8] = "BTC", t[t.DASH = 8] = "DASH", t[t.DOGE = 8] = "DOGE", t[t.ETH = 18] = "ETH", t[t.GAIA = 6] = "GAIA", t[t.KUJI = 6] = "KUJI", t[t.LTC = 8] = "LTC", t[t.MATIC = 18] = "MATIC", t[t.MAYA = 10] = "MAYA", t[t.OP = 18] = "OP", t[t.THOR = 8] = "THOR", t))(j || {}), Ce = /* @__PURE__ */ ((t) => (t.Arbitrum = "42161", t.ArbitrumHex = "0xa4b1", t.Avalanche = "43114", t.AvalancheHex = "0xa86a", t.Binance = "Binance-Chain-Tigris", t.BinanceSmartChain = "56", t.BinanceSmartChainHex = "0x38", t.Bitcoin = "bitcoin", t.BitcoinCash = "bitcoincash", t.Cosmos = "cosmoshub-4", t.Dogecoin = "dogecoin", t.Kujira = "kaiyo-1", t.Ethereum = "1", t.EthereumHex = "0x1", t.Litecoin = "litecoin", t.Maya = "mayachain-mainnet-v1", t.MayaStagenet = "mayachain-stagenet-v1", t.Optimism = "10", t.OptimismHex = "0xa", t.Polygon = "137", t.PolygonHex = "0x89", t.THORChain = "thorchain-mainnet-v1", t.THORChainStagenet = "thorchain-stagenet-v2", t))(Ce || {}), ve = /* @__PURE__ */ ((t) => (t.Arbitrum = "https://arb1.arbitrum.io/rpc", t.Avalanche = "https://node-router.thorswap.net/avalanche-c", t.Binance = "", t.BinanceSmartChain = "https://bsc-dataseed.binance.org", t.Bitcoin = "https://node-router.thorswap.net/bitcoin", t.BitcoinCash = "https://node-router.thorswap.net/bitcoin-cash", t.Cosmos = "https://node-router.thorswap.net/cosmos/rpc", t.Kujira = "https://rpc-kujira.synergynodes.com/", t.Dogecoin = "https://node-router.thorswap.net/dogecoin", t.Ethereum = "https://node-router.thorswap.net/ethereum", t.Litecoin = "https://node-router.thorswap.net/litecoin", t.Maya = "https://tendermint.mayachain.info", t.MayaStagenet = "https://stagenet.tendermint.mayachain.info", t.Optimism = "https://mainnet.optimism.io", t.Polygon = "https://polygon-rpc.com", t.THORChain = "https://rpc.thorswap.net", t.THORChainStagenet = "https://stagenet-rpc.ninerealms.com", t))(ve || {}); | ||
const Oe = Object.values(D), Ve = Object.keys(D), Be = Oe.reduce( | ||
const Oe = Object.values(D), Fe = Object.keys(D), Be = Oe.reduce( | ||
(t, s) => { | ||
const f = Ve.find((S) => D[S] === s); | ||
const f = Fe.find((S) => D[S] === s); | ||
return f && (t[s] = f), t; | ||
@@ -31,3 +31,3 @@ }, | ||
function He(t) { | ||
var s, f, S, E = _.prototype = { constructor: _, toString: null, valueOf: null }, R = new _(1), d = 20, C = 4, w = -7, F = 21, ne = -1e7, K = 1e7, se = !1, le = 1, te = 0, Ie = { | ||
var s, f, S, E = _.prototype = { constructor: _, toString: null, valueOf: null }, R = new _(1), d = 20, C = 4, w = -7, V = 21, ne = -1e7, K = 1e7, se = !1, le = 1, te = 0, Ie = { | ||
prefix: "", | ||
@@ -120,3 +120,3 @@ groupSize: 3, | ||
if (typeof e == "object") { | ||
if (e.hasOwnProperty(i = "DECIMAL_PLACES") && (r = e[i], M(r, 0, x, i), d = r), e.hasOwnProperty(i = "ROUNDING_MODE") && (r = e[i], M(r, 0, 8, i), C = r), e.hasOwnProperty(i = "EXPONENTIAL_AT") && (r = e[i], r && r.pop ? (M(r[0], -x, 0, i), M(r[1], 0, x, i), w = r[0], F = r[1]) : (M(r, -x, x, i), w = -(F = r < 0 ? -r : r))), e.hasOwnProperty(i = "RANGE")) | ||
if (e.hasOwnProperty(i = "DECIMAL_PLACES") && (r = e[i], M(r, 0, x, i), d = r), e.hasOwnProperty(i = "ROUNDING_MODE") && (r = e[i], M(r, 0, 8, i), C = r), e.hasOwnProperty(i = "EXPONENTIAL_AT") && (r = e[i], r && r.pop ? (M(r[0], -x, 0, i), M(r[1], 0, x, i), w = r[0], V = r[1]) : (M(r, -x, x, i), w = -(V = r < 0 ? -r : r))), e.hasOwnProperty(i = "RANGE")) | ||
if (r = e[i], r && r.pop) | ||
@@ -154,3 +154,3 @@ M(r[0], -x, -1, i), M(r[1], 1, x, i), ne = r[0], K = r[1]; | ||
ROUNDING_MODE: C, | ||
EXPONENTIAL_AT: [w, F], | ||
EXPONENTIAL_AT: [w, V], | ||
RANGE: [ne, K], | ||
@@ -293,3 +293,3 @@ CRYPTO: se, | ||
return function(l, o, c, A, n) { | ||
var a, h, u, N, O, I, U, L, H, g, B, V, Ee, de, pe, J, he, q = l.s == o.s ? 1 : -1, y = l.c, v = o.c; | ||
var a, h, u, N, O, I, U, L, H, g, B, F, Ee, de, pe, J, he, q = l.s == o.s ? 1 : -1, y = l.c, v = o.c; | ||
if (!y || !y[0] || !v || !v[0]) | ||
@@ -313,3 +313,3 @@ return new _( | ||
if (O = 0, a = i(v, g, J, B), a < 0) { | ||
if (V = g[0], J != B && (V = V * n + (g[1] || 0)), O = W(V / pe), O > 1) | ||
if (F = g[0], J != B && (F = F * n + (g[1] || 0)), O = W(F / pe), O > 1) | ||
for (O >= n && (O = n - 1), I = e(v, O, n), U = I.length, B = g.length; i(I, g, U, B) == 1; ) | ||
@@ -342,3 +342,3 @@ O--, r(I, J < U ? he : v, U, n), U = I.length, a = 1; | ||
if (o = e.c[0], A = e.e, i == null) | ||
a = Y(e.c), a = l == 1 || l == 2 && (A <= w || A >= F) ? Se(a, A) : ee(a, A, "0"); | ||
a = Y(e.c), a = l == 1 || l == 2 && (A <= w || A >= V) ? Se(a, A) : ee(a, A, "0"); | ||
else if (e = $(new _(e), i, r), c = e.e, a = Y(e.c), n = a.length, l == 1 || l == 2 && (i <= c || c <= w)) { | ||
@@ -436,3 +436,3 @@ for (; n < i; a += "0", n++) | ||
var i, r = e.e; | ||
return r === null ? e.toString() : (i = Y(e.c), i = r <= w || r >= F ? Se(i, r) : ee(i, r, "0"), e.s < 0 ? "-" + i : i); | ||
return r === null ? e.toString() : (i = Y(e.c), i = r <= w || r >= V ? Se(i, r) : ee(i, r, "0"), e.s < 0 ? "-" + i : i); | ||
} | ||
@@ -562,9 +562,9 @@ return E.absoluteValue = E.abs = function() { | ||
}, E.multipliedBy = E.times = function(e, i) { | ||
var r, l, o, c, A, n, a, h, u, N, O, I, U, L, H, g = this, B = g.c, V = (e = new _(e, i)).c; | ||
if (!B || !V || !B[0] || !V[0]) | ||
return !g.s || !e.s || B && !B[0] && !V || V && !V[0] && !B ? e.c = e.e = e.s = null : (e.s *= g.s, !B || !V ? e.c = e.e = null : (e.c = [0], e.e = 0)), e; | ||
for (l = X(g.e / T) + X(e.e / T), e.s *= g.s, a = B.length, N = V.length, a < N && (U = B, B = V, V = U, o = a, a = N, N = o), o = a + N, U = []; o--; U.push(0)) | ||
var r, l, o, c, A, n, a, h, u, N, O, I, U, L, H, g = this, B = g.c, F = (e = new _(e, i)).c; | ||
if (!B || !F || !B[0] || !F[0]) | ||
return !g.s || !e.s || B && !B[0] && !F || F && !F[0] && !B ? e.c = e.e = e.s = null : (e.s *= g.s, !B || !F ? e.c = e.e = null : (e.c = [0], e.e = 0)), e; | ||
for (l = X(g.e / T) + X(e.e / T), e.s *= g.s, a = B.length, N = F.length, a < N && (U = B, B = F, F = U, o = a, a = N, N = o), o = a + N, U = []; o--; U.push(0)) | ||
; | ||
for (L = z, H = ie, o = N; --o >= 0; ) { | ||
for (r = 0, O = V[o] % H, I = V[o] / H | 0, A = a, c = o + A; c > o; ) | ||
for (r = 0, O = F[o] % H, I = F[o] / H | 0, A = a, c = o + A; c > o; ) | ||
h = B[--A] % H, u = B[A] / H | 0, n = I * h + u * O, h = O * h + n % H * H + U[c] + r, r = (h / L | 0) + (n / H | 0) + I * u, U[c--] = h % L; | ||
@@ -672,3 +672,3 @@ U[c] = r; | ||
var i, r = this, l = r.s, o = r.e; | ||
return o === null ? l ? (i = "Infinity", l < 0 && (i = "-" + i)) : i = "NaN" : (e == null ? i = o <= w || o >= F ? Se(Y(r.c), o) : ee(Y(r.c), o, "0") : e === 10 && me ? (r = $(new _(r), d + o + 1, C), i = ee(Y(r.c), r.e, "0")) : (M(e, 2, oe.length, "Base"), i = f(ee(Y(r.c), o, "0"), 10, e, l, !0)), l < 0 && r.c[0] && (i = "-" + i)), i; | ||
return o === null ? l ? (i = "Infinity", l < 0 && (i = "-" + i)) : i = "NaN" : (e == null ? i = o <= w || o >= V ? Se(Y(r.c), o) : ee(Y(r.c), o, "0") : e === 10 && me ? (r = $(new _(r), d + o + 1, C), i = ee(Y(r.c), r.e, "0")) : (M(e, 2, oe.length, "Base"), i = f(ee(Y(r.c), o, "0"), 10, e, l, !0)), l < 0 && r.c[0] && (i = "-" + i)), i; | ||
}, E.valueOf = E.toJSON = function() { | ||
@@ -693,3 +693,3 @@ return Z(this); | ||
function ae(t, s) { | ||
var f, S, E = t.c, R = s.c, d = t.s, C = s.s, w = t.e, F = s.e; | ||
var f, S, E = t.c, R = s.c, d = t.s, C = s.s, w = t.e, V = s.e; | ||
if (!d || !C) | ||
@@ -701,10 +701,10 @@ return null; | ||
return d; | ||
if (f = d < 0, S = w == F, !E || !R) | ||
if (f = d < 0, S = w == V, !E || !R) | ||
return S ? 0 : !E ^ f ? 1 : -1; | ||
if (!S) | ||
return w > F ^ f ? 1 : -1; | ||
for (C = (w = E.length) < (F = R.length) ? w : F, d = 0; d < C; d++) | ||
return w > V ^ f ? 1 : -1; | ||
for (C = (w = E.length) < (V = R.length) ? w : V, d = 0; d < C; d++) | ||
if (E[d] != R[d]) | ||
return E[d] > R[d] ^ f ? 1 : -1; | ||
return w == F ? 0 : w > F ^ f ? 1 : -1; | ||
return w == V ? 0 : w > V ^ f ? 1 : -1; | ||
} | ||
@@ -1016,5 +1016,5 @@ function M(t, s, f, S) { | ||
} else if (!f.isRUNE() && !S.isRUNE()) { | ||
const w = Ae(f, R), F = Ae(S, R); | ||
w && F && (this.unitPrice = w.assetPriceInRune.div( | ||
F.assetPriceInRune | ||
const w = Ae(f, R), V = Ae(S, R); | ||
w && V && (this.unitPrice = w.assetPriceInRune.div( | ||
V.assetPriceInRune | ||
).assetAmount); | ||
@@ -1021,0 +1021,0 @@ } else |
@@ -6,3 +6,3 @@ { | ||
"tiny-invariant": "1.3.1", | ||
"@swapkit/types": "1.0.0-rc.28" | ||
"@swapkit/types": "1.0.0-rc.29" | ||
}, | ||
@@ -42,3 +42,3 @@ "description": "SwapKit Lib swapkit-entities", | ||
"types": "./dist/index.d.ts", | ||
"version": "1.0.0-rc.28", | ||
"version": "1.0.0-rc.29", | ||
"scripts": { | ||
@@ -45,0 +45,0 @@ "build": "vite build", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
581275
+ Added@swapkit/types@1.0.0-rc.29(transitive)
- Removed@swapkit/types@1.0.0-rc.28(transitive)
Updated@swapkit/types@1.0.0-rc.29