@ape.swap/bonds-sdk 4.4.1-test.9 → 4.5.0-test.0
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/main.js +211 -206
- package/dist/state/tiers/useTierPoints.d.ts +5 -4
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -19837,7 +19837,7 @@ var hasRequiredTypes$1;
|
|
|
19837
19837
|
function requireTypes$1 () {
|
|
19838
19838
|
if (hasRequiredTypes$1) return types$1;
|
|
19839
19839
|
hasRequiredTypes$1 = 1;
|
|
19840
|
-
(function (exports) {
|
|
19840
|
+
(function (exports$1) {
|
|
19841
19841
|
var _a,
|
|
19842
19842
|
_b,
|
|
19843
19843
|
_c,
|
|
@@ -19970,26 +19970,26 @@ function requireTypes$1 () {
|
|
|
19970
19970
|
_105,
|
|
19971
19971
|
_106,
|
|
19972
19972
|
_107;
|
|
19973
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
19974
|
-
exports.dexToZapMapping =
|
|
19975
|
-
exports.defaultDexFactories =
|
|
19976
|
-
exports.dexFactories =
|
|
19977
|
-
exports.VaultVersion =
|
|
19978
|
-
exports.LaunchBondTiers =
|
|
19979
|
-
exports.MigrationVestingTerms =
|
|
19980
|
-
exports.defaultBillArtCollection =
|
|
19981
|
-
exports.BillArtCollection =
|
|
19982
|
-
exports.BillVersion =
|
|
19983
|
-
exports.Protocols =
|
|
19984
|
-
exports.ProtocolsWithWrapper =
|
|
19985
|
-
exports.Wrappers =
|
|
19986
|
-
exports.PriceApiProtocols =
|
|
19987
|
-
exports.ZapVersion =
|
|
19988
|
-
exports.IchiSupportedDex =
|
|
19989
|
-
exports.LiquidityDex =
|
|
19990
|
-
exports.ChainId =
|
|
19991
|
-
exports.PoolCategory =
|
|
19992
|
-
exports.QuoteToken =
|
|
19973
|
+
Object.defineProperty(exports$1, '__esModule', { value: true });
|
|
19974
|
+
exports$1.dexToZapMapping =
|
|
19975
|
+
exports$1.defaultDexFactories =
|
|
19976
|
+
exports$1.dexFactories =
|
|
19977
|
+
exports$1.VaultVersion =
|
|
19978
|
+
exports$1.LaunchBondTiers =
|
|
19979
|
+
exports$1.MigrationVestingTerms =
|
|
19980
|
+
exports$1.defaultBillArtCollection =
|
|
19981
|
+
exports$1.BillArtCollection =
|
|
19982
|
+
exports$1.BillVersion =
|
|
19983
|
+
exports$1.Protocols =
|
|
19984
|
+
exports$1.ProtocolsWithWrapper =
|
|
19985
|
+
exports$1.Wrappers =
|
|
19986
|
+
exports$1.PriceApiProtocols =
|
|
19987
|
+
exports$1.ZapVersion =
|
|
19988
|
+
exports$1.IchiSupportedDex =
|
|
19989
|
+
exports$1.LiquidityDex =
|
|
19990
|
+
exports$1.ChainId =
|
|
19991
|
+
exports$1.PoolCategory =
|
|
19992
|
+
exports$1.QuoteToken =
|
|
19993
19993
|
void 0;
|
|
19994
19994
|
(function (QuoteToken) {
|
|
19995
19995
|
QuoteToken['BNB'] = 'BNB';
|
|
@@ -19999,14 +19999,14 @@ function requireTypes$1 () {
|
|
|
19999
19999
|
QuoteToken['UST'] = 'UST';
|
|
20000
20000
|
QuoteToken['ETH'] = 'ETH';
|
|
20001
20001
|
QuoteToken['USDT'] = 'USDT';
|
|
20002
|
-
})((exports.QuoteToken || (exports.QuoteToken = {})));
|
|
20002
|
+
})((exports$1.QuoteToken || (exports$1.QuoteToken = {})));
|
|
20003
20003
|
(function (PoolCategory) {
|
|
20004
20004
|
PoolCategory['COMMUNITY'] = 'Community';
|
|
20005
20005
|
PoolCategory['APEZONE'] = 'ApeZone';
|
|
20006
20006
|
PoolCategory['CORE'] = 'Core';
|
|
20007
20007
|
PoolCategory['REAL_YIELD'] = 'Real Yield';
|
|
20008
20008
|
PoolCategory['JUNGLE'] = 'Jungle';
|
|
20009
|
-
})((exports.PoolCategory || (exports.PoolCategory = {})));
|
|
20009
|
+
})((exports$1.PoolCategory || (exports$1.PoolCategory = {})));
|
|
20010
20010
|
var ChainId
|
|
20011
20011
|
;(function (ChainId) {
|
|
20012
20012
|
ChainId[(ChainId['MAINNET'] = 1)] = 'MAINNET';
|
|
@@ -20040,7 +20040,7 @@ function requireTypes$1 () {
|
|
|
20040
20040
|
ChainId[(ChainId['MEGAETH_TESTNET'] = 6342)] = 'MEGAETH_TESTNET';
|
|
20041
20041
|
ChainId[(ChainId['SEI'] = 1329)] = 'SEI';
|
|
20042
20042
|
ChainId[(ChainId['MONAD'] = 143)] = 'MONAD';
|
|
20043
|
-
})((ChainId = exports.ChainId || (exports.ChainId = {})));
|
|
20043
|
+
})((ChainId = exports$1.ChainId || (exports$1.ChainId = {})));
|
|
20044
20044
|
var LiquidityDex
|
|
20045
20045
|
;(function (LiquidityDex) {
|
|
20046
20046
|
LiquidityDex['ApeSwapV2'] = 'ApeSwapV2';
|
|
@@ -20102,7 +20102,7 @@ function requireTypes$1 () {
|
|
|
20102
20102
|
//BERACHAIN
|
|
20103
20103
|
LiquidityDex['KodiakV2'] = 'KodiakV2';
|
|
20104
20104
|
LiquidityDex['KodiakV3'] = 'KodiakV3';
|
|
20105
|
-
})((LiquidityDex = exports.LiquidityDex || (exports.LiquidityDex = {})));
|
|
20105
|
+
})((LiquidityDex = exports$1.LiquidityDex || (exports$1.LiquidityDex = {})));
|
|
20106
20106
|
(function (IchiSupportedDex) {
|
|
20107
20107
|
IchiSupportedDex['Ascent'] = 'Ascent';
|
|
20108
20108
|
IchiSupportedDex['Blueprint'] = 'Blueprint';
|
|
@@ -20128,7 +20128,7 @@ function requireTypes$1 () {
|
|
|
20128
20128
|
IchiSupportedDex['UniswapV3'] = 'Uniswap V3';
|
|
20129
20129
|
IchiSupportedDex['Velocore'] = 'Velocore';
|
|
20130
20130
|
IchiSupportedDex['XSwap'] = 'XSwap';
|
|
20131
|
-
})((exports.IchiSupportedDex || (exports.IchiSupportedDex = {})));
|
|
20131
|
+
})((exports$1.IchiSupportedDex || (exports$1.IchiSupportedDex = {})));
|
|
20132
20132
|
var ZapVersion
|
|
20133
20133
|
;(function (ZapVersion) {
|
|
20134
20134
|
ZapVersion['External'] = 'External';
|
|
@@ -20136,7 +20136,7 @@ function requireTypes$1 () {
|
|
|
20136
20136
|
ZapVersion['Wido'] = 'Wido';
|
|
20137
20137
|
ZapVersion['SoulZap'] = 'SoulZap';
|
|
20138
20138
|
ZapVersion['SoulZapApi'] = 'SoulZapApi';
|
|
20139
|
-
})((ZapVersion = exports.ZapVersion || (exports.ZapVersion = {})));
|
|
20139
|
+
})((ZapVersion = exports$1.ZapVersion || (exports$1.ZapVersion = {})));
|
|
20140
20140
|
//Price API Protocols
|
|
20141
20141
|
var PriceApiProtocols
|
|
20142
20142
|
;(function (PriceApiProtocols) {
|
|
@@ -20147,13 +20147,13 @@ function requireTypes$1 () {
|
|
|
20147
20147
|
PriceApiProtocols[(PriceApiProtocols['AlgebraIntegral'] = 4)] = 'AlgebraIntegral';
|
|
20148
20148
|
PriceApiProtocols[(PriceApiProtocols['Solidly'] = 5)] = 'Solidly';
|
|
20149
20149
|
PriceApiProtocols[(PriceApiProtocols['Curve'] = 6)] = 'Curve';
|
|
20150
|
-
})((PriceApiProtocols = exports.PriceApiProtocols || (exports.PriceApiProtocols = {})));
|
|
20150
|
+
})((PriceApiProtocols = exports$1.PriceApiProtocols || (exports$1.PriceApiProtocols = {})));
|
|
20151
20151
|
(function (Wrappers) {
|
|
20152
20152
|
Wrappers[(Wrappers['Gamma'] = 0)] = 'Gamma';
|
|
20153
20153
|
Wrappers[(Wrappers['Ichi'] = 1)] = 'Ichi';
|
|
20154
20154
|
Wrappers[(Wrappers['Steer'] = 2)] = 'Steer';
|
|
20155
|
-
})((exports.Wrappers || (exports.Wrappers = {})));
|
|
20156
|
-
exports.ProtocolsWithWrapper = [
|
|
20155
|
+
})((exports$1.Wrappers || (exports$1.Wrappers = {})));
|
|
20156
|
+
exports$1.ProtocolsWithWrapper = [
|
|
20157
20157
|
PriceApiProtocols.UniV3,
|
|
20158
20158
|
PriceApiProtocols.UniV4,
|
|
20159
20159
|
PriceApiProtocols.Algebra,
|
|
@@ -20172,7 +20172,7 @@ function requireTypes$1 () {
|
|
|
20172
20172
|
Protocols[(Protocols['XFAI'] = 8)] = 'XFAI';
|
|
20173
20173
|
Protocols[(Protocols['Curve'] = 9)] = 'Curve';
|
|
20174
20174
|
Protocols[(Protocols['AlgebraIntegral'] = 10)] = 'AlgebraIntegral';
|
|
20175
|
-
})((Protocols = exports.Protocols || (exports.Protocols = {})));
|
|
20175
|
+
})((Protocols = exports$1.Protocols || (exports$1.Protocols = {})));
|
|
20176
20176
|
(function (BillVersion) {
|
|
20177
20177
|
BillVersion['V1'] = 'V1';
|
|
20178
20178
|
BillVersion['V2'] = 'V2';
|
|
@@ -20181,7 +20181,7 @@ function requireTypes$1 () {
|
|
|
20181
20181
|
BillVersion['FixedPrice'] = 'FixedPrice';
|
|
20182
20182
|
BillVersion['TieredSale'] = 'TieredSale';
|
|
20183
20183
|
BillVersion['FlashTieredSale'] = 'FlashTieredSale';
|
|
20184
|
-
})((exports.BillVersion || (exports.BillVersion = {})));
|
|
20184
|
+
})((exports$1.BillVersion || (exports$1.BillVersion = {})));
|
|
20185
20185
|
/**
|
|
20186
20186
|
* This enum defines the art collection used to generate the art for a bill (bond).
|
|
20187
20187
|
*
|
|
@@ -20203,9 +20203,9 @@ function requireTypes$1 () {
|
|
|
20203
20203
|
BillArtCollection['Berachain_Collection1'] = 'Berachain_Collection1';
|
|
20204
20204
|
BillArtCollection['HotBondingSummer_Collection1'] = 'HotBondingSummer_Collection1';
|
|
20205
20205
|
BillArtCollection['Solana_Collection1'] = 'Solana_Collection1';
|
|
20206
|
-
})((BillArtCollection = exports.BillArtCollection || (exports.BillArtCollection = {})));
|
|
20207
|
-
exports.defaultBillArtCollection = BillArtCollection.ApeBond_Collection1;
|
|
20208
|
-
exports.MigrationVestingTerms = {
|
|
20206
|
+
})((BillArtCollection = exports$1.BillArtCollection || (exports$1.BillArtCollection = {})));
|
|
20207
|
+
exports$1.defaultBillArtCollection = BillArtCollection.ApeBond_Collection1;
|
|
20208
|
+
exports$1.MigrationVestingTerms = {
|
|
20209
20209
|
'60d': 5184000,
|
|
20210
20210
|
'120d': 10368000,
|
|
20211
20211
|
'180d': 15552000,
|
|
@@ -20217,13 +20217,14 @@ function requireTypes$1 () {
|
|
|
20217
20217
|
LaunchBondTiers[(LaunchBondTiers['Gold'] = 2)] = 'Gold';
|
|
20218
20218
|
LaunchBondTiers[(LaunchBondTiers['Diamond'] = 3)] = 'Diamond';
|
|
20219
20219
|
LaunchBondTiers[(LaunchBondTiers['Legend'] = 4)] = 'Legend';
|
|
20220
|
-
|
|
20220
|
+
LaunchBondTiers[(LaunchBondTiers['Mythical'] = 5)] = 'Mythical';
|
|
20221
|
+
})((exports$1.LaunchBondTiers || (exports$1.LaunchBondTiers = {})));
|
|
20221
20222
|
(function (VaultVersion) {
|
|
20222
20223
|
VaultVersion['V1'] = 'V1';
|
|
20223
20224
|
VaultVersion['V2'] = 'V2';
|
|
20224
20225
|
VaultVersion['V3'] = 'V3';
|
|
20225
|
-
})((exports.VaultVersion || (exports.VaultVersion = {})));
|
|
20226
|
-
exports.dexFactories =
|
|
20226
|
+
})((exports$1.VaultVersion || (exports$1.VaultVersion = {})));
|
|
20227
|
+
exports$1.dexFactories =
|
|
20227
20228
|
((_a = {}),
|
|
20228
20229
|
(_a[ChainId.MAINNET] =
|
|
20229
20230
|
((_b = {}),
|
|
@@ -20527,17 +20528,17 @@ function requireTypes$1 () {
|
|
|
20527
20528
|
}),
|
|
20528
20529
|
_t)),
|
|
20529
20530
|
_a);
|
|
20530
|
-
exports.defaultDexFactories =
|
|
20531
|
+
exports$1.defaultDexFactories =
|
|
20531
20532
|
((_u = {}),
|
|
20532
20533
|
(_u[ChainId.MAINNET] =
|
|
20533
20534
|
((_v = {}),
|
|
20534
20535
|
(_v[Protocols.V2] =
|
|
20535
|
-
(_29 = (_28 = exports.dexFactories[ChainId.MAINNET]) === null || _28 === void 0 ? void 0 : _28.ApeSwapV2) ===
|
|
20536
|
+
(_29 = (_28 = exports$1.dexFactories[ChainId.MAINNET]) === null || _28 === void 0 ? void 0 : _28.ApeSwapV2) ===
|
|
20536
20537
|
null || _29 === void 0
|
|
20537
20538
|
? void 0
|
|
20538
20539
|
: _29.factory),
|
|
20539
20540
|
(_v[Protocols.V3] =
|
|
20540
|
-
(_31 = (_30 = exports.dexFactories[ChainId.MAINNET]) === null || _30 === void 0 ? void 0 : _30.UniswapV3) ===
|
|
20541
|
+
(_31 = (_30 = exports$1.dexFactories[ChainId.MAINNET]) === null || _30 === void 0 ? void 0 : _30.UniswapV3) ===
|
|
20541
20542
|
null || _31 === void 0
|
|
20542
20543
|
? void 0
|
|
20543
20544
|
: _31.factory),
|
|
@@ -20545,22 +20546,22 @@ function requireTypes$1 () {
|
|
|
20545
20546
|
(_u[ChainId.BSC] =
|
|
20546
20547
|
((_w = {}),
|
|
20547
20548
|
(_w[Protocols.V2] =
|
|
20548
|
-
(_33 = (_32 = exports.dexFactories[ChainId.BSC]) === null || _32 === void 0 ? void 0 : _32.ApeSwapV2) === null ||
|
|
20549
|
+
(_33 = (_32 = exports$1.dexFactories[ChainId.BSC]) === null || _32 === void 0 ? void 0 : _32.ApeSwapV2) === null ||
|
|
20549
20550
|
_33 === void 0
|
|
20550
20551
|
? void 0
|
|
20551
20552
|
: _33.factory),
|
|
20552
20553
|
(_w[Protocols.V3] =
|
|
20553
|
-
(_35 = (_34 = exports.dexFactories[ChainId.BSC]) === null || _34 === void 0 ? void 0 : _34.UniswapV3) === null ||
|
|
20554
|
+
(_35 = (_34 = exports$1.dexFactories[ChainId.BSC]) === null || _34 === void 0 ? void 0 : _34.UniswapV3) === null ||
|
|
20554
20555
|
_35 === void 0
|
|
20555
20556
|
? void 0
|
|
20556
20557
|
: _35.factory),
|
|
20557
20558
|
(_w[Protocols.Algebra] =
|
|
20558
|
-
(_37 = (_36 = exports.dexFactories[ChainId.BSC]) === null || _36 === void 0 ? void 0 : _36.Algebra) === null ||
|
|
20559
|
+
(_37 = (_36 = exports$1.dexFactories[ChainId.BSC]) === null || _36 === void 0 ? void 0 : _36.Algebra) === null ||
|
|
20559
20560
|
_37 === void 0
|
|
20560
20561
|
? void 0
|
|
20561
20562
|
: _37.factory),
|
|
20562
20563
|
(_w[Protocols.Solidly] =
|
|
20563
|
-
(_39 = (_38 = exports.dexFactories[ChainId.BSC]) === null || _38 === void 0 ? void 0 : _38.ThenaV1) === null ||
|
|
20564
|
+
(_39 = (_38 = exports$1.dexFactories[ChainId.BSC]) === null || _38 === void 0 ? void 0 : _38.ThenaV1) === null ||
|
|
20564
20565
|
_39 === void 0
|
|
20565
20566
|
? void 0
|
|
20566
20567
|
: _39.factory),
|
|
@@ -20568,17 +20569,17 @@ function requireTypes$1 () {
|
|
|
20568
20569
|
(_u[ChainId.MATIC] =
|
|
20569
20570
|
((_x = {}),
|
|
20570
20571
|
(_x[Protocols.V2] =
|
|
20571
|
-
(_41 = (_40 = exports.dexFactories[ChainId.MATIC]) === null || _40 === void 0 ? void 0 : _40.ApeSwapV2) ===
|
|
20572
|
+
(_41 = (_40 = exports$1.dexFactories[ChainId.MATIC]) === null || _40 === void 0 ? void 0 : _40.ApeSwapV2) ===
|
|
20572
20573
|
null || _41 === void 0
|
|
20573
20574
|
? void 0
|
|
20574
20575
|
: _41.factory),
|
|
20575
20576
|
(_x[Protocols.V3] =
|
|
20576
|
-
(_43 = (_42 = exports.dexFactories[ChainId.MATIC]) === null || _42 === void 0 ? void 0 : _42.UniswapV3) ===
|
|
20577
|
+
(_43 = (_42 = exports$1.dexFactories[ChainId.MATIC]) === null || _42 === void 0 ? void 0 : _42.UniswapV3) ===
|
|
20577
20578
|
null || _43 === void 0
|
|
20578
20579
|
? void 0
|
|
20579
20580
|
: _43.factory),
|
|
20580
20581
|
(_x[Protocols.Algebra] =
|
|
20581
|
-
(_45 = (_44 = exports.dexFactories[ChainId.MATIC]) === null || _44 === void 0 ? void 0 : _44.Algebra) === null ||
|
|
20582
|
+
(_45 = (_44 = exports$1.dexFactories[ChainId.MATIC]) === null || _44 === void 0 ? void 0 : _44.Algebra) === null ||
|
|
20582
20583
|
_45 === void 0
|
|
20583
20584
|
? void 0
|
|
20584
20585
|
: _45.factory),
|
|
@@ -20586,22 +20587,22 @@ function requireTypes$1 () {
|
|
|
20586
20587
|
(_u[ChainId.ARBITRUM] =
|
|
20587
20588
|
((_y = {}),
|
|
20588
20589
|
(_y[Protocols.V2] =
|
|
20589
|
-
(_47 = (_46 = exports.dexFactories[ChainId.ARBITRUM]) === null || _46 === void 0 ? void 0 : _46.ApeSwapV2) ===
|
|
20590
|
+
(_47 = (_46 = exports$1.dexFactories[ChainId.ARBITRUM]) === null || _46 === void 0 ? void 0 : _46.ApeSwapV2) ===
|
|
20590
20591
|
null || _47 === void 0
|
|
20591
20592
|
? void 0
|
|
20592
20593
|
: _47.factory),
|
|
20593
20594
|
(_y[Protocols.V3] =
|
|
20594
|
-
(_49 = (_48 = exports.dexFactories[ChainId.ARBITRUM]) === null || _48 === void 0 ? void 0 : _48.UniswapV3) ===
|
|
20595
|
+
(_49 = (_48 = exports$1.dexFactories[ChainId.ARBITRUM]) === null || _48 === void 0 ? void 0 : _48.UniswapV3) ===
|
|
20595
20596
|
null || _49 === void 0
|
|
20596
20597
|
? void 0
|
|
20597
20598
|
: _49.factory),
|
|
20598
20599
|
(_y[Protocols.Algebra] =
|
|
20599
|
-
(_51 = (_50 = exports.dexFactories[ChainId.ARBITRUM]) === null || _50 === void 0 ? void 0 : _50.Algebra) ===
|
|
20600
|
+
(_51 = (_50 = exports$1.dexFactories[ChainId.ARBITRUM]) === null || _50 === void 0 ? void 0 : _50.Algebra) ===
|
|
20600
20601
|
null || _51 === void 0
|
|
20601
20602
|
? void 0
|
|
20602
20603
|
: _51.factory),
|
|
20603
20604
|
(_y[Protocols.Curve] =
|
|
20604
|
-
(_53 = (_52 = exports.dexFactories[ChainId.ARBITRUM]) === null || _52 === void 0 ? void 0 : _52.Curve) === null ||
|
|
20605
|
+
(_53 = (_52 = exports$1.dexFactories[ChainId.ARBITRUM]) === null || _52 === void 0 ? void 0 : _52.Curve) === null ||
|
|
20605
20606
|
_53 === void 0
|
|
20606
20607
|
? void 0
|
|
20607
20608
|
: _53.factory),
|
|
@@ -20609,27 +20610,27 @@ function requireTypes$1 () {
|
|
|
20609
20610
|
(_u[ChainId.LINEA] =
|
|
20610
20611
|
((_z = {}),
|
|
20611
20612
|
(_z[Protocols.V2] =
|
|
20612
|
-
(_55 = (_54 = exports.dexFactories[ChainId.LINEA]) === null || _54 === void 0 ? void 0 : _54.Spartadex) ===
|
|
20613
|
+
(_55 = (_54 = exports$1.dexFactories[ChainId.LINEA]) === null || _54 === void 0 ? void 0 : _54.Spartadex) ===
|
|
20613
20614
|
null || _55 === void 0
|
|
20614
20615
|
? void 0
|
|
20615
20616
|
: _55.factory),
|
|
20616
20617
|
(_z[Protocols.V3] =
|
|
20617
|
-
(_57 = (_56 = exports.dexFactories[ChainId.LINEA]) === null || _56 === void 0 ? void 0 : _56.Nile) === null ||
|
|
20618
|
+
(_57 = (_56 = exports$1.dexFactories[ChainId.LINEA]) === null || _56 === void 0 ? void 0 : _56.Nile) === null ||
|
|
20618
20619
|
_57 === void 0
|
|
20619
20620
|
? void 0
|
|
20620
20621
|
: _57.factory),
|
|
20621
20622
|
(_z[Protocols.Algebra] =
|
|
20622
|
-
(_59 = (_58 = exports.dexFactories[ChainId.LINEA]) === null || _58 === void 0 ? void 0 : _58.Algebra) === null ||
|
|
20623
|
+
(_59 = (_58 = exports$1.dexFactories[ChainId.LINEA]) === null || _58 === void 0 ? void 0 : _58.Algebra) === null ||
|
|
20623
20624
|
_59 === void 0
|
|
20624
20625
|
? void 0
|
|
20625
20626
|
: _59.factory),
|
|
20626
20627
|
(_z[Protocols.Solidly] =
|
|
20627
|
-
(_61 = (_60 = exports.dexFactories[ChainId.LINEA]) === null || _60 === void 0 ? void 0 : _60.Lynex) === null ||
|
|
20628
|
+
(_61 = (_60 = exports$1.dexFactories[ChainId.LINEA]) === null || _60 === void 0 ? void 0 : _60.Lynex) === null ||
|
|
20628
20629
|
_61 === void 0
|
|
20629
20630
|
? void 0
|
|
20630
20631
|
: _61.factory),
|
|
20631
20632
|
(_z[Protocols.XFAI] =
|
|
20632
|
-
(_63 = (_62 = exports.dexFactories[ChainId.LINEA]) === null || _62 === void 0 ? void 0 : _62.XFAI) === null ||
|
|
20633
|
+
(_63 = (_62 = exports$1.dexFactories[ChainId.LINEA]) === null || _62 === void 0 ? void 0 : _62.XFAI) === null ||
|
|
20633
20634
|
_63 === void 0
|
|
20634
20635
|
? void 0
|
|
20635
20636
|
: _63.factory),
|
|
@@ -20637,7 +20638,7 @@ function requireTypes$1 () {
|
|
|
20637
20638
|
(_u[ChainId.LIGHTLINK] =
|
|
20638
20639
|
((_0 = {}),
|
|
20639
20640
|
(_0[Protocols.V3] =
|
|
20640
|
-
(_65 = (_64 = exports.dexFactories[ChainId.LIGHTLINK]) === null || _64 === void 0 ? void 0 : _64.Elektrik) ===
|
|
20641
|
+
(_65 = (_64 = exports$1.dexFactories[ChainId.LIGHTLINK]) === null || _64 === void 0 ? void 0 : _64.Elektrik) ===
|
|
20641
20642
|
null || _65 === void 0
|
|
20642
20643
|
? void 0
|
|
20643
20644
|
: _65.factory),
|
|
@@ -20645,22 +20646,22 @@ function requireTypes$1 () {
|
|
|
20645
20646
|
(_u[ChainId.BASE] =
|
|
20646
20647
|
((_1 = {}),
|
|
20647
20648
|
(_1[Protocols.V2] =
|
|
20648
|
-
(_67 = (_66 = exports.dexFactories[ChainId.BASE]) === null || _66 === void 0 ? void 0 : _66.SmarDex) === null ||
|
|
20649
|
+
(_67 = (_66 = exports$1.dexFactories[ChainId.BASE]) === null || _66 === void 0 ? void 0 : _66.SmarDex) === null ||
|
|
20649
20650
|
_67 === void 0
|
|
20650
20651
|
? void 0
|
|
20651
20652
|
: _67.factory),
|
|
20652
20653
|
(_1[Protocols.V3] =
|
|
20653
|
-
(_69 = (_68 = exports.dexFactories[ChainId.BASE]) === null || _68 === void 0 ? void 0 : _68.UniswapV3) === null ||
|
|
20654
|
+
(_69 = (_68 = exports$1.dexFactories[ChainId.BASE]) === null || _68 === void 0 ? void 0 : _68.UniswapV3) === null ||
|
|
20654
20655
|
_69 === void 0
|
|
20655
20656
|
? void 0
|
|
20656
20657
|
: _69.factory),
|
|
20657
20658
|
(_1[Protocols.Algebra] =
|
|
20658
|
-
(_71 = (_70 = exports.dexFactories[ChainId.BASE]) === null || _70 === void 0 ? void 0 : _70.Algebra) === null ||
|
|
20659
|
+
(_71 = (_70 = exports$1.dexFactories[ChainId.BASE]) === null || _70 === void 0 ? void 0 : _70.Algebra) === null ||
|
|
20659
20660
|
_71 === void 0
|
|
20660
20661
|
? void 0
|
|
20661
20662
|
: _71.factory),
|
|
20662
20663
|
(_1[Protocols.Solidly] =
|
|
20663
|
-
(_73 = (_72 = exports.dexFactories[ChainId.BASE]) === null || _72 === void 0 ? void 0 : _72.Aerodrome) === null ||
|
|
20664
|
+
(_73 = (_72 = exports$1.dexFactories[ChainId.BASE]) === null || _72 === void 0 ? void 0 : _72.Aerodrome) === null ||
|
|
20664
20665
|
_73 === void 0
|
|
20665
20666
|
? void 0
|
|
20666
20667
|
: _73.factory),
|
|
@@ -20668,7 +20669,7 @@ function requireTypes$1 () {
|
|
|
20668
20669
|
(_u[ChainId.IOTA] =
|
|
20669
20670
|
((_2 = {}),
|
|
20670
20671
|
(_2[Protocols.V2] =
|
|
20671
|
-
(_75 = (_74 = exports.dexFactories[ChainId.IOTA]) === null || _74 === void 0 ? void 0 : _74.MagicSea) === null ||
|
|
20672
|
+
(_75 = (_74 = exports$1.dexFactories[ChainId.IOTA]) === null || _74 === void 0 ? void 0 : _74.MagicSea) === null ||
|
|
20672
20673
|
_75 === void 0
|
|
20673
20674
|
? void 0
|
|
20674
20675
|
: _75.factory),
|
|
@@ -20676,12 +20677,12 @@ function requireTypes$1 () {
|
|
|
20676
20677
|
(_u[ChainId.AVAX] =
|
|
20677
20678
|
((_3 = {}),
|
|
20678
20679
|
(_3[Protocols.V2] =
|
|
20679
|
-
(_77 = (_76 = exports.dexFactories[ChainId.AVAX]) === null || _76 === void 0 ? void 0 : _76.LFJ) === null ||
|
|
20680
|
+
(_77 = (_76 = exports$1.dexFactories[ChainId.AVAX]) === null || _76 === void 0 ? void 0 : _76.LFJ) === null ||
|
|
20680
20681
|
_77 === void 0
|
|
20681
20682
|
? void 0
|
|
20682
20683
|
: _77.factory),
|
|
20683
20684
|
(_3[Protocols.V3] =
|
|
20684
|
-
(_79 = (_78 = exports.dexFactories[ChainId.AVAX]) === null || _78 === void 0 ? void 0 : _78.Pharaoh) === null ||
|
|
20685
|
+
(_79 = (_78 = exports$1.dexFactories[ChainId.AVAX]) === null || _78 === void 0 ? void 0 : _78.Pharaoh) === null ||
|
|
20685
20686
|
_79 === void 0
|
|
20686
20687
|
? void 0
|
|
20687
20688
|
: _79.factory),
|
|
@@ -20689,12 +20690,12 @@ function requireTypes$1 () {
|
|
|
20689
20690
|
(_u[ChainId.BLAST] =
|
|
20690
20691
|
((_4 = {}),
|
|
20691
20692
|
(_4[Protocols.V2] =
|
|
20692
|
-
(_81 = (_80 = exports.dexFactories[ChainId.BLAST]) === null || _80 === void 0 ? void 0 : _80.ThrusterV2_03) ===
|
|
20693
|
+
(_81 = (_80 = exports$1.dexFactories[ChainId.BLAST]) === null || _80 === void 0 ? void 0 : _80.ThrusterV2_03) ===
|
|
20693
20694
|
null || _81 === void 0
|
|
20694
20695
|
? void 0
|
|
20695
20696
|
: _81.factory),
|
|
20696
20697
|
(_4[Protocols.V3] =
|
|
20697
|
-
(_83 = (_82 = exports.dexFactories[ChainId.BLAST]) === null || _82 === void 0 ? void 0 : _82.ThrusterV3) ===
|
|
20698
|
+
(_83 = (_82 = exports$1.dexFactories[ChainId.BLAST]) === null || _82 === void 0 ? void 0 : _82.ThrusterV3) ===
|
|
20698
20699
|
null || _83 === void 0
|
|
20699
20700
|
? void 0
|
|
20700
20701
|
: _83.factory),
|
|
@@ -20703,7 +20704,7 @@ function requireTypes$1 () {
|
|
|
20703
20704
|
((_5 = {}),
|
|
20704
20705
|
(_5[Protocols.V2] =
|
|
20705
20706
|
(_85 =
|
|
20706
|
-
(_84 = exports.dexFactories[ChainId.SINGULARITY_TESTNET]) === null || _84 === void 0 ? void 0 : _84.Citea) ===
|
|
20707
|
+
(_84 = exports$1.dexFactories[ChainId.SINGULARITY_TESTNET]) === null || _84 === void 0 ? void 0 : _84.Citea) ===
|
|
20707
20708
|
null || _85 === void 0
|
|
20708
20709
|
? void 0
|
|
20709
20710
|
: _85.factory),
|
|
@@ -20711,7 +20712,7 @@ function requireTypes$1 () {
|
|
|
20711
20712
|
(_u[ChainId.CROSSFI] =
|
|
20712
20713
|
((_6 = {}),
|
|
20713
20714
|
(_6[Protocols.V2] =
|
|
20714
|
-
(_87 = (_86 = exports.dexFactories[ChainId.CROSSFI]) === null || _86 === void 0 ? void 0 : _86.XSwap) === null ||
|
|
20715
|
+
(_87 = (_86 = exports$1.dexFactories[ChainId.CROSSFI]) === null || _86 === void 0 ? void 0 : _86.XSwap) === null ||
|
|
20715
20716
|
_87 === void 0
|
|
20716
20717
|
? void 0
|
|
20717
20718
|
: _87.factory),
|
|
@@ -20719,18 +20720,18 @@ function requireTypes$1 () {
|
|
|
20719
20720
|
(_u[ChainId.SONIC] =
|
|
20720
20721
|
((_7 = {}),
|
|
20721
20722
|
(_7[Protocols.Solidly] =
|
|
20722
|
-
(_89 = (_88 = exports.dexFactories[ChainId.SONIC]) === null || _88 === void 0 ? void 0 : _88.ShadowExchange) ===
|
|
20723
|
+
(_89 = (_88 = exports$1.dexFactories[ChainId.SONIC]) === null || _88 === void 0 ? void 0 : _88.ShadowExchange) ===
|
|
20723
20724
|
null || _89 === void 0
|
|
20724
20725
|
? void 0
|
|
20725
20726
|
: _89.factory),
|
|
20726
20727
|
(_7[Protocols.V3] =
|
|
20727
|
-
(_91 = (_90 = exports.dexFactories[ChainId.SONIC]) === null || _90 === void 0 ? void 0 : _90.Wagmi) === null ||
|
|
20728
|
+
(_91 = (_90 = exports$1.dexFactories[ChainId.SONIC]) === null || _90 === void 0 ? void 0 : _90.Wagmi) === null ||
|
|
20728
20729
|
_91 === void 0
|
|
20729
20730
|
? void 0
|
|
20730
20731
|
: _91.factory),
|
|
20731
20732
|
(_7[Protocols.AlgebraIntegral] =
|
|
20732
20733
|
(_93 =
|
|
20733
|
-
(_92 = exports.dexFactories[ChainId.SONIC]) === null || _92 === void 0 ? void 0 : _92.SwapXAlgebraIntegral) ===
|
|
20734
|
+
(_92 = exports$1.dexFactories[ChainId.SONIC]) === null || _92 === void 0 ? void 0 : _92.SwapXAlgebraIntegral) ===
|
|
20734
20735
|
null || _93 === void 0
|
|
20735
20736
|
? void 0
|
|
20736
20737
|
: _93.factory),
|
|
@@ -20738,7 +20739,7 @@ function requireTypes$1 () {
|
|
|
20738
20739
|
(_u[ChainId.MONAD_TESTNET] =
|
|
20739
20740
|
((_8 = {}),
|
|
20740
20741
|
(_8[Protocols.V2] =
|
|
20741
|
-
(_95 = (_94 = exports.dexFactories[ChainId.MONAD_TESTNET]) === null || _94 === void 0 ? void 0 : _94.LFJ) ===
|
|
20742
|
+
(_95 = (_94 = exports$1.dexFactories[ChainId.MONAD_TESTNET]) === null || _94 === void 0 ? void 0 : _94.LFJ) ===
|
|
20742
20743
|
null || _95 === void 0
|
|
20743
20744
|
? void 0
|
|
20744
20745
|
: _95.factory),
|
|
@@ -20746,12 +20747,12 @@ function requireTypes$1 () {
|
|
|
20746
20747
|
(_u[ChainId.BERACHAIN] =
|
|
20747
20748
|
((_9 = {}),
|
|
20748
20749
|
(_9[Protocols.V2] =
|
|
20749
|
-
(_97 = (_96 = exports.dexFactories[ChainId.BERACHAIN]) === null || _96 === void 0 ? void 0 : _96.KodiakV2) ===
|
|
20750
|
+
(_97 = (_96 = exports$1.dexFactories[ChainId.BERACHAIN]) === null || _96 === void 0 ? void 0 : _96.KodiakV2) ===
|
|
20750
20751
|
null || _97 === void 0
|
|
20751
20752
|
? void 0
|
|
20752
20753
|
: _97.factory),
|
|
20753
20754
|
(_9[Protocols.V3] =
|
|
20754
|
-
(_99 = (_98 = exports.dexFactories[ChainId.BERACHAIN]) === null || _98 === void 0 ? void 0 : _98.KodiakV3) ===
|
|
20755
|
+
(_99 = (_98 = exports$1.dexFactories[ChainId.BERACHAIN]) === null || _98 === void 0 ? void 0 : _98.KodiakV3) ===
|
|
20755
20756
|
null || _99 === void 0
|
|
20756
20757
|
? void 0
|
|
20757
20758
|
: _99.factory),
|
|
@@ -20759,12 +20760,12 @@ function requireTypes$1 () {
|
|
|
20759
20760
|
(_u[ChainId.KATANA] =
|
|
20760
20761
|
((_10 = {}),
|
|
20761
20762
|
(_10[Protocols.V2] =
|
|
20762
|
-
(_101 = (_100 = exports.dexFactories[ChainId.KATANA]) === null || _100 === void 0 ? void 0 : _100.SushiSwapV2) ===
|
|
20763
|
+
(_101 = (_100 = exports$1.dexFactories[ChainId.KATANA]) === null || _100 === void 0 ? void 0 : _100.SushiSwapV2) ===
|
|
20763
20764
|
null || _101 === void 0
|
|
20764
20765
|
? void 0
|
|
20765
20766
|
: _101.factory),
|
|
20766
20767
|
(_10[Protocols.V3] =
|
|
20767
|
-
(_103 = (_102 = exports.dexFactories[ChainId.KATANA]) === null || _102 === void 0 ? void 0 : _102.SushiSwapV3) ===
|
|
20768
|
+
(_103 = (_102 = exports$1.dexFactories[ChainId.KATANA]) === null || _102 === void 0 ? void 0 : _102.SushiSwapV3) ===
|
|
20768
20769
|
null || _103 === void 0
|
|
20769
20770
|
? void 0
|
|
20770
20771
|
: _103.factory),
|
|
@@ -20772,18 +20773,18 @@ function requireTypes$1 () {
|
|
|
20772
20773
|
(_u[ChainId.UNICHAIN] =
|
|
20773
20774
|
((_11 = {}),
|
|
20774
20775
|
(_11[Protocols.V2] =
|
|
20775
|
-
(_105 = (_104 = exports.dexFactories[ChainId.UNICHAIN]) === null || _104 === void 0 ? void 0 : _104.UniswapV2) ===
|
|
20776
|
+
(_105 = (_104 = exports$1.dexFactories[ChainId.UNICHAIN]) === null || _104 === void 0 ? void 0 : _104.UniswapV2) ===
|
|
20776
20777
|
null || _105 === void 0
|
|
20777
20778
|
? void 0
|
|
20778
20779
|
: _105.factory),
|
|
20779
20780
|
(_11[Protocols.V3] =
|
|
20780
|
-
(_107 = (_106 = exports.dexFactories[ChainId.UNICHAIN]) === null || _106 === void 0 ? void 0 : _106.UniswapV3) ===
|
|
20781
|
+
(_107 = (_106 = exports$1.dexFactories[ChainId.UNICHAIN]) === null || _106 === void 0 ? void 0 : _106.UniswapV3) ===
|
|
20781
20782
|
null || _107 === void 0
|
|
20782
20783
|
? void 0
|
|
20783
20784
|
: _107.factory),
|
|
20784
20785
|
_11)),
|
|
20785
20786
|
_u);
|
|
20786
|
-
exports.dexToZapMapping =
|
|
20787
|
+
exports$1.dexToZapMapping =
|
|
20787
20788
|
((_12 = {}),
|
|
20788
20789
|
(_12[LiquidityDex.ApeSwapV2] =
|
|
20789
20790
|
((_13 = {}),
|
|
@@ -21505,20 +21506,20 @@ function requireZapTokens () {
|
|
|
21505
21506
|
return zapTokens;
|
|
21506
21507
|
}
|
|
21507
21508
|
|
|
21508
|
-
(function (exports) {
|
|
21509
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
21510
|
-
exports.zapInputTokens = exports.WNATIVE = void 0;
|
|
21509
|
+
(function (exports$1) {
|
|
21510
|
+
Object.defineProperty(exports$1, '__esModule', { value: true });
|
|
21511
|
+
exports$1.zapInputTokens = exports$1.WNATIVE = void 0;
|
|
21511
21512
|
var tslib_1 = require$$0;
|
|
21512
21513
|
// Main entry point - exports only types and specific constants to keep package size minimal
|
|
21513
|
-
tslib_1.__exportStar(requireTypes$1(), exports);
|
|
21514
|
+
tslib_1.__exportStar(requireTypes$1(), exports$1);
|
|
21514
21515
|
var zapTokens_1 = requireZapTokens();
|
|
21515
|
-
Object.defineProperty(exports, 'WNATIVE', {
|
|
21516
|
+
Object.defineProperty(exports$1, 'WNATIVE', {
|
|
21516
21517
|
enumerable: true,
|
|
21517
21518
|
get: function () {
|
|
21518
21519
|
return zapTokens_1.WNATIVE
|
|
21519
21520
|
},
|
|
21520
21521
|
});
|
|
21521
|
-
Object.defineProperty(exports, 'zapInputTokens', {
|
|
21522
|
+
Object.defineProperty(exports$1, 'zapInputTokens', {
|
|
21522
21523
|
enumerable: true,
|
|
21523
21524
|
get: function () {
|
|
21524
21525
|
return zapTokens_1.zapInputTokens
|
|
@@ -22158,7 +22159,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
22158
22159
|
* @license MIT
|
|
22159
22160
|
*/
|
|
22160
22161
|
|
|
22161
|
-
(function (exports) {
|
|
22162
|
+
(function (exports$1) {
|
|
22162
22163
|
|
|
22163
22164
|
const base64 = base64Js;
|
|
22164
22165
|
const ieee754$1 = ieee754;
|
|
@@ -22167,12 +22168,12 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
22167
22168
|
? Symbol['for']('nodejs.util.inspect.custom') // eslint-disable-line dot-notation
|
|
22168
22169
|
: null;
|
|
22169
22170
|
|
|
22170
|
-
exports.Buffer = Buffer;
|
|
22171
|
-
exports.SlowBuffer = SlowBuffer;
|
|
22172
|
-
exports.INSPECT_MAX_BYTES = 50;
|
|
22171
|
+
exports$1.Buffer = Buffer;
|
|
22172
|
+
exports$1.SlowBuffer = SlowBuffer;
|
|
22173
|
+
exports$1.INSPECT_MAX_BYTES = 50;
|
|
22173
22174
|
|
|
22174
22175
|
const K_MAX_LENGTH = 0x7fffffff;
|
|
22175
|
-
exports.kMaxLength = K_MAX_LENGTH;
|
|
22176
|
+
exports$1.kMaxLength = K_MAX_LENGTH;
|
|
22176
22177
|
|
|
22177
22178
|
/**
|
|
22178
22179
|
* If `Buffer.TYPED_ARRAY_SUPPORT`:
|
|
@@ -22768,7 +22769,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
22768
22769
|
|
|
22769
22770
|
Buffer.prototype.inspect = function inspect () {
|
|
22770
22771
|
let str = '';
|
|
22771
|
-
const max = exports.INSPECT_MAX_BYTES;
|
|
22772
|
+
const max = exports$1.INSPECT_MAX_BYTES;
|
|
22772
22773
|
str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim();
|
|
22773
22774
|
if (this.length > max) str += ' ... ';
|
|
22774
22775
|
return '<Buffer ' + str + '>'
|
|
@@ -24259,7 +24260,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
24259
24260
|
bn$1.exports;
|
|
24260
24261
|
|
|
24261
24262
|
(function (module) {
|
|
24262
|
-
(function (module, exports) {
|
|
24263
|
+
(function (module, exports$1) {
|
|
24263
24264
|
|
|
24264
24265
|
// Utils
|
|
24265
24266
|
function assert (val, msg) {
|
|
@@ -24302,7 +24303,7 @@ bn$1.exports;
|
|
|
24302
24303
|
if (typeof module === 'object') {
|
|
24303
24304
|
module.exports = BN;
|
|
24304
24305
|
} else {
|
|
24305
|
-
exports.BN = BN;
|
|
24306
|
+
exports$1.BN = BN;
|
|
24306
24307
|
}
|
|
24307
24308
|
|
|
24308
24309
|
BN.BN = BN;
|
|
@@ -35647,7 +35648,7 @@ var hasRequiredTypes;
|
|
|
35647
35648
|
function requireTypes () {
|
|
35648
35649
|
if (hasRequiredTypes) return types;
|
|
35649
35650
|
hasRequiredTypes = 1;
|
|
35650
|
-
(function (exports) {
|
|
35651
|
+
(function (exports$1) {
|
|
35651
35652
|
|
|
35652
35653
|
var isArgumentsObject = requireIsArguments();
|
|
35653
35654
|
var isGeneratorFunction = requireIsGeneratorFunction();
|
|
@@ -35687,9 +35688,9 @@ function requireTypes () {
|
|
|
35687
35688
|
}
|
|
35688
35689
|
}
|
|
35689
35690
|
|
|
35690
|
-
exports.isArgumentsObject = isArgumentsObject;
|
|
35691
|
-
exports.isGeneratorFunction = isGeneratorFunction;
|
|
35692
|
-
exports.isTypedArray = isTypedArray;
|
|
35691
|
+
exports$1.isArgumentsObject = isArgumentsObject;
|
|
35692
|
+
exports$1.isGeneratorFunction = isGeneratorFunction;
|
|
35693
|
+
exports$1.isTypedArray = isTypedArray;
|
|
35693
35694
|
|
|
35694
35695
|
// Taken from here and modified for better browser support
|
|
35695
35696
|
// https://github.com/sindresorhus/p-is-promise/blob/cda35a513bda03f977ad5cde3a079d237e82d7ef/index.js
|
|
@@ -35707,7 +35708,7 @@ function requireTypes () {
|
|
|
35707
35708
|
)
|
|
35708
35709
|
);
|
|
35709
35710
|
}
|
|
35710
|
-
exports.isPromise = isPromise;
|
|
35711
|
+
exports$1.isPromise = isPromise;
|
|
35711
35712
|
|
|
35712
35713
|
function isArrayBufferView(value) {
|
|
35713
35714
|
if (typeof ArrayBuffer !== 'undefined' && ArrayBuffer.isView) {
|
|
@@ -35719,63 +35720,63 @@ function requireTypes () {
|
|
|
35719
35720
|
isDataView(value)
|
|
35720
35721
|
);
|
|
35721
35722
|
}
|
|
35722
|
-
exports.isArrayBufferView = isArrayBufferView;
|
|
35723
|
+
exports$1.isArrayBufferView = isArrayBufferView;
|
|
35723
35724
|
|
|
35724
35725
|
|
|
35725
35726
|
function isUint8Array(value) {
|
|
35726
35727
|
return whichTypedArray(value) === 'Uint8Array';
|
|
35727
35728
|
}
|
|
35728
|
-
exports.isUint8Array = isUint8Array;
|
|
35729
|
+
exports$1.isUint8Array = isUint8Array;
|
|
35729
35730
|
|
|
35730
35731
|
function isUint8ClampedArray(value) {
|
|
35731
35732
|
return whichTypedArray(value) === 'Uint8ClampedArray';
|
|
35732
35733
|
}
|
|
35733
|
-
exports.isUint8ClampedArray = isUint8ClampedArray;
|
|
35734
|
+
exports$1.isUint8ClampedArray = isUint8ClampedArray;
|
|
35734
35735
|
|
|
35735
35736
|
function isUint16Array(value) {
|
|
35736
35737
|
return whichTypedArray(value) === 'Uint16Array';
|
|
35737
35738
|
}
|
|
35738
|
-
exports.isUint16Array = isUint16Array;
|
|
35739
|
+
exports$1.isUint16Array = isUint16Array;
|
|
35739
35740
|
|
|
35740
35741
|
function isUint32Array(value) {
|
|
35741
35742
|
return whichTypedArray(value) === 'Uint32Array';
|
|
35742
35743
|
}
|
|
35743
|
-
exports.isUint32Array = isUint32Array;
|
|
35744
|
+
exports$1.isUint32Array = isUint32Array;
|
|
35744
35745
|
|
|
35745
35746
|
function isInt8Array(value) {
|
|
35746
35747
|
return whichTypedArray(value) === 'Int8Array';
|
|
35747
35748
|
}
|
|
35748
|
-
exports.isInt8Array = isInt8Array;
|
|
35749
|
+
exports$1.isInt8Array = isInt8Array;
|
|
35749
35750
|
|
|
35750
35751
|
function isInt16Array(value) {
|
|
35751
35752
|
return whichTypedArray(value) === 'Int16Array';
|
|
35752
35753
|
}
|
|
35753
|
-
exports.isInt16Array = isInt16Array;
|
|
35754
|
+
exports$1.isInt16Array = isInt16Array;
|
|
35754
35755
|
|
|
35755
35756
|
function isInt32Array(value) {
|
|
35756
35757
|
return whichTypedArray(value) === 'Int32Array';
|
|
35757
35758
|
}
|
|
35758
|
-
exports.isInt32Array = isInt32Array;
|
|
35759
|
+
exports$1.isInt32Array = isInt32Array;
|
|
35759
35760
|
|
|
35760
35761
|
function isFloat32Array(value) {
|
|
35761
35762
|
return whichTypedArray(value) === 'Float32Array';
|
|
35762
35763
|
}
|
|
35763
|
-
exports.isFloat32Array = isFloat32Array;
|
|
35764
|
+
exports$1.isFloat32Array = isFloat32Array;
|
|
35764
35765
|
|
|
35765
35766
|
function isFloat64Array(value) {
|
|
35766
35767
|
return whichTypedArray(value) === 'Float64Array';
|
|
35767
35768
|
}
|
|
35768
|
-
exports.isFloat64Array = isFloat64Array;
|
|
35769
|
+
exports$1.isFloat64Array = isFloat64Array;
|
|
35769
35770
|
|
|
35770
35771
|
function isBigInt64Array(value) {
|
|
35771
35772
|
return whichTypedArray(value) === 'BigInt64Array';
|
|
35772
35773
|
}
|
|
35773
|
-
exports.isBigInt64Array = isBigInt64Array;
|
|
35774
|
+
exports$1.isBigInt64Array = isBigInt64Array;
|
|
35774
35775
|
|
|
35775
35776
|
function isBigUint64Array(value) {
|
|
35776
35777
|
return whichTypedArray(value) === 'BigUint64Array';
|
|
35777
35778
|
}
|
|
35778
|
-
exports.isBigUint64Array = isBigUint64Array;
|
|
35779
|
+
exports$1.isBigUint64Array = isBigUint64Array;
|
|
35779
35780
|
|
|
35780
35781
|
function isMapToString(value) {
|
|
35781
35782
|
return ObjectToString(value) === '[object Map]';
|
|
@@ -35794,7 +35795,7 @@ function requireTypes () {
|
|
|
35794
35795
|
? isMapToString(value)
|
|
35795
35796
|
: value instanceof Map;
|
|
35796
35797
|
}
|
|
35797
|
-
exports.isMap = isMap;
|
|
35798
|
+
exports$1.isMap = isMap;
|
|
35798
35799
|
|
|
35799
35800
|
function isSetToString(value) {
|
|
35800
35801
|
return ObjectToString(value) === '[object Set]';
|
|
@@ -35812,7 +35813,7 @@ function requireTypes () {
|
|
|
35812
35813
|
? isSetToString(value)
|
|
35813
35814
|
: value instanceof Set;
|
|
35814
35815
|
}
|
|
35815
|
-
exports.isSet = isSet;
|
|
35816
|
+
exports$1.isSet = isSet;
|
|
35816
35817
|
|
|
35817
35818
|
function isWeakMapToString(value) {
|
|
35818
35819
|
return ObjectToString(value) === '[object WeakMap]';
|
|
@@ -35830,7 +35831,7 @@ function requireTypes () {
|
|
|
35830
35831
|
? isWeakMapToString(value)
|
|
35831
35832
|
: value instanceof WeakMap;
|
|
35832
35833
|
}
|
|
35833
|
-
exports.isWeakMap = isWeakMap;
|
|
35834
|
+
exports$1.isWeakMap = isWeakMap;
|
|
35834
35835
|
|
|
35835
35836
|
function isWeakSetToString(value) {
|
|
35836
35837
|
return ObjectToString(value) === '[object WeakSet]';
|
|
@@ -35842,7 +35843,7 @@ function requireTypes () {
|
|
|
35842
35843
|
function isWeakSet(value) {
|
|
35843
35844
|
return isWeakSetToString(value);
|
|
35844
35845
|
}
|
|
35845
|
-
exports.isWeakSet = isWeakSet;
|
|
35846
|
+
exports$1.isWeakSet = isWeakSet;
|
|
35846
35847
|
|
|
35847
35848
|
function isArrayBufferToString(value) {
|
|
35848
35849
|
return ObjectToString(value) === '[object ArrayBuffer]';
|
|
@@ -35860,7 +35861,7 @@ function requireTypes () {
|
|
|
35860
35861
|
? isArrayBufferToString(value)
|
|
35861
35862
|
: value instanceof ArrayBuffer;
|
|
35862
35863
|
}
|
|
35863
|
-
exports.isArrayBuffer = isArrayBuffer;
|
|
35864
|
+
exports$1.isArrayBuffer = isArrayBuffer;
|
|
35864
35865
|
|
|
35865
35866
|
function isDataViewToString(value) {
|
|
35866
35867
|
return ObjectToString(value) === '[object DataView]';
|
|
@@ -35879,7 +35880,7 @@ function requireTypes () {
|
|
|
35879
35880
|
? isDataViewToString(value)
|
|
35880
35881
|
: value instanceof DataView;
|
|
35881
35882
|
}
|
|
35882
|
-
exports.isDataView = isDataView;
|
|
35883
|
+
exports$1.isDataView = isDataView;
|
|
35883
35884
|
|
|
35884
35885
|
// Store a copy of SharedArrayBuffer in case it's deleted elsewhere
|
|
35885
35886
|
var SharedArrayBufferCopy = typeof SharedArrayBuffer !== 'undefined' ? SharedArrayBuffer : undefined;
|
|
@@ -35899,57 +35900,57 @@ function requireTypes () {
|
|
|
35899
35900
|
? isSharedArrayBufferToString(value)
|
|
35900
35901
|
: value instanceof SharedArrayBufferCopy;
|
|
35901
35902
|
}
|
|
35902
|
-
exports.isSharedArrayBuffer = isSharedArrayBuffer;
|
|
35903
|
+
exports$1.isSharedArrayBuffer = isSharedArrayBuffer;
|
|
35903
35904
|
|
|
35904
35905
|
function isAsyncFunction(value) {
|
|
35905
35906
|
return ObjectToString(value) === '[object AsyncFunction]';
|
|
35906
35907
|
}
|
|
35907
|
-
exports.isAsyncFunction = isAsyncFunction;
|
|
35908
|
+
exports$1.isAsyncFunction = isAsyncFunction;
|
|
35908
35909
|
|
|
35909
35910
|
function isMapIterator(value) {
|
|
35910
35911
|
return ObjectToString(value) === '[object Map Iterator]';
|
|
35911
35912
|
}
|
|
35912
|
-
exports.isMapIterator = isMapIterator;
|
|
35913
|
+
exports$1.isMapIterator = isMapIterator;
|
|
35913
35914
|
|
|
35914
35915
|
function isSetIterator(value) {
|
|
35915
35916
|
return ObjectToString(value) === '[object Set Iterator]';
|
|
35916
35917
|
}
|
|
35917
|
-
exports.isSetIterator = isSetIterator;
|
|
35918
|
+
exports$1.isSetIterator = isSetIterator;
|
|
35918
35919
|
|
|
35919
35920
|
function isGeneratorObject(value) {
|
|
35920
35921
|
return ObjectToString(value) === '[object Generator]';
|
|
35921
35922
|
}
|
|
35922
|
-
exports.isGeneratorObject = isGeneratorObject;
|
|
35923
|
+
exports$1.isGeneratorObject = isGeneratorObject;
|
|
35923
35924
|
|
|
35924
35925
|
function isWebAssemblyCompiledModule(value) {
|
|
35925
35926
|
return ObjectToString(value) === '[object WebAssembly.Module]';
|
|
35926
35927
|
}
|
|
35927
|
-
exports.isWebAssemblyCompiledModule = isWebAssemblyCompiledModule;
|
|
35928
|
+
exports$1.isWebAssemblyCompiledModule = isWebAssemblyCompiledModule;
|
|
35928
35929
|
|
|
35929
35930
|
function isNumberObject(value) {
|
|
35930
35931
|
return checkBoxedPrimitive(value, numberValue);
|
|
35931
35932
|
}
|
|
35932
|
-
exports.isNumberObject = isNumberObject;
|
|
35933
|
+
exports$1.isNumberObject = isNumberObject;
|
|
35933
35934
|
|
|
35934
35935
|
function isStringObject(value) {
|
|
35935
35936
|
return checkBoxedPrimitive(value, stringValue);
|
|
35936
35937
|
}
|
|
35937
|
-
exports.isStringObject = isStringObject;
|
|
35938
|
+
exports$1.isStringObject = isStringObject;
|
|
35938
35939
|
|
|
35939
35940
|
function isBooleanObject(value) {
|
|
35940
35941
|
return checkBoxedPrimitive(value, booleanValue);
|
|
35941
35942
|
}
|
|
35942
|
-
exports.isBooleanObject = isBooleanObject;
|
|
35943
|
+
exports$1.isBooleanObject = isBooleanObject;
|
|
35943
35944
|
|
|
35944
35945
|
function isBigIntObject(value) {
|
|
35945
35946
|
return BigIntSupported && checkBoxedPrimitive(value, bigIntValue);
|
|
35946
35947
|
}
|
|
35947
|
-
exports.isBigIntObject = isBigIntObject;
|
|
35948
|
+
exports$1.isBigIntObject = isBigIntObject;
|
|
35948
35949
|
|
|
35949
35950
|
function isSymbolObject(value) {
|
|
35950
35951
|
return SymbolSupported && checkBoxedPrimitive(value, symbolValue);
|
|
35951
35952
|
}
|
|
35952
|
-
exports.isSymbolObject = isSymbolObject;
|
|
35953
|
+
exports$1.isSymbolObject = isSymbolObject;
|
|
35953
35954
|
|
|
35954
35955
|
function isBoxedPrimitive(value) {
|
|
35955
35956
|
return (
|
|
@@ -35960,7 +35961,7 @@ function requireTypes () {
|
|
|
35960
35961
|
isSymbolObject(value)
|
|
35961
35962
|
);
|
|
35962
35963
|
}
|
|
35963
|
-
exports.isBoxedPrimitive = isBoxedPrimitive;
|
|
35964
|
+
exports$1.isBoxedPrimitive = isBoxedPrimitive;
|
|
35964
35965
|
|
|
35965
35966
|
function isAnyArrayBuffer(value) {
|
|
35966
35967
|
return typeof Uint8Array !== 'undefined' && (
|
|
@@ -35968,10 +35969,10 @@ function requireTypes () {
|
|
|
35968
35969
|
isSharedArrayBuffer(value)
|
|
35969
35970
|
);
|
|
35970
35971
|
}
|
|
35971
|
-
exports.isAnyArrayBuffer = isAnyArrayBuffer;
|
|
35972
|
+
exports$1.isAnyArrayBuffer = isAnyArrayBuffer;
|
|
35972
35973
|
|
|
35973
35974
|
['isProxy', 'isExternal', 'isModuleNamespaceObject'].forEach(function(method) {
|
|
35974
|
-
Object.defineProperty(exports, method, {
|
|
35975
|
+
Object.defineProperty(exports$1, method, {
|
|
35975
35976
|
enumerable: false,
|
|
35976
35977
|
value: function() {
|
|
35977
35978
|
throw new Error(method + ' is not supported in userland');
|
|
@@ -35999,7 +36000,7 @@ var hasRequiredUtil;
|
|
|
35999
36000
|
function requireUtil () {
|
|
36000
36001
|
if (hasRequiredUtil) return util;
|
|
36001
36002
|
hasRequiredUtil = 1;
|
|
36002
|
-
(function (exports) {
|
|
36003
|
+
(function (exports$1) {
|
|
36003
36004
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
36004
36005
|
//
|
|
36005
36006
|
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
@@ -36032,7 +36033,7 @@ function requireUtil () {
|
|
|
36032
36033
|
};
|
|
36033
36034
|
|
|
36034
36035
|
var formatRegExp = /%[sdj%]/g;
|
|
36035
|
-
exports.format = function(f) {
|
|
36036
|
+
exports$1.format = function(f) {
|
|
36036
36037
|
if (!isString(f)) {
|
|
36037
36038
|
var objects = [];
|
|
36038
36039
|
for (var i = 0; i < arguments.length; i++) {
|
|
@@ -36074,7 +36075,7 @@ function requireUtil () {
|
|
|
36074
36075
|
// Mark that a method should not be used.
|
|
36075
36076
|
// Returns a modified function which warns once by default.
|
|
36076
36077
|
// If --no-deprecation is set, then it is a no-op.
|
|
36077
|
-
exports.deprecate = function(fn, msg) {
|
|
36078
|
+
exports$1.deprecate = function(fn, msg) {
|
|
36078
36079
|
if (typeof process !== 'undefined' && process.noDeprecation === true) {
|
|
36079
36080
|
return fn;
|
|
36080
36081
|
}
|
|
@@ -36082,7 +36083,7 @@ function requireUtil () {
|
|
|
36082
36083
|
// Allow for deprecating things in the process of starting up.
|
|
36083
36084
|
if (typeof process === 'undefined') {
|
|
36084
36085
|
return function() {
|
|
36085
|
-
return exports.deprecate(fn, msg).apply(this, arguments);
|
|
36086
|
+
return exports$1.deprecate(fn, msg).apply(this, arguments);
|
|
36086
36087
|
};
|
|
36087
36088
|
}
|
|
36088
36089
|
|
|
@@ -36116,13 +36117,13 @@ function requireUtil () {
|
|
|
36116
36117
|
.toUpperCase();
|
|
36117
36118
|
debugEnvRegex = new RegExp('^' + debugEnv + '$', 'i');
|
|
36118
36119
|
}
|
|
36119
|
-
exports.debuglog = function(set) {
|
|
36120
|
+
exports$1.debuglog = function(set) {
|
|
36120
36121
|
set = set.toUpperCase();
|
|
36121
36122
|
if (!debugs[set]) {
|
|
36122
36123
|
if (debugEnvRegex.test(set)) {
|
|
36123
36124
|
var pid = process.pid;
|
|
36124
36125
|
debugs[set] = function() {
|
|
36125
|
-
var msg = exports.format.apply(exports, arguments);
|
|
36126
|
+
var msg = exports$1.format.apply(exports$1, arguments);
|
|
36126
36127
|
console.error('%s %d: %s', set, pid, msg);
|
|
36127
36128
|
};
|
|
36128
36129
|
} else {
|
|
@@ -36155,7 +36156,7 @@ function requireUtil () {
|
|
|
36155
36156
|
ctx.showHidden = opts;
|
|
36156
36157
|
} else if (opts) {
|
|
36157
36158
|
// got an "options" object
|
|
36158
|
-
exports._extend(ctx, opts);
|
|
36159
|
+
exports$1._extend(ctx, opts);
|
|
36159
36160
|
}
|
|
36160
36161
|
// set default options
|
|
36161
36162
|
if (isUndefined(ctx.showHidden)) ctx.showHidden = false;
|
|
@@ -36165,7 +36166,7 @@ function requireUtil () {
|
|
|
36165
36166
|
if (ctx.colors) ctx.stylize = stylizeWithColor;
|
|
36166
36167
|
return formatValue(ctx, obj, ctx.depth);
|
|
36167
36168
|
}
|
|
36168
|
-
exports.inspect = inspect;
|
|
36169
|
+
exports$1.inspect = inspect;
|
|
36169
36170
|
|
|
36170
36171
|
|
|
36171
36172
|
// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics
|
|
@@ -36234,7 +36235,7 @@ function requireUtil () {
|
|
|
36234
36235
|
value &&
|
|
36235
36236
|
isFunction(value.inspect) &&
|
|
36236
36237
|
// Filter out the util module, it's inspect function is special
|
|
36237
|
-
value.inspect !== exports.inspect &&
|
|
36238
|
+
value.inspect !== exports$1.inspect &&
|
|
36238
36239
|
// Also filter out any prototype objects using the circular check.
|
|
36239
36240
|
!(value.constructor && value.constructor.prototype === value)) {
|
|
36240
36241
|
var ret = value.inspect(recurseTimes, ctx);
|
|
@@ -36464,76 +36465,76 @@ function requireUtil () {
|
|
|
36464
36465
|
|
|
36465
36466
|
// NOTE: These type checking functions intentionally don't use `instanceof`
|
|
36466
36467
|
// because it is fragile and can be easily faked with `Object.create()`.
|
|
36467
|
-
exports.types = requireTypes();
|
|
36468
|
+
exports$1.types = requireTypes();
|
|
36468
36469
|
|
|
36469
36470
|
function isArray(ar) {
|
|
36470
36471
|
return Array.isArray(ar);
|
|
36471
36472
|
}
|
|
36472
|
-
exports.isArray = isArray;
|
|
36473
|
+
exports$1.isArray = isArray;
|
|
36473
36474
|
|
|
36474
36475
|
function isBoolean(arg) {
|
|
36475
36476
|
return typeof arg === 'boolean';
|
|
36476
36477
|
}
|
|
36477
|
-
exports.isBoolean = isBoolean;
|
|
36478
|
+
exports$1.isBoolean = isBoolean;
|
|
36478
36479
|
|
|
36479
36480
|
function isNull(arg) {
|
|
36480
36481
|
return arg === null;
|
|
36481
36482
|
}
|
|
36482
|
-
exports.isNull = isNull;
|
|
36483
|
+
exports$1.isNull = isNull;
|
|
36483
36484
|
|
|
36484
36485
|
function isNullOrUndefined(arg) {
|
|
36485
36486
|
return arg == null;
|
|
36486
36487
|
}
|
|
36487
|
-
exports.isNullOrUndefined = isNullOrUndefined;
|
|
36488
|
+
exports$1.isNullOrUndefined = isNullOrUndefined;
|
|
36488
36489
|
|
|
36489
36490
|
function isNumber(arg) {
|
|
36490
36491
|
return typeof arg === 'number';
|
|
36491
36492
|
}
|
|
36492
|
-
exports.isNumber = isNumber;
|
|
36493
|
+
exports$1.isNumber = isNumber;
|
|
36493
36494
|
|
|
36494
36495
|
function isString(arg) {
|
|
36495
36496
|
return typeof arg === 'string';
|
|
36496
36497
|
}
|
|
36497
|
-
exports.isString = isString;
|
|
36498
|
+
exports$1.isString = isString;
|
|
36498
36499
|
|
|
36499
36500
|
function isSymbol(arg) {
|
|
36500
36501
|
return typeof arg === 'symbol';
|
|
36501
36502
|
}
|
|
36502
|
-
exports.isSymbol = isSymbol;
|
|
36503
|
+
exports$1.isSymbol = isSymbol;
|
|
36503
36504
|
|
|
36504
36505
|
function isUndefined(arg) {
|
|
36505
36506
|
return arg === void 0;
|
|
36506
36507
|
}
|
|
36507
|
-
exports.isUndefined = isUndefined;
|
|
36508
|
+
exports$1.isUndefined = isUndefined;
|
|
36508
36509
|
|
|
36509
36510
|
function isRegExp(re) {
|
|
36510
36511
|
return isObject(re) && objectToString(re) === '[object RegExp]';
|
|
36511
36512
|
}
|
|
36512
|
-
exports.isRegExp = isRegExp;
|
|
36513
|
-
exports.types.isRegExp = isRegExp;
|
|
36513
|
+
exports$1.isRegExp = isRegExp;
|
|
36514
|
+
exports$1.types.isRegExp = isRegExp;
|
|
36514
36515
|
|
|
36515
36516
|
function isObject(arg) {
|
|
36516
36517
|
return typeof arg === 'object' && arg !== null;
|
|
36517
36518
|
}
|
|
36518
|
-
exports.isObject = isObject;
|
|
36519
|
+
exports$1.isObject = isObject;
|
|
36519
36520
|
|
|
36520
36521
|
function isDate(d) {
|
|
36521
36522
|
return isObject(d) && objectToString(d) === '[object Date]';
|
|
36522
36523
|
}
|
|
36523
|
-
exports.isDate = isDate;
|
|
36524
|
-
exports.types.isDate = isDate;
|
|
36524
|
+
exports$1.isDate = isDate;
|
|
36525
|
+
exports$1.types.isDate = isDate;
|
|
36525
36526
|
|
|
36526
36527
|
function isError(e) {
|
|
36527
36528
|
return isObject(e) &&
|
|
36528
36529
|
(objectToString(e) === '[object Error]' || e instanceof Error);
|
|
36529
36530
|
}
|
|
36530
|
-
exports.isError = isError;
|
|
36531
|
-
exports.types.isNativeError = isError;
|
|
36531
|
+
exports$1.isError = isError;
|
|
36532
|
+
exports$1.types.isNativeError = isError;
|
|
36532
36533
|
|
|
36533
36534
|
function isFunction(arg) {
|
|
36534
36535
|
return typeof arg === 'function';
|
|
36535
36536
|
}
|
|
36536
|
-
exports.isFunction = isFunction;
|
|
36537
|
+
exports$1.isFunction = isFunction;
|
|
36537
36538
|
|
|
36538
36539
|
function isPrimitive(arg) {
|
|
36539
36540
|
return arg === null ||
|
|
@@ -36543,9 +36544,9 @@ function requireUtil () {
|
|
|
36543
36544
|
typeof arg === 'symbol' || // ES6 symbol
|
|
36544
36545
|
typeof arg === 'undefined';
|
|
36545
36546
|
}
|
|
36546
|
-
exports.isPrimitive = isPrimitive;
|
|
36547
|
+
exports$1.isPrimitive = isPrimitive;
|
|
36547
36548
|
|
|
36548
|
-
exports.isBuffer = requireIsBuffer();
|
|
36549
|
+
exports$1.isBuffer = requireIsBuffer();
|
|
36549
36550
|
|
|
36550
36551
|
function objectToString(o) {
|
|
36551
36552
|
return Object.prototype.toString.call(o);
|
|
@@ -36571,8 +36572,8 @@ function requireUtil () {
|
|
|
36571
36572
|
|
|
36572
36573
|
|
|
36573
36574
|
// log is just a thin wrapper to console.log that prepends a timestamp
|
|
36574
|
-
exports.log = function() {
|
|
36575
|
-
console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments));
|
|
36575
|
+
exports$1.log = function() {
|
|
36576
|
+
console.log('%s - %s', timestamp(), exports$1.format.apply(exports$1, arguments));
|
|
36576
36577
|
};
|
|
36577
36578
|
|
|
36578
36579
|
|
|
@@ -36589,9 +36590,9 @@ function requireUtil () {
|
|
|
36589
36590
|
* prototype.
|
|
36590
36591
|
* @param {function} superCtor Constructor function to inherit prototype from.
|
|
36591
36592
|
*/
|
|
36592
|
-
exports.inherits = requireInherits();
|
|
36593
|
+
exports$1.inherits = requireInherits();
|
|
36593
36594
|
|
|
36594
|
-
exports._extend = function(origin, add) {
|
|
36595
|
+
exports$1._extend = function(origin, add) {
|
|
36595
36596
|
// Don't do anything if add isn't an object
|
|
36596
36597
|
if (!add || !isObject(add)) return origin;
|
|
36597
36598
|
|
|
@@ -36609,7 +36610,7 @@ function requireUtil () {
|
|
|
36609
36610
|
|
|
36610
36611
|
var kCustomPromisifiedSymbol = typeof Symbol !== 'undefined' ? Symbol('util.promisify.custom') : undefined;
|
|
36611
36612
|
|
|
36612
|
-
exports.promisify = function promisify(original) {
|
|
36613
|
+
exports$1.promisify = function promisify(original) {
|
|
36613
36614
|
if (typeof original !== 'function')
|
|
36614
36615
|
throw new TypeError('The "original" argument must be of type Function');
|
|
36615
36616
|
|
|
@@ -36663,7 +36664,7 @@ function requireUtil () {
|
|
|
36663
36664
|
);
|
|
36664
36665
|
};
|
|
36665
36666
|
|
|
36666
|
-
exports.promisify.custom = kCustomPromisifiedSymbol;
|
|
36667
|
+
exports$1.promisify.custom = kCustomPromisifiedSymbol;
|
|
36667
36668
|
|
|
36668
36669
|
function callbackifyOnRejected(reason, cb) {
|
|
36669
36670
|
// `!reason` guard inspired by bluebird (Ref: https://goo.gl/t5IS6M).
|
|
@@ -36712,7 +36713,7 @@ function requireUtil () {
|
|
|
36712
36713
|
getOwnPropertyDescriptors(original));
|
|
36713
36714
|
return callbackified;
|
|
36714
36715
|
}
|
|
36715
|
-
exports.callbackify = callbackify;
|
|
36716
|
+
exports$1.callbackify = callbackify;
|
|
36716
36717
|
} (util));
|
|
36717
36718
|
return util;
|
|
36718
36719
|
}
|
|
@@ -37960,8 +37961,8 @@ Hmac.prototype.digest = function digest(enc) {
|
|
|
37960
37961
|
return this.outer.digest(enc);
|
|
37961
37962
|
};
|
|
37962
37963
|
|
|
37963
|
-
(function (exports) {
|
|
37964
|
-
var hash = exports;
|
|
37964
|
+
(function (exports$1) {
|
|
37965
|
+
var hash = exports$1;
|
|
37965
37966
|
|
|
37966
37967
|
hash.utils = utils$9;
|
|
37967
37968
|
hash.common = common$5;
|
|
@@ -38006,9 +38007,9 @@ assert.equal = function assertEqual(l, r, msg) {
|
|
|
38006
38007
|
throw new Error(msg || ('Assertion failed: ' + l + ' != ' + r));
|
|
38007
38008
|
};
|
|
38008
38009
|
|
|
38009
|
-
var utils_1 = createCommonjsModule(function (module, exports) {
|
|
38010
|
+
var utils_1 = createCommonjsModule(function (module, exports$1) {
|
|
38010
38011
|
|
|
38011
|
-
var utils = exports;
|
|
38012
|
+
var utils = exports$1;
|
|
38012
38013
|
|
|
38013
38014
|
function toArray(msg, enc) {
|
|
38014
38015
|
if (Array.isArray(msg))
|
|
@@ -38066,9 +38067,9 @@ utils.encode = function encode(arr, enc) {
|
|
|
38066
38067
|
};
|
|
38067
38068
|
});
|
|
38068
38069
|
|
|
38069
|
-
var utils_1$1 = createCommonjsModule(function (module, exports) {
|
|
38070
|
+
var utils_1$1 = createCommonjsModule(function (module, exports$1) {
|
|
38070
38071
|
|
|
38071
|
-
var utils = exports;
|
|
38072
|
+
var utils = exports$1;
|
|
38072
38073
|
|
|
38073
38074
|
|
|
38074
38075
|
|
|
@@ -39535,9 +39536,9 @@ JPoint.prototype.isInfinity = function isInfinity() {
|
|
|
39535
39536
|
return this.z.cmpn(0) === 0;
|
|
39536
39537
|
};
|
|
39537
39538
|
|
|
39538
|
-
var curve_1 = createCommonjsModule(function (module, exports) {
|
|
39539
|
+
var curve_1 = createCommonjsModule(function (module, exports$1) {
|
|
39539
39540
|
|
|
39540
|
-
var curve = exports;
|
|
39541
|
+
var curve = exports$1;
|
|
39541
39542
|
|
|
39542
39543
|
curve.base = base;
|
|
39543
39544
|
curve.short = short_1;
|
|
@@ -39545,9 +39546,9 @@ curve.mont = /*RicMoo:ethers:require(./mont)*/(null);
|
|
|
39545
39546
|
curve.edwards = /*RicMoo:ethers:require(./edwards)*/(null);
|
|
39546
39547
|
});
|
|
39547
39548
|
|
|
39548
|
-
var curves_1 = createCommonjsModule(function (module, exports) {
|
|
39549
|
+
var curves_1 = createCommonjsModule(function (module, exports$1) {
|
|
39549
39550
|
|
|
39550
|
-
var curves = exports;
|
|
39551
|
+
var curves = exports$1;
|
|
39551
39552
|
|
|
39552
39553
|
|
|
39553
39554
|
|
|
@@ -40437,9 +40438,9 @@ EC.prototype.getKeyRecoveryParam = function(e, signature$1, Q, enc) {
|
|
|
40437
40438
|
throw new Error('Unable to find valid recovery factor');
|
|
40438
40439
|
};
|
|
40439
40440
|
|
|
40440
|
-
var elliptic_1 = createCommonjsModule(function (module, exports) {
|
|
40441
|
+
var elliptic_1 = createCommonjsModule(function (module, exports$1) {
|
|
40441
40442
|
|
|
40442
|
-
var elliptic = exports;
|
|
40443
|
+
var elliptic = exports$1;
|
|
40443
40444
|
|
|
40444
40445
|
elliptic.version = /*RicMoo:ethers*/{ version: "6.6.1" }.version;
|
|
40445
40446
|
elliptic.utils = utils_1$1;
|
|
@@ -45809,7 +45810,7 @@ var lodash = {exports: {}};
|
|
|
45809
45810
|
*/
|
|
45810
45811
|
lodash.exports;
|
|
45811
45812
|
|
|
45812
|
-
(function (module, exports) {
|
|
45813
|
+
(function (module, exports$1) {
|
|
45813
45814
|
(function() {
|
|
45814
45815
|
|
|
45815
45816
|
/** Used as a safe reference for `undefined` in pre-ES5 environments. */
|
|
@@ -46240,7 +46241,7 @@ lodash.exports;
|
|
|
46240
46241
|
var root = freeGlobal || freeSelf || Function('return this')();
|
|
46241
46242
|
|
|
46242
46243
|
/** Detect free variable `exports`. */
|
|
46243
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
46244
|
+
var freeExports = exports$1 && !exports$1.nodeType && exports$1;
|
|
46244
46245
|
|
|
46245
46246
|
/** Detect free variable `module`. */
|
|
46246
46247
|
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
@@ -63158,7 +63159,7 @@ const defaultUrls = {
|
|
|
63158
63159
|
// Staging URLS.
|
|
63159
63160
|
const stagingUrls = {
|
|
63160
63161
|
apiV2: 'https://staging-api.ape.bond',
|
|
63161
|
-
realTimeApi: 'https://realtime-api-
|
|
63162
|
+
realTimeApi: 'https://realtime-api-pr-130.herokuapp.com',
|
|
63162
63163
|
mainUrl: 'https://staging.ape.bond',
|
|
63163
63164
|
priceApi: 'https://price-api.ape.bond',
|
|
63164
63165
|
};
|
|
@@ -63220,36 +63221,38 @@ const useEVMAccount = () => {
|
|
|
63220
63221
|
};
|
|
63221
63222
|
|
|
63222
63223
|
const TIERS_COLORS = {
|
|
63223
|
-
[main.LaunchBondTiers.Bronze]: 'linear-gradient(90deg, #473129 0%, #33231D 100%)',
|
|
63224
63224
|
[main.LaunchBondTiers.Silver]: 'linear-gradient(90deg, #3A3A3C 0%, #2C2C2F 100%)',
|
|
63225
63225
|
[main.LaunchBondTiers.Gold]: 'linear-gradient(90deg, #BC933F 0%, #56431D 100%)',
|
|
63226
63226
|
[main.LaunchBondTiers.Diamond]: 'linear-gradient(90deg, #1174A2 0%, #062B3C 100%)',
|
|
63227
63227
|
[main.LaunchBondTiers.Legend]: 'linear-gradient(90deg, #6B43D7 0%, #382371 100%)',
|
|
63228
|
+
[main.LaunchBondTiers.Mythical]: 'linear-gradient(90deg, #DFA9D2 -13.84%, #790524 10.35%, #DFA9D2 38.05%, #790524 76.31%)',
|
|
63228
63229
|
};
|
|
63229
63230
|
const TIERS_WEIGHT = {
|
|
63230
|
-
[main.LaunchBondTiers.Bronze]: '1000000000000000000000',
|
|
63231
63231
|
[main.LaunchBondTiers.Silver]: '10000000000000000000000',
|
|
63232
|
-
[main.LaunchBondTiers.Gold]: '
|
|
63233
|
-
[main.LaunchBondTiers.Diamond]: '
|
|
63232
|
+
[main.LaunchBondTiers.Gold]: '50000000000000000000000',
|
|
63233
|
+
[main.LaunchBondTiers.Diamond]: '200000000000000000000000',
|
|
63234
63234
|
[main.LaunchBondTiers.Legend]: '500000000000000000000000',
|
|
63235
|
+
[main.LaunchBondTiers.Mythical]: '1000000000000000000000000',
|
|
63235
63236
|
};
|
|
63236
63237
|
const TIERS_NAMES = {
|
|
63237
|
-
|
|
63238
|
+
null: 'No Tier',
|
|
63238
63239
|
[main.LaunchBondTiers.Silver]: 'Silver',
|
|
63239
63240
|
[main.LaunchBondTiers.Gold]: 'Gold',
|
|
63240
63241
|
[main.LaunchBondTiers.Diamond]: 'Diamond',
|
|
63241
63242
|
[main.LaunchBondTiers.Legend]: 'Legend',
|
|
63243
|
+
[main.LaunchBondTiers.Mythical]: 'Mythical',
|
|
63242
63244
|
};
|
|
63243
63245
|
const getUserTier = (weight) => {
|
|
63244
|
-
if (!weight)
|
|
63245
|
-
return null;
|
|
63246
63246
|
const weightBG = new BigNumber$1(weight);
|
|
63247
|
-
const bronze = new BigNumber$1(TIERS_WEIGHT[main.LaunchBondTiers.Bronze]);
|
|
63248
63247
|
const silver = new BigNumber$1(TIERS_WEIGHT[main.LaunchBondTiers.Silver]);
|
|
63249
63248
|
const gold = new BigNumber$1(TIERS_WEIGHT[main.LaunchBondTiers.Gold]);
|
|
63250
63249
|
const diamond = new BigNumber$1(TIERS_WEIGHT[main.LaunchBondTiers.Diamond]);
|
|
63251
63250
|
const legend = new BigNumber$1(TIERS_WEIGHT[main.LaunchBondTiers.Legend]);
|
|
63252
|
-
|
|
63251
|
+
const mythical = new BigNumber$1(TIERS_WEIGHT[main.LaunchBondTiers.Mythical]);
|
|
63252
|
+
if (weightBG.gte(mythical)) {
|
|
63253
|
+
return main.LaunchBondTiers.Mythical;
|
|
63254
|
+
}
|
|
63255
|
+
else if (weightBG.gte(legend)) {
|
|
63253
63256
|
return main.LaunchBondTiers.Legend;
|
|
63254
63257
|
}
|
|
63255
63258
|
else if (weightBG.gte(diamond)) {
|
|
@@ -63261,11 +63264,7 @@ const getUserTier = (weight) => {
|
|
|
63261
63264
|
else if (weightBG.gte(silver)) {
|
|
63262
63265
|
return main.LaunchBondTiers.Silver;
|
|
63263
63266
|
}
|
|
63264
|
-
|
|
63265
|
-
return main.LaunchBondTiers.Bronze;
|
|
63266
|
-
}
|
|
63267
|
-
else
|
|
63268
|
-
return null;
|
|
63267
|
+
return null;
|
|
63269
63268
|
};
|
|
63270
63269
|
const fetchUserPoints = (account, useTiers, apiUrl) => __awaiter$9(void 0, void 0, void 0, function* () {
|
|
63271
63270
|
const lensContractAddress = LENS_CONTRACT[main.ChainId.BSC];
|
|
@@ -63278,7 +63277,7 @@ const fetchUserPoints = (account, useTiers, apiUrl) => __awaiter$9(void 0, void
|
|
|
63278
63277
|
params: [account],
|
|
63279
63278
|
},
|
|
63280
63279
|
]);
|
|
63281
|
-
return res[0][0].toString();
|
|
63280
|
+
return new BigNumber$1(res[0][0].toString()).times(2).toString();
|
|
63282
63281
|
}
|
|
63283
63282
|
catch (e) {
|
|
63284
63283
|
console.error(e);
|
|
@@ -75651,7 +75650,7 @@ const remove0xPrefix = (str) => {
|
|
|
75651
75650
|
|
|
75652
75651
|
const CircularModal = () => {
|
|
75653
75652
|
const handleClick = () => {
|
|
75654
|
-
window.location.href = 'https://ape.bond/
|
|
75653
|
+
window.location.href = 'https://ape.bond/true-yield';
|
|
75655
75654
|
};
|
|
75656
75655
|
return (jsx$2(Modal, { title: "You've Claimed ABOND!", children: jsxs(Flex, { sx: { flexDirection: 'column' }, children: [jsx$2(Flex, { sx: { fontSize: '12px', lineHeight: '20px', color: 'primaryButton', mt: '10px' }, children: "Did You Know?" }), jsxs(Flex, { sx: { flexDirection: 'column', gap: '10px', cursor: 'pointer' }, onClick: handleClick, children: [jsx$2(Flex, { children: "You can stake ABOND to earn $BNB and extra discounts on Bonds:" }), jsx$2(Image$1, { src: 'https://ape.bond/images/circular-staking/real-yield.png' }), jsx$2(Image$1, { src: 'https://ape.bond/images/circular-staking/extra-discounts.png' }), jsx$2(Button, { sx: { width: '100%', mt: '10px' }, children: " Stake now" })] })] }) }));
|
|
75657
75656
|
};
|
|
@@ -75909,6 +75908,7 @@ const YourBondsModal = ({ userBill, onDismiss }) => {
|
|
|
75909
75908
|
// Static Data
|
|
75910
75909
|
const depositUSD = (_b = (_a = userBill === null || userBill === void 0 ? void 0 : userBill.nftData) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.dollarValue;
|
|
75911
75910
|
const payout = (_d = (_c = userBill === null || userBill === void 0 ? void 0 : userBill.nftData) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d.payout;
|
|
75911
|
+
console.log('payout', payout);
|
|
75912
75912
|
const payoutTokenPrice = parseFloat((_f = (_e = userBill === null || userBill === void 0 ? void 0 : userBill.bond) === null || _e === void 0 ? void 0 : _e.payoutTokenPrice) !== null && _f !== void 0 ? _f : '0');
|
|
75913
75913
|
const payoutUSD = payout && payoutTokenPrice ? payout * payoutTokenPrice : 0;
|
|
75914
75914
|
const payoutSymbol = (_h = (_g = userBill === null || userBill === void 0 ? void 0 : userBill.bond) === null || _g === void 0 ? void 0 : _g.showcaseTokenName) !== null && _h !== void 0 ? _h : (_j = userBill === null || userBill === void 0 ? void 0 : userBill.bond) === null || _j === void 0 ? void 0 : _j.earnToken.symbol;
|
|
@@ -78197,7 +78197,7 @@ const useApproval = (amount, currency, spender, account, chainId) => {
|
|
|
78197
78197
|
return [approvalState !== null && approvalState !== void 0 ? approvalState : ApprovalState.NOT_APPROVED, handleApprove];
|
|
78198
78198
|
};
|
|
78199
78199
|
|
|
78200
|
-
const version$1 = '2.
|
|
78200
|
+
const version$1 = '2.41.2';
|
|
78201
78201
|
|
|
78202
78202
|
let errorConfig = {
|
|
78203
78203
|
getDocsUrl: ({ docsBaseUrl, docsPath = '', docsSlug, }) => docsPath
|
|
@@ -78816,7 +78816,7 @@ const BondModalHeader = ({ bondData, onDismiss, showProjectInfoButton, }) => {
|
|
|
78816
78816
|
fontWeight: 700,
|
|
78817
78817
|
}, children: [bondData === null || bondData === void 0 ? void 0 : bondData.showcaseTokenName, jsx$2(ListTag, { text: (_d = bondData === null || bondData === void 0 ? void 0 : bondData.tags) === null || _d === void 0 ? void 0 : _d[0] })] }), jsxs(Flex, { className: "title-container price-container", sx: { flexDirection: 'column', pl: ['10px', '10px', '10px', '20px'] }, children: [jsxs(Flex, { className: "price-container price", sx: { fontSize: ['12px', '12px', '12px', '14px'] }, children: ["$", earnTokenPrice(bondData)] }), SDKConfig.useTiers && bondData.billVersion === main.BillVersion.V4 ? (jsxs(Flex, { sx: {
|
|
78818
78818
|
p: '3px 6px',
|
|
78819
|
-
border: '1px solid
|
|
78819
|
+
border: '1px solid #891F3F',
|
|
78820
78820
|
borderRadius: 'normal',
|
|
78821
78821
|
background: 'transparent',
|
|
78822
78822
|
position: 'relative',
|
|
@@ -78828,9 +78828,9 @@ const BondModalHeader = ({ bondData, onDismiss, showProjectInfoButton, }) => {
|
|
|
78828
78828
|
top: 0,
|
|
78829
78829
|
left: 0,
|
|
78830
78830
|
zIndex: 1,
|
|
78831
|
-
background: '
|
|
78831
|
+
background: '#891F3F',
|
|
78832
78832
|
opacity: 0.3,
|
|
78833
|
-
} }), jsxs(Flex, { sx: { width: '100%', zIndex: 2, alignItems: 'center' }, children: [jsx$2("img", { src: `https://ape.bond/images/launch/
|
|
78833
|
+
} }), jsxs(Flex, { sx: { width: '100%', zIndex: 2, alignItems: 'center' }, children: [jsx$2("img", { src: `https://ape.bond/images/launch/mythical.png`, alt: "minTier", style: { width: '21px', height: '21px', marginRight: '3px', zIndex: 1 } }), jsx$2(Flex, { sx: { fontSize: ['12px', '12px', '12px', '14px'], mr: '3px' }, children: "Up to" }), jsxs(Flex, { sx: {
|
|
78834
78834
|
color: bonusWithFee && bonusWithFee > 0 ? 'success' : 'error',
|
|
78835
78835
|
fontSize: ['12px', '12px', '12px', '14px'],
|
|
78836
78836
|
}, children: ["$", discountEarnTokenPrice(bondData, true)] })] })] })) : (jsxs(Flex, { sx: { fontSize: '24px', fontWeight: 700 }, children: ["$", discountEarnTokenPrice(bondData)] }))] }), jsx$2(Flex, { sx: { display: ['none', 'none', 'none', 'flex'], ml: '10px' }, children: jsx$2(BondModalMinTierHeader, { minTier: minTier }) })] })] }));
|
|
@@ -78868,6 +78868,7 @@ const BonusTable = ({ trueBondPrices, minTier, hideTitle, }) => {
|
|
|
78868
78868
|
return (jsxs(Flex, { sx: { width: '100%', flexDirection: 'column' }, children: [!hideTitle && jsx$2(Flex, { sx: { width: '100%', justifyContent: 'center', mb: '10px' }, children: "Ape Tier Bonuses" }), trueBondPrices === null || trueBondPrices === void 0 ? void 0 : trueBondPrices.sort((a, b) => new BigNumber$1(b.points).minus(new BigNumber$1(a.points)).toNumber()).map((tier) => {
|
|
78869
78869
|
var _a, _b, _c;
|
|
78870
78870
|
const tierToUse = getUserTier(tier.points);
|
|
78871
|
+
//@ts-ignore
|
|
78871
78872
|
const tierName = `${TIERS_NAMES[tierToUse]}`;
|
|
78872
78873
|
const you = tier.points === (usersTrueBondPrices === null || usersTrueBondPrices === void 0 ? void 0 : usersTrueBondPrices.points);
|
|
78873
78874
|
// @ts-ignore
|
|
@@ -78876,19 +78877,22 @@ const BonusTable = ({ trueBondPrices, minTier, hideTitle, }) => {
|
|
|
78876
78877
|
width: '100%',
|
|
78877
78878
|
justifyContent: 'space-between',
|
|
78878
78879
|
height: '30px',
|
|
78880
|
+
//@ts-ignore
|
|
78879
78881
|
background: (_a = TIERS_COLORS[tierToUse]) !== null && _a !== void 0 ? _a : 'white3',
|
|
78880
78882
|
borderRadius: 'normal',
|
|
78881
78883
|
alignItems: 'center',
|
|
78882
78884
|
px: '8px',
|
|
78883
78885
|
mb: '1px',
|
|
78884
|
-
}, children: [jsxs(Flex, { sx: { alignItems: 'center' }, children: [tier.points !== '0' && (jsx$2("img", {
|
|
78886
|
+
}, children: [jsxs(Flex, { sx: { alignItems: 'center' }, children: [tier.points !== '0' && (jsx$2("img", {
|
|
78887
|
+
//@ts-ignore
|
|
78888
|
+
src: `https://ape.bond/images/launch/${(_b = TIERS_NAMES[tierToUse]) === null || _b === void 0 ? void 0 : _b.toLowerCase()}.png`, alt: "minTier", style: { width: '21px', height: '21px', marginRight: '3px', zIndex: 1 } })), jsx$2(Flex, { children: tier.points === '0' ? 'No Tier' : tierName }), you && jsx$2(YouTooltip, {})] }), isUnavailable ? (jsx$2(Flex, { sx: { fontWeight: 600, opacity: 0.8 }, children: "UNAVAILABLE" })) : (jsxs(Flex, { sx: { color: tier.bonusWithFee > 0 ? 'success' : 'text', fontWeight: 700, alignItems: 'center' }, children: [tier.bonusWithFee > 0 ? tier.bonusWithFee.toFixed(2) : '0', "%", tier.points !== '0' && (jsx$2(Flex, { sx: {
|
|
78885
78889
|
borderRadius: 'normal',
|
|
78886
78890
|
border: '1px solid var(--theme-ui-colors-success)',
|
|
78887
78891
|
px: '4px',
|
|
78888
78892
|
ml: '3px',
|
|
78889
78893
|
color: 'success',
|
|
78890
78894
|
}, children: `+${(_c = tier === null || tier === void 0 ? void 0 : tier.boost) !== null && _c !== void 0 ? _c : 0}%` }))] }))] }, tier.points));
|
|
78891
|
-
}), !hideTitle && (jsx$2(Button, { variant: "secondary", sx: { width: '100%', mt: '10px' }, onClick: () => window.open('https://ape.bond/
|
|
78895
|
+
}), !hideTitle && (jsx$2(Button, { variant: "secondary", sx: { width: '100%', mt: '10px' }, onClick: () => window.open('https://ape.bond/true-yield', '_blank'), children: "get tier" }))] }));
|
|
78892
78896
|
};
|
|
78893
78897
|
|
|
78894
78898
|
const BonusComponent = ({ trueBondPrices, minTier, bonus, airdropTooltip, tooltipPosition, }) => {
|
|
@@ -78901,7 +78905,7 @@ const BonusComponent = ({ trueBondPrices, minTier, bonus, airdropTooltip, toolti
|
|
|
78901
78905
|
const baseTrueBondPrice = findHighestTrueBondPrice('0', trueBondPrices);
|
|
78902
78906
|
return (jsx$2(Flex, { children: trueBondPrices && (trueBondPrices === null || trueBondPrices === void 0 ? void 0 : trueBondPrices.length) > 1 && SDKConfig.useTiers ? (jsx$2(Flex, { sx: { alignItems: 'center', minWidth: '20px' }, children: (highestPointsElement === null || highestPointsElement === void 0 ? void 0 : highestPointsElement.bonusWithFee) && (highestPointsElement === null || highestPointsElement === void 0 ? void 0 : highestPointsElement.bonusWithFee) > 0 ? (jsx$2(TooltipBubble, { width: "280px", placement: tooltipPosition, transformTip: tooltipPosition === 'bottomLeft' ? 'translate(0%, 0%)' : 'translate(0%, 0%)', body: jsx$2(BonusTable, { trueBondPrices: trueBondPrices, minTier: minTier }), children: jsxs(Flex, { sx: {
|
|
78903
78907
|
p: '3px 6px',
|
|
78904
|
-
border: '1px solid
|
|
78908
|
+
border: '1px solid #891F3F',
|
|
78905
78909
|
borderRadius: 'normal',
|
|
78906
78910
|
background: 'transparent',
|
|
78907
78911
|
position: 'relative',
|
|
@@ -78915,9 +78919,9 @@ const BonusComponent = ({ trueBondPrices, minTier, bonus, airdropTooltip, toolti
|
|
|
78915
78919
|
top: 0,
|
|
78916
78920
|
left: 0,
|
|
78917
78921
|
zIndex: 1,
|
|
78918
|
-
background: '
|
|
78922
|
+
background: '#891F3F',
|
|
78919
78923
|
opacity: 0.3,
|
|
78920
|
-
} }), jsxs(Flex, { sx: { width: '100%', zIndex: 2, alignItems: 'center', justifyContent: 'center' }, children: [jsx$2("img", { src: `https://ape.bond/images/launch/
|
|
78924
|
+
} }), jsxs(Flex, { sx: { width: '100%', zIndex: 2, alignItems: 'center', justifyContent: 'center' }, children: [jsx$2("img", { src: `https://ape.bond/images/launch/mythical.png`, alt: "minTier", style: { width: '21px', height: '21px', marginRight: '3px', zIndex: 1 } }), jsx$2(Flex, { sx: { fontSize: ['12px', '12px', '14px', '14px'], mr: '3px' }, children: "Up to" }), jsxs(Flex, { sx: {
|
|
78921
78925
|
color: (highestPointsElement === null || highestPointsElement === void 0 ? void 0 : highestPointsElement.bonusWithFee) && (highestPointsElement === null || highestPointsElement === void 0 ? void 0 : highestPointsElement.bonusWithFee) > 0
|
|
78922
78926
|
? 'success'
|
|
78923
78927
|
: 'error',
|
|
@@ -78992,6 +78996,7 @@ const Estimations = ({ depositAmount, bondData, youSpendString, isZap, fetchingZ
|
|
|
78992
78996
|
const estimatedOutputUSD = estimatedOutputAmount * parseFloat((_a = bondData === null || bondData === void 0 ? void 0 : bondData.payoutTokenPrice) !== null && _a !== void 0 ? _a : '0');
|
|
78993
78997
|
const noTierAmount = getRawBonus$1(bondData, depositAmount, '0');
|
|
78994
78998
|
const boostAmount = parseFloat(getRawBonus$1(bondData, depositAmount, userPoints !== null && userPoints !== void 0 ? userPoints : '0')) - parseFloat(noTierAmount);
|
|
78999
|
+
console.log('estimatedOutputAmount', estimatedOutputAmount);
|
|
78995
79000
|
return (jsxs(Flex, { className: "modaltable-container text-container", children: [jsxs(Flex, { className: "text-container row", children: [jsx$2(Flex, { className: "row-container spend", children: "You Spend:" }), jsx$2(Flex, { className: "row-container spend-val", children: youSpendString })] }), jsxs(Flex, { className: "text-container row", children: [jsxs(Flex, { className: "row-container premium", children: [!!userTier && !!userPoints && SDKConfig.useTiers && bondData.billVersion === main.BillVersion.V4
|
|
78996
79001
|
? 'Base Bonus:'
|
|
78997
79002
|
: 'Bonus:', jsx$2(TooltipBubble, { className: "tooltip-bubble", body: jsx$2(Flex, { children: TooltipText.Premium }), width: "230px", placement: "bottomLeft", transformTip: "translate(-5%, 0%)", children: jsx$2(Flex, { className: "row-container premium-icon", children: jsx$2(Svg, { icon: "questionCircle", width: "12px" }) }) })] }), isZap && fetchingZapQuote ? (jsx$2(Dots, {})) : isZap && zapError ? ('-') : (jsxs(Flex, { className: `row-container premium-val ${getBonusColor(bonusString)}`, children: ["$ ", formatNumberSI(bonusString)] }))] }), (trueBondPrice === null || trueBondPrice === void 0 ? void 0 : trueBondPrice.points) !== '0' && userTier && userPoints && SDKConfig.useTiers && (jsxs(Flex, { className: "text-container row", sx: {
|