@orbs-network/spot-react 1.1.1 → 1.1.2
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/{ccip-Iir5d-bD.js → ccip-PeTmGDEY.js} +1 -1
- package/dist/{index-vqnb3pZa.js → index-DLKNy4U-.js} +489 -487
- package/dist/spot-react/package.json.d.ts +1 -1
- package/dist/spot-react/src/index.d.ts +1 -1
- package/dist/spot-react/src/index.d.ts.map +1 -1
- package/dist/spot-react.js +12 -12
- package/dist/spot-react.umd.cjs +11 -11
- package/dist/spot-ui/src/index.d.ts +1 -1
- package/dist/spot-ui/src/index.d.ts.map +1 -1
- package/dist/spot-ui/src/lib/orders/v1-orders.d.ts.map +1 -1
- package/dist/spot-ui/src/lib/orders/v2-orders.d.ts.map +1 -1
- package/dist/spot-ui/src/lib/types.d.ts +1 -0
- package/dist/spot-ui/src/lib/types.d.ts.map +1 -1
- package/dist/spot-ui/src/lib/utils.d.ts +1 -1
- package/dist/spot-ui/src/lib/utils.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -3,7 +3,7 @@ var Zu = (e) => {
|
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
5
|
var Bh = (e, t, n) => t in e ? Ph(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
6
|
-
var
|
|
6
|
+
var $a = (e, t, n) => Bh(e, typeof t != "symbol" ? t + "" : t, n), Di = (e, t, n) => t.has(e) || Zu("Cannot " + n);
|
|
7
7
|
var I = (e, t, n) => (Di(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Z = (e, t, n) => t.has(e) ? Zu("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), V = (e, t, n, r) => (Di(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), re = (e, t, n) => (Di(e, t, "access private method"), n);
|
|
8
8
|
var Ha = (e, t, n, r) => ({
|
|
9
9
|
set _(s) {
|
|
@@ -15,16 +15,16 @@ var Ha = (e, t, n, r) => ({
|
|
|
15
15
|
});
|
|
16
16
|
import { jsx as pn, jsxs as Uh, Fragment as Ih } from "react/jsx-runtime";
|
|
17
17
|
import * as Re from "react";
|
|
18
|
-
import Ga, { Component as Fh, createElement as Xu, createContext as
|
|
19
|
-
const Oh = { chainName: "ftm", chainId: 250, twapVersion: 4, twapAddress: "0xd3B290FEB04E353d1821bc0a12397FdEa9a846C0", lensAddress: "0x0221EfDF1Fd3212AF87F23cceB7693a65fAF1d7f", takers: ["0xDF406A27C58a8Cd6Fd43e143339bCE131216a913", "0x504f6E10173249dD22491829D98862Cf81DeF79E"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "SpookySwap", partner: "Orbs:TWAP:SpookySwap", exchangeAddress: "0xdF7CCd5fc7077E9de5f27a7b7bfDC837c82f8496", exchangeType: "ExchangeV2", pathfinderKey: "" }, Mh = { chainName: "sonic", chainId: 146, twapVersion: 4, twapAddress: "0x8963992816b4EafE5a22b7DB2A99513c18be9afA", lensAddress: "0x67e631F71232D63AcA98a2D5E9B2Bce5FCc39d5D", takers: ["0xDF406A27C58a8Cd6Fd43e143339bCE131216a913", "0x504f6E10173249dD22491829D98862Cf81DeF79E"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "SpookySwapSonic", partner: "Orbs:TWAP:SpookySwap", exchangeAddress: "0x6699bE3aF75e5c1B807b1031dBde6dA9A67739F3", exchangeType: "ExchangeV2", pathfinderKey: "" }, Rh = { chainName: "poly", chainId: 137, twapVersion: 4, twapAddress: "0x688C027B0f7FaCeFcBa73e472900d28c12C5bDF4", lensAddress: "0xe0D4E736fc76af7C256ae7652c8c1e850bfb7849", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "QuickSwap", partner: "Orbs:TWAP:QuickSwap", exchangeAddress: "0x8FCc245209bE85C49D738D0CE5613F74E5d91E86", exchangeType: "ParaswapExchange", pathfinderKey: "QuickSwap,QuickSwapV3" }, Nh = { chainName: "base", chainId: 8453, twapVersion: 4, twapAddress: "0xc918bdC47264687796Cd54FE362FaC4f8b99Eb55", lensAddress: "0x6313188c1909b161074D62E43105faC9B756A23e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "QuickSwap", partner: "Orbs:TWAP:QuickSwap", exchangeAddress: "0xb7a3d74895bfd3aff6780525e36d79fcf26a895f", exchangeType: "ExchangeV2", pathfinderKey: "" }, _h = { chainName: "bsc", chainId: 56, twapVersion: 4, twapAddress: "0xa6F7444D2b92Aa9F94a2165c77aAF2B671e63994", lensAddress: "0xEdB0c077fa87Fb21d050c619FF426798f8Fc1264", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "Thena", partner: "Orbs:TWAP:Thena", exchangeAddress: "0x2B2fABDbfa4a15da0d351F947C14F4520db0bDc1", exchangeType: "ExchangeV2", pathfinderKey: "43,47" }, zh = { chainName: "bsc", chainId: 56, twapVersion: 4, twapAddress: "0xa6F7444D2b92Aa9F94a2165c77aAF2B671e63994", lensAddress: "0xEdB0c077fa87Fb21d050c619FF426798f8Fc1264", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "PancakeSwap", partner: "Orbs:TWAP:PancakeSwap", exchangeAddress: "0x1A2bb6B75D58b740d88413ef4840D6fa3F637940", exchangeType: "P2Exchange", pathfinderKey: "" },
|
|
18
|
+
import Ga, { Component as Fh, createElement as Xu, createContext as $p, useCallback as ke, useMemo as W, useEffect as Fr, useContext as Dh } from "react";
|
|
19
|
+
const Oh = { chainName: "ftm", chainId: 250, twapVersion: 4, twapAddress: "0xd3B290FEB04E353d1821bc0a12397FdEa9a846C0", lensAddress: "0x0221EfDF1Fd3212AF87F23cceB7693a65fAF1d7f", takers: ["0xDF406A27C58a8Cd6Fd43e143339bCE131216a913", "0x504f6E10173249dD22491829D98862Cf81DeF79E"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "SpookySwap", partner: "Orbs:TWAP:SpookySwap", exchangeAddress: "0xdF7CCd5fc7077E9de5f27a7b7bfDC837c82f8496", exchangeType: "ExchangeV2", pathfinderKey: "" }, Mh = { chainName: "sonic", chainId: 146, twapVersion: 4, twapAddress: "0x8963992816b4EafE5a22b7DB2A99513c18be9afA", lensAddress: "0x67e631F71232D63AcA98a2D5E9B2Bce5FCc39d5D", takers: ["0xDF406A27C58a8Cd6Fd43e143339bCE131216a913", "0x504f6E10173249dD22491829D98862Cf81DeF79E"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "SpookySwapSonic", partner: "Orbs:TWAP:SpookySwap", exchangeAddress: "0x6699bE3aF75e5c1B807b1031dBde6dA9A67739F3", exchangeType: "ExchangeV2", pathfinderKey: "" }, Rh = { chainName: "poly", chainId: 137, twapVersion: 4, twapAddress: "0x688C027B0f7FaCeFcBa73e472900d28c12C5bDF4", lensAddress: "0xe0D4E736fc76af7C256ae7652c8c1e850bfb7849", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "QuickSwap", partner: "Orbs:TWAP:QuickSwap", exchangeAddress: "0x8FCc245209bE85C49D738D0CE5613F74E5d91E86", exchangeType: "ParaswapExchange", pathfinderKey: "QuickSwap,QuickSwapV3" }, Nh = { chainName: "base", chainId: 8453, twapVersion: 4, twapAddress: "0xc918bdC47264687796Cd54FE362FaC4f8b99Eb55", lensAddress: "0x6313188c1909b161074D62E43105faC9B756A23e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "QuickSwap", partner: "Orbs:TWAP:QuickSwap", exchangeAddress: "0xb7a3d74895bfd3aff6780525e36d79fcf26a895f", exchangeType: "ExchangeV2", pathfinderKey: "" }, _h = { chainName: "bsc", chainId: 56, twapVersion: 4, twapAddress: "0xa6F7444D2b92Aa9F94a2165c77aAF2B671e63994", lensAddress: "0xEdB0c077fa87Fb21d050c619FF426798f8Fc1264", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "Thena", partner: "Orbs:TWAP:Thena", exchangeAddress: "0x2B2fABDbfa4a15da0d351F947C14F4520db0bDc1", exchangeType: "ExchangeV2", pathfinderKey: "43,47" }, zh = { chainName: "bsc", chainId: 56, twapVersion: 4, twapAddress: "0xa6F7444D2b92Aa9F94a2165c77aAF2B671e63994", lensAddress: "0xEdB0c077fa87Fb21d050c619FF426798f8Fc1264", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "PancakeSwap", partner: "Orbs:TWAP:PancakeSwap", exchangeAddress: "0x1A2bb6B75D58b740d88413ef4840D6fa3F637940", exchangeType: "P2Exchange", pathfinderKey: "" }, Lh = { chainName: "arb", chainId: 42161, twapVersion: 4, twapAddress: "0x0B94dcC0EA2d1ee33Ab064DaC252de980a941eF3", lensAddress: "0x549e1fc9a47FCc0C5C2EbdfF31254cc49fF7164e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "PancakeSwap", partner: "Orbs:TWAP:PancakeSwap", exchangeAddress: "0xb37cB9A058c03081Ae6EF934313588cD53d408e7", exchangeType: "P2Exchange", pathfinderKey: "" }, $h = { chainName: "base", chainId: 8453, twapVersion: 4, twapAddress: "0xc918bdC47264687796Cd54FE362FaC4f8b99Eb55", lensAddress: "0x6313188c1909b161074D62E43105faC9B756A23e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "PancakeSwap", partner: "Orbs:TWAP:PancakeSwap", exchangeAddress: "0xb37cB9A058c03081Ae6EF934313588cD53d408e7", exchangeType: "P2Exchange", pathfinderKey: "" }, Hh = { chainName: "linea", chainId: 59144, twapVersion: 4, twapAddress: "0x48423e62acbfEF7779b5b4a5E7d6Fbd39E623d78", lensAddress: "0xe84CaEc86eCF3f0AB4267dC6130D9a5510e73DFb", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 100, name: "PancakeSwap", partner: "Orbs:TWAP:PancakeSwap", exchangeAddress: "0xb37cB9A058c03081Ae6EF934313588cD53d408e7", exchangeType: "P2Exchange", pathfinderKey: "" }, Gh = { chainName: "linea", chainId: 59144, twapVersion: 4, twapAddress: "0x48423e62acbfEF7779b5b4a5E7d6Fbd39E623d78", lensAddress: "0xe84CaEc86eCF3f0AB4267dC6130D9a5510e73DFb", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 100, name: "Lynex", partner: "Orbs:TWAP:Lynex", exchangeAddress: "0x04C06C96d7D19977156016DD408B5992af0570a2", exchangeType: "ExchangeV2", pathfinderKey: "19,18" }, jh = { chainName: "arb", chainId: 42161, twapVersion: 4, twapAddress: "0x0B94dcC0EA2d1ee33Ab064DaC252de980a941eF3", lensAddress: "0x549e1fc9a47FCc0C5C2EbdfF31254cc49fF7164e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "SushiArb", partner: "Orbs:TWAP:Sushi", exchangeAddress: "0x04eB53119079FA779492720D1EfeAEBF0aF2e5ad", exchangeType: "ExchangeV2", pathfinderKey: "" }, Vh = { chainName: "base", chainId: 8453, twapVersion: 4, twapAddress: "0xc918bdC47264687796Cd54FE362FaC4f8b99Eb55", lensAddress: "0x6313188c1909b161074D62E43105faC9B756A23e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "SushiBase", partner: "Orbs:TWAP:Sushi", exchangeAddress: "0x04eB53119079FA779492720D1EfeAEBF0aF2e5ad", exchangeType: "ExchangeV2", pathfinderKey: "" }, qh = { chainName: "eth", chainId: 1, twapVersion: 4, twapAddress: "0xb1ed8BCAD1EaC8a1DF0764700472391800D12946", lensAddress: "0x0967f448c4d4dbd14c355E635AE9CbF68cc44A60", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 200, name: "SushiEth", partner: "Orbs:TWAP:Sushi", exchangeAddress: "0x04eB53119079FA779492720D1EfeAEBF0aF2e5ad", exchangeType: "ExchangeV2", pathfinderKey: "" }, Kh = { chainName: "katana", chainId: 747474, twapVersion: 4, twapAddress: "0xf2d96E7BE676153d202e1453804E2749923C7c5b", lensAddress: "0x1579EED0527781B1A748043AA1f59a3858Ace4a7", takers: ["0xF74437A3Fc45a518640828E5D6A3E8c9A9BbDC3a", "0x07A6C715063e94c0D95e809efefFCbF4EBEdfD55"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "SushiKatana", partner: "Orbs:TWAP:Sushi", exchangeAddress: "0x92209481507e6B2d14C9b5b70Ed287024177220E", exchangeType: "ExchangeV2", pathfinderKey: "" }, Wh = { chainId: 1329, name: "DragonSwap" }, Zh = { chainName: "sonic", chainId: 146, twapVersion: 4, twapAddress: "0x8963992816b4EafE5a22b7DB2A99513c18be9afA", lensAddress: "0x67e631F71232D63AcA98a2D5E9B2Bce5FCc39d5D", takers: ["0xDF406A27C58a8Cd6Fd43e143339bCE131216a913", "0x504f6E10173249dD22491829D98862Cf81DeF79E"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "SwapX", partner: "Orbs:TWAP:SwapX", exchangeAddress: "0xDA902994b7F7a1ecDd8De02E4a17dbFF2E6F67b7", exchangeType: "ExchangeV2", pathfinderKey: "" }, Xh = { chainName: "avax", chainId: 43114, twapVersion: 4, twapAddress: "0xf77Ad005aBF7e31f669ce89a6568B2f39Ca92cDe", lensAddress: "0x48466B82Ce1575c5c9eCa168ac1090048dD47fA3", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "BlackholeAvax", partner: "Orbs:TWAP:BlackholeAvax", exchangeAddress: "0xb7A3d74895bFD3Aff6780525e36D79FCf26a895F", exchangeType: "ExchangeV2" }, ae = {
|
|
20
20
|
SpookySwap: Oh,
|
|
21
21
|
SpookySwapSonic: Mh,
|
|
22
22
|
QuickSwap: Rh,
|
|
23
23
|
QuickSwapBase: Nh,
|
|
24
24
|
Thena: _h,
|
|
25
25
|
PancakeSwap: zh,
|
|
26
|
-
PancakeSwapArbitrum:
|
|
27
|
-
PancakeSwapBase:
|
|
26
|
+
PancakeSwapArbitrum: Lh,
|
|
27
|
+
PancakeSwapBase: $h,
|
|
28
28
|
PancakeSwapLinea: Hh,
|
|
29
29
|
Lynex: Gh,
|
|
30
30
|
SushiArb: jh,
|
|
@@ -692,8 +692,8 @@ const Oh = { chainName: "ftm", chainId: 250, twapVersion: 4, twapAddress: "0xd3B
|
|
|
692
692
|
]
|
|
693
693
|
}
|
|
694
694
|
], t1 = Qh, IF = Jh, n1 = e1, r1 = Yh;
|
|
695
|
-
var te = /* @__PURE__ */ ((e) => (e.TWAP = "TWAP", e.LIMIT = "LIMIT", e.STOP_LOSS = "STOP_LOSS", e.TAKE_PROFIT = "TAKE_PROFIT", e))(te || {}),
|
|
696
|
-
const ge = "0x0000000000000000000000000000000000000000",
|
|
695
|
+
var te = /* @__PURE__ */ ((e) => (e.TWAP = "TWAP", e.LIMIT = "LIMIT", e.STOP_LOSS = "STOP_LOSS", e.TAKE_PROFIT = "TAKE_PROFIT", e))(te || {}), Le = /* @__PURE__ */ ((e) => (e.Open = "OPEN", e.Cancelled = "CANCELLED", e.Completed = "COMPLETED", e.Expired = "EXPIRED", e))(Le || {}), s1 = /* @__PURE__ */ ((e) => (e.All = "ALL", e.Open = "OPEN", e.Cancelled = "CANCELLED", e.Completed = "COMPLETED", e.Expired = "EXPIRED", e))(s1 || {}), Je = /* @__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))(Je || {}), fe = /* @__PURE__ */ ((e) => (e.LIMIT = "limit", e.TWAP_LIMIT = "twap-limit", e.TWAP_MARKET = "twap-market", e.TAKE_PROFIT = "take-profit", e.STOP_LOSS_LIMIT = "stop-loss-limit", e.STOP_LOSS_MARKET = "stop-loss-market", e))(fe || {}), Yt = /* @__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.Pangolin = "pangolin", e.Sushiswap = "sushiswap", e.Agent = "agent", e))(Yt || {}), qe = /* @__PURE__ */ ((e) => (e.EMPTY_LIMIT_PRICE = "emptyLimitPrice", e.MAX_CHUNKS = "maxChunksError", e.MIN_CHUNKS = "minChunksError", e.MIN_TRADE_SIZE = "minTradeSizeError", e.MAX_FILL_DELAY = "maxFillDelayError", e.MIN_FILL_DELAY = "minFillDelayError", e.MAX_ORDER_DURATION = "maxDurationError", e.MIN_ORDER_DURATION = "minDurationError", e.MISSING_LIMIT_PRICE = "missingLimitPrice", e.STOP_LOSS_TRIGGER_PRICE_GREATER_THAN_MARKET_PRICE = "StopLossTriggerPriceError", e.TRIGGER_LIMIT_PRICE_GREATER_THAN_TRIGGER_PRICE = "triggerLimitPriceError", e.TAKE_PROFIT_TRIGGER_PRICE_LESS_THAN_MARKET_PRICE = "TakeProfitTriggerPriceError", e.EMPTY_TRIGGER_PRICE = "emptyTriggerPrice", e.INSUFFICIENT_BALANCE = "insufficientFunds", e.MAX_ORDER_SIZE = "maxOrderSize", e.MIN_TRADE_SIZE_ERROR = "minTradeSizeError", e))(qe || {});
|
|
696
|
+
const ge = "0x0000000000000000000000000000000000000000", $e = {
|
|
697
697
|
eth: {
|
|
698
698
|
id: 1,
|
|
699
699
|
name: "Ethereum",
|
|
@@ -1192,20 +1192,20 @@ const ge = "0x0000000000000000000000000000000000000000", Le = {
|
|
|
1192
1192
|
}, yc = 300 * 1e3, xc = 365 * 24 * 60 * 60 * 1e3, Qu = 300 * 1e3, l1 = new Date(
|
|
1193
1193
|
yc
|
|
1194
1194
|
).getMinutes(), Oi = (e) => `https://hub.orbs.network/api/private/project_cm7nb67z86nyr01z12gs0fxpf/subgraphs/orbs-twap-${e}/prod/gn`, Ct = "https://hub.orbs.network/api/apikey/subgraphs/id", u1 = {
|
|
1195
|
-
[
|
|
1196
|
-
[
|
|
1197
|
-
[
|
|
1198
|
-
[
|
|
1199
|
-
[
|
|
1200
|
-
[
|
|
1201
|
-
[
|
|
1202
|
-
[
|
|
1203
|
-
[
|
|
1204
|
-
[
|
|
1205
|
-
[
|
|
1206
|
-
[
|
|
1207
|
-
[
|
|
1208
|
-
[
|
|
1195
|
+
[$e.eth.id]: `${Ct}/Bf7bvMYcJbDAvYWJmhMpHZ4cpFjqzkhK6GXXEpnPRq6`,
|
|
1196
|
+
[$e.bsc.id]: `${Ct}/4NfXEi8rreQsnAr4aJ45RLCKgnjcWX46Lbt9SadiCcz6`,
|
|
1197
|
+
[$e.poly.id]: `${Ct}/3PyRPWSvDnMowGbeBy7aNsvUkD5ZuxdXQw2RdJq4NdXi`,
|
|
1198
|
+
[$e.arb.id]: `${Ct}/83bpQexEaqBjHaQbKoFTbtvCXuo5RudRkfLgtRUYqo2c`,
|
|
1199
|
+
[$e.base.id]: `${Ct}/DFhaPQb3HATXkpsWNZw3gydYHehLBVEDiSk4iBdZJyps`,
|
|
1200
|
+
[$e.sei.id]: `${Ct}/5zjzRnURzoddyFSZBw5E5NAM3oBgPq3NasTYbtMk6EL6`,
|
|
1201
|
+
[$e.linea.id]: `${Ct}/6VsNPEYfFLPZCqdMMDadoXQjLHWJdjEwiD768GAtb7j6`,
|
|
1202
|
+
[$e.sonic.id]: `${Ct}/DtBr6a5vsoDd2oAXdPszcn4gLgrr1XC68Q3AJQKXnNLV`,
|
|
1203
|
+
[$e.ftm.id]: `${Ct}/DdRo1pmJkrJC9fjsjEBWnNE1uqrbh7Diz4tVKd7rfupp`,
|
|
1204
|
+
[$e.katana.id]: `${Ct}/CGi9sDFMQcnBwF3C3NoCFqnaE34sssbgwPLTwiskSXmW`,
|
|
1205
|
+
[$e.avax.id]: `${Ct}/FxZ1vMwE5Xy1qvKvZENUMz4vhW8Sh4vXJf9Vp7o17pTx`,
|
|
1206
|
+
[$e.bera.id]: Oi("berachain"),
|
|
1207
|
+
[$e.flare.id]: Oi("flare"),
|
|
1208
|
+
[$e.cronosZkEvm.id]: Oi("cronos-zkevm")
|
|
1209
1209
|
}, d1 = "0x0000000000000000000000000000000000000000", p1 = [
|
|
1210
1210
|
d1,
|
|
1211
1211
|
"0x0000000000000000000000000000000000001010",
|
|
@@ -1714,15 +1714,15 @@ function jp(e) {
|
|
|
1714
1714
|
return w.reverse();
|
|
1715
1715
|
}
|
|
1716
1716
|
return function(x, C, E, T, D) {
|
|
1717
|
-
var w, A, F, S, M,
|
|
1718
|
-
for (se >= 0 && (S = y, y = 0, x = x.replace(".", ""), Q = new v(C),
|
|
1719
|
-
Kt(pt(
|
|
1717
|
+
var w, A, F, S, M, L, G, Q, se = x.indexOf("."), ie = o, J = i;
|
|
1718
|
+
for (se >= 0 && (S = y, y = 0, x = x.replace(".", ""), Q = new v(C), L = Q.pow(x.length - se), y = S, Q.c = b(
|
|
1719
|
+
Kt(pt(L.c), L.e, "0"),
|
|
1720
1720
|
10,
|
|
1721
1721
|
E,
|
|
1722
1722
|
h
|
|
1723
1723
|
), Q.e = Q.c.length), G = b(x, C, E, D ? (w = P, h) : (w = h, P)), F = S = G.length; G[--S] == 0; G.pop()) ;
|
|
1724
1724
|
if (!G[0]) return w.charAt(0);
|
|
1725
|
-
if (se < 0 ? --F : (
|
|
1725
|
+
if (se < 0 ? --F : (L.c = G, L.e = F, L.s = T, L = t(L, Q, ie, J, E), G = L.c, M = L.r, F = L.e), A = F + ie + 1, se = G[A], S = E / 2, M = M || A < 0 || G[A + 1] != null, M = J < 4 ? (se != null || M) && (J == 0 || J == (L.s < 0 ? 3 : 2)) : se > S || se == S && (J == 4 || M || J == 6 && G[A - 1] & 1 || J == (L.s < 0 ? 8 : 7)), A < 1 || !G[0])
|
|
1726
1726
|
x = M ? Kt(w.charAt(1), -ie, w.charAt(0)) : w.charAt(0);
|
|
1727
1727
|
else {
|
|
1728
1728
|
if (G.length = A, M)
|
|
@@ -1736,9 +1736,9 @@ function jp(e) {
|
|
|
1736
1736
|
};
|
|
1737
1737
|
})(), t = /* @__PURE__ */ (function() {
|
|
1738
1738
|
function h(C, E, T) {
|
|
1739
|
-
var D, w, A, F, S = 0, M = C.length,
|
|
1739
|
+
var D, w, A, F, S = 0, M = C.length, L = E % wn, G = E / wn | 0;
|
|
1740
1740
|
for (C = C.slice(); M--; )
|
|
1741
|
-
A = C[M] % wn, F = C[M] / wn | 0, D = G * A + F *
|
|
1741
|
+
A = C[M] % wn, F = C[M] / wn | 0, D = G * A + F * L, w = L * A + D % wn * wn + S, S = (w / T | 0) + (D / wn | 0) + G * F, C[M] = w % T;
|
|
1742
1742
|
return S && (C = [S].concat(C)), C;
|
|
1743
1743
|
}
|
|
1744
1744
|
function b(C, E, T, D) {
|
|
@@ -1759,7 +1759,7 @@ function jp(e) {
|
|
|
1759
1759
|
for (; !C[0] && C.length > 1; C.splice(0, 1)) ;
|
|
1760
1760
|
}
|
|
1761
1761
|
return function(C, E, T, D, w) {
|
|
1762
|
-
var A, F, S, M,
|
|
1762
|
+
var A, F, S, M, L, G, Q, se, ie, J, Y, he, gn, Et, Mt, We, kt, Se = C.s == E.s ? 1 : -1, Ce = C.c, pe = E.c;
|
|
1763
1763
|
if (!Ce || !Ce[0] || !pe || !pe[0])
|
|
1764
1764
|
return new v(
|
|
1765
1765
|
// Return NaN if either NaN, or both Infinity or 0.
|
|
@@ -1772,20 +1772,20 @@ function jp(e) {
|
|
|
1772
1772
|
if (pe[S] > (Ce[S] || 0) && F--, Se < 0)
|
|
1773
1773
|
ie.push(1), M = !0;
|
|
1774
1774
|
else {
|
|
1775
|
-
for (Et = Ce.length, We = pe.length, S = 0, Se += 2,
|
|
1775
|
+
for (Et = Ce.length, We = pe.length, S = 0, Se += 2, L = mt(w / (pe[0] + 1)), L > 1 && (pe = h(pe, L, w), Ce = h(Ce, L, w), We = pe.length, Et = Ce.length), gn = We, J = Ce.slice(0, We), Y = J.length; Y < We; J[Y++] = 0) ;
|
|
1776
1776
|
kt = pe.slice(), kt = [0].concat(kt), Mt = pe[0], pe[1] >= w / 2 && Mt++;
|
|
1777
1777
|
do {
|
|
1778
|
-
if (
|
|
1779
|
-
if (
|
|
1780
|
-
for (
|
|
1781
|
-
|
|
1778
|
+
if (L = 0, A = b(pe, J, We, Y), A < 0) {
|
|
1779
|
+
if (he = J[0], We != Y && (he = he * w + (J[1] || 0)), L = mt(he / Mt), L > 1)
|
|
1780
|
+
for (L >= w && (L = w - 1), G = h(pe, L, w), Q = G.length, Y = J.length; b(G, J, Q, Y) == 1; )
|
|
1781
|
+
L--, x(G, We < Q ? kt : pe, Q, w), Q = G.length, A = 1;
|
|
1782
1782
|
else
|
|
1783
|
-
|
|
1783
|
+
L == 0 && (A = L = 1), G = pe.slice(), Q = G.length;
|
|
1784
1784
|
if (Q < Y && (G = [0].concat(G)), x(J, G, Y, w), Y = J.length, A == -1)
|
|
1785
1785
|
for (; b(pe, J, We, Y) < 1; )
|
|
1786
|
-
|
|
1787
|
-
} else A === 0 && (
|
|
1788
|
-
ie[S++] =
|
|
1786
|
+
L++, x(J, We < Y ? kt : pe, Y, w), Y = J.length;
|
|
1787
|
+
} else A === 0 && (L++, J = [0]);
|
|
1788
|
+
ie[S++] = L, J[0] ? J[Y++] = Ce[gn] || 0 : (J = [Ce[gn]], Y = 1);
|
|
1789
1789
|
} while ((gn++ < Et || J[0] != null) && Se--);
|
|
1790
1790
|
M = J[0] != null, ie[0] || ie.splice(0, 1);
|
|
1791
1791
|
}
|
|
@@ -1828,8 +1828,8 @@ function jp(e) {
|
|
|
1828
1828
|
if (C.test(S))
|
|
1829
1829
|
T.s = isNaN(S) ? null : S < 0 ? -1 : 1;
|
|
1830
1830
|
else {
|
|
1831
|
-
if (!w && (S = S.replace(h, function(M,
|
|
1832
|
-
return F = (G = G.toLowerCase()) == "x" ? 16 : G == "b" ? 2 : 8, !A || A == F ?
|
|
1831
|
+
if (!w && (S = S.replace(h, function(M, L, G) {
|
|
1832
|
+
return F = (G = G.toLowerCase()) == "x" ? 16 : G == "b" ? 2 : 8, !A || A == F ? L : M;
|
|
1833
1833
|
}), A && (F = A, S = S.replace(b, "$1").replace(x, "0.$1")), D != S))
|
|
1834
1834
|
return new v(S, F);
|
|
1835
1835
|
if (v.DEBUG)
|
|
@@ -1840,12 +1840,12 @@ function jp(e) {
|
|
|
1840
1840
|
};
|
|
1841
1841
|
})();
|
|
1842
1842
|
function N(h, b, x, C) {
|
|
1843
|
-
var E, T, D, w, A, F, S, M = h.c,
|
|
1843
|
+
var E, T, D, w, A, F, S, M = h.c, L = Ni;
|
|
1844
1844
|
if (M) {
|
|
1845
1845
|
e: {
|
|
1846
1846
|
for (E = 1, w = M[0]; w >= 10; w /= 10, E++) ;
|
|
1847
1847
|
if (T = b - E, T < 0)
|
|
1848
|
-
T += ee, D = b, A = M[F = 0], S = mt(A /
|
|
1848
|
+
T += ee, D = b, A = M[F = 0], S = mt(A / L[E - D - 1] % 10);
|
|
1849
1849
|
else if (F = Mi((T + 1) / ee), F >= M.length)
|
|
1850
1850
|
if (C) {
|
|
1851
1851
|
for (; M.length <= F; M.push(0)) ;
|
|
@@ -1854,15 +1854,15 @@ function jp(e) {
|
|
|
1854
1854
|
break e;
|
|
1855
1855
|
else {
|
|
1856
1856
|
for (A = w = M[F], E = 1; w >= 10; w /= 10, E++) ;
|
|
1857
|
-
T %= ee, D = T - ee + E, S = D < 0 ? 0 : mt(A /
|
|
1857
|
+
T %= ee, D = T - ee + E, S = D < 0 ? 0 : mt(A / L[E - D - 1] % 10);
|
|
1858
1858
|
}
|
|
1859
1859
|
if (C = C || b < 0 || // Are there any non-zero digits after the rounding digit?
|
|
1860
1860
|
// The expression n % pows10[d - j - 1] returns all digits of n to the right
|
|
1861
1861
|
// of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.
|
|
1862
|
-
M[F + 1] != null || (D < 0 ? A : A %
|
|
1863
|
-
(T > 0 ? D > 0 ? A /
|
|
1864
|
-
return M.length = 0, C ? (b -= h.e + 1, M[0] =
|
|
1865
|
-
if (T == 0 ? (M.length = F, w = 1, F--) : (M.length = F + 1, w =
|
|
1862
|
+
M[F + 1] != null || (D < 0 ? A : A % L[E - D - 1]), C = x < 4 ? (S || C) && (x == 0 || x == (h.s < 0 ? 3 : 2)) : S > 5 || S == 5 && (x == 4 || C || x == 6 && // Check whether the digit to the left of the rounding digit is odd.
|
|
1863
|
+
(T > 0 ? D > 0 ? A / L[E - D] : 0 : M[F - 1]) % 10 & 1 || x == (h.s < 0 ? 8 : 7)), b < 1 || !M[0])
|
|
1864
|
+
return M.length = 0, C ? (b -= h.e + 1, M[0] = L[(ee - b % ee) % ee], h.e = -b || 0) : M[0] = h.e = 0, h;
|
|
1865
|
+
if (T == 0 ? (M.length = F, w = 1, F--) : (M.length = F + 1, w = L[ee - T], M[F] = D > 0 ? mt(A / L[E - D] % L[D]) * w : 0), C)
|
|
1866
1866
|
for (; ; )
|
|
1867
1867
|
if (F == 0) {
|
|
1868
1868
|
for (T = 1, D = M[0]; D >= 10; D /= 10, T++) ;
|
|
@@ -1992,13 +1992,13 @@ function jp(e) {
|
|
|
1992
1992
|
var x, C, E = this;
|
|
1993
1993
|
return h = new v(h, b), !E.c || !h.s || h.c && !h.c[0] ? new v(NaN) : !h.c || E.c && !E.c[0] ? new v(E) : (m == 9 ? (C = h.s, h.s = 1, x = t(E, h, 0, 3), h.s = C, x.s *= C) : x = t(E, h, 0, m), h = E.minus(x.times(h)), !h.c[0] && m == 1 && (h.s = E.s), h);
|
|
1994
1994
|
}, s.multipliedBy = s.times = function(h, b) {
|
|
1995
|
-
var x, C, E, T, D, w, A, F, S, M,
|
|
1996
|
-
if (!Y || !
|
|
1997
|
-
return !J.s || !h.s || Y && !Y[0] && !
|
|
1998
|
-
for (C = ht(J.e / ee) + ht(h.e / ee), h.s *= J.s, A = Y.length, M =
|
|
1995
|
+
var x, C, E, T, D, w, A, F, S, M, L, G, Q, se, ie, J = this, Y = J.c, he = (h = new v(h, b)).c;
|
|
1996
|
+
if (!Y || !he || !Y[0] || !he[0])
|
|
1997
|
+
return !J.s || !h.s || Y && !Y[0] && !he || he && !he[0] && !Y ? h.c = h.e = h.s = null : (h.s *= J.s, !Y || !he ? h.c = h.e = null : (h.c = [0], h.e = 0)), h;
|
|
1998
|
+
for (C = ht(J.e / ee) + ht(h.e / ee), h.s *= J.s, A = Y.length, M = he.length, A < M && (Q = Y, Y = he, he = Q, E = A, A = M, M = E), E = A + M, Q = []; E--; Q.push(0)) ;
|
|
1999
1999
|
for (se = vt, ie = wn, E = M; --E >= 0; ) {
|
|
2000
|
-
for (x = 0,
|
|
2001
|
-
F = Y[--D] % ie, S = Y[D] / ie | 0, w = G * F + S *
|
|
2000
|
+
for (x = 0, L = he[E] % ie, G = he[E] / ie | 0, D = A, T = E + D; T > E; )
|
|
2001
|
+
F = Y[--D] % ie, S = Y[D] / ie | 0, w = G * F + S * L, F = L * F + w % ie * ie + Q[T] + x, x = (F / se | 0) + (w / ie | 0) + G * S, Q[T--] = F % se;
|
|
2002
2002
|
Q[T] = x;
|
|
2003
2003
|
}
|
|
2004
2004
|
return x ? ++C : Q.splice(0, 1), O(h, Q, C);
|
|
@@ -2064,10 +2064,10 @@ function jp(e) {
|
|
|
2064
2064
|
else if (typeof x != "object")
|
|
2065
2065
|
throw Error(Ze + "Argument not an object: " + x);
|
|
2066
2066
|
if (C = E.toFixed(h, b), E.c) {
|
|
2067
|
-
var T, D = C.split("."), w = +x.groupSize, A = +x.secondaryGroupSize, F = x.groupSeparator || "", S = D[0], M = D[1],
|
|
2067
|
+
var T, D = C.split("."), w = +x.groupSize, A = +x.secondaryGroupSize, F = x.groupSeparator || "", S = D[0], M = D[1], L = E.s < 0, G = L ? S.slice(1) : S, Q = G.length;
|
|
2068
2068
|
if (A && (T = w, w = A, A = T, Q -= T), w > 0 && Q > 0) {
|
|
2069
2069
|
for (T = Q % w || w, S = G.substr(0, T); T < Q; T += w) S += F + G.substr(T, w);
|
|
2070
|
-
A > 0 && (S += F + G.slice(T)),
|
|
2070
|
+
A > 0 && (S += F + G.slice(T)), L && (S = "-" + S);
|
|
2071
2071
|
}
|
|
2072
2072
|
C = M ? S + (x.decimalSeparator || "") + ((A = +x.fractionGroupSize) ? M.replace(
|
|
2073
2073
|
new RegExp("\\d{" + A + "}\\B", "g"),
|
|
@@ -2076,11 +2076,11 @@ function jp(e) {
|
|
|
2076
2076
|
}
|
|
2077
2077
|
return (x.prefix || "") + C + (x.suffix || "");
|
|
2078
2078
|
}, s.toFraction = function(h) {
|
|
2079
|
-
var b, x, C, E, T, D, w, A, F, S, M,
|
|
2079
|
+
var b, x, C, E, T, D, w, A, F, S, M, L, G = this, Q = G.c;
|
|
2080
2080
|
if (h != null && (w = new v(h), !w.isInteger() && (w.c || w.s !== 1) || w.lt(a)))
|
|
2081
2081
|
throw Error(Ze + "Argument " + (w.isInteger() ? "out of range: " : "not an integer: ") + R(w));
|
|
2082
2082
|
if (!Q) return new v(G);
|
|
2083
|
-
for (b = new v(a), F = x = new v(a), C = A = new v(a),
|
|
2083
|
+
for (b = new v(a), F = x = new v(a), C = A = new v(a), L = pt(Q), T = b.e = L.length - G.e - 1, b.c[0] = Ni[(D = T % ee) < 0 ? ee + D : D], h = !h || w.comparedTo(b) > 0 ? T > 0 ? b : F : w, D = p, p = 1 / 0, w = new v(L), A.c[0] = 0; S = t(w, b, 0, 1), E = x.plus(S.times(C)), E.comparedTo(h) != 1; )
|
|
2084
2084
|
x = C, C = E, F = A.plus(S.times(E = F)), A = E, b = w.minus(S.times(E = b)), w = E;
|
|
2085
2085
|
return E = t(h.minus(x), C, 0, 1), A = A.plus(E.times(F)), x = x.plus(E.times(C)), A.s = F.s = G.s, T = T * 2, M = t(F, C, T, i).minus(G).abs().comparedTo(
|
|
2086
2086
|
t(A, x, T, i).minus(G).abs()
|
|
@@ -2212,7 +2212,7 @@ function T1(e) {
|
|
|
2212
2212
|
Je.Minutes
|
|
2213
2213
|
].find((n) => n <= e) || Je.Minutes;
|
|
2214
2214
|
}
|
|
2215
|
-
const or = (e) => e ? e.value * e.unit : 0, S1 = (e) => !e || e === "NaN" ? "0" : _(e).decimalPlaces(0).toFixed(), ls = (e) => Object.values(
|
|
2215
|
+
const or = (e) => e ? e.value * e.unit : 0, S1 = (e) => !e || e === "NaN" ? "0" : _(e).decimalPlaces(0).toFixed(), ls = (e) => Object.values($e).find((t) => t.id === e), P1 = (e) => {
|
|
2216
2216
|
if (!e) return;
|
|
2217
2217
|
const t = e.map((a) => He(a)), n = Object.entries(f1).filter(([a]) => t.includes(a)).flatMap(([, a]) => a), r = e.map((a) => a.exchangeAddress), s = new Set(
|
|
2218
2218
|
[...r, ...n].map((a) => a.toLowerCase())
|
|
@@ -2224,11 +2224,11 @@ const or = (e) => e ? e.value * e.unit : 0, S1 = (e) => !e || e === "NaN" ? "0"
|
|
|
2224
2224
|
const s = es(n, e), a = es(r, t);
|
|
2225
2225
|
return _(a).div(s).toFixed();
|
|
2226
2226
|
}, U1 = (e, t, n) => {
|
|
2227
|
-
if (e.type ===
|
|
2227
|
+
if (e.type === fe.TWAP_MARKET) return "";
|
|
2228
2228
|
const r = es(t, e.srcAmountPerTrade), s = es(n, e.dstMinAmountPerTrade);
|
|
2229
2229
|
return _(s).div(r).toFixed();
|
|
2230
2230
|
}, I1 = (e, t, n) => {
|
|
2231
|
-
if (e.type ===
|
|
2231
|
+
if (e.type === fe.TWAP_MARKET) return "";
|
|
2232
2232
|
const r = es(t, e.srcAmountPerTrade), s = es(n, e.triggerPricePerTrade);
|
|
2233
2233
|
return _(s).div(r).toFixed();
|
|
2234
2234
|
}, F1 = (e, t, n) => {
|
|
@@ -2255,7 +2255,7 @@ const or = (e) => e ? e.value * e.unit : 0, S1 = (e) => !e || e === "NaN" ? "0"
|
|
|
2255
2255
|
xc / 2 / or(e)
|
|
2256
2256
|
);
|
|
2257
2257
|
return Math.max(1, Math.min(a, o));
|
|
2258
|
-
}, _1 = (e, t) => e + or(t) + 6e4, z1 = (e) => e.bidDelaySeconds * 1e3 * 2,
|
|
2258
|
+
}, _1 = (e, t) => e + or(t) + 6e4, z1 = (e) => e.bidDelaySeconds * 1e3 * 2, L1 = (e = "", t = 0) => !e || !t ? "0" : _(e).div(t).integerValue(_.ROUND_FLOOR).toFixed(0), $1 = (e = "", t = "", n) => {
|
|
2259
2259
|
if (n === te.STOP_LOSS)
|
|
2260
2260
|
return {
|
|
2261
2261
|
isError: _(t || 0).gte(_(e || 0)),
|
|
@@ -2608,9 +2608,9 @@ const ob = (e, t, n) => {
|
|
|
2608
2608
|
};
|
|
2609
2609
|
class ib {
|
|
2610
2610
|
constructor() {
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2611
|
+
$a(this, "timeout");
|
|
2612
|
+
$a(this, "config");
|
|
2613
|
+
$a(this, "data", {
|
|
2614
2614
|
_id: zi()
|
|
2615
2615
|
});
|
|
2616
2616
|
}
|
|
@@ -2799,12 +2799,12 @@ class ib {
|
|
|
2799
2799
|
const Ae = new ib(), cb = (e) => {
|
|
2800
2800
|
var i;
|
|
2801
2801
|
const t = _(e.order.witness.output.limit || 0).gt(1), n = e.order.witness.output.stop, r = e.order.witness.output.triggerUpper, s = _(n || 0).eq(kl) || _(r || 0).gt(0), a = _(n || 0).gt(0), o = ((i = e.metadata.chunks) == null ? void 0 : i.length) || _(e.order.witness.input.maxAmount).div(_(e.order.witness.input.amount)).toNumber();
|
|
2802
|
-
return s ?
|
|
2802
|
+
return s ? fe.TAKE_PROFIT : a ? t ? fe.STOP_LOSS_LIMIT : fe.STOP_LOSS_MARKET : t ? o > 1 && t ? fe.TWAP_LIMIT : t ? fe.LIMIT : fe.TWAP_MARKET : fe.TWAP_MARKET;
|
|
2803
2803
|
}, lb = (e) => {
|
|
2804
2804
|
var s;
|
|
2805
2805
|
const t = ((s = e.metadata.chunks) == null ? void 0 : s.filter((a) => a.status === "success").length) || 0, n = e.metadata.expectedChunks || 0, r = _(t).dividedBy(n).toNumber();
|
|
2806
2806
|
return r >= 0.99 ? 100 : r <= 0 ? 0 : Number((r * 100).toFixed(2));
|
|
2807
|
-
}, ub = (e, t) => e.metadata.status === "completed" || t >= 99 ?
|
|
2807
|
+
}, ub = (e, t) => e.metadata.status === "completed" || t >= 99 ? Le.Completed : ["pending", "eligible"].includes(e.metadata.status) ? Le.Open : e.metadata.description.toLowerCase() === "cancelled by contract" ? Le.Cancelled : Le.Expired, db = (e) => {
|
|
2808
2808
|
var n;
|
|
2809
2809
|
return (((n = e.metadata.chunks) == null ? void 0 : n.filter((r) => r.status === "success")) || []).map((r) => ({
|
|
2810
2810
|
inAmount: r.inAmount,
|
|
@@ -2834,16 +2834,16 @@ const Ae = new ib(), cb = (e) => {
|
|
|
2834
2834
|
dstMinAmountTotal: n ? "" : _(t).multipliedBy(r).toFixed()
|
|
2835
2835
|
};
|
|
2836
2836
|
}, bb = (e) => Number(Qo) >= 2 ? mb(e) : hb(e), Xp = (e) => {
|
|
2837
|
-
const t = lb(e), n = Cl(e), r = e.metadata.expectedChunks || 1, s = db(e);
|
|
2837
|
+
const t = lb(e), n = Cl(e), r = e.metadata.expectedChunks || 1, s = db(e), a = cb(e);
|
|
2838
2838
|
return {
|
|
2839
2839
|
id: e.hash,
|
|
2840
2840
|
hash: e.hash,
|
|
2841
2841
|
version: 2,
|
|
2842
|
-
type:
|
|
2842
|
+
type: a,
|
|
2843
2843
|
maker: e.order.witness.swapper,
|
|
2844
2844
|
progress: t,
|
|
2845
|
-
srcAmountFilled: s.reduce((
|
|
2846
|
-
dstAmountFilled: s.reduce((
|
|
2845
|
+
srcAmountFilled: s.reduce((o, i) => o.plus(i.inAmount), new _(0)).toFixed() || "",
|
|
2846
|
+
dstAmountFilled: s.reduce((o, i) => o.plus(i.outAmount), new _(0)).toFixed() || "",
|
|
2847
2847
|
fills: s,
|
|
2848
2848
|
srcTokenAddress: e.order.witness.input.token,
|
|
2849
2849
|
dstTokenAddress: e.order.witness.output.token,
|
|
@@ -2858,6 +2858,7 @@ const Ae = new ib(), cb = (e) => {
|
|
|
2858
2858
|
chainId: e.order.witness.chainid,
|
|
2859
2859
|
filledOrderTimestamp: pb(s, r),
|
|
2860
2860
|
status: ub(e, t),
|
|
2861
|
+
isTriggerPrice: a === fe.TAKE_PROFIT || a === fe.STOP_LOSS_LIMIT || a === fe.STOP_LOSS_MARKET,
|
|
2861
2862
|
rawOrder: e,
|
|
2862
2863
|
...bb(e)
|
|
2863
2864
|
};
|
|
@@ -2977,12 +2978,13 @@ const Ae = new ib(), cb = (e) => {
|
|
|
2977
2978
|
txHash: t.transactionHash
|
|
2978
2979
|
})), td = (e, t) => {
|
|
2979
2980
|
const n = _(e || 0).gt(1);
|
|
2980
|
-
return !n && t === 1 ?
|
|
2981
|
+
return !n && t === 1 ? fe.TWAP_MARKET : t > 1 && n ? fe.TWAP_LIMIT : n ? fe.LIMIT : fe.TWAP_MARKET;
|
|
2981
2982
|
}, wb = (e, t, n, r) => {
|
|
2982
2983
|
var f;
|
|
2983
2984
|
const s = Qp(n || []), a = new _(e.ask_srcAmount || 0).div(e.ask_srcBidAmount).integerValue(_.ROUND_FLOOR).toNumber(), i = (n == null ? void 0 : n.length) === a ? (f = n == null ? void 0 : n[(n == null ? void 0 : n.length) - 1]) == null ? void 0 : f.timestamp : void 0, c = s.reduce((m, y) => m.plus(y.inAmount), new _(0)).toFixed(), l = s.reduce((m, y) => m.plus(y.outAmount), new _(0)).toFixed(), d = Jp(e.ask_srcAmount, c), p = td(e.ask_dstMinAmount, a);
|
|
2984
2985
|
return {
|
|
2985
2986
|
version: 1,
|
|
2987
|
+
isTriggerPrice: !1,
|
|
2986
2988
|
id: e.Contract_id.toString(),
|
|
2987
2989
|
hash: "",
|
|
2988
2990
|
type: td(e.ask_dstMinAmount, a),
|
|
@@ -3006,7 +3008,7 @@ const Ae = new ib(), cb = (e) => {
|
|
|
3006
3008
|
srcAmountPerTrade: e.ask_srcBidAmount,
|
|
3007
3009
|
txHash: e.transactionHash,
|
|
3008
3010
|
totalTradesAmount: a,
|
|
3009
|
-
isMarketPrice: [
|
|
3011
|
+
isMarketPrice: [fe.TWAP_MARKET].includes(p),
|
|
3010
3012
|
chainId: t,
|
|
3011
3013
|
filledOrderTimestamp: i || 0,
|
|
3012
3014
|
status: r,
|
|
@@ -3235,7 +3237,7 @@ const Tb = async ({
|
|
|
3235
3237
|
if (!t || !e) return 0;
|
|
3236
3238
|
const n = _(t).dividedBy(e).toNumber();
|
|
3237
3239
|
return n >= 0.99 ? 100 : n <= 0 ? 0 : Number((n * 100).toFixed(2));
|
|
3238
|
-
}, Pb = (e, t, n) => e === 100 ?
|
|
3240
|
+
}, Pb = (e, t, n) => e === 100 ? Le.Completed : n === "CANCELLED" ? Le.Cancelled : n === "COMPLETED" ? Le.Completed : t > Date.now() ? Le.Open : Le.Expired, Bb = async ({
|
|
3239
3241
|
signal: e,
|
|
3240
3242
|
page: t,
|
|
3241
3243
|
chainId: n,
|
|
@@ -3246,7 +3248,7 @@ const Tb = async ({
|
|
|
3246
3248
|
}) => (await Promise.all([
|
|
3247
3249
|
s ? Tb({ chainId: n, signal: e, page: t, limit: r, filters: { accounts: [a], configs: s.twapConfig ? [s.twapConfig] : [] } }) : Promise.resolve([]),
|
|
3248
3250
|
yb({ chainId: n, signal: e, account: a, exchange: s == null ? void 0 : s.adapter, isDev: o })
|
|
3249
|
-
]).then(([l, d]) => [...l, ...d])).sort((l, d) => d.createdAt - l.createdAt), Ub = "1.1.
|
|
3251
|
+
]).then(([l, d]) => [...l, ...d])).sort((l, d) => d.createdAt - l.createdAt), Ub = "1.1.2", Ib = {
|
|
3250
3252
|
version: Ub
|
|
3251
3253
|
};
|
|
3252
3254
|
var us = class {
|
|
@@ -3344,7 +3346,7 @@ function nd(e, t) {
|
|
|
3344
3346
|
if (r) {
|
|
3345
3347
|
if (t.queryHash !== Al(o, t.options))
|
|
3346
3348
|
return !1;
|
|
3347
|
-
} else if (
|
|
3349
|
+
} else if (!Ls(t.queryKey, o))
|
|
3348
3350
|
return !1;
|
|
3349
3351
|
}
|
|
3350
3352
|
if (n !== "all") {
|
|
@@ -3362,7 +3364,7 @@ function rd(e, t) {
|
|
|
3362
3364
|
if (n) {
|
|
3363
3365
|
if (cr(t.options.mutationKey) !== cr(a))
|
|
3364
3366
|
return !1;
|
|
3365
|
-
} else if (
|
|
3367
|
+
} else if (!Ls(t.options.mutationKey, a))
|
|
3366
3368
|
return !1;
|
|
3367
3369
|
}
|
|
3368
3370
|
return !(r && t.state.status !== r || s && !s(t));
|
|
@@ -3376,8 +3378,8 @@ function cr(e) {
|
|
|
3376
3378
|
(t, n) => Cc(n) ? Object.keys(n).sort().reduce((r, s) => (r[s] = n[s], r), {}) : n
|
|
3377
3379
|
);
|
|
3378
3380
|
}
|
|
3379
|
-
function
|
|
3380
|
-
return e === t ? !0 : typeof e != typeof t ? !1 : e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((n) =>
|
|
3381
|
+
function Ls(e, t) {
|
|
3382
|
+
return e === t ? !0 : typeof e != typeof t ? !1 : e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((n) => Ls(e[n], t[n])) : !1;
|
|
3381
3383
|
}
|
|
3382
3384
|
var Rb = Object.prototype.hasOwnProperty;
|
|
3383
3385
|
function kc(e, t) {
|
|
@@ -3463,7 +3465,7 @@ function e0(e, t) {
|
|
|
3463
3465
|
function t0(e, t) {
|
|
3464
3466
|
return typeof e == "function" ? e(...t) : !!e;
|
|
3465
3467
|
}
|
|
3466
|
-
var Wn, Tn, Hr, Ip,
|
|
3468
|
+
var Wn, Tn, Hr, Ip, Lb = (Ip = class extends us {
|
|
3467
3469
|
constructor() {
|
|
3468
3470
|
super();
|
|
3469
3471
|
Z(this, Wn);
|
|
@@ -3504,7 +3506,7 @@ var Wn, Tn, Hr, Ip, $b = (Ip = class extends us {
|
|
|
3504
3506
|
var t;
|
|
3505
3507
|
return typeof I(this, Wn) == "boolean" ? I(this, Wn) : ((t = globalThis.document) == null ? void 0 : t.visibilityState) !== "hidden";
|
|
3506
3508
|
}
|
|
3507
|
-
}, Wn = new WeakMap(), Tn = new WeakMap(), Hr = new WeakMap(), Ip), Tl = new
|
|
3509
|
+
}, Wn = new WeakMap(), Tn = new WeakMap(), Hr = new WeakMap(), Ip), Tl = new Lb();
|
|
3508
3510
|
function Ac() {
|
|
3509
3511
|
let e, t;
|
|
3510
3512
|
const n = new Promise((s, a) => {
|
|
@@ -3527,13 +3529,13 @@ function Ac() {
|
|
|
3527
3529
|
}), t(s);
|
|
3528
3530
|
}, n;
|
|
3529
3531
|
}
|
|
3530
|
-
var
|
|
3532
|
+
var $b = Ob;
|
|
3531
3533
|
function Hb() {
|
|
3532
3534
|
let e = [], t = 0, n = (i) => {
|
|
3533
3535
|
i();
|
|
3534
3536
|
}, r = (i) => {
|
|
3535
3537
|
i();
|
|
3536
|
-
}, s =
|
|
3538
|
+
}, s = $b;
|
|
3537
3539
|
const a = (i) => {
|
|
3538
3540
|
t ? e.push(i) : s(() => {
|
|
3539
3541
|
n(i);
|
|
@@ -4390,10 +4392,10 @@ function Zb(e, { pages: t, pageParams: n }) {
|
|
|
4390
4392
|
var r;
|
|
4391
4393
|
return t.length > 0 ? (r = e.getPreviousPageParam) == null ? void 0 : r.call(e, t[0], t, n[0], n) : void 0;
|
|
4392
4394
|
}
|
|
4393
|
-
var ya, zt, je, nr,
|
|
4395
|
+
var ya, zt, je, nr, Lt, An, Rp, Xb = (Rp = class extends s0 {
|
|
4394
4396
|
constructor(t) {
|
|
4395
4397
|
super();
|
|
4396
|
-
Z(this,
|
|
4398
|
+
Z(this, Lt);
|
|
4397
4399
|
Z(this, ya);
|
|
4398
4400
|
Z(this, zt);
|
|
4399
4401
|
Z(this, je);
|
|
@@ -4431,7 +4433,7 @@ var ya, zt, je, nr, $t, An, Rp, Xb = (Rp = class extends s0 {
|
|
|
4431
4433
|
async execute(t) {
|
|
4432
4434
|
var o, i, c, l, d, p, f, m, y, g, P, B, v, U, k, O, N, R, h, b;
|
|
4433
4435
|
const n = () => {
|
|
4434
|
-
re(this,
|
|
4436
|
+
re(this, Lt, An).call(this, { type: "continue" });
|
|
4435
4437
|
}, r = {
|
|
4436
4438
|
client: I(this, ya),
|
|
4437
4439
|
meta: this.options.meta,
|
|
@@ -4440,10 +4442,10 @@ var ya, zt, je, nr, $t, An, Rp, Xb = (Rp = class extends s0 {
|
|
|
4440
4442
|
V(this, nr, r0({
|
|
4441
4443
|
fn: () => this.options.mutationFn ? this.options.mutationFn(t, r) : Promise.reject(new Error("No mutationFn found")),
|
|
4442
4444
|
onFail: (x, C) => {
|
|
4443
|
-
re(this,
|
|
4445
|
+
re(this, Lt, An).call(this, { type: "failed", failureCount: x, error: C });
|
|
4444
4446
|
},
|
|
4445
4447
|
onPause: () => {
|
|
4446
|
-
re(this,
|
|
4448
|
+
re(this, Lt, An).call(this, { type: "pause" });
|
|
4447
4449
|
},
|
|
4448
4450
|
onContinue: n,
|
|
4449
4451
|
retry: this.options.retry ?? 0,
|
|
@@ -4456,7 +4458,7 @@ var ya, zt, je, nr, $t, An, Rp, Xb = (Rp = class extends s0 {
|
|
|
4456
4458
|
if (s)
|
|
4457
4459
|
n();
|
|
4458
4460
|
else {
|
|
4459
|
-
re(this,
|
|
4461
|
+
re(this, Lt, An).call(this, { type: "pending", variables: t, isPaused: a }), await ((i = (o = I(this, je).config).onMutate) == null ? void 0 : i.call(
|
|
4460
4462
|
o,
|
|
4461
4463
|
t,
|
|
4462
4464
|
this,
|
|
@@ -4467,7 +4469,7 @@ var ya, zt, je, nr, $t, An, Rp, Xb = (Rp = class extends s0 {
|
|
|
4467
4469
|
t,
|
|
4468
4470
|
r
|
|
4469
4471
|
));
|
|
4470
|
-
C !== this.state.context && re(this,
|
|
4472
|
+
C !== this.state.context && re(this, Lt, An).call(this, {
|
|
4471
4473
|
type: "pending",
|
|
4472
4474
|
context: C,
|
|
4473
4475
|
variables: t,
|
|
@@ -4503,7 +4505,7 @@ var ya, zt, je, nr, $t, An, Rp, Xb = (Rp = class extends s0 {
|
|
|
4503
4505
|
t,
|
|
4504
4506
|
this.state.context,
|
|
4505
4507
|
r
|
|
4506
|
-
)), re(this,
|
|
4508
|
+
)), re(this, Lt, An).call(this, { type: "success", data: x }), x;
|
|
4507
4509
|
} catch (x) {
|
|
4508
4510
|
try {
|
|
4509
4511
|
throw await ((U = (v = I(this, je).config).onError) == null ? void 0 : U.call(
|
|
@@ -4536,13 +4538,13 @@ var ya, zt, je, nr, $t, An, Rp, Xb = (Rp = class extends s0 {
|
|
|
4536
4538
|
r
|
|
4537
4539
|
)), x;
|
|
4538
4540
|
} finally {
|
|
4539
|
-
re(this,
|
|
4541
|
+
re(this, Lt, An).call(this, { type: "error", error: x });
|
|
4540
4542
|
}
|
|
4541
4543
|
} finally {
|
|
4542
4544
|
I(this, je).runNext(this);
|
|
4543
4545
|
}
|
|
4544
4546
|
}
|
|
4545
|
-
}, ya = new WeakMap(), zt = new WeakMap(), je = new WeakMap(), nr = new WeakMap(),
|
|
4547
|
+
}, ya = new WeakMap(), zt = new WeakMap(), je = new WeakMap(), nr = new WeakMap(), Lt = new WeakSet(), An = function(t) {
|
|
4546
4548
|
const n = (r) => {
|
|
4547
4549
|
switch (t.type) {
|
|
4548
4550
|
case "failed":
|
|
@@ -4811,11 +4813,11 @@ var sn, Un, Qe, an, dn, Do, Mc, _p, Jb = (_p = class extends us {
|
|
|
4811
4813
|
d(I(this, Un));
|
|
4812
4814
|
});
|
|
4813
4815
|
});
|
|
4814
|
-
}, _p),
|
|
4816
|
+
}, _p), $t, zp, Yb = (zp = class extends us {
|
|
4815
4817
|
constructor(t = {}) {
|
|
4816
4818
|
super();
|
|
4817
|
-
Z(this,
|
|
4818
|
-
this.config = t, V(this,
|
|
4819
|
+
Z(this, $t);
|
|
4820
|
+
this.config = t, V(this, $t, /* @__PURE__ */ new Map());
|
|
4819
4821
|
}
|
|
4820
4822
|
build(t, n, r) {
|
|
4821
4823
|
const s = n.queryKey, a = n.queryHash ?? Al(s, n);
|
|
@@ -4830,14 +4832,14 @@ var sn, Un, Qe, an, dn, Do, Mc, _p, Jb = (_p = class extends us {
|
|
|
4830
4832
|
}), this.add(o)), o;
|
|
4831
4833
|
}
|
|
4832
4834
|
add(t) {
|
|
4833
|
-
I(this,
|
|
4835
|
+
I(this, $t).has(t.queryHash) || (I(this, $t).set(t.queryHash, t), this.notify({
|
|
4834
4836
|
type: "added",
|
|
4835
4837
|
query: t
|
|
4836
4838
|
}));
|
|
4837
4839
|
}
|
|
4838
4840
|
remove(t) {
|
|
4839
|
-
const n = I(this,
|
|
4840
|
-
n && (t.destroy(), n === t && I(this,
|
|
4841
|
+
const n = I(this, $t).get(t.queryHash);
|
|
4842
|
+
n && (t.destroy(), n === t && I(this, $t).delete(t.queryHash), this.notify({ type: "removed", query: t }));
|
|
4841
4843
|
}
|
|
4842
4844
|
clear() {
|
|
4843
4845
|
Be.batch(() => {
|
|
@@ -4847,10 +4849,10 @@ var sn, Un, Qe, an, dn, Do, Mc, _p, Jb = (_p = class extends us {
|
|
|
4847
4849
|
});
|
|
4848
4850
|
}
|
|
4849
4851
|
get(t) {
|
|
4850
|
-
return I(this,
|
|
4852
|
+
return I(this, $t).get(t);
|
|
4851
4853
|
}
|
|
4852
4854
|
getAll() {
|
|
4853
|
-
return [...I(this,
|
|
4855
|
+
return [...I(this, $t).values()];
|
|
4854
4856
|
}
|
|
4855
4857
|
find(t) {
|
|
4856
4858
|
const n = { exact: !0, ...t };
|
|
@@ -4883,7 +4885,7 @@ var sn, Un, Qe, an, dn, Do, Mc, _p, Jb = (_p = class extends us {
|
|
|
4883
4885
|
});
|
|
4884
4886
|
});
|
|
4885
4887
|
}
|
|
4886
|
-
},
|
|
4888
|
+
}, $t = new WeakMap(), zp), we, In, Fn, Xr, Qr, Dn, Jr, Yr, Lp, ey = (Lp = class {
|
|
4887
4889
|
constructor(e = {}) {
|
|
4888
4890
|
Z(this, we);
|
|
4889
4891
|
Z(this, In);
|
|
@@ -5049,7 +5051,7 @@ var sn, Un, Qe, an, dn, Do, Mc, _p, Jb = (_p = class extends us {
|
|
|
5049
5051
|
getQueryDefaults(e) {
|
|
5050
5052
|
const t = [...I(this, Xr).values()], n = {};
|
|
5051
5053
|
return t.forEach((r) => {
|
|
5052
|
-
|
|
5054
|
+
Ls(e, r.queryKey) && Object.assign(n, r.defaultOptions);
|
|
5053
5055
|
}), n;
|
|
5054
5056
|
}
|
|
5055
5057
|
setMutationDefaults(e, t) {
|
|
@@ -5061,7 +5063,7 @@ var sn, Un, Qe, an, dn, Do, Mc, _p, Jb = (_p = class extends us {
|
|
|
5061
5063
|
getMutationDefaults(e) {
|
|
5062
5064
|
const t = [...I(this, Qr).values()], n = {};
|
|
5063
5065
|
return t.forEach((r) => {
|
|
5064
|
-
|
|
5066
|
+
Ls(e, r.mutationKey) && Object.assign(n, r.defaultOptions);
|
|
5065
5067
|
}), n;
|
|
5066
5068
|
}
|
|
5067
5069
|
defaultQueryOptions(e) {
|
|
@@ -5089,7 +5091,7 @@ var sn, Un, Qe, an, dn, Do, Mc, _p, Jb = (_p = class extends us {
|
|
|
5089
5091
|
clear() {
|
|
5090
5092
|
I(this, we).clear(), I(this, In).clear();
|
|
5091
5093
|
}
|
|
5092
|
-
}, we = new WeakMap(), In = new WeakMap(), Fn = new WeakMap(), Xr = new WeakMap(), Qr = new WeakMap(), Dn = new WeakMap(), Jr = new WeakMap(), Yr = new WeakMap(),
|
|
5094
|
+
}, we = new WeakMap(), In = new WeakMap(), Fn = new WeakMap(), Xr = new WeakMap(), Qr = new WeakMap(), Dn = new WeakMap(), Jr = new WeakMap(), Yr = new WeakMap(), Lp), c0 = Re.createContext(
|
|
5093
5095
|
void 0
|
|
5094
5096
|
), Pl = (e) => {
|
|
5095
5097
|
const t = Re.useContext(c0);
|
|
@@ -5227,13 +5229,13 @@ function hn(e, t) {
|
|
|
5227
5229
|
throw s.error;
|
|
5228
5230
|
return { ...s, mutate: a, mutateAsync: s.mutate };
|
|
5229
5231
|
}
|
|
5230
|
-
const my =
|
|
5232
|
+
const my = $p(null), Li = {
|
|
5231
5233
|
didCatch: !1,
|
|
5232
5234
|
error: null
|
|
5233
5235
|
};
|
|
5234
5236
|
class hy extends Fh {
|
|
5235
5237
|
constructor(t) {
|
|
5236
|
-
super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state =
|
|
5238
|
+
super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Li;
|
|
5237
5239
|
}
|
|
5238
5240
|
static getDerivedStateFromError(t) {
|
|
5239
5241
|
return {
|
|
@@ -5251,7 +5253,7 @@ class hy extends Fh {
|
|
|
5251
5253
|
(n = (r = this.props).onReset) === null || n === void 0 || n.call(r, {
|
|
5252
5254
|
args: a,
|
|
5253
5255
|
reason: "imperative-api"
|
|
5254
|
-
}), this.setState(
|
|
5256
|
+
}), this.setState(Li);
|
|
5255
5257
|
}
|
|
5256
5258
|
}
|
|
5257
5259
|
componentDidCatch(t, n) {
|
|
@@ -5270,7 +5272,7 @@ class hy extends Fh {
|
|
|
5270
5272
|
next: s,
|
|
5271
5273
|
prev: t.resetKeys,
|
|
5272
5274
|
reason: "keys"
|
|
5273
|
-
}), this.setState(
|
|
5275
|
+
}), this.setState(Li);
|
|
5274
5276
|
}
|
|
5275
5277
|
}
|
|
5276
5278
|
render() {
|
|
@@ -5441,7 +5443,7 @@ function Dr(e) {
|
|
|
5441
5443
|
}
|
|
5442
5444
|
return t;
|
|
5443
5445
|
}
|
|
5444
|
-
function
|
|
5446
|
+
function Lo(e) {
|
|
5445
5447
|
var t;
|
|
5446
5448
|
return e.type === "function" ? `function ${e.name}(${Dr(e.inputs)})${e.stateMutability && e.stateMutability !== "nonpayable" ? ` ${e.stateMutability}` : ""}${(t = e.outputs) != null && t.length ? ` returns (${Dr(e.outputs)})` : ""}` : e.type === "event" ? `event ${e.name}(${Dr(e.inputs)})` : e.type === "error" ? `error ${e.name}(${Dr(e.inputs)})` : e.type === "constructor" ? `constructor(${Dr(e.inputs)})${e.stateMutability === "payable" ? " payable" : ""}` : e.type === "fallback" ? `fallback() external${e.stateMutability === "payable" ? " payable" : ""}` : "receive() external payable";
|
|
5447
5449
|
}
|
|
@@ -5553,7 +5555,7 @@ class zy extends rt {
|
|
|
5553
5555
|
});
|
|
5554
5556
|
}
|
|
5555
5557
|
}
|
|
5556
|
-
class
|
|
5558
|
+
class Ly extends rt {
|
|
5557
5559
|
constructor({ param: t }) {
|
|
5558
5560
|
super("Invalid ABI parameter.", {
|
|
5559
5561
|
details: t
|
|
@@ -5565,7 +5567,7 @@ class $y extends rt {
|
|
|
5565
5567
|
});
|
|
5566
5568
|
}
|
|
5567
5569
|
}
|
|
5568
|
-
class
|
|
5570
|
+
class $y extends rt {
|
|
5569
5571
|
constructor({ param: t, name: n }) {
|
|
5570
5572
|
super("Invalid ABI parameter.", {
|
|
5571
5573
|
details: t,
|
|
@@ -5701,7 +5703,7 @@ function Zy(e, t, n) {
|
|
|
5701
5703
|
}
|
|
5702
5704
|
return t ? `${t}:${e}${r}` : `${e}${r}`;
|
|
5703
5705
|
}
|
|
5704
|
-
const
|
|
5706
|
+
const $i = /* @__PURE__ */ new Map([
|
|
5705
5707
|
// Unnamed
|
|
5706
5708
|
["address", { type: "address" }],
|
|
5707
5709
|
["bool", { type: "bool" }],
|
|
@@ -5755,7 +5757,7 @@ const Li = /* @__PURE__ */ new Map([
|
|
|
5755
5757
|
{ type: "uint256", name: "tokenId", indexed: !0 }
|
|
5756
5758
|
]
|
|
5757
5759
|
]);
|
|
5758
|
-
function
|
|
5760
|
+
function Lc(e, t = {}) {
|
|
5759
5761
|
if (Ty(e))
|
|
5760
5762
|
return Xy(e, t);
|
|
5761
5763
|
if (vy(e))
|
|
@@ -5850,13 +5852,13 @@ const t6 = /^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\]
|
|
|
5850
5852
|
function fn(e, t) {
|
|
5851
5853
|
var p, f;
|
|
5852
5854
|
const n = Zy(e, t == null ? void 0 : t.type, t == null ? void 0 : t.structs);
|
|
5853
|
-
if (
|
|
5854
|
-
return
|
|
5855
|
+
if ($i.has(n))
|
|
5856
|
+
return $i.get(n);
|
|
5855
5857
|
const r = p0.test(e), s = bn(r ? n6 : t6, e);
|
|
5856
5858
|
if (!s)
|
|
5857
|
-
throw new
|
|
5859
|
+
throw new Ly({ param: e });
|
|
5858
5860
|
if (s.name && a6(s.name))
|
|
5859
|
-
throw new
|
|
5861
|
+
throw new $y({ param: e, name: s.name });
|
|
5860
5862
|
const a = s.name ? { name: s.name } : {}, o = s.modifier === "indexed" ? { indexed: !0 } : {}, i = (t == null ? void 0 : t.structs) ?? {};
|
|
5861
5863
|
let c, l = {};
|
|
5862
5864
|
if (r) {
|
|
@@ -5893,7 +5895,7 @@ function fn(e, t) {
|
|
|
5893
5895
|
...o,
|
|
5894
5896
|
...l
|
|
5895
5897
|
};
|
|
5896
|
-
return
|
|
5898
|
+
return $i.set(n, d), d;
|
|
5897
5899
|
}
|
|
5898
5900
|
function at(e, t = [], n = "", r = 0) {
|
|
5899
5901
|
const s = e.trim().length;
|
|
@@ -5988,20 +5990,20 @@ function E0(e) {
|
|
|
5988
5990
|
const t = Bl(e), n = [], r = e.length;
|
|
5989
5991
|
for (let s = 0; s < r; s++) {
|
|
5990
5992
|
const a = e[s];
|
|
5991
|
-
ei(a) || n.push(
|
|
5993
|
+
ei(a) || n.push(Lc(a, t));
|
|
5992
5994
|
}
|
|
5993
5995
|
return n;
|
|
5994
5996
|
}
|
|
5995
5997
|
function xd(e) {
|
|
5996
5998
|
let t;
|
|
5997
5999
|
if (typeof e == "string")
|
|
5998
|
-
t =
|
|
6000
|
+
t = Lc(e);
|
|
5999
6001
|
else {
|
|
6000
6002
|
const n = Bl(e), r = e.length;
|
|
6001
6003
|
for (let s = 0; s < r; s++) {
|
|
6002
6004
|
const a = e[s];
|
|
6003
6005
|
if (!ei(a)) {
|
|
6004
|
-
t =
|
|
6006
|
+
t = Lc(a, n);
|
|
6005
6007
|
break;
|
|
6006
6008
|
}
|
|
6007
6009
|
}
|
|
@@ -6059,13 +6061,13 @@ const k0 = "2.43.3";
|
|
|
6059
6061
|
let Es = {
|
|
6060
6062
|
getDocsUrl: ({ docsBaseUrl: e, docsPath: t = "", docsSlug: n }) => t ? `${e ?? "https://viem.sh"}${t}${n ? `#${n}` : ""}` : void 0,
|
|
6061
6063
|
version: `viem@${k0}`
|
|
6062
|
-
}, z = class
|
|
6064
|
+
}, z = class $c extends Error {
|
|
6063
6065
|
constructor(t, n = {}) {
|
|
6064
6066
|
var i;
|
|
6065
6067
|
const r = (() => {
|
|
6066
6068
|
var c;
|
|
6067
|
-
return n.cause instanceof
|
|
6068
|
-
})(), s = n.cause instanceof
|
|
6069
|
+
return n.cause instanceof $c ? n.cause.details : (c = n.cause) != null && c.message ? n.cause.message : n.details;
|
|
6070
|
+
})(), s = n.cause instanceof $c && n.cause.docsPath || n.docsPath, a = (i = Es.getDocsUrl) == null ? void 0 : i.call(Es, { ...n, docsPath: s }), o = [
|
|
6069
6071
|
t || "An error occurred.",
|
|
6070
6072
|
"",
|
|
6071
6073
|
...n.metaMessages ? [...n.metaMessages, ""] : [],
|
|
@@ -6331,7 +6333,7 @@ let x6 = class extends z {
|
|
|
6331
6333
|
});
|
|
6332
6334
|
}
|
|
6333
6335
|
};
|
|
6334
|
-
class
|
|
6336
|
+
class $o extends z {
|
|
6335
6337
|
constructor({ abiItem: t, data: n, params: r, size: s }) {
|
|
6336
6338
|
super([
|
|
6337
6339
|
`Data size of ${s} bytes is too small for non-indexed event parameters.`
|
|
@@ -6621,12 +6623,12 @@ function Xt(e, t, n, r) {
|
|
|
6621
6623
|
const s = (t >>> 0) + (r >>> 0);
|
|
6622
6624
|
return { h: e + n + (s / 2 ** 32 | 0) | 0, l: s | 0 };
|
|
6623
6625
|
}
|
|
6624
|
-
const _6 = (e, t, n) => (e >>> 0) + (t >>> 0) + (n >>> 0), z6 = (e, t, n, r) => t + n + r + (e / 2 ** 32 | 0) | 0,
|
|
6626
|
+
const _6 = (e, t, n) => (e >>> 0) + (t >>> 0) + (n >>> 0), z6 = (e, t, n, r) => t + n + r + (e / 2 ** 32 | 0) | 0, L6 = (e, t, n, r) => (e >>> 0) + (t >>> 0) + (n >>> 0) + (r >>> 0), $6 = (e, t, n, r, s) => t + n + r + s + (e / 2 ** 32 | 0) | 0, H6 = (e, t, n, r, s) => (e >>> 0) + (t >>> 0) + (n >>> 0) + (r >>> 0) + (s >>> 0), G6 = (e, t, n, r, s, a) => t + n + r + s + a + (e / 2 ** 32 | 0) | 0, Pr = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0;
|
|
6625
6627
|
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
6626
6628
|
function j6(e) {
|
|
6627
6629
|
return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
|
|
6628
6630
|
}
|
|
6629
|
-
function
|
|
6631
|
+
function $s(e) {
|
|
6630
6632
|
if (!Number.isSafeInteger(e) || e < 0)
|
|
6631
6633
|
throw new Error("positive integer expected, got " + e);
|
|
6632
6634
|
}
|
|
@@ -6639,7 +6641,7 @@ function lr(e, ...t) {
|
|
|
6639
6641
|
function V6(e) {
|
|
6640
6642
|
if (typeof e != "function" || typeof e.create != "function")
|
|
6641
6643
|
throw new Error("Hash should be wrapped by utils.createHasher");
|
|
6642
|
-
|
|
6644
|
+
$s(e.outputLen), $s(e.blockLen);
|
|
6643
6645
|
}
|
|
6644
6646
|
function ss(e, t = !0) {
|
|
6645
6647
|
if (e.destroyed)
|
|
@@ -6747,7 +6749,7 @@ function o2(e, t = 24) {
|
|
|
6747
6749
|
class Fl extends Il {
|
|
6748
6750
|
// NOTE: we accept arguments in bytes instead of bits here.
|
|
6749
6751
|
constructor(t, n, r, s = !1, a = 24) {
|
|
6750
|
-
if (super(), this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, this.enableXOF = !1, this.blockLen = t, this.suffix = n, this.outputLen = r, this.enableXOF = s, this.rounds = a,
|
|
6752
|
+
if (super(), this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, this.enableXOF = !1, this.blockLen = t, this.suffix = n, this.outputLen = r, this.enableXOF = s, this.rounds = a, $s(r), !(0 < t && t < 200))
|
|
6751
6753
|
throw new Error("only keccak-f1600 function is supported");
|
|
6752
6754
|
this.state = new Uint8Array(200), this.state32 = q6(this.state);
|
|
6753
6755
|
}
|
|
@@ -6791,7 +6793,7 @@ class Fl extends Il {
|
|
|
6791
6793
|
return this.writeInto(t);
|
|
6792
6794
|
}
|
|
6793
6795
|
xof(t) {
|
|
6794
|
-
return
|
|
6796
|
+
return $s(t), this.xofInto(new Uint8Array(t));
|
|
6795
6797
|
}
|
|
6796
6798
|
digestInto(t) {
|
|
6797
6799
|
if (D0(t, this), this.finished)
|
|
@@ -6844,7 +6846,7 @@ function u2(e) {
|
|
|
6844
6846
|
return s;
|
|
6845
6847
|
}
|
|
6846
6848
|
const d2 = (e) => {
|
|
6847
|
-
const t = typeof e == "string" ? e :
|
|
6849
|
+
const t = typeof e == "string" ? e : Lo(e);
|
|
6848
6850
|
return u2(t);
|
|
6849
6851
|
};
|
|
6850
6852
|
function z0(e) {
|
|
@@ -6928,7 +6930,7 @@ function ur(e, t, n, { strict: r } = {}) {
|
|
|
6928
6930
|
strict: r
|
|
6929
6931
|
});
|
|
6930
6932
|
}
|
|
6931
|
-
function
|
|
6933
|
+
function L0(e, t) {
|
|
6932
6934
|
if (typeof t == "number" && t > 0 && t > xe(e) - 1)
|
|
6933
6935
|
throw new P0({
|
|
6934
6936
|
offset: t,
|
|
@@ -6936,7 +6938,7 @@ function $0(e, t) {
|
|
|
6936
6938
|
size: xe(e)
|
|
6937
6939
|
});
|
|
6938
6940
|
}
|
|
6939
|
-
function
|
|
6941
|
+
function $0(e, t, n) {
|
|
6940
6942
|
if (typeof t == "number" && typeof n == "number" && xe(e) !== n - t)
|
|
6941
6943
|
throw new P0({
|
|
6942
6944
|
offset: n,
|
|
@@ -6945,14 +6947,14 @@ function L0(e, t, n) {
|
|
|
6945
6947
|
});
|
|
6946
6948
|
}
|
|
6947
6949
|
function H0(e, t, n, { strict: r } = {}) {
|
|
6948
|
-
|
|
6950
|
+
L0(e, t);
|
|
6949
6951
|
const s = e.slice(t, n);
|
|
6950
|
-
return r &&
|
|
6952
|
+
return r && $0(s, t, n), s;
|
|
6951
6953
|
}
|
|
6952
6954
|
function Hc(e, t, n, { strict: r } = {}) {
|
|
6953
|
-
|
|
6955
|
+
L0(e, t);
|
|
6954
6956
|
const s = `0x${e.replace("0x", "").slice((t ?? 0) * 2, (n ?? e.length) * 2)}`;
|
|
6955
|
-
return r &&
|
|
6957
|
+
return r && $0(s, t, n), s;
|
|
6956
6958
|
}
|
|
6957
6959
|
const m2 = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/, G0 = /^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;
|
|
6958
6960
|
function xr(e, t) {
|
|
@@ -7264,7 +7266,7 @@ async function V0(e, t) {
|
|
|
7264
7266
|
type: "event"
|
|
7265
7267
|
};
|
|
7266
7268
|
}
|
|
7267
|
-
function
|
|
7269
|
+
function me(e) {
|
|
7268
7270
|
return typeof e == "string" ? { address: e, type: "json-rpc" } : e;
|
|
7269
7271
|
}
|
|
7270
7272
|
const Dd = "/docs/contract/encodeFunctionData";
|
|
@@ -7659,7 +7661,7 @@ function W0({ abiItem: e, args: t, includeFunctionName: n = !0, includeName: r =
|
|
|
7659
7661
|
const z2 = {
|
|
7660
7662
|
gwei: 9,
|
|
7661
7663
|
wei: 18
|
|
7662
|
-
},
|
|
7664
|
+
}, L2 = {
|
|
7663
7665
|
ether: -9,
|
|
7664
7666
|
wei: 9
|
|
7665
7667
|
};
|
|
@@ -7677,9 +7679,9 @@ function zl(e, t = "wei") {
|
|
|
7677
7679
|
return _l(e, z2[t]);
|
|
7678
7680
|
}
|
|
7679
7681
|
function nt(e, t = "wei") {
|
|
7680
|
-
return _l(e,
|
|
7682
|
+
return _l(e, L2[t]);
|
|
7681
7683
|
}
|
|
7682
|
-
class
|
|
7684
|
+
class $2 extends z {
|
|
7683
7685
|
constructor({ address: t }) {
|
|
7684
7686
|
super(`State for account "${t}" is set multiple times.`, {
|
|
7685
7687
|
name: "AccountStateConflictError"
|
|
@@ -7819,11 +7821,11 @@ class W2 extends z {
|
|
|
7819
7821
|
super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`, { name: "WaitForTransactionReceiptTimeoutError" });
|
|
7820
7822
|
}
|
|
7821
7823
|
}
|
|
7822
|
-
const Z2 = (e) => e,
|
|
7824
|
+
const Z2 = (e) => e, Ll = (e) => e;
|
|
7823
7825
|
class J0 extends z {
|
|
7824
7826
|
constructor(t, { account: n, docsPath: r, chain: s, data: a, gas: o, gasPrice: i, maxFeePerGas: c, maxPriorityFeePerGas: l, nonce: d, to: p, value: f, stateOverride: m }) {
|
|
7825
7827
|
var P;
|
|
7826
|
-
const y = n ?
|
|
7828
|
+
const y = n ? me(n) : void 0;
|
|
7827
7829
|
let g = Ta({
|
|
7828
7830
|
from: y == null ? void 0 : y.address,
|
|
7829
7831
|
to: p,
|
|
@@ -8024,7 +8026,7 @@ class _s extends z {
|
|
|
8024
8026
|
details: r,
|
|
8025
8027
|
metaMessages: [
|
|
8026
8028
|
a && `Status: ${a}`,
|
|
8027
|
-
`URL: ${
|
|
8029
|
+
`URL: ${Ll(o)}`,
|
|
8028
8030
|
t && `Request body: ${Ie(t)}`
|
|
8029
8031
|
].filter(Boolean),
|
|
8030
8032
|
name: "HttpRequestError"
|
|
@@ -8051,12 +8053,12 @@ class _s extends z {
|
|
|
8051
8053
|
}), this.body = t, this.headers = s, this.status = a, this.url = o;
|
|
8052
8054
|
}
|
|
8053
8055
|
}
|
|
8054
|
-
class
|
|
8056
|
+
class $l extends z {
|
|
8055
8057
|
constructor({ body: t, error: n, url: r }) {
|
|
8056
8058
|
super("RPC Request failed.", {
|
|
8057
8059
|
cause: n,
|
|
8058
8060
|
details: n.message,
|
|
8059
|
-
metaMessages: [`URL: ${
|
|
8061
|
+
metaMessages: [`URL: ${Ll(r)}`, `Request body: ${Ie(t)}`],
|
|
8060
8062
|
name: "RpcRequestError"
|
|
8061
8063
|
}), Object.defineProperty(this, "code", {
|
|
8062
8064
|
enumerable: !0,
|
|
@@ -8080,7 +8082,7 @@ class Nd extends z {
|
|
|
8080
8082
|
constructor({ body: t, url: n }) {
|
|
8081
8083
|
super("The request took too long to respond.", {
|
|
8082
8084
|
details: "The request timed out.",
|
|
8083
|
-
metaMessages: [`URL: ${
|
|
8085
|
+
metaMessages: [`URL: ${Ll(n)}`, `Request body: ${Ie(t)}`],
|
|
8084
8086
|
name: "TimeoutError"
|
|
8085
8087
|
}), Object.defineProperty(this, "url", {
|
|
8086
8088
|
enumerable: !0,
|
|
@@ -8103,7 +8105,7 @@ class st extends z {
|
|
|
8103
8105
|
configurable: !0,
|
|
8104
8106
|
writable: !0,
|
|
8105
8107
|
value: void 0
|
|
8106
|
-
}), this.name = a || t.name, this.code = t instanceof
|
|
8108
|
+
}), this.name = a || t.name, this.code = t instanceof $l ? t.code : n ?? J2;
|
|
8107
8109
|
}
|
|
8108
8110
|
}
|
|
8109
8111
|
class ut extends st {
|
|
@@ -8518,7 +8520,7 @@ function pr(e, { abi: t, address: n, args: r, docsPath: s, functionName: a, send
|
|
|
8518
8520
|
abi: t,
|
|
8519
8521
|
data: typeof l == "object" ? l.data : l,
|
|
8520
8522
|
functionName: a,
|
|
8521
|
-
message: i instanceof
|
|
8523
|
+
message: i instanceof $l ? d : f ?? p
|
|
8522
8524
|
}) : e;
|
|
8523
8525
|
return new Y0(m, {
|
|
8524
8526
|
abi: t,
|
|
@@ -8945,14 +8947,14 @@ function Gl(e) {
|
|
|
8945
8947
|
if (!be(n, { strict: !1 }))
|
|
8946
8948
|
throw new Ue({ address: n });
|
|
8947
8949
|
if (t[n])
|
|
8948
|
-
throw new
|
|
8950
|
+
throw new $2({ address: n });
|
|
8949
8951
|
t[n] = u5(r);
|
|
8950
8952
|
}
|
|
8951
8953
|
return t;
|
|
8952
8954
|
}
|
|
8953
8955
|
const d5 = 2n ** 16n - 1n, fr = 2n ** 256n - 1n;
|
|
8954
8956
|
function qt(e) {
|
|
8955
|
-
const { account: t, maxFeePerGas: n, maxPriorityFeePerGas: r, to: s } = e, a = t ?
|
|
8957
|
+
const { account: t, maxFeePerGas: n, maxPriorityFeePerGas: r, to: s } = e, a = t ? me(t) : void 0;
|
|
8956
8958
|
if (a && !be(a.address))
|
|
8957
8959
|
throw new Ue({ address: a.address });
|
|
8958
8960
|
if (s && !be(s))
|
|
@@ -9487,7 +9489,7 @@ class uf extends cf {
|
|
|
9487
9489
|
for (let U = 0; U < 16; U++, n += 4)
|
|
9488
9490
|
Cn[U] = t.getUint32(n), vn[U] = t.getUint32(n += 4);
|
|
9489
9491
|
for (let U = 16; U < 80; U++) {
|
|
9490
|
-
const k = Cn[U - 15] | 0, O = vn[U - 15] | 0, N = Tr(k, O, 1) ^ Tr(k, O, 8) ^ Td(k, O, 7), R = Sr(k, O, 1) ^ Sr(k, O, 8) ^ Sd(k, O, 7), h = Cn[U - 2] | 0, b = vn[U - 2] | 0, x = Tr(h, b, 19) ^ Wa(h, b, 61) ^ Td(h, b, 6), C = Sr(h, b, 19) ^ Za(h, b, 61) ^ Sd(h, b, 6), E =
|
|
9492
|
+
const k = Cn[U - 15] | 0, O = vn[U - 15] | 0, N = Tr(k, O, 1) ^ Tr(k, O, 8) ^ Td(k, O, 7), R = Sr(k, O, 1) ^ Sr(k, O, 8) ^ Sd(k, O, 7), h = Cn[U - 2] | 0, b = vn[U - 2] | 0, x = Tr(h, b, 19) ^ Wa(h, b, 61) ^ Td(h, b, 6), C = Sr(h, b, 19) ^ Za(h, b, 61) ^ Sd(h, b, 6), E = L6(R, C, vn[U - 7], vn[U - 16]), T = $6(E, N, x, Cn[U - 7], Cn[U - 16]);
|
|
9491
9493
|
Cn[U] = T | 0, vn[U] = E | 0;
|
|
9492
9494
|
}
|
|
9493
9495
|
let { Ah: r, Al: s, Bh: a, Bl: o, Ch: i, Cl: c, Dh: l, Dl: d, Eh: p, El: f, Fh: m, Fl: y, Gh: g, Gl: P, Hh: B, Hl: v } = this;
|
|
@@ -9530,9 +9532,9 @@ function ff(e) {
|
|
|
9530
9532
|
}));
|
|
9531
9533
|
return s;
|
|
9532
9534
|
}
|
|
9533
|
-
const
|
|
9535
|
+
const Ld = 6, mf = 32, Jl = 4096, hf = mf * Jl, $d = hf * Ld - // terminator byte (0x80).
|
|
9534
9536
|
1 - // zero byte (0x00) appended to each field element.
|
|
9535
|
-
1 * Jl *
|
|
9537
|
+
1 * Jl * Ld, bf = 1;
|
|
9536
9538
|
class S5 extends z {
|
|
9537
9539
|
constructor({ maxSize: t, size: n }) {
|
|
9538
9540
|
super("Blob size is too large.", {
|
|
@@ -9569,9 +9571,9 @@ function U5(e) {
|
|
|
9569
9571
|
const t = e.to ?? (typeof e.data == "string" ? "hex" : "bytes"), n = typeof e.data == "string" ? ot(e.data) : e.data, r = xe(n);
|
|
9570
9572
|
if (!r)
|
|
9571
9573
|
throw new yf();
|
|
9572
|
-
if (r >
|
|
9574
|
+
if (r > $d)
|
|
9573
9575
|
throw new S5({
|
|
9574
|
-
maxSize:
|
|
9576
|
+
maxSize: $d,
|
|
9575
9577
|
size: r
|
|
9576
9578
|
});
|
|
9577
9579
|
const s = [];
|
|
@@ -9624,7 +9626,7 @@ function di(e, { docsPath: t, ...n }) {
|
|
|
9624
9626
|
...n
|
|
9625
9627
|
});
|
|
9626
9628
|
}
|
|
9627
|
-
async function
|
|
9629
|
+
async function Ln(e) {
|
|
9628
9630
|
const t = await e.request({
|
|
9629
9631
|
method: "eth_chainId"
|
|
9630
9632
|
}, { dedupe: !0 });
|
|
@@ -9635,7 +9637,7 @@ async function eu(e, t) {
|
|
|
9635
9637
|
const { account: n = e.account, accessList: r, authorizationList: s, chain: a = e.chain, blobVersionedHashes: o, blobs: i, data: c, gas: l, gasPrice: d, maxFeePerBlobGas: p, maxFeePerGas: f, maxPriorityFeePerGas: m, nonce: y, nonceManager: g, to: P, type: B, value: v, ...U } = t, k = await (async () => {
|
|
9636
9638
|
if (!n || !g || typeof y < "u")
|
|
9637
9639
|
return y;
|
|
9638
|
-
const T =
|
|
9640
|
+
const T = me(n), D = a ? a.id : await q(e, Ln, "getChainId")({});
|
|
9639
9641
|
return await g.consume({
|
|
9640
9642
|
address: T.address,
|
|
9641
9643
|
chainId: D,
|
|
@@ -9646,7 +9648,7 @@ async function eu(e, t) {
|
|
|
9646
9648
|
const O = (b = (h = a == null ? void 0 : a.formatters) == null ? void 0 : h.transactionRequest) == null ? void 0 : b.format, R = (O || Ot)({
|
|
9647
9649
|
// Pick out extra data that might exist on the chain's transaction request type.
|
|
9648
9650
|
...wr(U, { format: O }),
|
|
9649
|
-
account: n ?
|
|
9651
|
+
account: n ? me(n) : void 0,
|
|
9650
9652
|
accessList: r,
|
|
9651
9653
|
authorizationList: s,
|
|
9652
9654
|
blobs: i,
|
|
@@ -9669,8 +9671,8 @@ async function eu(e, t) {
|
|
|
9669
9671
|
}), w = (((C = (x = a == null ? void 0 : a.formatters) == null ? void 0 : x.transaction) == null ? void 0 : C.format) || Er)(T.tx);
|
|
9670
9672
|
delete w.blockHash, delete w.blockNumber, delete w.r, delete w.s, delete w.transactionIndex, delete w.v, delete w.yParity, w.data = w.input, w.gas && (w.gas = t.gas ?? w.gas), w.gasPrice && (w.gasPrice = t.gasPrice ?? w.gasPrice), w.maxFeePerBlobGas && (w.maxFeePerBlobGas = t.maxFeePerBlobGas ?? w.maxFeePerBlobGas), w.maxFeePerGas && (w.maxFeePerGas = t.maxFeePerGas ?? w.maxFeePerGas), w.maxPriorityFeePerGas && (w.maxPriorityFeePerGas = t.maxPriorityFeePerGas ?? w.maxPriorityFeePerGas), w.nonce && (w.nonce = t.nonce ?? w.nonce);
|
|
9671
9673
|
const A = await (async () => {
|
|
9672
|
-
var
|
|
9673
|
-
if (typeof ((
|
|
9674
|
+
var L, G;
|
|
9675
|
+
if (typeof ((L = a == null ? void 0 : a.fees) == null ? void 0 : L.baseFeeMultiplier) == "function") {
|
|
9674
9676
|
const Q = await q(e, Pt, "getBlock")({});
|
|
9675
9677
|
return a.fees.baseFeeMultiplier({
|
|
9676
9678
|
block: Q,
|
|
@@ -9682,7 +9684,7 @@ async function eu(e, t) {
|
|
|
9682
9684
|
})();
|
|
9683
9685
|
if (A < 1)
|
|
9684
9686
|
throw new rf();
|
|
9685
|
-
const S = 10 ** (((E = A.toString().split(".")[1]) == null ? void 0 : E.length) ?? 0), M = (
|
|
9687
|
+
const S = 10 ** (((E = A.toString().split(".")[1]) == null ? void 0 : E.length) ?? 0), M = (L) => L * BigInt(Math.ceil(A * S)) / BigInt(S);
|
|
9686
9688
|
return w.maxFeePerGas && !t.maxFeePerGas && (w.maxFeePerGas = M(w.maxFeePerGas)), w.gasPrice && !t.gasPrice && (w.gasPrice = M(w.gasPrice)), {
|
|
9687
9689
|
raw: T.raw,
|
|
9688
9690
|
transaction: {
|
|
@@ -9723,9 +9725,9 @@ async function Pa(e, t) {
|
|
|
9723
9725
|
})();
|
|
9724
9726
|
let c;
|
|
9725
9727
|
async function l() {
|
|
9726
|
-
return c || (typeof n.chainId < "u" ? n.chainId : s ? s.id : (c = await q(e,
|
|
9728
|
+
return c || (typeof n.chainId < "u" ? n.chainId : s ? s.id : (c = await q(e, Ln, "getChainId")({}), c));
|
|
9727
9729
|
}
|
|
9728
|
-
const d = r &&
|
|
9730
|
+
const d = r && me(r);
|
|
9729
9731
|
let p = n.nonce;
|
|
9730
9732
|
if (o.includes("nonce") && typeof p > "u" && d && a) {
|
|
9731
9733
|
const R = await l();
|
|
@@ -9844,7 +9846,7 @@ async function Pa(e, t) {
|
|
|
9844
9846
|
}
|
|
9845
9847
|
async function nu(e, t) {
|
|
9846
9848
|
var o, i, c;
|
|
9847
|
-
const { account: n = e.account, prepare: r = !0 } = t, s = n ?
|
|
9849
|
+
const { account: n = e.account, prepare: r = !0 } = t, s = n ? me(n) : void 0, a = (() => {
|
|
9848
9850
|
if (Array.isArray(r))
|
|
9849
9851
|
return r;
|
|
9850
9852
|
if ((s == null ? void 0 : s.type) !== "local")
|
|
@@ -9915,7 +9917,7 @@ async function I5(e, t) {
|
|
|
9915
9917
|
...i
|
|
9916
9918
|
});
|
|
9917
9919
|
} catch (l) {
|
|
9918
|
-
const d = i.account ?
|
|
9920
|
+
const d = i.account ? me(i.account) : void 0;
|
|
9919
9921
|
throw pr(l, {
|
|
9920
9922
|
abi: n,
|
|
9921
9923
|
address: r,
|
|
@@ -9968,7 +9970,7 @@ function Ho(e) {
|
|
|
9968
9970
|
f[y[P].name] = g[P];
|
|
9969
9971
|
} catch (g) {
|
|
9970
9972
|
if (a)
|
|
9971
|
-
throw g instanceof v0 || g instanceof K0 ? new
|
|
9973
|
+
throw g instanceof v0 || g instanceof K0 ? new $o({
|
|
9972
9974
|
abiItem: c,
|
|
9973
9975
|
data: n,
|
|
9974
9976
|
params: y,
|
|
@@ -9976,7 +9978,7 @@ function Ho(e) {
|
|
|
9976
9978
|
}) : g;
|
|
9977
9979
|
}
|
|
9978
9980
|
else if (a)
|
|
9979
|
-
throw new
|
|
9981
|
+
throw new $o({
|
|
9980
9982
|
abiItem: c,
|
|
9981
9983
|
data: "0x",
|
|
9982
9984
|
params: y,
|
|
@@ -10441,7 +10443,7 @@ function Kd(e) {
|
|
|
10441
10443
|
if (e >= Jt.a && e <= Jt.f)
|
|
10442
10444
|
return e - (Jt.a - 10);
|
|
10443
10445
|
}
|
|
10444
|
-
function
|
|
10446
|
+
function L5(e, t = {}) {
|
|
10445
10447
|
const { dir: n, size: r = 32 } = t;
|
|
10446
10448
|
if (r === 0)
|
|
10447
10449
|
return e;
|
|
@@ -10472,7 +10474,7 @@ function mi(e, t) {
|
|
|
10472
10474
|
maxSize: t
|
|
10473
10475
|
});
|
|
10474
10476
|
}
|
|
10475
|
-
function
|
|
10477
|
+
function $5(e, t) {
|
|
10476
10478
|
if (typeof t == "number" && t > 0 && t > Te(e) - 1)
|
|
10477
10479
|
throw new Of({
|
|
10478
10480
|
offset: t,
|
|
@@ -10537,12 +10539,12 @@ function W5(...e) {
|
|
|
10537
10539
|
return n;
|
|
10538
10540
|
}
|
|
10539
10541
|
function cu(e) {
|
|
10540
|
-
return e instanceof Uint8Array ? e : typeof e == "string" ?
|
|
10542
|
+
return e instanceof Uint8Array ? e : typeof e == "string" ? $n(e) : Z5(e);
|
|
10541
10543
|
}
|
|
10542
10544
|
function Z5(e) {
|
|
10543
10545
|
return e instanceof Uint8Array ? e : new Uint8Array(e);
|
|
10544
10546
|
}
|
|
10545
|
-
function
|
|
10547
|
+
function $n(e, t = {}) {
|
|
10546
10548
|
const { size: n } = t;
|
|
10547
10549
|
let r = e;
|
|
10548
10550
|
n && (mi(e, n), r = hr(e, n));
|
|
@@ -10562,7 +10564,7 @@ function Sf(e, t = {}) {
|
|
|
10562
10564
|
return typeof n == "number" ? (fs(r, n), X5(r, n)) : r;
|
|
10563
10565
|
}
|
|
10564
10566
|
function X5(e, t) {
|
|
10565
|
-
return
|
|
10567
|
+
return L5(e, { dir: "right", size: t });
|
|
10566
10568
|
}
|
|
10567
10569
|
function Q5(e) {
|
|
10568
10570
|
return crypto.getRandomValues(new Uint8Array(e));
|
|
@@ -10717,7 +10719,7 @@ function If(e) {
|
|
|
10717
10719
|
}
|
|
10718
10720
|
function oe(e, t, n, r = {}) {
|
|
10719
10721
|
const { strict: s } = r;
|
|
10720
|
-
|
|
10722
|
+
$5(e, t);
|
|
10721
10723
|
const a = `0x${e.replace("0x", "").slice((t ?? 0) * 2, (n ?? e.length) * 2)}`;
|
|
10722
10724
|
return s && H5(a, t, n), a;
|
|
10723
10725
|
}
|
|
@@ -10742,7 +10744,7 @@ function la(e, t = {}) {
|
|
|
10742
10744
|
}
|
|
10743
10745
|
function Ff(e, t = {}) {
|
|
10744
10746
|
const { size: n } = t;
|
|
10745
|
-
let r =
|
|
10747
|
+
let r = $n(e);
|
|
10746
10748
|
return n && (fs(r, n), r = Bf(r)), new TextDecoder().decode(r);
|
|
10747
10749
|
}
|
|
10748
10750
|
function At(e, t = {}) {
|
|
@@ -11379,7 +11381,7 @@ const Vo = [
|
|
|
11379
11381
|
}
|
|
11380
11382
|
]
|
|
11381
11383
|
}
|
|
11382
|
-
], mx = "0x82ad56cb", $f = "0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe", hx = "0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe", bx = "0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572", lu = "0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033";
|
|
11384
|
+
], mx = "0x82ad56cb", Lf = "0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe", hx = "0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe", bx = "0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572", lu = "0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033";
|
|
11383
11385
|
class sl extends z {
|
|
11384
11386
|
constructor({ blockNumber: t, chain: n, contract: r }) {
|
|
11385
11387
|
super(`Chain "${n.name}" does not support contract "${r.name}".`, {
|
|
@@ -11417,7 +11419,7 @@ class xx extends z {
|
|
|
11417
11419
|
});
|
|
11418
11420
|
}
|
|
11419
11421
|
}
|
|
11420
|
-
class
|
|
11422
|
+
class $f extends z {
|
|
11421
11423
|
constructor() {
|
|
11422
11424
|
super("No chain was provided to the Client.", {
|
|
11423
11425
|
name: "ClientChainNotConfiguredError"
|
|
@@ -11510,7 +11512,7 @@ function Hf({ fn: e, id: t, shouldSplitBatch: n, wait: r = 0, sort: s }) {
|
|
|
11510
11512
|
}
|
|
11511
11513
|
async function yi(e, t) {
|
|
11512
11514
|
var T, D, w, A;
|
|
11513
|
-
const { account: n = e.account, authorizationList: r, batch: s = !!((T = e.batch) != null && T.multicall), blockNumber: a, blockTag: o = e.experimental_blockTag ?? "latest", accessList: i, blobs: c, blockOverrides: l, code: d, data: p, factory: f, factoryData: m, gas: y, gasPrice: g, maxFeePerBlobGas: P, maxFeePerGas: B, maxPriorityFeePerGas: v, nonce: U, to: k, value: O, stateOverride: N, ...R } = t, h = n ?
|
|
11515
|
+
const { account: n = e.account, authorizationList: r, batch: s = !!((T = e.batch) != null && T.multicall), blockNumber: a, blockTag: o = e.experimental_blockTag ?? "latest", accessList: i, blobs: c, blockOverrides: l, code: d, data: p, factory: f, factoryData: m, gas: y, gasPrice: g, maxFeePerBlobGas: P, maxFeePerGas: B, maxPriorityFeePerGas: v, nonce: U, to: k, value: O, stateOverride: N, ...R } = t, h = n ? me(n) : void 0;
|
|
11514
11516
|
if (d && (f || m))
|
|
11515
11517
|
throw new z("Cannot provide both `code` & `factory`/`factoryData` as parameters.");
|
|
11516
11518
|
if (d && k)
|
|
@@ -11526,7 +11528,7 @@ async function yi(e, t) {
|
|
|
11526
11528
|
}) : p;
|
|
11527
11529
|
try {
|
|
11528
11530
|
qt(t);
|
|
11529
|
-
const S = (typeof a == "bigint" ? H(a) : void 0) || o, M = l ? Mf(l) : void 0,
|
|
11531
|
+
const S = (typeof a == "bigint" ? H(a) : void 0) || o, M = l ? Mf(l) : void 0, L = Gl(N), G = (A = (w = (D = e.chain) == null ? void 0 : D.formatters) == null ? void 0 : w.transactionRequest) == null ? void 0 : A.format, se = (G || Ot)({
|
|
11530
11532
|
// Pick out extra data that might exist on the chain's transaction request type.
|
|
11531
11533
|
...wr(R, { format: G }),
|
|
11532
11534
|
accessList: i,
|
|
@@ -11543,7 +11545,7 @@ async function yi(e, t) {
|
|
|
11543
11545
|
to: C ? void 0 : k,
|
|
11544
11546
|
value: O
|
|
11545
11547
|
}, "call");
|
|
11546
|
-
if (s && gx({ request: se }) &&
|
|
11548
|
+
if (s && gx({ request: se }) && !L && !M)
|
|
11547
11549
|
try {
|
|
11548
11550
|
return await wx(e, {
|
|
11549
11551
|
...se,
|
|
@@ -11551,7 +11553,7 @@ async function yi(e, t) {
|
|
|
11551
11553
|
blockTag: o
|
|
11552
11554
|
});
|
|
11553
11555
|
} catch (Y) {
|
|
11554
|
-
if (!(Y instanceof
|
|
11556
|
+
if (!(Y instanceof $f) && !(Y instanceof sl))
|
|
11555
11557
|
throw Y;
|
|
11556
11558
|
}
|
|
11557
11559
|
const ie = (() => {
|
|
@@ -11559,15 +11561,15 @@ async function yi(e, t) {
|
|
|
11559
11561
|
se,
|
|
11560
11562
|
S
|
|
11561
11563
|
];
|
|
11562
|
-
return
|
|
11564
|
+
return L && M ? [...Y, L, M] : L ? [...Y, L] : M ? [...Y, {}, M] : Y;
|
|
11563
11565
|
})(), J = await e.request({
|
|
11564
11566
|
method: "eth_call",
|
|
11565
11567
|
params: ie
|
|
11566
11568
|
});
|
|
11567
11569
|
return J === "0x" ? { data: void 0 } : { data: J };
|
|
11568
11570
|
} catch (F) {
|
|
11569
|
-
const S = kx(F), { offchainLookup: M, offchainLookupSignature:
|
|
11570
|
-
if (e.ccipRead !== !1 && (S == null ? void 0 : S.slice(0, 10)) ===
|
|
11571
|
+
const S = kx(F), { offchainLookup: M, offchainLookupSignature: L } = await import("./ccip-PeTmGDEY.js");
|
|
11572
|
+
if (e.ccipRead !== !1 && (S == null ? void 0 : S.slice(0, 10)) === L && k)
|
|
11571
11573
|
return { data: await M(e, { data: S, to: k }) };
|
|
11572
11574
|
throw C && (S == null ? void 0 : S.slice(0, 10)) === "0x101bb98d" ? new Q2({ factory: f }) : uu(F, {
|
|
11573
11575
|
...t,
|
|
@@ -11593,7 +11595,7 @@ async function wx(e, t) {
|
|
|
11593
11595
|
chain: e.chain,
|
|
11594
11596
|
contract: "multicall3"
|
|
11595
11597
|
});
|
|
11596
|
-
throw new
|
|
11598
|
+
throw new $f();
|
|
11597
11599
|
})(), p = (typeof a == "bigint" ? H(a) : void 0) || o, { schedule: f } = Hf({
|
|
11598
11600
|
id: `${e.uid}.${p}`,
|
|
11599
11601
|
wait: s,
|
|
@@ -11639,7 +11641,7 @@ function Gf(e) {
|
|
|
11639
11641
|
const { code: t, data: n } = e;
|
|
11640
11642
|
return bi({
|
|
11641
11643
|
abi: E0(["constructor(bytes, bytes)"]),
|
|
11642
|
-
bytecode:
|
|
11644
|
+
bytecode: Lf,
|
|
11643
11645
|
args: [t, n]
|
|
11644
11646
|
});
|
|
11645
11647
|
}
|
|
@@ -11687,7 +11689,7 @@ async function Ut(e, t) {
|
|
|
11687
11689
|
}
|
|
11688
11690
|
}
|
|
11689
11691
|
async function Cx(e, t) {
|
|
11690
|
-
const { abi: n, address: r, args: s, dataSuffix: a, functionName: o, ...i } = t, c = i.account ?
|
|
11692
|
+
const { abi: n, address: r, args: s, dataSuffix: a, functionName: o, ...i } = t, c = i.account ? me(i.account) : e.account, l = lt({ abi: n, args: s, functionName: o });
|
|
11691
11693
|
try {
|
|
11692
11694
|
const { data: d } = await q(e, yi, "call")({
|
|
11693
11695
|
batch: !1,
|
|
@@ -11944,7 +11946,7 @@ function Ux(e, t) {
|
|
|
11944
11946
|
k.onLogs([T]);
|
|
11945
11947
|
} catch (C) {
|
|
11946
11948
|
let E, T;
|
|
11947
|
-
if (C instanceof
|
|
11949
|
+
if (C instanceof $o || C instanceof Ul) {
|
|
11948
11950
|
if (f)
|
|
11949
11951
|
return;
|
|
11950
11952
|
E = C.abiItem.name, T = (x = C.abiItem.inputs) == null ? void 0 : x.some((w) => !("name" in w && w.name));
|
|
@@ -12010,7 +12012,7 @@ async function wi(e, t) {
|
|
|
12010
12012
|
throw new yn({
|
|
12011
12013
|
docsPath: "/docs/actions/wallet/sendTransaction"
|
|
12012
12014
|
});
|
|
12013
|
-
const B = n ?
|
|
12015
|
+
const B = n ? me(n) : null;
|
|
12014
12016
|
try {
|
|
12015
12017
|
qt(t);
|
|
12016
12018
|
const N = await (async () => {
|
|
@@ -12025,7 +12027,7 @@ async function wi(e, t) {
|
|
|
12025
12027
|
})();
|
|
12026
12028
|
if ((B == null ? void 0 : B.type) === "json-rpc" || B === null) {
|
|
12027
12029
|
let R;
|
|
12028
|
-
r !== null && (R = await q(e,
|
|
12030
|
+
r !== null && (R = await q(e, Ln, "getChainId")({}), pu({
|
|
12029
12031
|
currentChainId: R,
|
|
12030
12032
|
chain: r
|
|
12031
12033
|
}));
|
|
@@ -12123,7 +12125,7 @@ async function ua(e, t) {
|
|
|
12123
12125
|
throw new yn({
|
|
12124
12126
|
docsPath: "/docs/contract/writeContract"
|
|
12125
12127
|
});
|
|
12126
|
-
const m = i ?
|
|
12128
|
+
const m = i ? me(i) : null, y = lt({
|
|
12127
12129
|
abi: o,
|
|
12128
12130
|
args: l,
|
|
12129
12131
|
functionName: p
|
|
@@ -12203,7 +12205,7 @@ const mu = /* @__PURE__ */ li("transactionReceipt", Ei), Vf = "0x579257925792579
|
|
|
12203
12205
|
size: 32
|
|
12204
12206
|
});
|
|
12205
12207
|
async function Kf(e, t) {
|
|
12206
|
-
const { account: n = e.account, capabilities: r, chain: s = e.chain, experimental_fallback: a, experimental_fallbackDelay: o = 32, forceAtomic: i = !1, id: c, version: l = "2.0.0" } = t, d = n ?
|
|
12208
|
+
const { account: n = e.account, capabilities: r, chain: s = e.chain, experimental_fallback: a, experimental_fallbackDelay: o = 32, forceAtomic: i = !1, id: c, version: l = "2.0.0" } = t, d = n ? me(n) : null, p = t.calls.map((f) => {
|
|
12207
12209
|
const m = f, y = m.abi ? lt({
|
|
12208
12210
|
abi: m.abi,
|
|
12209
12211
|
functionName: m.functionName,
|
|
@@ -12377,7 +12379,7 @@ function Xf(e = 11) {
|
|
|
12377
12379
|
return Ya.substring(Ja, Ja++ + e);
|
|
12378
12380
|
}
|
|
12379
12381
|
function Qf(e) {
|
|
12380
|
-
const { batch: t, chain: n, ccipRead: r, key: s = "base", name: a = "Base Client", type: o = "base" } = e, i = e.experimental_blockTag ?? (typeof (n == null ? void 0 : n.experimental_preconfirmationTime) == "number" ? "pending" : void 0), c = (n == null ? void 0 : n.blockTime) ?? 12e3, l = Math.min(Math.max(Math.floor(c / 2), 500), 4e3), d = e.pollingInterval ?? l, p = e.cacheTime ?? d, f = e.account ?
|
|
12382
|
+
const { batch: t, chain: n, ccipRead: r, key: s = "base", name: a = "Base Client", type: o = "base" } = e, i = e.experimental_blockTag ?? (typeof (n == null ? void 0 : n.experimental_preconfirmationTime) == "number" ? "pending" : void 0), c = (n == null ? void 0 : n.blockTime) ?? 12e3, l = Math.min(Math.max(Math.floor(c / 2), 500), 4e3), d = e.pollingInterval ?? l, p = e.cacheTime ?? d, f = e.account ? me(e.account) : void 0, { config: m, request: y, value: g } = e.transport({
|
|
12381
12383
|
account: f,
|
|
12382
12384
|
chain: n,
|
|
12383
12385
|
pollingInterval: d
|
|
@@ -12583,7 +12585,7 @@ async function zx(e, t) {
|
|
|
12583
12585
|
throw f;
|
|
12584
12586
|
}
|
|
12585
12587
|
}
|
|
12586
|
-
class
|
|
12588
|
+
class Lx extends z {
|
|
12587
12589
|
constructor({ data: t }) {
|
|
12588
12590
|
super("Unable to extract image from metadata. The metadata may be malformed or invalid.", {
|
|
12589
12591
|
metaMessages: [
|
|
@@ -12607,7 +12609,7 @@ class yu extends z {
|
|
|
12607
12609
|
super(`Unable to resolve ENS avatar URI "${t}". The URI may be malformed, invalid, or does not respond with a valid image.`, { name: "EnsAvatarUriResolutionError" });
|
|
12608
12610
|
}
|
|
12609
12611
|
}
|
|
12610
|
-
class
|
|
12612
|
+
class $x extends z {
|
|
12611
12613
|
constructor({ namespace: t }) {
|
|
12612
12614
|
super(`ENS NFT avatar namespace "${t}" is not supported. Must be "erc721" or "erc1155".`, { name: "EnsAvatarUnsupportedNamespaceError" });
|
|
12613
12615
|
}
|
|
@@ -12667,7 +12669,7 @@ function Yf({ uri: e, gatewayUrls: t }) {
|
|
|
12667
12669
|
}
|
|
12668
12670
|
function em(e) {
|
|
12669
12671
|
if (typeof e != "object" || !("image" in e) && !("image_url" in e) && !("image_data" in e))
|
|
12670
|
-
throw new
|
|
12672
|
+
throw new Lx({ data: e });
|
|
12671
12673
|
return e.image || e.image_url || e.image_data;
|
|
12672
12674
|
}
|
|
12673
12675
|
async function Kx({ gatewayUrls: e, uri: t }) {
|
|
@@ -12741,7 +12743,7 @@ async function Zx(e, { nft: t }) {
|
|
|
12741
12743
|
functionName: "uri",
|
|
12742
12744
|
args: [BigInt(t.tokenID)]
|
|
12743
12745
|
});
|
|
12744
|
-
throw new
|
|
12746
|
+
throw new $x({ namespace: t.namespace });
|
|
12745
12747
|
}
|
|
12746
12748
|
async function Xx(e, { gatewayUrls: t, record: n }) {
|
|
12747
12749
|
return /eip155:/i.test(n) ? Qx(e, { gatewayUrls: t, record: n }) : xu({ uri: n, gatewayUrls: t });
|
|
@@ -12900,7 +12902,7 @@ async function e8(e, t) {
|
|
|
12900
12902
|
}
|
|
12901
12903
|
async function nm(e, t) {
|
|
12902
12904
|
var P, B, v;
|
|
12903
|
-
const { account: n = e.account, blockNumber: r, blockTag: s = "latest", blobs: a, data: o, gas: i, gasPrice: c, maxFeePerBlobGas: l, maxFeePerGas: d, maxPriorityFeePerGas: p, to: f, value: m, ...y } = t, g = n ?
|
|
12905
|
+
const { account: n = e.account, blockNumber: r, blockTag: s = "latest", blobs: a, data: o, gas: i, gasPrice: c, maxFeePerBlobGas: l, maxFeePerGas: d, maxPriorityFeePerGas: p, to: f, value: m, ...y } = t, g = n ? me(n) : void 0;
|
|
12904
12906
|
try {
|
|
12905
12907
|
qt(t);
|
|
12906
12908
|
const k = (typeof r == "bigint" ? H(r) : void 0) || s, O = (v = (B = (P = e.chain) == null ? void 0 : P.formatters) == null ? void 0 : B.transactionRequest) == null ? void 0 : v.format, R = (O || Ot)({
|
|
@@ -13798,7 +13800,7 @@ function dm({ types: e, name: t, type: n, value: r }) {
|
|
|
13798
13800
|
}
|
|
13799
13801
|
return [{ type: n }, r];
|
|
13800
13802
|
}
|
|
13801
|
-
class
|
|
13803
|
+
class L8 extends Map {
|
|
13802
13804
|
constructor(t) {
|
|
13803
13805
|
super(), Object.defineProperty(this, "maxSize", {
|
|
13804
13806
|
enumerable: !0,
|
|
@@ -13819,9 +13821,9 @@ class $8 extends Map {
|
|
|
13819
13821
|
return this;
|
|
13820
13822
|
}
|
|
13821
13823
|
}
|
|
13822
|
-
const
|
|
13823
|
-
checksum: /* @__PURE__ */ new
|
|
13824
|
-
}, tc =
|
|
13824
|
+
const $8 = {
|
|
13825
|
+
checksum: /* @__PURE__ */ new L8(8192)
|
|
13826
|
+
}, tc = $8.checksum;
|
|
13825
13827
|
function Ra(e, t = {}) {
|
|
13826
13828
|
const { as: n = typeof e == "string" ? "Hex" : "Bytes" } = t, r = _0(cu(e));
|
|
13827
13829
|
return n === "Bytes" ? r : Me(r);
|
|
@@ -13893,7 +13895,7 @@ function fm(e) {
|
|
|
13893
13895
|
};
|
|
13894
13896
|
}
|
|
13895
13897
|
function q8(e, t = {}) {
|
|
13896
|
-
return
|
|
13898
|
+
return $n(wu(e, t));
|
|
13897
13899
|
}
|
|
13898
13900
|
function wu(e, t = {}) {
|
|
13899
13901
|
pm(e);
|
|
@@ -14048,7 +14050,7 @@ class e3 extends K {
|
|
|
14048
14050
|
}
|
|
14049
14051
|
}
|
|
14050
14052
|
const t3 = /^(.*)\[([0-9]*)\]$/, n3 = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/, mm = /^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/, ap = 2n ** 256n - 1n;
|
|
14051
|
-
function
|
|
14053
|
+
function Lr(e, t, n) {
|
|
14052
14054
|
const { checksumAddress: r, staticPosition: s } = n, a = vu(t.type);
|
|
14053
14055
|
if (a) {
|
|
14054
14056
|
const [o, i] = a;
|
|
@@ -14086,7 +14088,7 @@ function s3(e, t, n) {
|
|
|
14086
14088
|
const y = [];
|
|
14087
14089
|
for (let g = 0; g < p; ++g) {
|
|
14088
14090
|
e.setPosition(d + (f ? g * 32 : m));
|
|
14089
|
-
const [P, B] =
|
|
14091
|
+
const [P, B] = Lr(e, t, {
|
|
14090
14092
|
checksumAddress: r,
|
|
14091
14093
|
staticPosition: d
|
|
14092
14094
|
});
|
|
@@ -14098,7 +14100,7 @@ function s3(e, t, n) {
|
|
|
14098
14100
|
const c = un(e.readBytes(ll)), l = a + c, d = [];
|
|
14099
14101
|
for (let p = 0; p < s; ++p) {
|
|
14100
14102
|
e.setPosition(l + p * 32);
|
|
14101
|
-
const [f] =
|
|
14103
|
+
const [f] = Lr(e, t, {
|
|
14102
14104
|
checksumAddress: r,
|
|
14103
14105
|
staticPosition: l
|
|
14104
14106
|
});
|
|
@@ -14109,7 +14111,7 @@ function s3(e, t, n) {
|
|
|
14109
14111
|
let o = 0;
|
|
14110
14112
|
const i = [];
|
|
14111
14113
|
for (let c = 0; c < s; ++c) {
|
|
14112
|
-
const [l, d] =
|
|
14114
|
+
const [l, d] = Lr(e, t, {
|
|
14113
14115
|
checksumAddress: r,
|
|
14114
14116
|
staticPosition: a + o
|
|
14115
14117
|
});
|
|
@@ -14148,7 +14150,7 @@ function c3(e, t, n) {
|
|
|
14148
14150
|
for (let d = 0; d < t.components.length; ++d) {
|
|
14149
14151
|
const p = t.components[d];
|
|
14150
14152
|
e.setPosition(l + i);
|
|
14151
|
-
const [f, m] =
|
|
14153
|
+
const [f, m] = Lr(e, p, {
|
|
14152
14154
|
checksumAddress: r,
|
|
14153
14155
|
staticPosition: l
|
|
14154
14156
|
});
|
|
@@ -14157,7 +14159,7 @@ function c3(e, t, n) {
|
|
|
14157
14159
|
return e.setPosition(s + 32), [o, 32];
|
|
14158
14160
|
}
|
|
14159
14161
|
for (let c = 0; c < t.components.length; ++c) {
|
|
14160
|
-
const l = t.components[c], [d, p] =
|
|
14162
|
+
const l = t.components[c], [d, p] = Lr(e, l, {
|
|
14161
14163
|
checksumAddress: r,
|
|
14162
14164
|
staticPosition: s
|
|
14163
14165
|
});
|
|
@@ -14523,7 +14525,7 @@ class w3 extends K {
|
|
|
14523
14525
|
}
|
|
14524
14526
|
}
|
|
14525
14527
|
function E3(e, t, n = {}) {
|
|
14526
|
-
const { as: r = "Array", checksumAddress: s = !1 } = n, a = typeof t == "string" ?
|
|
14528
|
+
const { as: r = "Array", checksumAddress: s = !1 } = n, a = typeof t == "string" ? $n(t) : t, o = Au(a);
|
|
14527
14529
|
if (Mr(a) === 0 && e.length > 0)
|
|
14528
14530
|
throw new C3();
|
|
14529
14531
|
if (Mr(a) && Mr(a) < 32)
|
|
@@ -14537,7 +14539,7 @@ function E3(e, t, n = {}) {
|
|
|
14537
14539
|
for (let l = 0; l < e.length; ++l) {
|
|
14538
14540
|
const d = e[l];
|
|
14539
14541
|
o.setPosition(i);
|
|
14540
|
-
const [p, f] =
|
|
14542
|
+
const [p, f] = Lr(o, d, {
|
|
14541
14543
|
checksumAddress: s,
|
|
14542
14544
|
staticPosition: 0
|
|
14543
14545
|
});
|
|
@@ -14704,7 +14706,7 @@ function S3(e, t) {
|
|
|
14704
14706
|
if (typeof e == "string") {
|
|
14705
14707
|
if (e.length > 3 && e.length % 2 !== 0)
|
|
14706
14708
|
throw new lx(e);
|
|
14707
|
-
return
|
|
14709
|
+
return $n(e);
|
|
14708
14710
|
}
|
|
14709
14711
|
return e;
|
|
14710
14712
|
})(), s = Au(r, {
|
|
@@ -14767,7 +14769,7 @@ function I3(e) {
|
|
|
14767
14769
|
};
|
|
14768
14770
|
}
|
|
14769
14771
|
function F3(e) {
|
|
14770
|
-
const t = typeof e == "string" ?
|
|
14772
|
+
const t = typeof e == "string" ? $n(e) : e, n = wm(t.length);
|
|
14771
14773
|
return {
|
|
14772
14774
|
length: t.length === 1 && t[0] < 128 ? 1 : t.length <= 55 ? 1 + t.length : 1 + n + t.length,
|
|
14773
14775
|
encode(s) {
|
|
@@ -14952,7 +14954,7 @@ function lp(e, t) {
|
|
|
14952
14954
|
return s ? 1 : a ? 0 : -1;
|
|
14953
14955
|
}
|
|
14954
14956
|
function Pm(e, t) {
|
|
14955
|
-
t !== void 0 &&
|
|
14957
|
+
t !== void 0 && $s(t);
|
|
14956
14958
|
const n = t !== void 0 ? t : e.toString(2).length, r = Math.ceil(n / 8);
|
|
14957
14959
|
return { nBitLength: n, nByteLength: r };
|
|
14958
14960
|
}
|
|
@@ -15018,7 +15020,7 @@ function Um(e) {
|
|
|
15018
15020
|
const t = Bm(e);
|
|
15019
15021
|
return t + Math.ceil(t / 2);
|
|
15020
15022
|
}
|
|
15021
|
-
function
|
|
15023
|
+
function L3(e, t, n = !1) {
|
|
15022
15024
|
const r = e.length, s = Bm(t), a = Um(t);
|
|
15023
15025
|
if (r < 16 || r < a || r > 1024)
|
|
15024
15026
|
throw new Error("expected " + a + "-1024 bytes of input, got " + r);
|
|
@@ -15047,7 +15049,7 @@ function dp(e, t, n) {
|
|
|
15047
15049
|
const l = t * r, d = l + Math.abs(i) - 1, p = i === 0, f = i < 0, m = t % 2 !== 0;
|
|
15048
15050
|
return { nextN: c, offset: d, isZero: p, isNeg: f, isNegF: m, offsetF: l };
|
|
15049
15051
|
}
|
|
15050
|
-
function
|
|
15052
|
+
function $3(e, t) {
|
|
15051
15053
|
if (!Array.isArray(e))
|
|
15052
15054
|
throw new Error("array expected");
|
|
15053
15055
|
e.forEach((n, r) => {
|
|
@@ -15159,7 +15161,7 @@ function G3(e, t) {
|
|
|
15159
15161
|
};
|
|
15160
15162
|
}
|
|
15161
15163
|
function j3(e, t, n, r) {
|
|
15162
|
-
|
|
15164
|
+
$3(n, e), H3(r, t);
|
|
15163
15165
|
const s = n.length, a = r.length;
|
|
15164
15166
|
if (s !== a)
|
|
15165
15167
|
throw new Error("arrays of points and scalars must have equal length");
|
|
@@ -15493,10 +15495,10 @@ function W3(e) {
|
|
|
15493
15495
|
const { px: O, py: N, pz: R } = this, { px: h, py: b, pz: x } = k;
|
|
15494
15496
|
let C = n.ZERO, E = n.ZERO, T = n.ZERO;
|
|
15495
15497
|
const D = t.a, w = n.mul(t.b, ic);
|
|
15496
|
-
let A = n.mul(O, h), F = n.mul(N, b), S = n.mul(R, x), M = n.add(O, N),
|
|
15497
|
-
M = n.mul(M,
|
|
15498
|
+
let A = n.mul(O, h), F = n.mul(N, b), S = n.mul(R, x), M = n.add(O, N), L = n.add(h, b);
|
|
15499
|
+
M = n.mul(M, L), L = n.add(A, F), M = n.sub(M, L), L = n.add(O, R);
|
|
15498
15500
|
let G = n.add(h, x);
|
|
15499
|
-
return
|
|
15501
|
+
return L = n.mul(L, G), G = n.add(A, S), L = n.sub(L, G), G = n.add(N, R), C = n.add(b, x), G = n.mul(G, C), C = n.add(F, S), G = n.sub(G, C), T = n.mul(D, L), C = n.mul(w, S), T = n.add(C, T), C = n.sub(F, T), T = n.add(F, T), E = n.mul(C, T), F = n.add(A, A), F = n.add(F, A), S = n.mul(D, S), L = n.mul(w, L), F = n.add(F, S), S = n.sub(A, S), S = n.mul(D, S), L = n.add(L, S), A = n.mul(F, L), E = n.add(E, A), A = n.mul(G, L), C = n.mul(M, C), C = n.sub(C, A), A = n.mul(M, F), T = n.mul(G, T), T = n.add(T, A), new g(C, E, T);
|
|
15500
15502
|
}
|
|
15501
15503
|
subtract(k) {
|
|
15502
15504
|
return this.add(k.negate());
|
|
@@ -15618,8 +15620,8 @@ function X3(e) {
|
|
|
15618
15620
|
const { ProjectivePoint: d, normPrivateKeyToScalar: p, weierstrassEquation: f, isWithinCurveOrder: m } = W3({
|
|
15619
15621
|
...t,
|
|
15620
15622
|
toBytes(w, A, F) {
|
|
15621
|
-
const S = A.toAffine(), M = n.toBytes(S.x),
|
|
15622
|
-
return ia("isCompressed", F), F ?
|
|
15623
|
+
const S = A.toAffine(), M = n.toBytes(S.x), L = jo;
|
|
15624
|
+
return ia("isCompressed", F), F ? L(Uint8Array.from([A.hasEvenY() ? 2 : 3]), M) : L(Uint8Array.from([4]), M, n.toBytes(S.y));
|
|
15623
15625
|
},
|
|
15624
15626
|
fromBytes(w) {
|
|
15625
15627
|
const A = w.length, F = w[0], S = w.subarray(1);
|
|
@@ -15627,10 +15629,10 @@ function X3(e) {
|
|
|
15627
15629
|
const M = sr(S);
|
|
15628
15630
|
if (!iu(M, Oe, n.ORDER))
|
|
15629
15631
|
throw new Error("Point is not on curve");
|
|
15630
|
-
const
|
|
15632
|
+
const L = f(M);
|
|
15631
15633
|
let G;
|
|
15632
15634
|
try {
|
|
15633
|
-
G = n.sqrt(
|
|
15635
|
+
G = n.sqrt(L);
|
|
15634
15636
|
} catch (ie) {
|
|
15635
15637
|
const J = ie instanceof Error ? ": " + ie.message : "";
|
|
15636
15638
|
throw new Error("Point is not on curve" + J);
|
|
@@ -15638,11 +15640,11 @@ function X3(e) {
|
|
|
15638
15640
|
const Q = (G & Oe) === Oe;
|
|
15639
15641
|
return (F & 1) === 1 !== Q && (G = n.neg(G)), { x: M, y: G };
|
|
15640
15642
|
} else if (A === i && F === 4) {
|
|
15641
|
-
const M = n.fromBytes(S.subarray(0, n.BYTES)),
|
|
15642
|
-
return { x: M, y:
|
|
15643
|
+
const M = n.fromBytes(S.subarray(0, n.BYTES)), L = n.fromBytes(S.subarray(n.BYTES, 2 * n.BYTES));
|
|
15644
|
+
return { x: M, y: L };
|
|
15643
15645
|
} else {
|
|
15644
|
-
const M = o,
|
|
15645
|
-
throw new Error("invalid Point, expected length of " + M + ", or uncompressed " +
|
|
15646
|
+
const M = o, L = i;
|
|
15647
|
+
throw new Error("invalid Point, expected length of " + M + ", or uncompressed " + L + ", got " + A);
|
|
15646
15648
|
}
|
|
15647
15649
|
}
|
|
15648
15650
|
});
|
|
@@ -15679,16 +15681,16 @@ function X3(e) {
|
|
|
15679
15681
|
return new B(this.r, this.s, A);
|
|
15680
15682
|
}
|
|
15681
15683
|
recoverPublicKey(A) {
|
|
15682
|
-
const { r: F, s: S, recovery: M } = this,
|
|
15684
|
+
const { r: F, s: S, recovery: M } = this, L = R(bt("msgHash", A));
|
|
15683
15685
|
if (M == null || ![0, 1, 2, 3].includes(M))
|
|
15684
15686
|
throw new Error("recovery id invalid");
|
|
15685
15687
|
const G = M === 2 || M === 3 ? F + t.n : F;
|
|
15686
15688
|
if (G >= n.ORDER)
|
|
15687
15689
|
throw new Error("recovery id 2 or 3 invalid");
|
|
15688
|
-
const Q = (M & 1) === 0 ? "02" : "03", se = d.fromHex(Q + oc(G, n.BYTES)), ie = l(G), J = c(
|
|
15689
|
-
if (!
|
|
15690
|
+
const Q = (M & 1) === 0 ? "02" : "03", se = d.fromHex(Q + oc(G, n.BYTES)), ie = l(G), J = c(-L * ie), Y = c(S * ie), he = d.BASE.multiplyAndAddUnsafe(se, J, Y);
|
|
15691
|
+
if (!he)
|
|
15690
15692
|
throw new Error("point at infinify");
|
|
15691
|
-
return
|
|
15693
|
+
return he.assertValidity(), he;
|
|
15692
15694
|
}
|
|
15693
15695
|
// Signatures should be low-s, to prevent malleability.
|
|
15694
15696
|
hasHighS() {
|
|
@@ -15728,7 +15730,7 @@ function X3(e) {
|
|
|
15728
15730
|
*/
|
|
15729
15731
|
randomPrivateKey: () => {
|
|
15730
15732
|
const w = Um(t.n);
|
|
15731
|
-
return
|
|
15733
|
+
return L3(t.randomBytes(w), t.n);
|
|
15732
15734
|
},
|
|
15733
15735
|
/**
|
|
15734
15736
|
* Creates precompute table for an arbitrary EC point. Makes point "cached".
|
|
@@ -15750,9 +15752,9 @@ function X3(e) {
|
|
|
15750
15752
|
return !1;
|
|
15751
15753
|
if (w instanceof d)
|
|
15752
15754
|
return !0;
|
|
15753
|
-
const F = bt("key", w).length, S = n.BYTES, M = S + 1,
|
|
15755
|
+
const F = bt("key", w).length, S = n.BYTES, M = S + 1, L = 2 * S + 1;
|
|
15754
15756
|
if (!(t.allowedPrivateKeyLengths || s === M))
|
|
15755
|
-
return F === M || F ===
|
|
15757
|
+
return F === M || F === L;
|
|
15756
15758
|
}
|
|
15757
15759
|
function O(w, A, F = !0) {
|
|
15758
15760
|
if (k(w) === !0)
|
|
@@ -15776,14 +15778,14 @@ function X3(e) {
|
|
|
15776
15778
|
if (["recovered", "canonical"].some((Et) => Et in F))
|
|
15777
15779
|
throw new Error("sign() legacy options not supported");
|
|
15778
15780
|
const { hash: S, randomBytes: M } = t;
|
|
15779
|
-
let { lowS:
|
|
15780
|
-
|
|
15781
|
+
let { lowS: L, prehash: G, extraEntropy: Q } = F;
|
|
15782
|
+
L == null && (L = !0), w = bt("msgHash", w), pp(F), G && (w = bt("prehashed msgHash", S(w)));
|
|
15781
15783
|
const se = R(w), ie = p(A), J = [b(ie), b(se)];
|
|
15782
15784
|
if (Q != null && Q !== !1) {
|
|
15783
15785
|
const Et = Q === !0 ? M(n.BYTES) : Q;
|
|
15784
15786
|
J.push(bt("extraEntropy", Et));
|
|
15785
15787
|
}
|
|
15786
|
-
const Y = jo(...J),
|
|
15788
|
+
const Y = jo(...J), he = se;
|
|
15787
15789
|
function gn(Et) {
|
|
15788
15790
|
const Mt = N(Et);
|
|
15789
15791
|
if (!m(Mt))
|
|
@@ -15791,25 +15793,25 @@ function X3(e) {
|
|
|
15791
15793
|
const We = l(Mt), kt = d.BASE.multiply(Mt).toAffine(), Se = c(kt.x);
|
|
15792
15794
|
if (Se === on)
|
|
15793
15795
|
return;
|
|
15794
|
-
const Ce = c(We * c(
|
|
15796
|
+
const Ce = c(We * c(he + Se * ie));
|
|
15795
15797
|
if (Ce === on)
|
|
15796
15798
|
return;
|
|
15797
15799
|
let pe = (kt.x === Se ? 0 : 2) | Number(kt.y & Oe), Ar = Ce;
|
|
15798
|
-
return
|
|
15800
|
+
return L && y(Ce) && (Ar = g(Ce), pe ^= 1), new B(Se, Ar, pe);
|
|
15799
15801
|
}
|
|
15800
15802
|
return { seed: Y, k2sig: gn };
|
|
15801
15803
|
}
|
|
15802
15804
|
const C = { lowS: t.lowS, prehash: !1 }, E = { lowS: t.lowS, prehash: !1 };
|
|
15803
15805
|
function T(w, A, F = C) {
|
|
15804
|
-
const { seed: S, k2sig: M } = x(w, A, F),
|
|
15805
|
-
return R5(
|
|
15806
|
+
const { seed: S, k2sig: M } = x(w, A, F), L = t;
|
|
15807
|
+
return R5(L.hash.outputLen, L.nByteLength, L.hmac)(S, M);
|
|
15806
15808
|
}
|
|
15807
15809
|
d.BASE._setWindowSize(8);
|
|
15808
15810
|
function D(w, A, F, S = E) {
|
|
15809
15811
|
var pe;
|
|
15810
15812
|
const M = w;
|
|
15811
15813
|
A = bt("msgHash", A), F = bt("publicKey", F);
|
|
15812
|
-
const { lowS:
|
|
15814
|
+
const { lowS: L, prehash: G, format: Q } = S;
|
|
15813
15815
|
if (pp(S), "strict" in S)
|
|
15814
15816
|
throw new Error("options.strict was renamed to lowS");
|
|
15815
15817
|
if (Q !== void 0 && Q !== "compact" && Q !== "der")
|
|
@@ -15832,11 +15834,11 @@ function X3(e) {
|
|
|
15832
15834
|
} catch {
|
|
15833
15835
|
return !1;
|
|
15834
15836
|
}
|
|
15835
|
-
if (!J ||
|
|
15837
|
+
if (!J || L && J.hasHighS())
|
|
15836
15838
|
return !1;
|
|
15837
15839
|
G && (A = t.hash(A));
|
|
15838
|
-
const { r:
|
|
15839
|
-
return Se ? c(Se.x) ===
|
|
15840
|
+
const { r: he, s: gn } = J, Et = R(A), Mt = l(gn), We = c(Et * Mt), kt = c(he * Mt), Se = (pe = d.BASE.multiplyAndAddUnsafe(Y, We, kt)) == null ? void 0 : pe.toAffine();
|
|
15841
|
+
return Se ? c(Se.x) === he : !1;
|
|
15840
15842
|
}
|
|
15841
15843
|
return {
|
|
15842
15844
|
CURVE: t,
|
|
@@ -16373,7 +16375,7 @@ async function hl(e, t) {
|
|
|
16373
16375
|
const c = [];
|
|
16374
16376
|
for (const f of s) {
|
|
16375
16377
|
const m = f.blockOverrides ? Mf(f.blockOverrides) : void 0, y = f.calls.map((P) => {
|
|
16376
|
-
const B = P, v = B.account ?
|
|
16378
|
+
const B = P, v = B.account ? me(B.account) : void 0, U = B.abi ? lt(B) : B.data, k = {
|
|
16377
16379
|
...B,
|
|
16378
16380
|
account: v,
|
|
16379
16381
|
data: B.dataSuffix ? wt([U || "0x", B.dataSuffix]) : U,
|
|
@@ -16477,11 +16479,11 @@ function yl(e, t) {
|
|
|
16477
16479
|
})) : !1;
|
|
16478
16480
|
}
|
|
16479
16481
|
}
|
|
16480
|
-
function
|
|
16482
|
+
function Lm(e, t, n) {
|
|
16481
16483
|
for (const r in e) {
|
|
16482
16484
|
const s = e[r], a = t[r];
|
|
16483
16485
|
if (s.type === "tuple" && a.type === "tuple" && "components" in s && "components" in a)
|
|
16484
|
-
return
|
|
16486
|
+
return Lm(s.components, a.components, n[r]);
|
|
16485
16487
|
const o = [s.type, a.type];
|
|
16486
16488
|
if (o.includes("address") && o.includes("bytes20") ? !0 : o.includes("address") && o.includes("string") ? Zo(n[r], {
|
|
16487
16489
|
strict: !1
|
|
@@ -16491,7 +16493,7 @@ function $m(e, t, n) {
|
|
|
16491
16493
|
return o;
|
|
16492
16494
|
}
|
|
16493
16495
|
}
|
|
16494
|
-
function
|
|
16496
|
+
function $m(e, t = {}) {
|
|
16495
16497
|
const { prepare: n = !0 } = t, r = Array.isArray(e) || typeof e == "string" ? xd(e) : e;
|
|
16496
16498
|
return {
|
|
16497
16499
|
...r,
|
|
@@ -16526,7 +16528,7 @@ function Si(e, t, n) {
|
|
|
16526
16528
|
return m ? yl(p, m) : !1;
|
|
16527
16529
|
})) {
|
|
16528
16530
|
if (i && "inputs" in i && i.inputs) {
|
|
16529
|
-
const p =
|
|
16531
|
+
const p = Lm(l.inputs, i.inputs, r);
|
|
16530
16532
|
if (p)
|
|
16531
16533
|
throw new Ig({
|
|
16532
16534
|
abiItem: l,
|
|
@@ -16569,7 +16571,7 @@ function Ug(...e) {
|
|
|
16569
16571
|
return Si(r, s);
|
|
16570
16572
|
}
|
|
16571
16573
|
return e[0];
|
|
16572
|
-
})(), n = typeof t == "string" ? t :
|
|
16574
|
+
})(), n = typeof t == "string" ? t : Lo(t);
|
|
16573
16575
|
return bl(n);
|
|
16574
16576
|
}
|
|
16575
16577
|
function Rr(...e) {
|
|
@@ -16587,8 +16589,8 @@ class Ig extends K {
|
|
|
16587
16589
|
super("Found ambiguous types in overloaded ABI Items.", {
|
|
16588
16590
|
metaMessages: [
|
|
16589
16591
|
// TODO: abitype to add support for signature-formatted ABI items.
|
|
16590
|
-
`\`${t.type}\` in \`${bl(
|
|
16591
|
-
`\`${n.type}\` in \`${bl(
|
|
16592
|
+
`\`${t.type}\` in \`${bl(Lo(t.abiItem))}\`, and`,
|
|
16593
|
+
`\`${n.type}\` in \`${bl(Lo(n.abiItem))}\``,
|
|
16592
16594
|
"",
|
|
16593
16595
|
"These types encode differently and cannot be distinguished at runtime.",
|
|
16594
16596
|
"Remove one of the ambiguous items in the ABI."
|
|
@@ -16624,7 +16626,7 @@ function Fg(...e) {
|
|
|
16624
16626
|
return Ee(r, (a = t.inputs) != null && a.length && (s != null && s.length) ? Tu(t.inputs, s) : "0x");
|
|
16625
16627
|
}
|
|
16626
16628
|
function Dg(e) {
|
|
16627
|
-
return
|
|
16629
|
+
return $m(e);
|
|
16628
16630
|
}
|
|
16629
16631
|
function Og(e) {
|
|
16630
16632
|
const t = e.find((n) => n.type === "constructor");
|
|
@@ -16646,7 +16648,7 @@ function Mg(...e) {
|
|
|
16646
16648
|
return o ? Ee(a, o) : a;
|
|
16647
16649
|
}
|
|
16648
16650
|
function Br(e, t = {}) {
|
|
16649
|
-
return
|
|
16651
|
+
return $m(e, t);
|
|
16650
16652
|
}
|
|
16651
16653
|
function hp(e, t, n) {
|
|
16652
16654
|
const r = Si(e, t, n);
|
|
@@ -16659,11 +16661,11 @@ function Rg(e) {
|
|
|
16659
16661
|
}
|
|
16660
16662
|
const Ng = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", Nt = "0x0000000000000000000000000000000000000000", _g = "0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033";
|
|
16661
16663
|
async function zg(e, t) {
|
|
16662
|
-
const { blockNumber: n, blockTag: r, calls: s, stateOverrides: a, traceAssetChanges: o, traceTransfers: i, validation: c } = t, l = t.account ?
|
|
16664
|
+
const { blockNumber: n, blockTag: r, calls: s, stateOverrides: a, traceAssetChanges: o, traceTransfers: i, validation: c } = t, l = t.account ? me(t.account) : void 0;
|
|
16663
16665
|
if (o && !l)
|
|
16664
16666
|
throw new z("`account` is required when `traceAssetChanges` is true");
|
|
16665
16667
|
const d = l ? Fg(Dg("constructor(bytes, bytes)"), {
|
|
16666
|
-
bytecode:
|
|
16668
|
+
bytecode: Lf,
|
|
16667
16669
|
args: [
|
|
16668
16670
|
_g,
|
|
16669
16671
|
Mg(Br("function getBalance(address)"), [l.address])
|
|
@@ -16676,7 +16678,7 @@ async function zg(e, t) {
|
|
|
16676
16678
|
...S,
|
|
16677
16679
|
data: S.abi ? lt(S) : S.data
|
|
16678
16680
|
});
|
|
16679
|
-
return M.map(({ address:
|
|
16681
|
+
return M.map(({ address: L, storageKeys: G }) => G.length > 0 ? L : null);
|
|
16680
16682
|
})).then((S) => S.flat().filter(Boolean)) : [], f = await hl(e, {
|
|
16681
16683
|
blockNumber: n,
|
|
16682
16684
|
blockTag: r,
|
|
@@ -16797,8 +16799,8 @@ async function zg(e, t) {
|
|
|
16797
16799
|
validation: c
|
|
16798
16800
|
}), m = o ? f[2] : f[0], [y, g, , P, B, v, U, k] = o ? f : [], { calls: O, ...N } = m, R = O.slice(0, -1) ?? [], h = (y == null ? void 0 : y.calls) ?? [], b = (g == null ? void 0 : g.calls) ?? [], x = [...h, ...b].map((S) => S.status === "success" ? ue(S.data) : null), C = (P == null ? void 0 : P.calls) ?? [], E = (B == null ? void 0 : B.calls) ?? [], T = [...C, ...E].map((S) => S.status === "success" ? ue(S.data) : null), D = ((v == null ? void 0 : v.calls) ?? []).map((S) => S.status === "success" ? S.result : null), w = ((k == null ? void 0 : k.calls) ?? []).map((S) => S.status === "success" ? S.result : null), A = ((U == null ? void 0 : U.calls) ?? []).map((S) => S.status === "success" ? S.result : null), F = [];
|
|
16799
16801
|
for (const [S, M] of T.entries()) {
|
|
16800
|
-
const
|
|
16801
|
-
if (typeof M != "bigint" || typeof
|
|
16802
|
+
const L = x[S];
|
|
16803
|
+
if (typeof M != "bigint" || typeof L != "bigint")
|
|
16802
16804
|
continue;
|
|
16803
16805
|
const G = D[S - 1], Q = w[S - 1], se = A[S - 1], ie = S === 0 ? {
|
|
16804
16806
|
address: Ng,
|
|
@@ -16812,9 +16814,9 @@ async function zg(e, t) {
|
|
|
16812
16814
|
F.some((J) => J.token.address === ie.address) || F.push({
|
|
16813
16815
|
token: ie,
|
|
16814
16816
|
value: {
|
|
16815
|
-
pre:
|
|
16817
|
+
pre: L,
|
|
16816
16818
|
post: M,
|
|
16817
|
-
diff: M -
|
|
16819
|
+
diff: M - L
|
|
16818
16820
|
}
|
|
16819
16821
|
});
|
|
16820
16822
|
}
|
|
@@ -16825,11 +16827,11 @@ async function zg(e, t) {
|
|
|
16825
16827
|
};
|
|
16826
16828
|
}
|
|
16827
16829
|
const Gm = "0x6492649264926492649264926492649264926492649264926492649264926492";
|
|
16828
|
-
function
|
|
16830
|
+
function Lg(e) {
|
|
16829
16831
|
if (oe(e, -32) !== Gm)
|
|
16830
16832
|
throw new Gg(e);
|
|
16831
16833
|
}
|
|
16832
|
-
function
|
|
16834
|
+
function $g(e) {
|
|
16833
16835
|
const { data: t, signature: n, to: r } = e;
|
|
16834
16836
|
return Ee(Tu(hm("address, bytes, bytes"), [
|
|
16835
16837
|
r,
|
|
@@ -16839,7 +16841,7 @@ function Lg(e) {
|
|
|
16839
16841
|
}
|
|
16840
16842
|
function Hg(e) {
|
|
16841
16843
|
try {
|
|
16842
|
-
return
|
|
16844
|
+
return Lg(e), !0;
|
|
16843
16845
|
} catch {
|
|
16844
16846
|
return !1;
|
|
16845
16847
|
}
|
|
@@ -16955,7 +16957,7 @@ async function Vg(e, t) {
|
|
|
16955
16957
|
throw new br();
|
|
16956
16958
|
}
|
|
16957
16959
|
async function qg(e, t) {
|
|
16958
|
-
const { address: n, factory: r, factoryData: s, hash: a, signature: o, verifierAddress: i, ...c } = t, l = await (async () => !r && !s || Hg(o) ? o :
|
|
16960
|
+
const { address: n, factory: r, factoryData: s, hash: a, signature: o, verifierAddress: i, ...c } = t, l = await (async () => !r && !s || Hg(o) ? o : $g({
|
|
16959
16961
|
data: s,
|
|
16960
16962
|
signature: o,
|
|
16961
16963
|
to: r
|
|
@@ -17366,7 +17368,7 @@ function Qg(e, { address: t, args: n, batch: r = !0, event: s, events: a, fromBl
|
|
|
17366
17368
|
c([C]);
|
|
17367
17369
|
} catch (b) {
|
|
17368
17370
|
let x, C;
|
|
17369
|
-
if (b instanceof
|
|
17371
|
+
if (b instanceof $o || b instanceof Ul) {
|
|
17370
17372
|
if (p)
|
|
17371
17373
|
return;
|
|
17372
17374
|
x = b.abiItem.name, C = (h = b.abiItem.inputs) == null ? void 0 : h.some((T) => !("name" in T && T.name));
|
|
@@ -17526,7 +17528,7 @@ function sw(e) {
|
|
|
17526
17528
|
getBlockNumber: (t) => Oa(e, t),
|
|
17527
17529
|
getBlockTransactionCount: (t) => s8(e, t),
|
|
17528
17530
|
getBytecode: (t) => Ko(e, t),
|
|
17529
|
-
getChainId: () =>
|
|
17531
|
+
getChainId: () => Ln(e),
|
|
17530
17532
|
getCode: (t) => Ko(e, t),
|
|
17531
17533
|
getContractEvents: (t) => gf(e, t),
|
|
17532
17534
|
getEip712Domain: (t) => o8(e, t),
|
|
@@ -17608,7 +17610,7 @@ async function cw(e) {
|
|
|
17608
17610
|
return ((n = e.account) == null ? void 0 : n.type) === "local" ? [e.account.address] : (await e.request({ method: "eth_accounts" }, { dedupe: !0 })).map((r) => ka(r));
|
|
17609
17611
|
}
|
|
17610
17612
|
async function lw(e, t = {}) {
|
|
17611
|
-
const { account: n = e.account, chainId: r } = t, s = n ?
|
|
17613
|
+
const { account: n = e.account, chainId: r } = t, s = n ? me(n) : void 0, a = r ? [s == null ? void 0 : s.address, [H(r)]] : [s == null ? void 0 : s.address], o = await e.request({
|
|
17612
17614
|
method: "wallet_getCapabilities",
|
|
17613
17615
|
params: a
|
|
17614
17616
|
}), i = {};
|
|
@@ -17629,15 +17631,15 @@ async function qm(e, t) {
|
|
|
17629
17631
|
throw new yn({
|
|
17630
17632
|
docsPath: "/docs/eip7702/prepareAuthorization"
|
|
17631
17633
|
});
|
|
17632
|
-
const a =
|
|
17634
|
+
const a = me(n), o = (() => {
|
|
17633
17635
|
if (t.executor)
|
|
17634
|
-
return t.executor === "self" ? t.executor :
|
|
17636
|
+
return t.executor === "self" ? t.executor : me(t.executor);
|
|
17635
17637
|
})(), i = {
|
|
17636
17638
|
address: t.contractAddress ?? t.address,
|
|
17637
17639
|
chainId: r,
|
|
17638
17640
|
nonce: s
|
|
17639
17641
|
};
|
|
17640
|
-
return typeof i.chainId > "u" && (i.chainId = ((c = e.chain) == null ? void 0 : c.id) ?? await q(e,
|
|
17642
|
+
return typeof i.chainId > "u" && (i.chainId = ((c = e.chain) == null ? void 0 : c.id) ?? await q(e, Ln, "getChainId")({})), typeof i.nonce > "u" && (i.nonce = await q(e, Wl, "getTransactionCount")({
|
|
17641
17643
|
address: a.address,
|
|
17642
17644
|
blockTag: "pending"
|
|
17643
17645
|
}), (o === "self" || o != null && o.address && Ba(o.address, a.address)) && (i.nonce += 1)), i;
|
|
@@ -17667,7 +17669,7 @@ async function Km(e, t) {
|
|
|
17667
17669
|
throw new yn({
|
|
17668
17670
|
docsPath: "/docs/actions/wallet/sendTransactionSync"
|
|
17669
17671
|
});
|
|
17670
|
-
const k = n ?
|
|
17672
|
+
const k = n ? me(n) : null;
|
|
17671
17673
|
try {
|
|
17672
17674
|
qt(t);
|
|
17673
17675
|
const b = await (async () => {
|
|
@@ -17682,7 +17684,7 @@ async function Km(e, t) {
|
|
|
17682
17684
|
})();
|
|
17683
17685
|
if ((k == null ? void 0 : k.type) === "json-rpc" || k === null) {
|
|
17684
17686
|
let x;
|
|
17685
|
-
r !== null && (x = await q(e,
|
|
17687
|
+
r !== null && (x = await q(e, Ln, "getChainId")({}), pu({
|
|
17686
17688
|
currentChainId: x,
|
|
17687
17689
|
chain: r
|
|
17688
17690
|
}));
|
|
@@ -17718,8 +17720,8 @@ async function Km(e, t) {
|
|
|
17718
17720
|
return await e.request({
|
|
17719
17721
|
method: "wallet_sendTransaction",
|
|
17720
17722
|
params: [T]
|
|
17721
|
-
}, { retryCount: 0 }).then((
|
|
17722
|
-
const G =
|
|
17723
|
+
}, { retryCount: 0 }).then((L) => (lc.set(e.uid, !0), L)).catch((L) => {
|
|
17724
|
+
const G = L;
|
|
17723
17725
|
throw G.name === "MethodNotFoundRpcError" || G.name === "MethodNotSupportedRpcError" ? (lc.set(e.uid, !1), M) : G;
|
|
17724
17726
|
});
|
|
17725
17727
|
throw M;
|
|
@@ -17793,7 +17795,7 @@ async function hw(e, t) {
|
|
|
17793
17795
|
throw new yn({
|
|
17794
17796
|
docsPath: "/docs/eip7702/signAuthorization"
|
|
17795
17797
|
});
|
|
17796
|
-
const r =
|
|
17798
|
+
const r = me(n);
|
|
17797
17799
|
if (!r.signAuthorization)
|
|
17798
17800
|
throw new ar({
|
|
17799
17801
|
docsPath: "/docs/eip7702/signAuthorization",
|
|
@@ -17810,7 +17812,7 @@ async function bw(e, { account: t = e.account, message: n }) {
|
|
|
17810
17812
|
throw new yn({
|
|
17811
17813
|
docsPath: "/docs/actions/wallet/signMessage"
|
|
17812
17814
|
});
|
|
17813
|
-
const r =
|
|
17815
|
+
const r = me(t);
|
|
17814
17816
|
if (r.signMessage)
|
|
17815
17817
|
return r.signMessage({ message: n });
|
|
17816
17818
|
const s = typeof n == "string" ? rs(n) : n.raw instanceof Uint8Array ? le(n.raw) : n.raw;
|
|
@@ -17826,12 +17828,12 @@ async function yw(e, t) {
|
|
|
17826
17828
|
throw new yn({
|
|
17827
17829
|
docsPath: "/docs/actions/wallet/signTransaction"
|
|
17828
17830
|
});
|
|
17829
|
-
const a =
|
|
17831
|
+
const a = me(n);
|
|
17830
17832
|
qt({
|
|
17831
17833
|
account: a,
|
|
17832
17834
|
...t
|
|
17833
17835
|
});
|
|
17834
|
-
const o = await q(e,
|
|
17836
|
+
const o = await q(e, Ln, "getChainId")({});
|
|
17835
17837
|
r !== null && pu({
|
|
17836
17838
|
currentChainId: o,
|
|
17837
17839
|
chain: r
|
|
@@ -17860,7 +17862,7 @@ async function xw(e, t) {
|
|
|
17860
17862
|
throw new yn({
|
|
17861
17863
|
docsPath: "/docs/actions/wallet/signTypedData"
|
|
17862
17864
|
});
|
|
17863
|
-
const o =
|
|
17865
|
+
const o = me(n), i = {
|
|
17864
17866
|
EIP712Domain: im({ domain: r }),
|
|
17865
17867
|
...t.types
|
|
17866
17868
|
};
|
|
@@ -17899,7 +17901,7 @@ function kw(e) {
|
|
|
17899
17901
|
getAddresses: () => cw(e),
|
|
17900
17902
|
getCallsStatus: (t) => Wf(e, t),
|
|
17901
17903
|
getCapabilities: (t) => lw(e, t),
|
|
17902
|
-
getChainId: () =>
|
|
17904
|
+
getChainId: () => Ln(e),
|
|
17903
17905
|
getPermissions: () => uw(e),
|
|
17904
17906
|
prepareAuthorization: (t) => qm(e, t),
|
|
17905
17907
|
prepareTransactionRequest: (t) => Pa(e, t),
|
|
@@ -18006,7 +18008,7 @@ function Tw(e, t = {}) {
|
|
|
18006
18008
|
if (p)
|
|
18007
18009
|
return { error: x, result: C };
|
|
18008
18010
|
if (x)
|
|
18009
|
-
throw new
|
|
18011
|
+
throw new $l({
|
|
18010
18012
|
body: R,
|
|
18011
18013
|
error: x,
|
|
18012
18014
|
url: U
|
|
@@ -18044,7 +18046,7 @@ function Sw(e) {
|
|
|
18044
18046
|
yParity: a
|
|
18045
18047
|
};
|
|
18046
18048
|
}
|
|
18047
|
-
const
|
|
18049
|
+
const $r = (e, t) => !t || !e || _(e).isNaN() ? "" : Cg(e, t).toString(), gt = (e, t) => {
|
|
18048
18050
|
try {
|
|
18049
18051
|
if (!t || !e || _(e).isNaN()) return "";
|
|
18050
18052
|
const n = _(e).toFixed();
|
|
@@ -18074,7 +18076,7 @@ function Bw(e) {
|
|
|
18074
18076
|
function Xm(e) {
|
|
18075
18077
|
return e ? e / 6e4 : 0;
|
|
18076
18078
|
}
|
|
18077
|
-
const sD = (e, t) => e ?
|
|
18079
|
+
const sD = (e, t) => e ? fe.TWAP_MARKET : t === 1 ? fe.LIMIT : fe.TWAP_LIMIT, Qm = (e, t, n) => {
|
|
18078
18080
|
const r = ls(n);
|
|
18079
18081
|
return wa((e == null ? void 0 : e.address) || "") && ts((t == null ? void 0 : t.address) || "", (r == null ? void 0 : r.wToken.address) || "");
|
|
18080
18082
|
}, Jm = (e, t, n) => {
|
|
@@ -18330,12 +18332,12 @@ function zw(e) {
|
|
|
18330
18332
|
jt(g)
|
|
18331
18333
|
]);
|
|
18332
18334
|
}
|
|
18333
|
-
class
|
|
18335
|
+
class Lw extends z {
|
|
18334
18336
|
constructor({ givenLength: t, maxBytecodeSize: n }) {
|
|
18335
18337
|
super(`Bytecode cannot be longer than ${n} bytes. Given length: ${t}`, { name: "BytecodeLengthExceedsMaxSizeError" });
|
|
18336
18338
|
}
|
|
18337
18339
|
}
|
|
18338
|
-
class
|
|
18340
|
+
class $w extends z {
|
|
18339
18341
|
constructor({ givenLengthInWords: t }) {
|
|
18340
18342
|
super(`Bytecode length in 32-byte words must be odd. Given length in words: ${t}`, { name: "BytecodeLengthInWordsMustBeOddError" });
|
|
18341
18343
|
}
|
|
@@ -18352,13 +18354,13 @@ function Gw(e) {
|
|
|
18352
18354
|
givenLength: t.length
|
|
18353
18355
|
});
|
|
18354
18356
|
if (t.length > bp)
|
|
18355
|
-
throw new
|
|
18357
|
+
throw new Lw({
|
|
18356
18358
|
givenLength: t.length,
|
|
18357
18359
|
maxBytecodeSize: bp
|
|
18358
18360
|
});
|
|
18359
18361
|
const n = pf(t), r = cn(n), s = t.length / 32;
|
|
18360
18362
|
if (s % 2 === 0)
|
|
18361
|
-
throw new
|
|
18363
|
+
throw new $w({
|
|
18362
18364
|
givenLengthInWords: s
|
|
18363
18365
|
});
|
|
18364
18366
|
const a = cn(s), o = yr(a, { size: 2 }), i = new Uint8Array([1, 0]);
|
|
@@ -18739,13 +18741,13 @@ function oE(e) {
|
|
|
18739
18741
|
if (n && !be(n))
|
|
18740
18742
|
throw new Ue({ address: n });
|
|
18741
18743
|
}
|
|
18742
|
-
const
|
|
18744
|
+
const $ = {
|
|
18743
18745
|
blockTime: 2e3,
|
|
18744
18746
|
contracts: nh,
|
|
18745
18747
|
formatters: Mu,
|
|
18746
18748
|
serializers: rE
|
|
18747
18749
|
}, to = 1, iE = /* @__PURE__ */ u({
|
|
18748
|
-
|
|
18750
|
+
...$,
|
|
18749
18751
|
id: 888888888,
|
|
18750
18752
|
name: "Ancient8",
|
|
18751
18753
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -18762,7 +18764,7 @@ const L = {
|
|
|
18762
18764
|
}
|
|
18763
18765
|
},
|
|
18764
18766
|
contracts: {
|
|
18765
|
-
|
|
18767
|
+
...$.contracts,
|
|
18766
18768
|
l2OutputOracle: {
|
|
18767
18769
|
[to]: {
|
|
18768
18770
|
address: "0xB09DC08428C8b4EFB4ff9C0827386CDF34277996"
|
|
@@ -18783,7 +18785,7 @@ const L = {
|
|
|
18783
18785
|
},
|
|
18784
18786
|
sourceId: to
|
|
18785
18787
|
}), no = 11155111, cE = /* @__PURE__ */ u({
|
|
18786
|
-
|
|
18788
|
+
...$,
|
|
18787
18789
|
id: 28122024,
|
|
18788
18790
|
name: "Ancient8 Testnet",
|
|
18789
18791
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -18800,7 +18802,7 @@ const L = {
|
|
|
18800
18802
|
}
|
|
18801
18803
|
},
|
|
18802
18804
|
contracts: {
|
|
18803
|
-
|
|
18805
|
+
...$.contracts,
|
|
18804
18806
|
l2OutputOracle: {
|
|
18805
18807
|
[no]: {
|
|
18806
18808
|
address: "0x942fD5017c0F60575930D8574Eaca13BEcD6e1bB"
|
|
@@ -19489,7 +19491,7 @@ const L = {
|
|
|
19489
19491
|
}
|
|
19490
19492
|
},
|
|
19491
19493
|
sourceId: _E
|
|
19492
|
-
}),
|
|
19494
|
+
}), LE = 168587773, $E = /* @__PURE__ */ u({
|
|
19493
19495
|
id: 1993,
|
|
19494
19496
|
name: "B3 Sepolia",
|
|
19495
19497
|
nativeCurrency: {
|
|
@@ -19515,7 +19517,7 @@ const L = {
|
|
|
19515
19517
|
}
|
|
19516
19518
|
},
|
|
19517
19519
|
testnet: !0,
|
|
19518
|
-
sourceId:
|
|
19520
|
+
sourceId: LE
|
|
19519
19521
|
}), HE = /* @__PURE__ */ u({
|
|
19520
19522
|
id: 5165,
|
|
19521
19523
|
network: "bahamut",
|
|
@@ -19543,7 +19545,7 @@ const L = {
|
|
|
19543
19545
|
}
|
|
19544
19546
|
}
|
|
19545
19547
|
}), vs = 1, sh = /* @__PURE__ */ u({
|
|
19546
|
-
|
|
19548
|
+
...$,
|
|
19547
19549
|
id: 8453,
|
|
19548
19550
|
name: "Base",
|
|
19549
19551
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -19560,7 +19562,7 @@ const L = {
|
|
|
19560
19562
|
}
|
|
19561
19563
|
},
|
|
19562
19564
|
contracts: {
|
|
19563
|
-
|
|
19565
|
+
...$.contracts,
|
|
19564
19566
|
disputeGameFactory: {
|
|
19565
19567
|
[vs]: {
|
|
19566
19568
|
address: "0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"
|
|
@@ -19616,7 +19618,7 @@ const L = {
|
|
|
19616
19618
|
},
|
|
19617
19619
|
testnet: !0
|
|
19618
19620
|
}), ro = 5, VE = /* @__PURE__ */ u({
|
|
19619
|
-
|
|
19621
|
+
...$,
|
|
19620
19622
|
id: 84531,
|
|
19621
19623
|
name: "Base Goerli",
|
|
19622
19624
|
nativeCurrency: { name: "Goerli Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -19631,7 +19633,7 @@ const L = {
|
|
|
19631
19633
|
}
|
|
19632
19634
|
},
|
|
19633
19635
|
contracts: {
|
|
19634
|
-
|
|
19636
|
+
...$.contracts,
|
|
19635
19637
|
l2OutputOracle: {
|
|
19636
19638
|
[ro]: {
|
|
19637
19639
|
address: "0x2A35891ff30313CcFa6CE88dcf3858bb075A2298"
|
|
@@ -19655,7 +19657,7 @@ const L = {
|
|
|
19655
19657
|
testnet: !0,
|
|
19656
19658
|
sourceId: ro
|
|
19657
19659
|
}), As = 11155111, ah = /* @__PURE__ */ u({
|
|
19658
|
-
|
|
19660
|
+
...$,
|
|
19659
19661
|
id: 84532,
|
|
19660
19662
|
network: "base-sepolia",
|
|
19661
19663
|
name: "Base Sepolia",
|
|
@@ -19673,7 +19675,7 @@ const L = {
|
|
|
19673
19675
|
}
|
|
19674
19676
|
},
|
|
19675
19677
|
contracts: {
|
|
19676
|
-
|
|
19678
|
+
...$.contracts,
|
|
19677
19679
|
disputeGameFactory: {
|
|
19678
19680
|
[As]: {
|
|
19679
19681
|
address: "0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1"
|
|
@@ -20130,7 +20132,7 @@ const L = {
|
|
|
20130
20132
|
},
|
|
20131
20133
|
testnet: !0
|
|
20132
20134
|
}), so = 1, p7 = /* @__PURE__ */ u({
|
|
20133
|
-
|
|
20135
|
+
...$,
|
|
20134
20136
|
id: 81457,
|
|
20135
20137
|
name: "Blast",
|
|
20136
20138
|
nativeCurrency: {
|
|
@@ -20149,7 +20151,7 @@ const L = {
|
|
|
20149
20151
|
}
|
|
20150
20152
|
},
|
|
20151
20153
|
contracts: {
|
|
20152
|
-
|
|
20154
|
+
...$.contracts,
|
|
20153
20155
|
multicall3: {
|
|
20154
20156
|
address: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
20155
20157
|
blockCreated: 212929
|
|
@@ -20203,7 +20205,7 @@ const L = {
|
|
|
20203
20205
|
testnet: !0,
|
|
20204
20206
|
sourceId: f7
|
|
20205
20207
|
}), uc = 1, h7 = /* @__PURE__ */ u({
|
|
20206
|
-
|
|
20208
|
+
...$,
|
|
20207
20209
|
id: 60808,
|
|
20208
20210
|
name: "BOB",
|
|
20209
20211
|
nativeCurrency: {
|
|
@@ -20224,7 +20226,7 @@ const L = {
|
|
|
20224
20226
|
}
|
|
20225
20227
|
},
|
|
20226
20228
|
contracts: {
|
|
20227
|
-
|
|
20229
|
+
...$.contracts,
|
|
20228
20230
|
multicall3: {
|
|
20229
20231
|
address: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
20230
20232
|
blockCreated: 23131
|
|
@@ -20285,7 +20287,7 @@ const L = {
|
|
|
20285
20287
|
},
|
|
20286
20288
|
testnet: !0
|
|
20287
20289
|
}), dc = 11155111, x7 = /* @__PURE__ */ u({
|
|
20288
|
-
|
|
20290
|
+
...$,
|
|
20289
20291
|
id: 808813,
|
|
20290
20292
|
name: "BOB Sepolia",
|
|
20291
20293
|
nativeCurrency: {
|
|
@@ -20306,7 +20308,7 @@ const L = {
|
|
|
20306
20308
|
}
|
|
20307
20309
|
},
|
|
20308
20310
|
contracts: {
|
|
20309
|
-
|
|
20311
|
+
...$.contracts,
|
|
20310
20312
|
multicall3: {
|
|
20311
20313
|
address: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
20312
20314
|
blockCreated: 35677
|
|
@@ -20705,13 +20707,13 @@ function oh(e) {
|
|
|
20705
20707
|
function Rs(e) {
|
|
20706
20708
|
return !oh(e);
|
|
20707
20709
|
}
|
|
20708
|
-
function
|
|
20710
|
+
function L7(e) {
|
|
20709
20711
|
return typeof e.maxFeePerGas < "u" && typeof e.maxPriorityFeePerGas < "u";
|
|
20710
20712
|
}
|
|
20711
20713
|
function ih(e) {
|
|
20712
|
-
return e.type === "cip64" ? !0 :
|
|
20714
|
+
return e.type === "cip64" ? !0 : L7(e) && Rs(e.feeCurrency);
|
|
20713
20715
|
}
|
|
20714
|
-
const
|
|
20716
|
+
const $7 = {
|
|
20715
20717
|
block: /* @__PURE__ */ ql({
|
|
20716
20718
|
format(e) {
|
|
20717
20719
|
var n;
|
|
@@ -20794,7 +20796,7 @@ function q7(e) {
|
|
|
20794
20796
|
const pa = {
|
|
20795
20797
|
blockTime: 1e3,
|
|
20796
20798
|
contracts: nh,
|
|
20797
|
-
formatters:
|
|
20799
|
+
formatters: $7,
|
|
20798
20800
|
serializers: G7,
|
|
20799
20801
|
fees: N7
|
|
20800
20802
|
}, K7 = /* @__PURE__ */ u({
|
|
@@ -21614,7 +21616,7 @@ const pa = {
|
|
|
21614
21616
|
},
|
|
21615
21617
|
testnet: !1
|
|
21616
21618
|
}), I9 = /* @__PURE__ */ u({
|
|
21617
|
-
|
|
21619
|
+
...$,
|
|
21618
21620
|
id: 2716446429837e3,
|
|
21619
21621
|
name: "Dchain",
|
|
21620
21622
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -21631,10 +21633,10 @@ const pa = {
|
|
|
21631
21633
|
}
|
|
21632
21634
|
},
|
|
21633
21635
|
contracts: {
|
|
21634
|
-
|
|
21636
|
+
...$.contracts
|
|
21635
21637
|
}
|
|
21636
21638
|
}), F9 = /* @__PURE__ */ u({
|
|
21637
|
-
|
|
21639
|
+
...$,
|
|
21638
21640
|
id: 2713017997578e3,
|
|
21639
21641
|
name: "Dchain Testnet",
|
|
21640
21642
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -21653,7 +21655,7 @@ const pa = {
|
|
|
21653
21655
|
}
|
|
21654
21656
|
},
|
|
21655
21657
|
contracts: {
|
|
21656
|
-
|
|
21658
|
+
...$.contracts
|
|
21657
21659
|
}
|
|
21658
21660
|
}), D9 = /* @__PURE__ */ u({
|
|
21659
21661
|
id: 1130,
|
|
@@ -21811,7 +21813,7 @@ const pa = {
|
|
|
21811
21813
|
}
|
|
21812
21814
|
},
|
|
21813
21815
|
testnet: !0
|
|
21814
|
-
}),
|
|
21816
|
+
}), L9 = /* @__PURE__ */ u({
|
|
21815
21817
|
id: 2e3,
|
|
21816
21818
|
name: "Dogechain",
|
|
21817
21819
|
nativeCurrency: {
|
|
@@ -21835,7 +21837,7 @@ const pa = {
|
|
|
21835
21837
|
blockCreated: 25384031
|
|
21836
21838
|
}
|
|
21837
21839
|
}
|
|
21838
|
-
}),
|
|
21840
|
+
}), $9 = /* @__PURE__ */ u({
|
|
21839
21841
|
id: 97476,
|
|
21840
21842
|
name: "Doma Testnet",
|
|
21841
21843
|
nativeCurrency: {
|
|
@@ -22281,7 +22283,7 @@ const pa = {
|
|
|
22281
22283
|
},
|
|
22282
22284
|
testnet: !0
|
|
22283
22285
|
}), lk = /* @__PURE__ */ u({
|
|
22284
|
-
|
|
22286
|
+
...$,
|
|
22285
22287
|
id: 1338,
|
|
22286
22288
|
name: "Elysium Testnet",
|
|
22287
22289
|
nativeCurrency: {
|
|
@@ -22903,7 +22905,7 @@ const pa = {
|
|
|
22903
22905
|
}
|
|
22904
22906
|
},
|
|
22905
22907
|
blockTime: 800
|
|
22906
|
-
}),
|
|
22908
|
+
}), Lk = /* @__PURE__ */ u({
|
|
22907
22909
|
id: 646,
|
|
22908
22910
|
name: "Flow EVM Previewnet",
|
|
22909
22911
|
nativeCurrency: {
|
|
@@ -22928,7 +22930,7 @@ const pa = {
|
|
|
22928
22930
|
blockCreated: 6205
|
|
22929
22931
|
}
|
|
22930
22932
|
}
|
|
22931
|
-
}),
|
|
22933
|
+
}), $k = /* @__PURE__ */ u({
|
|
22932
22934
|
id: 545,
|
|
22933
22935
|
name: "Flow EVM Testnet",
|
|
22934
22936
|
nativeCurrency: {
|
|
@@ -23067,7 +23069,7 @@ const pa = {
|
|
|
23067
23069
|
}
|
|
23068
23070
|
},
|
|
23069
23071
|
contracts: {
|
|
23070
|
-
|
|
23072
|
+
...$.contracts,
|
|
23071
23073
|
addressManager: {
|
|
23072
23074
|
[Ur]: {
|
|
23073
23075
|
address: "0x15c249E46A2F924C2dB3A1560CF86729bAD1f07B"
|
|
@@ -23146,7 +23148,7 @@ const pa = {
|
|
|
23146
23148
|
}
|
|
23147
23149
|
},
|
|
23148
23150
|
contracts: {
|
|
23149
|
-
|
|
23151
|
+
...$.contracts,
|
|
23150
23152
|
addressManager: {
|
|
23151
23153
|
[Ir]: {
|
|
23152
23154
|
address: "0xd5C38fa934f7fd7477D4800F4f38a1c5BFdF1373"
|
|
@@ -23212,7 +23214,7 @@ const pa = {
|
|
|
23212
23214
|
}
|
|
23213
23215
|
}
|
|
23214
23216
|
}), oo = 1, Qk = /* @__PURE__ */ u({
|
|
23215
|
-
|
|
23217
|
+
...$,
|
|
23216
23218
|
id: 252,
|
|
23217
23219
|
name: "Fraxtal",
|
|
23218
23220
|
nativeCurrency: { name: "Frax", symbol: "FRAX", decimals: 18 },
|
|
@@ -23229,7 +23231,7 @@ const pa = {
|
|
|
23229
23231
|
}
|
|
23230
23232
|
},
|
|
23231
23233
|
contracts: {
|
|
23232
|
-
|
|
23234
|
+
...$.contracts,
|
|
23233
23235
|
l2OutputOracle: {
|
|
23234
23236
|
[oo]: {
|
|
23235
23237
|
address: "0x66CC916Ed5C6C2FA97014f7D1cD141528Ae171e4"
|
|
@@ -23253,7 +23255,7 @@ const pa = {
|
|
|
23253
23255
|
},
|
|
23254
23256
|
sourceId: oo
|
|
23255
23257
|
}), io = 17e3, Jk = /* @__PURE__ */ u({
|
|
23256
|
-
|
|
23258
|
+
...$,
|
|
23257
23259
|
id: 2522,
|
|
23258
23260
|
name: "Fraxtal Testnet",
|
|
23259
23261
|
nativeCurrency: { name: "Frax", symbol: "FRAX", decimals: 18 },
|
|
@@ -23270,7 +23272,7 @@ const pa = {
|
|
|
23270
23272
|
}
|
|
23271
23273
|
},
|
|
23272
23274
|
contracts: {
|
|
23273
|
-
|
|
23275
|
+
...$.contracts,
|
|
23274
23276
|
l2OutputOracle: {
|
|
23275
23277
|
[io]: {
|
|
23276
23278
|
address: "0x715EA64DA13F4d0831ece4Ad3E8c1aa013167F32"
|
|
@@ -23294,7 +23296,7 @@ const pa = {
|
|
|
23294
23296
|
},
|
|
23295
23297
|
sourceId: io
|
|
23296
23298
|
}), Yk = 1, eC = /* @__PURE__ */ u({
|
|
23297
|
-
|
|
23299
|
+
...$,
|
|
23298
23300
|
id: 33979,
|
|
23299
23301
|
name: "Funki",
|
|
23300
23302
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -23310,11 +23312,11 @@ const pa = {
|
|
|
23310
23312
|
}
|
|
23311
23313
|
},
|
|
23312
23314
|
contracts: {
|
|
23313
|
-
|
|
23315
|
+
...$.contracts
|
|
23314
23316
|
},
|
|
23315
23317
|
sourceId: Yk
|
|
23316
23318
|
}), tC = 11155111, nC = /* @__PURE__ */ u({
|
|
23317
|
-
|
|
23319
|
+
...$,
|
|
23318
23320
|
id: 3397901,
|
|
23319
23321
|
network: "funkiSepolia",
|
|
23320
23322
|
name: "Funki Sepolia Sandbox",
|
|
@@ -23332,7 +23334,7 @@ const pa = {
|
|
|
23332
23334
|
},
|
|
23333
23335
|
testnet: !0,
|
|
23334
23336
|
contracts: {
|
|
23335
|
-
|
|
23337
|
+
...$.contracts,
|
|
23336
23338
|
multicall3: {
|
|
23337
23339
|
address: "0xca11bde05977b3631167028862be2a173976ca11",
|
|
23338
23340
|
blockCreated: 1620204
|
|
@@ -23420,7 +23422,7 @@ const pa = {
|
|
|
23420
23422
|
},
|
|
23421
23423
|
testnet: !0
|
|
23422
23424
|
}), co = 17e3, iC = /* @__PURE__ */ u({
|
|
23423
|
-
|
|
23425
|
+
...$,
|
|
23424
23426
|
name: "Garnet Testnet",
|
|
23425
23427
|
testnet: !0,
|
|
23426
23428
|
id: 17069,
|
|
@@ -23439,7 +23441,7 @@ const pa = {
|
|
|
23439
23441
|
}
|
|
23440
23442
|
},
|
|
23441
23443
|
contracts: {
|
|
23442
|
-
|
|
23444
|
+
...$.contracts,
|
|
23443
23445
|
multicall3: {
|
|
23444
23446
|
address: "0xca11bde05977b3631167028862be2a173976ca11"
|
|
23445
23447
|
},
|
|
@@ -23524,7 +23526,7 @@ const pa = {
|
|
|
23524
23526
|
},
|
|
23525
23527
|
testnet: !1
|
|
23526
23528
|
}), lo = 11155111, ch = /* @__PURE__ */ u({
|
|
23527
|
-
|
|
23529
|
+
...$,
|
|
23528
23530
|
id: 91342,
|
|
23529
23531
|
network: "giwa-sepolia",
|
|
23530
23532
|
name: "GIWA Sepolia",
|
|
@@ -23543,7 +23545,7 @@ const pa = {
|
|
|
23543
23545
|
}
|
|
23544
23546
|
},
|
|
23545
23547
|
contracts: {
|
|
23546
|
-
|
|
23548
|
+
...$.contracts,
|
|
23547
23549
|
multicall3: {
|
|
23548
23550
|
address: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
23549
23551
|
blockCreated: 0
|
|
@@ -24180,7 +24182,7 @@ const pa = {
|
|
|
24180
24182
|
}
|
|
24181
24183
|
},
|
|
24182
24184
|
testnet: !1
|
|
24183
|
-
}),
|
|
24185
|
+
}), LC = /* @__PURE__ */ u({
|
|
24184
24186
|
id: 42e3,
|
|
24185
24187
|
name: "Helios Testnet",
|
|
24186
24188
|
network: "helios-testnet",
|
|
@@ -24201,7 +24203,7 @@ const pa = {
|
|
|
24201
24203
|
}
|
|
24202
24204
|
},
|
|
24203
24205
|
testnet: !0
|
|
24204
|
-
}),
|
|
24206
|
+
}), $C = /* @__PURE__ */ u({
|
|
24205
24207
|
id: 43111,
|
|
24206
24208
|
name: "Hemi",
|
|
24207
24209
|
network: "Hemi",
|
|
@@ -24745,7 +24747,7 @@ const pa = {
|
|
|
24745
24747
|
},
|
|
24746
24748
|
testnet: !0
|
|
24747
24749
|
}), uo = 1, hv = /* @__PURE__ */ u({
|
|
24748
|
-
|
|
24750
|
+
...$,
|
|
24749
24751
|
id: 57073,
|
|
24750
24752
|
name: "Ink",
|
|
24751
24753
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -24773,7 +24775,7 @@ const pa = {
|
|
|
24773
24775
|
address: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
24774
24776
|
blockCreated: 0
|
|
24775
24777
|
},
|
|
24776
|
-
|
|
24778
|
+
...$.contracts,
|
|
24777
24779
|
disputeGameFactory: {
|
|
24778
24780
|
[uo]: {
|
|
24779
24781
|
address: "0x10d7b35078d3baabb96dd45a9143b94be65b12cd"
|
|
@@ -24793,7 +24795,7 @@ const pa = {
|
|
|
24793
24795
|
testnet: !1,
|
|
24794
24796
|
sourceId: uo
|
|
24795
24797
|
}), po = 11155111, bv = /* @__PURE__ */ u({
|
|
24796
|
-
|
|
24798
|
+
...$,
|
|
24797
24799
|
id: 763373,
|
|
24798
24800
|
name: "Ink Sepolia",
|
|
24799
24801
|
nativeCurrency: { name: "Sepolia Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -24810,7 +24812,7 @@ const pa = {
|
|
|
24810
24812
|
}
|
|
24811
24813
|
},
|
|
24812
24814
|
contracts: {
|
|
24813
|
-
|
|
24815
|
+
...$.contracts,
|
|
24814
24816
|
multicall3: {
|
|
24815
24817
|
address: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
24816
24818
|
blockCreated: 0
|
|
@@ -25295,7 +25297,7 @@ const pa = {
|
|
|
25295
25297
|
apiUrl: "https://juneoscan.io/chain/7/api"
|
|
25296
25298
|
}
|
|
25297
25299
|
}
|
|
25298
|
-
}),
|
|
25300
|
+
}), Lv = /* @__PURE__ */ u({
|
|
25299
25301
|
id: 101003,
|
|
25300
25302
|
name: "Socotra JUNE-Chain",
|
|
25301
25303
|
nativeCurrency: {
|
|
@@ -25314,7 +25316,7 @@ const pa = {
|
|
|
25314
25316
|
}
|
|
25315
25317
|
},
|
|
25316
25318
|
testnet: !0
|
|
25317
|
-
}),
|
|
25319
|
+
}), $v = /* @__PURE__ */ u({
|
|
25318
25320
|
id: 45006,
|
|
25319
25321
|
name: "Juneo USD1-Chain",
|
|
25320
25322
|
nativeCurrency: {
|
|
@@ -25891,7 +25893,7 @@ async function m4(e, t) {
|
|
|
25891
25893
|
const { account: n = e.account } = t;
|
|
25892
25894
|
if (!n)
|
|
25893
25895
|
throw new yn();
|
|
25894
|
-
const r =
|
|
25896
|
+
const r = me(n);
|
|
25895
25897
|
try {
|
|
25896
25898
|
const { accessList: i, blockNumber: c, blockTag: l, data: d, gas: p, gasPrice: f, maxFeePerGas: m, maxPriorityFeePerGas: y, nonce: g, to: P, value: B, ...v } = t, k = (typeof c == "bigint" ? H(c) : void 0) || l;
|
|
25897
25899
|
qt(t);
|
|
@@ -26072,7 +26074,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
26072
26074
|
},
|
|
26073
26075
|
testnet: !0
|
|
26074
26076
|
}), fo = 1, g4 = /* @__PURE__ */ u({
|
|
26075
|
-
|
|
26077
|
+
...$,
|
|
26076
26078
|
id: 1135,
|
|
26077
26079
|
name: "Lisk",
|
|
26078
26080
|
network: "lisk",
|
|
@@ -26094,7 +26096,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
26094
26096
|
}
|
|
26095
26097
|
},
|
|
26096
26098
|
contracts: {
|
|
26097
|
-
|
|
26099
|
+
...$.contracts,
|
|
26098
26100
|
multicall3: {
|
|
26099
26101
|
address: "0xA9d71E1dd7ca26F26e656E66d6AA81ed7f745bf0"
|
|
26100
26102
|
},
|
|
@@ -26116,7 +26118,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
26116
26118
|
},
|
|
26117
26119
|
sourceId: fo
|
|
26118
26120
|
}), mo = 11155111, w4 = /* @__PURE__ */ u({
|
|
26119
|
-
|
|
26121
|
+
...$,
|
|
26120
26122
|
id: 4202,
|
|
26121
26123
|
network: "lisk-sepolia",
|
|
26122
26124
|
name: "Lisk Sepolia",
|
|
@@ -26134,7 +26136,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
26134
26136
|
}
|
|
26135
26137
|
},
|
|
26136
26138
|
contracts: {
|
|
26137
|
-
|
|
26139
|
+
...$.contracts,
|
|
26138
26140
|
l2OutputOracle: {
|
|
26139
26141
|
[mo]: {
|
|
26140
26142
|
address: "0xA0E35F56C318DE1bD5D9ca6A94Fe7e37C5663348"
|
|
@@ -26600,7 +26602,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
26600
26602
|
}
|
|
26601
26603
|
},
|
|
26602
26604
|
testnet: !0
|
|
26603
|
-
}),
|
|
26605
|
+
}), L4 = /* @__PURE__ */ u({
|
|
26604
26606
|
id: 5887,
|
|
26605
26607
|
name: "MANTRA DuKong EVM Testnet",
|
|
26606
26608
|
nativeCurrency: {
|
|
@@ -26618,7 +26620,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
26618
26620
|
}
|
|
26619
26621
|
},
|
|
26620
26622
|
testnet: !0
|
|
26621
|
-
}),
|
|
26623
|
+
}), $4 = /* @__PURE__ */ u({
|
|
26622
26624
|
id: 5888,
|
|
26623
26625
|
name: "MANTRA EVM",
|
|
26624
26626
|
nativeCurrency: {
|
|
@@ -26930,7 +26932,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
26930
26932
|
},
|
|
26931
26933
|
testnet: !1
|
|
26932
26934
|
}), ho = 1, nA = /* @__PURE__ */ u({
|
|
26933
|
-
|
|
26935
|
+
...$,
|
|
26934
26936
|
id: 1750,
|
|
26935
26937
|
name: "Metal L2",
|
|
26936
26938
|
nativeCurrency: {
|
|
@@ -26952,7 +26954,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
26952
26954
|
}
|
|
26953
26955
|
},
|
|
26954
26956
|
contracts: {
|
|
26955
|
-
|
|
26957
|
+
...$.contracts,
|
|
26956
26958
|
l2OutputOracle: {
|
|
26957
26959
|
[ho]: {
|
|
26958
26960
|
address: "0x3B1F7aDa0Fcc26B13515af752Dd07fB1CAc11426"
|
|
@@ -27199,7 +27201,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
27199
27201
|
},
|
|
27200
27202
|
testnet: !0
|
|
27201
27203
|
}), bo = 1, fA = /* @__PURE__ */ u({
|
|
27202
|
-
|
|
27204
|
+
...$,
|
|
27203
27205
|
id: 34443,
|
|
27204
27206
|
name: "Mode Mainnet",
|
|
27205
27207
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -27215,7 +27217,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
27215
27217
|
}
|
|
27216
27218
|
},
|
|
27217
27219
|
contracts: {
|
|
27218
|
-
|
|
27220
|
+
...$.contracts,
|
|
27219
27221
|
multicall3: {
|
|
27220
27222
|
address: "0xca11bde05977b3631167028862be2a173976ca11",
|
|
27221
27223
|
blockCreated: 2465882
|
|
@@ -27238,7 +27240,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
27238
27240
|
},
|
|
27239
27241
|
sourceId: bo
|
|
27240
27242
|
}), yo = 11155111, mA = /* @__PURE__ */ u({
|
|
27241
|
-
|
|
27243
|
+
...$,
|
|
27242
27244
|
id: 919,
|
|
27243
27245
|
name: "Mode Testnet",
|
|
27244
27246
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -27255,7 +27257,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
27255
27257
|
}
|
|
27256
27258
|
},
|
|
27257
27259
|
contracts: {
|
|
27258
|
-
|
|
27260
|
+
...$.contracts,
|
|
27259
27261
|
l2OutputOracle: {
|
|
27260
27262
|
[yo]: {
|
|
27261
27263
|
address: "0x2634BD65ba27AB63811c74A63118ACb312701Bfa",
|
|
@@ -27811,7 +27813,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
27811
27813
|
apiUrl: "https://scan.oasys.games/api"
|
|
27812
27814
|
}
|
|
27813
27815
|
}
|
|
27814
|
-
}),
|
|
27816
|
+
}), LA = /* @__PURE__ */ u({
|
|
27815
27817
|
id: 911867,
|
|
27816
27818
|
name: "Odyssey Testnet",
|
|
27817
27819
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -27826,7 +27828,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
27826
27828
|
}
|
|
27827
27829
|
},
|
|
27828
27830
|
testnet: !0
|
|
27829
|
-
}),
|
|
27831
|
+
}), $A = /* @__PURE__ */ u({
|
|
27830
27832
|
id: 66,
|
|
27831
27833
|
name: "OKC",
|
|
27832
27834
|
nativeCurrency: {
|
|
@@ -27955,7 +27957,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
27955
27957
|
}
|
|
27956
27958
|
},
|
|
27957
27959
|
contracts: {
|
|
27958
|
-
|
|
27960
|
+
...$.contracts,
|
|
27959
27961
|
multicall3: {
|
|
27960
27962
|
address: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
27961
27963
|
blockCreated: 512881
|
|
@@ -27995,7 +27997,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
27995
27997
|
}
|
|
27996
27998
|
},
|
|
27997
27999
|
contracts: {
|
|
27998
|
-
|
|
28000
|
+
...$.contracts,
|
|
27999
28001
|
multicall3: {
|
|
28000
28002
|
address: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
28001
28003
|
blockCreated: 3705108
|
|
@@ -28033,7 +28035,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
28033
28035
|
},
|
|
28034
28036
|
testnet: !1
|
|
28035
28037
|
}), Ts = 1, XA = /* @__PURE__ */ u({
|
|
28036
|
-
|
|
28038
|
+
...$,
|
|
28037
28039
|
id: 10,
|
|
28038
28040
|
name: "OP Mainnet",
|
|
28039
28041
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -28050,7 +28052,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
28050
28052
|
}
|
|
28051
28053
|
},
|
|
28052
28054
|
contracts: {
|
|
28053
|
-
|
|
28055
|
+
...$.contracts,
|
|
28054
28056
|
disputeGameFactory: {
|
|
28055
28057
|
[Ts]: {
|
|
28056
28058
|
address: "0xe5965Ab5962eDc7477C8520243A95517CD252fA9"
|
|
@@ -28078,7 +28080,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
28078
28080
|
},
|
|
28079
28081
|
sourceId: Ts
|
|
28080
28082
|
}), wo = 5, QA = /* @__PURE__ */ u({
|
|
28081
|
-
|
|
28083
|
+
...$,
|
|
28082
28084
|
id: 420,
|
|
28083
28085
|
name: "Optimism Goerli",
|
|
28084
28086
|
nativeCurrency: { name: "Goerli Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -28095,7 +28097,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
28095
28097
|
}
|
|
28096
28098
|
},
|
|
28097
28099
|
contracts: {
|
|
28098
|
-
|
|
28100
|
+
...$.contracts,
|
|
28099
28101
|
l2OutputOracle: {
|
|
28100
28102
|
[wo]: {
|
|
28101
28103
|
address: "0xE6Dfba0953616Bacab0c9A8ecb3a9BBa77FC15c0"
|
|
@@ -28119,7 +28121,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
28119
28121
|
testnet: !0,
|
|
28120
28122
|
sourceId: wo
|
|
28121
28123
|
}), Ss = 11155111, JA = /* @__PURE__ */ u({
|
|
28122
|
-
|
|
28124
|
+
...$,
|
|
28123
28125
|
id: 11155420,
|
|
28124
28126
|
name: "OP Sepolia",
|
|
28125
28127
|
nativeCurrency: { name: "Sepolia Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -28136,7 +28138,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
28136
28138
|
}
|
|
28137
28139
|
},
|
|
28138
28140
|
contracts: {
|
|
28139
|
-
|
|
28141
|
+
...$.contracts,
|
|
28140
28142
|
disputeGameFactory: {
|
|
28141
28143
|
[Ss]: {
|
|
28142
28144
|
address: "0x05F9613aDB30026FFd634f38e5C4dFd30a197Fa1"
|
|
@@ -29045,7 +29047,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
29045
29047
|
blockCreated: 14353601
|
|
29046
29048
|
}
|
|
29047
29049
|
}
|
|
29048
|
-
}),
|
|
29050
|
+
}), LT = /* @__PURE__ */ u({
|
|
29049
29051
|
id: 490092,
|
|
29050
29052
|
name: "Pumpfi Testnet",
|
|
29051
29053
|
nativeCurrency: {
|
|
@@ -29065,8 +29067,8 @@ const h4 = /* @__PURE__ */ u({
|
|
|
29065
29067
|
}
|
|
29066
29068
|
},
|
|
29067
29069
|
testnet: !0
|
|
29068
|
-
}), gp = 11155111,
|
|
29069
|
-
|
|
29070
|
+
}), gp = 11155111, $T = /* @__PURE__ */ u({
|
|
29071
|
+
...$,
|
|
29070
29072
|
name: "Pyrope Testnet",
|
|
29071
29073
|
testnet: !0,
|
|
29072
29074
|
id: 695569,
|
|
@@ -29085,7 +29087,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
29085
29087
|
}
|
|
29086
29088
|
},
|
|
29087
29089
|
contracts: {
|
|
29088
|
-
|
|
29090
|
+
...$.contracts,
|
|
29089
29091
|
l1StandardBridge: {
|
|
29090
29092
|
[gp]: {
|
|
29091
29093
|
address: "0xC24932c31D9621aE9e792576152B7ef010cFC2F8"
|
|
@@ -29317,7 +29319,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
29317
29319
|
},
|
|
29318
29320
|
testnet: !0
|
|
29319
29321
|
}), Co = 1, YT = /* @__PURE__ */ u({
|
|
29320
|
-
|
|
29322
|
+
...$,
|
|
29321
29323
|
name: "Redstone",
|
|
29322
29324
|
id: 690,
|
|
29323
29325
|
sourceId: Co,
|
|
@@ -29335,7 +29337,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
29335
29337
|
}
|
|
29336
29338
|
},
|
|
29337
29339
|
contracts: {
|
|
29338
|
-
|
|
29340
|
+
...$.contracts,
|
|
29339
29341
|
multicall3: {
|
|
29340
29342
|
address: "0xca11bde05977b3631167028862be2a173976ca11"
|
|
29341
29343
|
},
|
|
@@ -29613,7 +29615,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
29613
29615
|
},
|
|
29614
29616
|
testnet: !0
|
|
29615
29617
|
}), vo = 1, dS = /* @__PURE__ */ u({
|
|
29616
|
-
|
|
29618
|
+
...$,
|
|
29617
29619
|
id: 12553,
|
|
29618
29620
|
name: "RSS3 VSL Mainnet",
|
|
29619
29621
|
nativeCurrency: { name: "RSS3", symbol: "RSS3", decimals: 18 },
|
|
@@ -29630,7 +29632,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
29630
29632
|
}
|
|
29631
29633
|
},
|
|
29632
29634
|
contracts: {
|
|
29633
|
-
|
|
29635
|
+
...$.contracts,
|
|
29634
29636
|
l2OutputOracle: {
|
|
29635
29637
|
[vo]: {
|
|
29636
29638
|
address: "0xE6f24d2C32B3109B18ed33cF08eFb490b1e09C10"
|
|
@@ -29654,7 +29656,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
29654
29656
|
},
|
|
29655
29657
|
sourceId: vo
|
|
29656
29658
|
}), Ao = 11155111, pS = /* @__PURE__ */ u({
|
|
29657
|
-
|
|
29659
|
+
...$,
|
|
29658
29660
|
id: 2331,
|
|
29659
29661
|
name: "RSS3 VSL Sepolia Testnet",
|
|
29660
29662
|
nativeCurrency: { name: "RSS3", symbol: "RSS3", decimals: 18 },
|
|
@@ -29671,7 +29673,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
29671
29673
|
}
|
|
29672
29674
|
},
|
|
29673
29675
|
contracts: {
|
|
29674
|
-
|
|
29676
|
+
...$.contracts,
|
|
29675
29677
|
l2OutputOracle: {
|
|
29676
29678
|
[Ao]: {
|
|
29677
29679
|
address: "0xDb5c46C3Eaa6Ed6aE8b2379785DF7dd029C0dC81"
|
|
@@ -30010,7 +30012,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
30010
30012
|
},
|
|
30011
30013
|
testnet: !0
|
|
30012
30014
|
}), To = 1, PS = /* @__PURE__ */ u({
|
|
30013
|
-
|
|
30015
|
+
...$,
|
|
30014
30016
|
id: 360,
|
|
30015
30017
|
name: "Shape",
|
|
30016
30018
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -30027,7 +30029,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
30027
30029
|
}
|
|
30028
30030
|
},
|
|
30029
30031
|
contracts: {
|
|
30030
|
-
|
|
30032
|
+
...$.contracts,
|
|
30031
30033
|
l2OutputOracle: {
|
|
30032
30034
|
[To]: {
|
|
30033
30035
|
address: "0x6Ef8c69CfE4635d866e3E02732068022c06e724D",
|
|
@@ -30053,7 +30055,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
30053
30055
|
},
|
|
30054
30056
|
sourceId: To
|
|
30055
30057
|
}), BS = 11155111, US = /* @__PURE__ */ u({
|
|
30056
|
-
|
|
30058
|
+
...$,
|
|
30057
30059
|
id: 11011,
|
|
30058
30060
|
name: "Shape Sepolia Testnet",
|
|
30059
30061
|
nativeCurrency: { name: "Sepolia Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -30070,7 +30072,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
30070
30072
|
}
|
|
30071
30073
|
},
|
|
30072
30074
|
contracts: {
|
|
30073
|
-
|
|
30075
|
+
...$.contracts,
|
|
30074
30076
|
multicall3: {
|
|
30075
30077
|
address: "0xca11bde05977b3631167028862be2a173976ca11",
|
|
30076
30078
|
blockCreated: 1
|
|
@@ -30256,7 +30258,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
30256
30258
|
}
|
|
30257
30259
|
},
|
|
30258
30260
|
testnet: !1
|
|
30259
|
-
}),
|
|
30261
|
+
}), LS = /* @__PURE__ */ u({
|
|
30260
30262
|
id: 2355,
|
|
30261
30263
|
name: "Silicon zkEVM",
|
|
30262
30264
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -30274,7 +30276,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
30274
30276
|
url: "https://scope.silicon.network"
|
|
30275
30277
|
}
|
|
30276
30278
|
}
|
|
30277
|
-
}),
|
|
30279
|
+
}), $S = /* @__PURE__ */ u({
|
|
30278
30280
|
id: 1722641160,
|
|
30279
30281
|
name: "Silicon Sepolia zkEVM",
|
|
30280
30282
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -30658,7 +30660,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
30658
30660
|
},
|
|
30659
30661
|
testnet: !0
|
|
30660
30662
|
}), Ps = 1, oP = /* @__PURE__ */ u({
|
|
30661
|
-
|
|
30663
|
+
...$,
|
|
30662
30664
|
id: 2192,
|
|
30663
30665
|
network: "snaxchain-mainnet",
|
|
30664
30666
|
name: "SnaxChain",
|
|
@@ -30676,7 +30678,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
30676
30678
|
}
|
|
30677
30679
|
},
|
|
30678
30680
|
contracts: {
|
|
30679
|
-
|
|
30681
|
+
...$.contracts,
|
|
30680
30682
|
disputeGameFactory: {
|
|
30681
30683
|
[Ps]: {
|
|
30682
30684
|
address: "0x472562Fcf26D6b2793f8E0b0fB660ba0E5e08A46"
|
|
@@ -30703,7 +30705,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
30703
30705
|
},
|
|
30704
30706
|
sourceId: Ps
|
|
30705
30707
|
}), Bs = 11155111, iP = /* @__PURE__ */ u({
|
|
30706
|
-
|
|
30708
|
+
...$,
|
|
30707
30709
|
id: 13001,
|
|
30708
30710
|
network: "snaxchain-testnet",
|
|
30709
30711
|
name: "SnaxChain Testnet",
|
|
@@ -30721,7 +30723,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
30721
30723
|
}
|
|
30722
30724
|
},
|
|
30723
30725
|
contracts: {
|
|
30724
|
-
|
|
30726
|
+
...$.contracts,
|
|
30725
30727
|
disputeGameFactory: {
|
|
30726
30728
|
[Bs]: {
|
|
30727
30729
|
address: "0x206a75d89d45F146C54020F132FF93bEDD09f55E"
|
|
@@ -30789,7 +30791,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
30789
30791
|
},
|
|
30790
30792
|
testnet: !0
|
|
30791
30793
|
}), Us = 1, uP = /* @__PURE__ */ u({
|
|
30792
|
-
|
|
30794
|
+
...$,
|
|
30793
30795
|
id: 1868,
|
|
30794
30796
|
name: "Soneium Mainnet",
|
|
30795
30797
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -30806,7 +30808,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
30806
30808
|
}
|
|
30807
30809
|
},
|
|
30808
30810
|
contracts: {
|
|
30809
|
-
|
|
30811
|
+
...$.contracts,
|
|
30810
30812
|
disputeGameFactory: {
|
|
30811
30813
|
[Us]: {
|
|
30812
30814
|
address: "0x512a3d2c7a43bd9261d2b8e8c9c70d4bd4d503c0"
|
|
@@ -30836,7 +30838,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
30836
30838
|
},
|
|
30837
30839
|
sourceId: Us
|
|
30838
30840
|
}), Is = 11155111, dP = /* @__PURE__ */ u({
|
|
30839
|
-
|
|
30841
|
+
...$,
|
|
30840
30842
|
id: 1946,
|
|
30841
30843
|
name: "Soneium Minato Testnet",
|
|
30842
30844
|
nativeCurrency: { name: "Sepolia Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -30853,7 +30855,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
30853
30855
|
}
|
|
30854
30856
|
},
|
|
30855
30857
|
contracts: {
|
|
30856
|
-
|
|
30858
|
+
...$.contracts,
|
|
30857
30859
|
disputeGameFactory: {
|
|
30858
30860
|
[Is]: {
|
|
30859
30861
|
address: "0xB3Ad2c38E6e0640d7ce6aA952AB3A60E81bf7a01"
|
|
@@ -31348,7 +31350,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
31348
31350
|
},
|
|
31349
31351
|
testnet: !1
|
|
31350
31352
|
}), Fs = 1, IP = /* @__PURE__ */ u({
|
|
31351
|
-
|
|
31353
|
+
...$,
|
|
31352
31354
|
id: 5330,
|
|
31353
31355
|
name: "Superseed",
|
|
31354
31356
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -31365,7 +31367,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
31365
31367
|
}
|
|
31366
31368
|
},
|
|
31367
31369
|
contracts: {
|
|
31368
|
-
|
|
31370
|
+
...$.contracts,
|
|
31369
31371
|
disputeGameFactory: {
|
|
31370
31372
|
[Fs]: {
|
|
31371
31373
|
address: "0x8b097CF1f9BbD9cbFD0DD561858a1FCbC8857Be0",
|
|
@@ -31396,7 +31398,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
31396
31398
|
},
|
|
31397
31399
|
sourceId: Fs
|
|
31398
31400
|
}), fc = 11155111, FP = /* @__PURE__ */ u({
|
|
31399
|
-
|
|
31401
|
+
...$,
|
|
31400
31402
|
id: 53302,
|
|
31401
31403
|
name: "Superseed Sepolia",
|
|
31402
31404
|
nativeCurrency: {
|
|
@@ -31417,7 +31419,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
31417
31419
|
}
|
|
31418
31420
|
},
|
|
31419
31421
|
contracts: {
|
|
31420
|
-
|
|
31422
|
+
...$.contracts,
|
|
31421
31423
|
multicall3: {
|
|
31422
31424
|
address: "0xcA11bde05977b3631167028862bE2a173976CA11"
|
|
31423
31425
|
},
|
|
@@ -31496,7 +31498,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
31496
31498
|
},
|
|
31497
31499
|
testnet: !0
|
|
31498
31500
|
}), NP = /* @__PURE__ */ u({
|
|
31499
|
-
|
|
31501
|
+
...$,
|
|
31500
31502
|
id: 1923,
|
|
31501
31503
|
name: "Swellchain",
|
|
31502
31504
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -31513,14 +31515,14 @@ const h4 = /* @__PURE__ */ u({
|
|
|
31513
31515
|
}
|
|
31514
31516
|
},
|
|
31515
31517
|
contracts: {
|
|
31516
|
-
|
|
31518
|
+
...$.contracts,
|
|
31517
31519
|
multicall3: {
|
|
31518
31520
|
address: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
31519
31521
|
blockCreated: 1
|
|
31520
31522
|
}
|
|
31521
31523
|
}
|
|
31522
31524
|
}), _P = /* @__PURE__ */ u({
|
|
31523
|
-
|
|
31525
|
+
...$,
|
|
31524
31526
|
id: 1924,
|
|
31525
31527
|
name: "Swellchain Testnet",
|
|
31526
31528
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -31537,7 +31539,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
31537
31539
|
}
|
|
31538
31540
|
},
|
|
31539
31541
|
contracts: {
|
|
31540
|
-
|
|
31542
|
+
...$.contracts,
|
|
31541
31543
|
multicall3: {
|
|
31542
31544
|
address: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
31543
31545
|
blockCreated: 1
|
|
@@ -31563,7 +31565,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
31563
31565
|
}
|
|
31564
31566
|
},
|
|
31565
31567
|
testnet: !1
|
|
31566
|
-
}),
|
|
31568
|
+
}), LP = /* @__PURE__ */ u({
|
|
31567
31569
|
id: 57,
|
|
31568
31570
|
name: "Syscoin Mainnet",
|
|
31569
31571
|
nativeCurrency: {
|
|
@@ -31590,7 +31592,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
31590
31592
|
blockCreated: 287139
|
|
31591
31593
|
}
|
|
31592
31594
|
}
|
|
31593
|
-
}),
|
|
31595
|
+
}), $P = /* @__PURE__ */ u({
|
|
31594
31596
|
id: 5700,
|
|
31595
31597
|
name: "Syscoin Tanenbaum Testnet",
|
|
31596
31598
|
nativeCurrency: {
|
|
@@ -31937,7 +31939,7 @@ Ci({
|
|
|
31937
31939
|
const lB = sB;
|
|
31938
31940
|
function ph(e) {
|
|
31939
31941
|
const { hash: t, payload: n, publicKey: r, signature: s } = e;
|
|
31940
|
-
return lB.verify(s, n instanceof Uint8Array ? n :
|
|
31942
|
+
return lB.verify(s, n instanceof Uint8Array ? n : $n(n), wu(r).substring(2), ...t ? [{ prehash: !0, lowS: !0 }] : []);
|
|
31941
31943
|
}
|
|
31942
31944
|
const uB = /* @__PURE__ */ new TextEncoder();
|
|
31943
31945
|
Array.from("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/").map((e, t) => [t, e.charCodeAt(0)]);
|
|
@@ -31976,7 +31978,7 @@ Uint8Array.from([
|
|
|
31976
31978
|
233
|
|
31977
31979
|
]);
|
|
31978
31980
|
function pB(e) {
|
|
31979
|
-
const { challenge: t, hash: n = !0, metadata: r, publicKey: s, signature: a } = e, { authenticatorData: o, challengeIndex: i, clientDataJSON: c, typeIndex: l, userVerificationRequired: d } = r, p =
|
|
31981
|
+
const { challenge: t, hash: n = !0, metadata: r, publicKey: s, signature: a } = e, { authenticatorData: o, challengeIndex: i, clientDataJSON: c, typeIndex: l, userVerificationRequired: d } = r, p = $n(o);
|
|
31980
31982
|
if (p.length < 37)
|
|
31981
31983
|
return !1;
|
|
31982
31984
|
const f = p[32];
|
|
@@ -32083,7 +32085,7 @@ function gs(e) {
|
|
|
32083
32085
|
serialized: t
|
|
32084
32086
|
});
|
|
32085
32087
|
}
|
|
32086
|
-
function
|
|
32088
|
+
function La(e) {
|
|
32087
32089
|
if (typeof e == "string")
|
|
32088
32090
|
return gs(e);
|
|
32089
32091
|
if (typeof e == "object" && e !== null && "r" in e && "s" in e && "yParity" in e)
|
|
@@ -32240,7 +32242,7 @@ function fB(e, t) {
|
|
|
32240
32242
|
})();
|
|
32241
32243
|
if (!r)
|
|
32242
32244
|
return !1;
|
|
32243
|
-
const s =
|
|
32245
|
+
const s = La(e);
|
|
32244
32246
|
if (s.type === "secp256k1")
|
|
32245
32247
|
return r ? bg({
|
|
32246
32248
|
address: r,
|
|
@@ -32360,7 +32362,7 @@ function kB(e) {
|
|
|
32360
32362
|
function CB(e, t = {}) {
|
|
32361
32363
|
return typeof e.expiry == "string" ? hh(e) : t.signature ? {
|
|
32362
32364
|
...e,
|
|
32363
|
-
signature:
|
|
32365
|
+
signature: La(t.signature)
|
|
32364
32366
|
} : e;
|
|
32365
32367
|
}
|
|
32366
32368
|
function hh(e) {
|
|
@@ -32600,7 +32602,7 @@ class zB extends K {
|
|
|
32600
32602
|
});
|
|
32601
32603
|
}
|
|
32602
32604
|
}
|
|
32603
|
-
class
|
|
32605
|
+
class LB extends K {
|
|
32604
32606
|
constructor({ maxPriorityFeePerGas: t, maxFeePerGas: n } = {}) {
|
|
32605
32607
|
super([
|
|
32606
32608
|
`The provided tip (\`maxPriorityFeePerGas\`${t ? ` = ${wl(t)} gwei` : ""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n ? ` = ${wl(n)} gwei` : ""}).`
|
|
@@ -32613,7 +32615,7 @@ class $B extends K {
|
|
|
32613
32615
|
});
|
|
32614
32616
|
}
|
|
32615
32617
|
}
|
|
32616
|
-
const
|
|
32618
|
+
const $B = "0x78", HB = "0x76", kp = "tempo";
|
|
32617
32619
|
function zu(e) {
|
|
32618
32620
|
const { calls: t, chainId: n, maxFeePerGas: r, maxPriorityFeePerGas: s, validBefore: a, validAfter: o } = e;
|
|
32619
32621
|
if (!t || t.length === 0)
|
|
@@ -32633,7 +32635,7 @@ function zu(e) {
|
|
|
32633
32635
|
feeCap: r
|
|
32634
32636
|
});
|
|
32635
32637
|
if (s && r && s > r)
|
|
32636
|
-
throw new
|
|
32638
|
+
throw new LB({
|
|
32637
32639
|
maxFeePerGas: r,
|
|
32638
32640
|
maxPriorityFeePerGas: s
|
|
32639
32641
|
});
|
|
@@ -32686,7 +32688,7 @@ function jB(e, t = {}) {
|
|
|
32686
32688
|
const { feePayerSignature: n, signature: r } = t, s = typeof e == "string" ? GB(e) : e;
|
|
32687
32689
|
return zu(s), {
|
|
32688
32690
|
...s,
|
|
32689
|
-
...r ? { signature:
|
|
32691
|
+
...r ? { signature: La(r) } : {},
|
|
32690
32692
|
...n ? { feePayerSignature: Ai(n) } : {},
|
|
32691
32693
|
type: "tempo"
|
|
32692
32694
|
};
|
|
@@ -32718,9 +32720,9 @@ function zs(e, t = {}) {
|
|
|
32718
32720
|
U,
|
|
32719
32721
|
B,
|
|
32720
32722
|
...c ? [TB(c)] : [],
|
|
32721
|
-
...P ? [Bi(
|
|
32723
|
+
...P ? [Bi(La(P))] : []
|
|
32722
32724
|
];
|
|
32723
|
-
return Ee(t.format === "feePayer" ?
|
|
32725
|
+
return Ee(t.format === "feePayer" ? $B : HB, U3(k));
|
|
32724
32726
|
}
|
|
32725
32727
|
function VB(e) {
|
|
32726
32728
|
return qB(e, { presign: !0 });
|
|
@@ -32765,7 +32767,7 @@ function wh(e) {
|
|
|
32765
32767
|
const t = e.account;
|
|
32766
32768
|
return t != null && t.keyType && t.keyType !== "secp256k1" || typeof e.calls < "u" || typeof e.feePayer < "u" || typeof e.feeToken < "u" || typeof e.keyAuthorization < "u" || typeof e.nonceKey < "u" || typeof e.signature < "u" || typeof e.validBefore < "u" || typeof e.validAfter < "u" ? "tempo" : e.type ? e.type : Yl(e);
|
|
32767
32769
|
}
|
|
32768
|
-
function
|
|
32770
|
+
function Lu(e) {
|
|
32769
32771
|
try {
|
|
32770
32772
|
return wh(e) === "tempo";
|
|
32771
32773
|
} catch {
|
|
@@ -32773,7 +32775,7 @@ function $u(e) {
|
|
|
32773
32775
|
}
|
|
32774
32776
|
}
|
|
32775
32777
|
async function XB(e, t) {
|
|
32776
|
-
if (
|
|
32778
|
+
if (!Lu(e)) {
|
|
32777
32779
|
if (t && "type" in t && t.type !== "secp256k1")
|
|
32778
32780
|
throw new Error("Unsupported signature type. Expected `secp256k1` but got `" + t.type + "`.");
|
|
32779
32781
|
if (t && "type" in t) {
|
|
@@ -32798,7 +32800,7 @@ async function QB(e, t) {
|
|
|
32798
32800
|
if (t && "type" in t)
|
|
32799
32801
|
return t;
|
|
32800
32802
|
if (t)
|
|
32801
|
-
return
|
|
32803
|
+
return La({
|
|
32802
32804
|
r: BigInt(t.r),
|
|
32803
32805
|
s: BigInt(t.s),
|
|
32804
32806
|
yParity: Number(t.yParity)
|
|
@@ -32860,7 +32862,7 @@ async function QB(e, t) {
|
|
|
32860
32862
|
);
|
|
32861
32863
|
}
|
|
32862
32864
|
function JB(e) {
|
|
32863
|
-
if (
|
|
32865
|
+
if (!Lu(e))
|
|
32864
32866
|
return Er(e);
|
|
32865
32867
|
const { feePayerSignature: t, gasPrice: n, nonce: r, ...s } = UB(e);
|
|
32866
32868
|
return {
|
|
@@ -32881,8 +32883,8 @@ function YB(e) {
|
|
|
32881
32883
|
return Ei(e);
|
|
32882
32884
|
}
|
|
32883
32885
|
function eU(e, t) {
|
|
32884
|
-
const n = e, r = n.account ?
|
|
32885
|
-
if (
|
|
32886
|
+
const n = e, r = n.account ? me(n.account) : void 0;
|
|
32887
|
+
if (!Lu(n))
|
|
32886
32888
|
return Ot(e);
|
|
32887
32889
|
t && (n.calls = n.calls ?? [
|
|
32888
32890
|
{
|
|
@@ -32906,7 +32908,7 @@ function eU(e, t) {
|
|
|
32906
32908
|
...i ? { keyId: i } : {},
|
|
32907
32909
|
...a ? { keyType: a } : {},
|
|
32908
32910
|
...n.feePayer ? {
|
|
32909
|
-
feePayer: typeof n.feePayer == "object" ?
|
|
32911
|
+
feePayer: typeof n.feePayer == "object" ? me(n.feePayer) : n.feePayer
|
|
32910
32912
|
} : {}
|
|
32911
32913
|
};
|
|
32912
32914
|
}
|
|
@@ -32932,7 +32934,7 @@ function aU(e, t) {
|
|
|
32932
32934
|
const r = n.counter;
|
|
32933
32935
|
return n.counter++, r === 0 ? 0n : ve(If(6));
|
|
32934
32936
|
}
|
|
32935
|
-
const
|
|
32937
|
+
const $u = {
|
|
32936
32938
|
blockTime: 1e3,
|
|
32937
32939
|
extendSchema: A8(),
|
|
32938
32940
|
formatters: {
|
|
@@ -33001,7 +33003,7 @@ const Lu = {
|
|
|
33001
33003
|
return await q(e, _a, "verifyHash")({ ...t, chain: null });
|
|
33002
33004
|
}
|
|
33003
33005
|
}, oU = /* @__PURE__ */ u({
|
|
33004
|
-
|
|
33006
|
+
...$u,
|
|
33005
33007
|
id: 42429,
|
|
33006
33008
|
name: "Tempo Devnet",
|
|
33007
33009
|
nativeCurrency: {
|
|
@@ -33016,7 +33018,7 @@ const Lu = {
|
|
|
33016
33018
|
}
|
|
33017
33019
|
}
|
|
33018
33020
|
}), iU = /* @__PURE__ */ u({
|
|
33019
|
-
|
|
33021
|
+
...$u,
|
|
33020
33022
|
id: 1337,
|
|
33021
33023
|
name: "Tempo",
|
|
33022
33024
|
nativeCurrency: {
|
|
@@ -33028,7 +33030,7 @@ const Lu = {
|
|
|
33028
33030
|
default: { http: ["http://localhost:8545"] }
|
|
33029
33031
|
}
|
|
33030
33032
|
}), cU = /* @__PURE__ */ u({
|
|
33031
|
-
|
|
33033
|
+
...$u,
|
|
33032
33034
|
id: 42429,
|
|
33033
33035
|
blockExplorers: {
|
|
33034
33036
|
default: {
|
|
@@ -33417,7 +33419,7 @@ const Lu = {
|
|
|
33417
33419
|
},
|
|
33418
33420
|
testnet: !0
|
|
33419
33421
|
}), Po = 1, BU = /* @__PURE__ */ u({
|
|
33420
|
-
|
|
33422
|
+
...$,
|
|
33421
33423
|
id: 130,
|
|
33422
33424
|
name: "Unichain",
|
|
33423
33425
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -33435,7 +33437,7 @@ const Lu = {
|
|
|
33435
33437
|
}
|
|
33436
33438
|
},
|
|
33437
33439
|
contracts: {
|
|
33438
|
-
|
|
33440
|
+
...$.contracts,
|
|
33439
33441
|
multicall3: {
|
|
33440
33442
|
address: "0xca11bde05977b3631167028862be2a173976ca11",
|
|
33441
33443
|
blockCreated: 0
|
|
@@ -33458,7 +33460,7 @@ const Lu = {
|
|
|
33458
33460
|
},
|
|
33459
33461
|
sourceId: Po
|
|
33460
33462
|
}), Bo = 11155111, UU = /* @__PURE__ */ u({
|
|
33461
|
-
|
|
33463
|
+
...$,
|
|
33462
33464
|
id: 1301,
|
|
33463
33465
|
name: "Unichain Sepolia",
|
|
33464
33466
|
nativeCurrency: {
|
|
@@ -33480,7 +33482,7 @@ const Lu = {
|
|
|
33480
33482
|
}
|
|
33481
33483
|
},
|
|
33482
33484
|
contracts: {
|
|
33483
|
-
|
|
33485
|
+
...$.contracts,
|
|
33484
33486
|
multicall3: {
|
|
33485
33487
|
address: "0xca11bde05977b3631167028862be2a173976ca11",
|
|
33486
33488
|
blockCreated: 0
|
|
@@ -33688,7 +33690,7 @@ const Lu = {
|
|
|
33688
33690
|
}
|
|
33689
33691
|
},
|
|
33690
33692
|
testnet: !1
|
|
33691
|
-
}),
|
|
33693
|
+
}), LU = /* @__PURE__ */ u({
|
|
33692
33694
|
id: 88,
|
|
33693
33695
|
name: "Viction",
|
|
33694
33696
|
nativeCurrency: { name: "Viction", symbol: "VIC", decimals: 18 },
|
|
@@ -33704,7 +33706,7 @@ const Lu = {
|
|
|
33704
33706
|
}
|
|
33705
33707
|
},
|
|
33706
33708
|
testnet: !1
|
|
33707
|
-
}),
|
|
33709
|
+
}), $U = /* @__PURE__ */ u({
|
|
33708
33710
|
id: 89,
|
|
33709
33711
|
name: "Viction Testnet",
|
|
33710
33712
|
nativeCurrency: { name: "Viction", symbol: "VIC", decimals: 18 },
|
|
@@ -33929,7 +33931,7 @@ const Lu = {
|
|
|
33929
33931
|
},
|
|
33930
33932
|
testnet: !0
|
|
33931
33933
|
}), Ds = 1, YU = /* @__PURE__ */ u({
|
|
33932
|
-
|
|
33934
|
+
...$,
|
|
33933
33935
|
id: 480,
|
|
33934
33936
|
name: "World Chain",
|
|
33935
33937
|
network: "worldchain",
|
|
@@ -33950,7 +33952,7 @@ const Lu = {
|
|
|
33950
33952
|
}
|
|
33951
33953
|
},
|
|
33952
33954
|
contracts: {
|
|
33953
|
-
|
|
33955
|
+
...$.contracts,
|
|
33954
33956
|
multicall3: {
|
|
33955
33957
|
address: "0xca11bde05977b3631167028862be2a173976ca11",
|
|
33956
33958
|
blockCreated: 0
|
|
@@ -33979,7 +33981,7 @@ const Lu = {
|
|
|
33979
33981
|
testnet: !1,
|
|
33980
33982
|
sourceId: Ds
|
|
33981
33983
|
}), Os = 11155111, eI = /* @__PURE__ */ u({
|
|
33982
|
-
|
|
33984
|
+
...$,
|
|
33983
33985
|
id: 4801,
|
|
33984
33986
|
name: "World Chain Sepolia",
|
|
33985
33987
|
network: "worldchain-sepolia",
|
|
@@ -34000,7 +34002,7 @@ const Lu = {
|
|
|
34000
34002
|
}
|
|
34001
34003
|
},
|
|
34002
34004
|
contracts: {
|
|
34003
|
-
|
|
34005
|
+
...$.contracts,
|
|
34004
34006
|
multicall3: {
|
|
34005
34007
|
address: "0xca11bde05977b3631167028862be2a173976ca11",
|
|
34006
34008
|
blockCreated: 0
|
|
@@ -34569,7 +34571,7 @@ const Lu = {
|
|
|
34569
34571
|
},
|
|
34570
34572
|
testnet: !0
|
|
34571
34573
|
}), mc = 1, TI = /* @__PURE__ */ u({
|
|
34572
|
-
|
|
34574
|
+
...$,
|
|
34573
34575
|
id: 48900,
|
|
34574
34576
|
name: "Zircuit Mainnet",
|
|
34575
34577
|
nativeCurrency: {
|
|
@@ -34615,7 +34617,7 @@ const Lu = {
|
|
|
34615
34617
|
},
|
|
34616
34618
|
testnet: !1
|
|
34617
34619
|
}), hc = 11155111, SI = /* @__PURE__ */ u({
|
|
34618
|
-
|
|
34620
|
+
...$,
|
|
34619
34621
|
id: 48898,
|
|
34620
34622
|
name: "Zircuit Garfield Testnet",
|
|
34621
34623
|
nativeCurrency: { name: "ETH", symbol: "ETH", decimals: 18 },
|
|
@@ -34652,7 +34654,7 @@ const Lu = {
|
|
|
34652
34654
|
},
|
|
34653
34655
|
testnet: !0
|
|
34654
34656
|
}), bc = 11155111, PI = /* @__PURE__ */ u({
|
|
34655
|
-
|
|
34657
|
+
...$,
|
|
34656
34658
|
id: 48899,
|
|
34657
34659
|
name: "Zircuit Testnet",
|
|
34658
34660
|
nativeCurrency: { name: "ETH", symbol: "ETH", decimals: 18 },
|
|
@@ -34929,7 +34931,7 @@ const Lu = {
|
|
|
34929
34931
|
},
|
|
34930
34932
|
testnet: !0
|
|
34931
34933
|
}), Uo = 1, RI = /* @__PURE__ */ u({
|
|
34932
|
-
|
|
34934
|
+
...$,
|
|
34933
34935
|
id: 7777777,
|
|
34934
34936
|
name: "Zora",
|
|
34935
34937
|
nativeCurrency: {
|
|
@@ -34951,7 +34953,7 @@ const Lu = {
|
|
|
34951
34953
|
}
|
|
34952
34954
|
},
|
|
34953
34955
|
contracts: {
|
|
34954
|
-
|
|
34956
|
+
...$.contracts,
|
|
34955
34957
|
l2OutputOracle: {
|
|
34956
34958
|
[Uo]: {
|
|
34957
34959
|
address: "0x9E6204F750cD866b299594e2aC9eA824E2e5f95c"
|
|
@@ -34974,7 +34976,7 @@ const Lu = {
|
|
|
34974
34976
|
},
|
|
34975
34977
|
sourceId: Uo
|
|
34976
34978
|
}), Io = 11155111, NI = /* @__PURE__ */ u({
|
|
34977
|
-
|
|
34979
|
+
...$,
|
|
34978
34980
|
id: 999999999,
|
|
34979
34981
|
name: "Zora Sepolia",
|
|
34980
34982
|
network: "zora-sepolia",
|
|
@@ -34997,7 +34999,7 @@ const Lu = {
|
|
|
34997
34999
|
}
|
|
34998
35000
|
},
|
|
34999
35001
|
contracts: {
|
|
35000
|
-
|
|
35002
|
+
...$.contracts,
|
|
35001
35003
|
l2OutputOracle: {
|
|
35002
35004
|
[Io]: {
|
|
35003
35005
|
address: "0x2615B481Bd3E5A1C0C7Ca3Da1bdc663E8615Ade9"
|
|
@@ -35021,7 +35023,7 @@ const Lu = {
|
|
|
35021
35023
|
sourceId: Io,
|
|
35022
35024
|
testnet: !0
|
|
35023
35025
|
}), Pp = 5, _I = /* @__PURE__ */ u({
|
|
35024
|
-
|
|
35026
|
+
...$,
|
|
35025
35027
|
id: 999,
|
|
35026
35028
|
name: "Zora Goerli Testnet",
|
|
35027
35029
|
nativeCurrency: {
|
|
@@ -35043,7 +35045,7 @@ const Lu = {
|
|
|
35043
35045
|
}
|
|
35044
35046
|
},
|
|
35045
35047
|
contracts: {
|
|
35046
|
-
|
|
35048
|
+
...$.contracts,
|
|
35047
35049
|
multicall3: {
|
|
35048
35050
|
address: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
35049
35051
|
blockCreated: 189123
|
|
@@ -35101,7 +35103,7 @@ const Lu = {
|
|
|
35101
35103
|
avalanche: RE,
|
|
35102
35104
|
avalancheFuji: NE,
|
|
35103
35105
|
b3: zE,
|
|
35104
|
-
b3Sepolia:
|
|
35106
|
+
b3Sepolia: $E,
|
|
35105
35107
|
bahamut: HE,
|
|
35106
35108
|
base: sh,
|
|
35107
35109
|
baseGoerli: VE,
|
|
@@ -35197,8 +35199,8 @@ const Lu = {
|
|
|
35197
35199
|
diode: N9,
|
|
35198
35200
|
disChain: _9,
|
|
35199
35201
|
dodochainTestnet: z9,
|
|
35200
|
-
dogechain:
|
|
35201
|
-
domaTestnet:
|
|
35202
|
+
dogechain: L9,
|
|
35203
|
+
domaTestnet: $9,
|
|
35202
35204
|
donatuz: H9,
|
|
35203
35205
|
dosChain: G9,
|
|
35204
35206
|
dosChainTestnet: j9,
|
|
@@ -35252,8 +35254,8 @@ const Lu = {
|
|
|
35252
35254
|
flare: Nk,
|
|
35253
35255
|
flareTestnet: _k,
|
|
35254
35256
|
flowMainnet: zk,
|
|
35255
|
-
flowPreviewnet:
|
|
35256
|
-
flowTestnet:
|
|
35257
|
+
flowPreviewnet: Lk,
|
|
35258
|
+
flowTestnet: $k,
|
|
35257
35259
|
fluence: Hk,
|
|
35258
35260
|
fluenceStage: Gk,
|
|
35259
35261
|
fluenceTestnet: jk,
|
|
@@ -35306,8 +35308,8 @@ const Lu = {
|
|
|
35306
35308
|
hederaPreviewnet: NC,
|
|
35307
35309
|
hederaTestnet: _C,
|
|
35308
35310
|
hela: zC,
|
|
35309
|
-
heliosTestnet:
|
|
35310
|
-
hemi:
|
|
35311
|
+
heliosTestnet: LC,
|
|
35312
|
+
hemi: $C,
|
|
35311
35313
|
hemiSepolia: HC,
|
|
35312
35314
|
henesys: GC,
|
|
35313
35315
|
holesky: jC,
|
|
@@ -35359,8 +35361,8 @@ const Lu = {
|
|
|
35359
35361
|
juneoLINK1Chain: Rv,
|
|
35360
35362
|
juneoLTC1Chain: Nv,
|
|
35361
35363
|
juneoSGD1Chain: zv,
|
|
35362
|
-
juneoSocotraTestnet:
|
|
35363
|
-
juneoUSD1Chain:
|
|
35364
|
+
juneoSocotraTestnet: Lv,
|
|
35365
|
+
juneoUSD1Chain: $v,
|
|
35364
35366
|
juneoUSDT1Chain: Hv,
|
|
35365
35367
|
juneomBTC1Chain: _v,
|
|
35366
35368
|
kaia: Gv,
|
|
@@ -35413,8 +35415,8 @@ const Lu = {
|
|
|
35413
35415
|
mantle: N4,
|
|
35414
35416
|
mantleSepoliaTestnet: _4,
|
|
35415
35417
|
mantleTestnet: z4,
|
|
35416
|
-
mantraDuKongEVMTestnet:
|
|
35417
|
-
mantraEVM:
|
|
35418
|
+
mantraDuKongEVMTestnet: L4,
|
|
35419
|
+
mantraEVM: $4,
|
|
35418
35420
|
mapProtocol: H4,
|
|
35419
35421
|
matchain: G4,
|
|
35420
35422
|
matchainTestnet: j4,
|
|
@@ -35466,8 +35468,8 @@ const Lu = {
|
|
|
35466
35468
|
nomina: NA,
|
|
35467
35469
|
oasisTestnet: _A,
|
|
35468
35470
|
oasys: zA,
|
|
35469
|
-
odysseyTestnet:
|
|
35470
|
-
okc:
|
|
35471
|
+
odysseyTestnet: LA,
|
|
35472
|
+
okc: $A,
|
|
35471
35473
|
omax: HA,
|
|
35472
35474
|
omni: GA,
|
|
35473
35475
|
omniOmega: jA,
|
|
@@ -35515,8 +35517,8 @@ const Lu = {
|
|
|
35515
35517
|
premiumBlockTestnet: NT,
|
|
35516
35518
|
pulsechain: _T,
|
|
35517
35519
|
pulsechainV4: zT,
|
|
35518
|
-
pumpfiTestnet:
|
|
35519
|
-
pyrope:
|
|
35520
|
+
pumpfiTestnet: LT,
|
|
35521
|
+
pyrope: $T,
|
|
35520
35522
|
qMainnet: GT,
|
|
35521
35523
|
qTestnet: jT,
|
|
35522
35524
|
ql1: HT,
|
|
@@ -35568,8 +35570,8 @@ const Lu = {
|
|
|
35568
35570
|
shimmerTestnet: NS,
|
|
35569
35571
|
sidraChain: _S,
|
|
35570
35572
|
silentData: zS,
|
|
35571
|
-
silicon:
|
|
35572
|
-
siliconSepolia:
|
|
35573
|
+
silicon: LS,
|
|
35574
|
+
siliconSepolia: $S,
|
|
35573
35575
|
sixProtocol: HS,
|
|
35574
35576
|
skaleBase: tP,
|
|
35575
35577
|
skaleBaseSepoliaTestnet: nP,
|
|
@@ -35624,8 +35626,8 @@ const Lu = {
|
|
|
35624
35626
|
swellchain: NP,
|
|
35625
35627
|
swellchainTestnet: _P,
|
|
35626
35628
|
swissdlt: zP,
|
|
35627
|
-
syscoin:
|
|
35628
|
-
syscoinTestnet:
|
|
35629
|
+
syscoin: LP,
|
|
35630
|
+
syscoinTestnet: $P,
|
|
35629
35631
|
tac: HP,
|
|
35630
35632
|
tacSPB: GP,
|
|
35631
35633
|
taiko: jP,
|
|
@@ -35674,8 +35676,8 @@ const Lu = {
|
|
|
35674
35676
|
vanar: NU,
|
|
35675
35677
|
vechain: _U,
|
|
35676
35678
|
velas: zU,
|
|
35677
|
-
viction:
|
|
35678
|
-
victionTestnet:
|
|
35679
|
+
viction: LU,
|
|
35680
|
+
victionTestnet: $U,
|
|
35679
35681
|
vision: HU,
|
|
35680
35682
|
visionTestnet: GU,
|
|
35681
35683
|
wanchain: jU,
|
|
@@ -35741,7 +35743,7 @@ const Lu = {
|
|
|
35741
35743
|
zora: RI,
|
|
35742
35744
|
zoraSepolia: NI,
|
|
35743
35745
|
zoraTestnet: _I
|
|
35744
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
35746
|
+
}, Symbol.toStringTag, { value: "Module" })), LI = (e, t) => {
|
|
35745
35747
|
const n = Object.values(zI).find((o) => o.id === e);
|
|
35746
35748
|
if (!n)
|
|
35747
35749
|
return {
|
|
@@ -35756,7 +35758,7 @@ const Lu = {
|
|
|
35756
35758
|
walletClient: s,
|
|
35757
35759
|
publicClient: a
|
|
35758
35760
|
};
|
|
35759
|
-
},
|
|
35761
|
+
}, $I = () => /* @__PURE__ */ pn("div", { className: "twap-error-fallback", children: /* @__PURE__ */ pn(
|
|
35760
35762
|
"p",
|
|
35761
35763
|
{
|
|
35762
35764
|
style: {
|
|
@@ -35773,13 +35775,13 @@ function HI({ children: e }) {
|
|
|
35773
35775
|
return /* @__PURE__ */ pn(
|
|
35774
35776
|
hy,
|
|
35775
35777
|
{
|
|
35776
|
-
FallbackComponent:
|
|
35778
|
+
FallbackComponent: $I,
|
|
35777
35779
|
onError: (t) => Ae.onCrash(t),
|
|
35778
35780
|
children: /* @__PURE__ */ pn(Ih, { children: e })
|
|
35779
35781
|
}
|
|
35780
35782
|
);
|
|
35781
35783
|
}
|
|
35782
|
-
const kh =
|
|
35784
|
+
const kh = $p(null), GI = new ey({
|
|
35783
35785
|
defaultOptions: {
|
|
35784
35786
|
queries: {
|
|
35785
35787
|
refetchOnWindowFocus: !1
|
|
@@ -35829,7 +35831,7 @@ const kh = Lp(null), GI = new ey({
|
|
|
35829
35831
|
return {
|
|
35830
35832
|
isLoading: !1,
|
|
35831
35833
|
noLiquidity: !1,
|
|
35832
|
-
value:
|
|
35834
|
+
value: $r(s || "0", t == null ? void 0 : t.decimals)
|
|
35833
35835
|
};
|
|
35834
35836
|
if (_(e.value || 0).isZero() || _(s || 0).isZero())
|
|
35835
35837
|
return e;
|
|
@@ -35840,7 +35842,7 @@ const kh = Lp(null), GI = new ey({
|
|
|
35840
35842
|
};
|
|
35841
35843
|
}, [e, s, t, n, r]), qI = (e) => {
|
|
35842
35844
|
const t = Yo(), { walletClient: n, publicClient: r } = W(
|
|
35843
|
-
() =>
|
|
35845
|
+
() => LI(e.chainId, e.provider),
|
|
35844
35846
|
[e.chainId, e.provider]
|
|
35845
35847
|
), s = W(
|
|
35846
35848
|
() => B1(e.partner),
|
|
@@ -35960,7 +35962,7 @@ function ZI(e, t = 6, n = 8) {
|
|
|
35960
35962
|
return e || "";
|
|
35961
35963
|
}
|
|
35962
35964
|
}
|
|
35963
|
-
const Ch = (e, t) => W(() =>
|
|
35965
|
+
const Ch = (e, t) => W(() => $r(t, e), [e, t]), Ui = (e, t) => W(() => gt(t, e), [e, t]), Hu = () => {
|
|
35964
35966
|
const { chainId: e } = X();
|
|
35965
35967
|
return W(() => ls(e), [e]);
|
|
35966
35968
|
}, lD = (e) => {
|
|
@@ -36051,7 +36053,7 @@ const YI = (e, t) => W(() => ZI(e == null ? void 0 : e.toString(), t), [e, t]),
|
|
|
36051
36053
|
typedChunks: g
|
|
36052
36054
|
}),
|
|
36053
36055
|
[o]
|
|
36054
|
-
), f = W(() =>
|
|
36056
|
+
), f = W(() => L1(i || "", d), [i, d]), m = Ui(e == null ? void 0 : e.decimals, f), y = W(() => t ? _(m || "0").times(t || 0).toString() : "0", [m, t]);
|
|
36055
36057
|
return {
|
|
36056
36058
|
totalTrades: d,
|
|
36057
36059
|
maxTrades: l,
|
|
@@ -36160,7 +36162,7 @@ const YI = (e, t) => W(() => ZI(e == null ? void 0 : e.toString(), t), [e, t]),
|
|
|
36160
36162
|
const { srcUsd1Token: o, dstUsd1Token: i } = X(), { isInverted: c } = ju(), l = W(() => _((() => {
|
|
36161
36163
|
if (e !== void 0) {
|
|
36162
36164
|
const P = c ? _(e).isZero() ? _(0) : _(1).div(e) : _(e);
|
|
36163
|
-
return
|
|
36165
|
+
return $r(P.toFixed(), t);
|
|
36164
36166
|
}
|
|
36165
36167
|
if (r !== void 0 && _(n || "0").gt(0) && !_(n || "0").isNaN()) {
|
|
36166
36168
|
const P = _(n || "0"), B = _(r || 0).div(100);
|
|
@@ -36218,7 +36220,7 @@ const YI = (e, t) => W(() => ZI(e == null ? void 0 : e.toString(), t), [e, t]),
|
|
|
36218
36220
|
const { module: t, marketPrice: n, typedInputAmount: r } = X();
|
|
36219
36221
|
return W(() => {
|
|
36220
36222
|
if (_(r || "0").isZero() || !n || t !== te.STOP_LOSS && t !== te.TAKE_PROFIT) return;
|
|
36221
|
-
const s =
|
|
36223
|
+
const s = $1(n || "", e || "", t);
|
|
36222
36224
|
if (s != null && s.isError)
|
|
36223
36225
|
return {
|
|
36224
36226
|
type: qe.STOP_LOSS_TRIGGER_PRICE_GREATER_THAN_MARKET_PRICE,
|
|
@@ -36295,7 +36297,7 @@ const YI = (e, t) => W(() => ZI(e == null ? void 0 : e.toString(), t), [e, t]),
|
|
|
36295
36297
|
};
|
|
36296
36298
|
}, aF = () => {
|
|
36297
36299
|
const { module: e } = X(), t = ne((n) => n.state.isMarketOrder);
|
|
36298
|
-
return W(() => e === te.TWAP ? t ?
|
|
36300
|
+
return W(() => e === te.TWAP ? t ? fe.TWAP_MARKET : fe.TWAP_LIMIT : e === te.LIMIT ? fe.LIMIT : e === te.STOP_LOSS ? t ? fe.STOP_LOSS_MARKET : fe.STOP_LOSS_LIMIT : e === te.TAKE_PROFIT ? fe.TAKE_PROFIT : fe.TWAP_MARKET, [e, t]);
|
|
36299
36301
|
}, Ah = () => {
|
|
36300
36302
|
const { account: e, config: t, chainId: n, isDev: r } = X();
|
|
36301
36303
|
return W(
|
|
@@ -36319,7 +36321,7 @@ const YI = (e, t) => W(() => ZI(e == null ? void 0 : e.toString(), t), [e, t]),
|
|
|
36319
36321
|
s && s.filter((c) => c.version === 2).forEach((c) => {
|
|
36320
36322
|
var d;
|
|
36321
36323
|
const l = r.find((p) => p.id === c.id);
|
|
36322
|
-
l && l.progress !== c.progress && (a = !0, o.push(l), l.status ===
|
|
36324
|
+
l && l.progress !== c.progress && (a = !0, o.push(l), l.status === Le.Completed && ((d = e == null ? void 0 : e.onOrderFilled) == null || d.call(e, l)));
|
|
36323
36325
|
}), a && ((i = e == null ? void 0 : e.onOrdersProgressUpdate) == null || i.call(e, o));
|
|
36324
36326
|
},
|
|
36325
36327
|
[t, n, e]
|
|
@@ -36373,10 +36375,10 @@ const YI = (e, t) => W(() => ZI(e == null ? void 0 : e.toString(), t), [e, t]),
|
|
|
36373
36375
|
return W(() => ({
|
|
36374
36376
|
orders: {
|
|
36375
36377
|
all: e ?? [],
|
|
36376
|
-
open: Fo(e ?? [],
|
|
36377
|
-
completed: Fo(e ?? [],
|
|
36378
|
-
cancelled: Fo(e ?? [],
|
|
36379
|
-
expired: Fo(e ?? [],
|
|
36378
|
+
open: Fo(e ?? [], Le.Open),
|
|
36379
|
+
completed: Fo(e ?? [], Le.Completed),
|
|
36380
|
+
cancelled: Fo(e ?? [], Le.Cancelled),
|
|
36381
|
+
expired: Fo(e ?? [], Le.Expired)
|
|
36380
36382
|
},
|
|
36381
36383
|
isLoading: t,
|
|
36382
36384
|
isRefetching: r,
|
|
@@ -36418,7 +36420,7 @@ const YI = (e, t) => W(() => ZI(e == null ? void 0 : e.toString(), t), [e, t]),
|
|
|
36418
36420
|
recipient: e.maker || "",
|
|
36419
36421
|
srcAmount: e.srcAmount || "",
|
|
36420
36422
|
srcAmountUI: gt(e.srcAmount, t == null ? void 0 : t.decimals),
|
|
36421
|
-
limitPrice:
|
|
36423
|
+
limitPrice: $r(s, n == null ? void 0 : n.decimals),
|
|
36422
36424
|
limitPriceUI: s || "",
|
|
36423
36425
|
sizePerTrade: e.srcAmountPerTrade || "",
|
|
36424
36426
|
sizePerTradeUI: gt(e.srcAmountPerTrade, t == null ? void 0 : t.decimals),
|
|
@@ -36429,7 +36431,7 @@ const YI = (e, t) => W(() => ZI(e == null ? void 0 : e.toString(), t), [e, t]),
|
|
|
36429
36431
|
),
|
|
36430
36432
|
dstMinAmount: e.dstMinAmountTotal,
|
|
36431
36433
|
dstMinAmountUI: gt(e.dstMinAmountTotal, n == null ? void 0 : n.decimals),
|
|
36432
|
-
triggerPrice:
|
|
36434
|
+
triggerPrice: $r(a, n == null ? void 0 : n.decimals),
|
|
36433
36435
|
triggerPriceUI: a || "",
|
|
36434
36436
|
id: e.id,
|
|
36435
36437
|
amountInFilled: e.srcAmountFilled,
|
|
@@ -36437,7 +36439,7 @@ const YI = (e, t) => W(() => ZI(e == null ? void 0 : e.toString(), t), [e, t]),
|
|
|
36437
36439
|
amountOutFilled: e.dstAmountFilled,
|
|
36438
36440
|
amountOutFilledUI: gt(e.dstAmountFilled, n == null ? void 0 : n.decimals),
|
|
36439
36441
|
progress: e.progress,
|
|
36440
|
-
executionPrice:
|
|
36442
|
+
executionPrice: $r(o, n == null ? void 0 : n.decimals),
|
|
36441
36443
|
executionPriceUI: o,
|
|
36442
36444
|
version: e.version
|
|
36443
36445
|
};
|
|
@@ -37102,7 +37104,7 @@ const AF = () => {
|
|
|
37102
37104
|
throw new Error("orders not found");
|
|
37103
37105
|
if (t.every((o) => {
|
|
37104
37106
|
const i = s.find((c) => c.id === o);
|
|
37105
|
-
return (i == null ? void 0 : i.status) ===
|
|
37107
|
+
return (i == null ? void 0 : i.status) === Le.Cancelled;
|
|
37106
37108
|
}))
|
|
37107
37109
|
return;
|
|
37108
37110
|
await new Promise((o) => setTimeout(o, 1e3));
|
|
@@ -37201,9 +37203,9 @@ export {
|
|
|
37201
37203
|
Hu as M,
|
|
37202
37204
|
Yo as N,
|
|
37203
37205
|
te as O,
|
|
37204
|
-
|
|
37206
|
+
Le as P,
|
|
37205
37207
|
s1 as Q,
|
|
37206
|
-
|
|
37208
|
+
fe as R,
|
|
37207
37209
|
oD as S,
|
|
37208
37210
|
Je as T,
|
|
37209
37211
|
Yt as U,
|
|
@@ -37227,14 +37229,14 @@ export {
|
|
|
37227
37229
|
FF as aa,
|
|
37228
37230
|
DF as ab,
|
|
37229
37231
|
OF as ac,
|
|
37230
|
-
|
|
37232
|
+
$e as ad,
|
|
37231
37233
|
t1 as ae,
|
|
37232
37234
|
IF as af,
|
|
37233
37235
|
n1 as ag,
|
|
37234
37236
|
r1 as ah,
|
|
37235
37237
|
Ht as ai,
|
|
37236
37238
|
Oo as aj,
|
|
37237
|
-
|
|
37239
|
+
$r as ak,
|
|
37238
37240
|
gt as al,
|
|
37239
37241
|
rD as am,
|
|
37240
37242
|
Zm as an,
|
|
@@ -37250,7 +37252,7 @@ export {
|
|
|
37250
37252
|
_2 as d,
|
|
37251
37253
|
xr as e,
|
|
37252
37254
|
Gt as f,
|
|
37253
|
-
|
|
37255
|
+
Ll as g,
|
|
37254
37256
|
fD as h,
|
|
37255
37257
|
Ba as i,
|
|
37256
37258
|
cD as j,
|