@ape.swap/bonds-sdk 4.4.1-alpha.0 → 4.4.1-test.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/main.js +218 -225
- package/package.json +10 -10
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,13 @@ 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
|
-
})((exports.LaunchBondTiers || (exports.LaunchBondTiers = {})));
|
|
20220
|
+
})((exports$1.LaunchBondTiers || (exports$1.LaunchBondTiers = {})));
|
|
20221
20221
|
(function (VaultVersion) {
|
|
20222
20222
|
VaultVersion['V1'] = 'V1';
|
|
20223
20223
|
VaultVersion['V2'] = 'V2';
|
|
20224
20224
|
VaultVersion['V3'] = 'V3';
|
|
20225
|
-
})((exports.VaultVersion || (exports.VaultVersion = {})));
|
|
20226
|
-
exports.dexFactories =
|
|
20225
|
+
})((exports$1.VaultVersion || (exports$1.VaultVersion = {})));
|
|
20226
|
+
exports$1.dexFactories =
|
|
20227
20227
|
((_a = {}),
|
|
20228
20228
|
(_a[ChainId.MAINNET] =
|
|
20229
20229
|
((_b = {}),
|
|
@@ -20527,17 +20527,17 @@ function requireTypes$1 () {
|
|
|
20527
20527
|
}),
|
|
20528
20528
|
_t)),
|
|
20529
20529
|
_a);
|
|
20530
|
-
exports.defaultDexFactories =
|
|
20530
|
+
exports$1.defaultDexFactories =
|
|
20531
20531
|
((_u = {}),
|
|
20532
20532
|
(_u[ChainId.MAINNET] =
|
|
20533
20533
|
((_v = {}),
|
|
20534
20534
|
(_v[Protocols.V2] =
|
|
20535
|
-
(_29 = (_28 = exports.dexFactories[ChainId.MAINNET]) === null || _28 === void 0 ? void 0 : _28.ApeSwapV2) ===
|
|
20535
|
+
(_29 = (_28 = exports$1.dexFactories[ChainId.MAINNET]) === null || _28 === void 0 ? void 0 : _28.ApeSwapV2) ===
|
|
20536
20536
|
null || _29 === void 0
|
|
20537
20537
|
? void 0
|
|
20538
20538
|
: _29.factory),
|
|
20539
20539
|
(_v[Protocols.V3] =
|
|
20540
|
-
(_31 = (_30 = exports.dexFactories[ChainId.MAINNET]) === null || _30 === void 0 ? void 0 : _30.UniswapV3) ===
|
|
20540
|
+
(_31 = (_30 = exports$1.dexFactories[ChainId.MAINNET]) === null || _30 === void 0 ? void 0 : _30.UniswapV3) ===
|
|
20541
20541
|
null || _31 === void 0
|
|
20542
20542
|
? void 0
|
|
20543
20543
|
: _31.factory),
|
|
@@ -20545,22 +20545,22 @@ function requireTypes$1 () {
|
|
|
20545
20545
|
(_u[ChainId.BSC] =
|
|
20546
20546
|
((_w = {}),
|
|
20547
20547
|
(_w[Protocols.V2] =
|
|
20548
|
-
(_33 = (_32 = exports.dexFactories[ChainId.BSC]) === null || _32 === void 0 ? void 0 : _32.ApeSwapV2) === null ||
|
|
20548
|
+
(_33 = (_32 = exports$1.dexFactories[ChainId.BSC]) === null || _32 === void 0 ? void 0 : _32.ApeSwapV2) === null ||
|
|
20549
20549
|
_33 === void 0
|
|
20550
20550
|
? void 0
|
|
20551
20551
|
: _33.factory),
|
|
20552
20552
|
(_w[Protocols.V3] =
|
|
20553
|
-
(_35 = (_34 = exports.dexFactories[ChainId.BSC]) === null || _34 === void 0 ? void 0 : _34.UniswapV3) === null ||
|
|
20553
|
+
(_35 = (_34 = exports$1.dexFactories[ChainId.BSC]) === null || _34 === void 0 ? void 0 : _34.UniswapV3) === null ||
|
|
20554
20554
|
_35 === void 0
|
|
20555
20555
|
? void 0
|
|
20556
20556
|
: _35.factory),
|
|
20557
20557
|
(_w[Protocols.Algebra] =
|
|
20558
|
-
(_37 = (_36 = exports.dexFactories[ChainId.BSC]) === null || _36 === void 0 ? void 0 : _36.Algebra) === null ||
|
|
20558
|
+
(_37 = (_36 = exports$1.dexFactories[ChainId.BSC]) === null || _36 === void 0 ? void 0 : _36.Algebra) === null ||
|
|
20559
20559
|
_37 === void 0
|
|
20560
20560
|
? void 0
|
|
20561
20561
|
: _37.factory),
|
|
20562
20562
|
(_w[Protocols.Solidly] =
|
|
20563
|
-
(_39 = (_38 = exports.dexFactories[ChainId.BSC]) === null || _38 === void 0 ? void 0 : _38.ThenaV1) === null ||
|
|
20563
|
+
(_39 = (_38 = exports$1.dexFactories[ChainId.BSC]) === null || _38 === void 0 ? void 0 : _38.ThenaV1) === null ||
|
|
20564
20564
|
_39 === void 0
|
|
20565
20565
|
? void 0
|
|
20566
20566
|
: _39.factory),
|
|
@@ -20568,17 +20568,17 @@ function requireTypes$1 () {
|
|
|
20568
20568
|
(_u[ChainId.MATIC] =
|
|
20569
20569
|
((_x = {}),
|
|
20570
20570
|
(_x[Protocols.V2] =
|
|
20571
|
-
(_41 = (_40 = exports.dexFactories[ChainId.MATIC]) === null || _40 === void 0 ? void 0 : _40.ApeSwapV2) ===
|
|
20571
|
+
(_41 = (_40 = exports$1.dexFactories[ChainId.MATIC]) === null || _40 === void 0 ? void 0 : _40.ApeSwapV2) ===
|
|
20572
20572
|
null || _41 === void 0
|
|
20573
20573
|
? void 0
|
|
20574
20574
|
: _41.factory),
|
|
20575
20575
|
(_x[Protocols.V3] =
|
|
20576
|
-
(_43 = (_42 = exports.dexFactories[ChainId.MATIC]) === null || _42 === void 0 ? void 0 : _42.UniswapV3) ===
|
|
20576
|
+
(_43 = (_42 = exports$1.dexFactories[ChainId.MATIC]) === null || _42 === void 0 ? void 0 : _42.UniswapV3) ===
|
|
20577
20577
|
null || _43 === void 0
|
|
20578
20578
|
? void 0
|
|
20579
20579
|
: _43.factory),
|
|
20580
20580
|
(_x[Protocols.Algebra] =
|
|
20581
|
-
(_45 = (_44 = exports.dexFactories[ChainId.MATIC]) === null || _44 === void 0 ? void 0 : _44.Algebra) === null ||
|
|
20581
|
+
(_45 = (_44 = exports$1.dexFactories[ChainId.MATIC]) === null || _44 === void 0 ? void 0 : _44.Algebra) === null ||
|
|
20582
20582
|
_45 === void 0
|
|
20583
20583
|
? void 0
|
|
20584
20584
|
: _45.factory),
|
|
@@ -20586,22 +20586,22 @@ function requireTypes$1 () {
|
|
|
20586
20586
|
(_u[ChainId.ARBITRUM] =
|
|
20587
20587
|
((_y = {}),
|
|
20588
20588
|
(_y[Protocols.V2] =
|
|
20589
|
-
(_47 = (_46 = exports.dexFactories[ChainId.ARBITRUM]) === null || _46 === void 0 ? void 0 : _46.ApeSwapV2) ===
|
|
20589
|
+
(_47 = (_46 = exports$1.dexFactories[ChainId.ARBITRUM]) === null || _46 === void 0 ? void 0 : _46.ApeSwapV2) ===
|
|
20590
20590
|
null || _47 === void 0
|
|
20591
20591
|
? void 0
|
|
20592
20592
|
: _47.factory),
|
|
20593
20593
|
(_y[Protocols.V3] =
|
|
20594
|
-
(_49 = (_48 = exports.dexFactories[ChainId.ARBITRUM]) === null || _48 === void 0 ? void 0 : _48.UniswapV3) ===
|
|
20594
|
+
(_49 = (_48 = exports$1.dexFactories[ChainId.ARBITRUM]) === null || _48 === void 0 ? void 0 : _48.UniswapV3) ===
|
|
20595
20595
|
null || _49 === void 0
|
|
20596
20596
|
? void 0
|
|
20597
20597
|
: _49.factory),
|
|
20598
20598
|
(_y[Protocols.Algebra] =
|
|
20599
|
-
(_51 = (_50 = exports.dexFactories[ChainId.ARBITRUM]) === null || _50 === void 0 ? void 0 : _50.Algebra) ===
|
|
20599
|
+
(_51 = (_50 = exports$1.dexFactories[ChainId.ARBITRUM]) === null || _50 === void 0 ? void 0 : _50.Algebra) ===
|
|
20600
20600
|
null || _51 === void 0
|
|
20601
20601
|
? void 0
|
|
20602
20602
|
: _51.factory),
|
|
20603
20603
|
(_y[Protocols.Curve] =
|
|
20604
|
-
(_53 = (_52 = exports.dexFactories[ChainId.ARBITRUM]) === null || _52 === void 0 ? void 0 : _52.Curve) === null ||
|
|
20604
|
+
(_53 = (_52 = exports$1.dexFactories[ChainId.ARBITRUM]) === null || _52 === void 0 ? void 0 : _52.Curve) === null ||
|
|
20605
20605
|
_53 === void 0
|
|
20606
20606
|
? void 0
|
|
20607
20607
|
: _53.factory),
|
|
@@ -20609,27 +20609,27 @@ function requireTypes$1 () {
|
|
|
20609
20609
|
(_u[ChainId.LINEA] =
|
|
20610
20610
|
((_z = {}),
|
|
20611
20611
|
(_z[Protocols.V2] =
|
|
20612
|
-
(_55 = (_54 = exports.dexFactories[ChainId.LINEA]) === null || _54 === void 0 ? void 0 : _54.Spartadex) ===
|
|
20612
|
+
(_55 = (_54 = exports$1.dexFactories[ChainId.LINEA]) === null || _54 === void 0 ? void 0 : _54.Spartadex) ===
|
|
20613
20613
|
null || _55 === void 0
|
|
20614
20614
|
? void 0
|
|
20615
20615
|
: _55.factory),
|
|
20616
20616
|
(_z[Protocols.V3] =
|
|
20617
|
-
(_57 = (_56 = exports.dexFactories[ChainId.LINEA]) === null || _56 === void 0 ? void 0 : _56.Nile) === null ||
|
|
20617
|
+
(_57 = (_56 = exports$1.dexFactories[ChainId.LINEA]) === null || _56 === void 0 ? void 0 : _56.Nile) === null ||
|
|
20618
20618
|
_57 === void 0
|
|
20619
20619
|
? void 0
|
|
20620
20620
|
: _57.factory),
|
|
20621
20621
|
(_z[Protocols.Algebra] =
|
|
20622
|
-
(_59 = (_58 = exports.dexFactories[ChainId.LINEA]) === null || _58 === void 0 ? void 0 : _58.Algebra) === null ||
|
|
20622
|
+
(_59 = (_58 = exports$1.dexFactories[ChainId.LINEA]) === null || _58 === void 0 ? void 0 : _58.Algebra) === null ||
|
|
20623
20623
|
_59 === void 0
|
|
20624
20624
|
? void 0
|
|
20625
20625
|
: _59.factory),
|
|
20626
20626
|
(_z[Protocols.Solidly] =
|
|
20627
|
-
(_61 = (_60 = exports.dexFactories[ChainId.LINEA]) === null || _60 === void 0 ? void 0 : _60.Lynex) === null ||
|
|
20627
|
+
(_61 = (_60 = exports$1.dexFactories[ChainId.LINEA]) === null || _60 === void 0 ? void 0 : _60.Lynex) === null ||
|
|
20628
20628
|
_61 === void 0
|
|
20629
20629
|
? void 0
|
|
20630
20630
|
: _61.factory),
|
|
20631
20631
|
(_z[Protocols.XFAI] =
|
|
20632
|
-
(_63 = (_62 = exports.dexFactories[ChainId.LINEA]) === null || _62 === void 0 ? void 0 : _62.XFAI) === null ||
|
|
20632
|
+
(_63 = (_62 = exports$1.dexFactories[ChainId.LINEA]) === null || _62 === void 0 ? void 0 : _62.XFAI) === null ||
|
|
20633
20633
|
_63 === void 0
|
|
20634
20634
|
? void 0
|
|
20635
20635
|
: _63.factory),
|
|
@@ -20637,7 +20637,7 @@ function requireTypes$1 () {
|
|
|
20637
20637
|
(_u[ChainId.LIGHTLINK] =
|
|
20638
20638
|
((_0 = {}),
|
|
20639
20639
|
(_0[Protocols.V3] =
|
|
20640
|
-
(_65 = (_64 = exports.dexFactories[ChainId.LIGHTLINK]) === null || _64 === void 0 ? void 0 : _64.Elektrik) ===
|
|
20640
|
+
(_65 = (_64 = exports$1.dexFactories[ChainId.LIGHTLINK]) === null || _64 === void 0 ? void 0 : _64.Elektrik) ===
|
|
20641
20641
|
null || _65 === void 0
|
|
20642
20642
|
? void 0
|
|
20643
20643
|
: _65.factory),
|
|
@@ -20645,22 +20645,22 @@ function requireTypes$1 () {
|
|
|
20645
20645
|
(_u[ChainId.BASE] =
|
|
20646
20646
|
((_1 = {}),
|
|
20647
20647
|
(_1[Protocols.V2] =
|
|
20648
|
-
(_67 = (_66 = exports.dexFactories[ChainId.BASE]) === null || _66 === void 0 ? void 0 : _66.SmarDex) === null ||
|
|
20648
|
+
(_67 = (_66 = exports$1.dexFactories[ChainId.BASE]) === null || _66 === void 0 ? void 0 : _66.SmarDex) === null ||
|
|
20649
20649
|
_67 === void 0
|
|
20650
20650
|
? void 0
|
|
20651
20651
|
: _67.factory),
|
|
20652
20652
|
(_1[Protocols.V3] =
|
|
20653
|
-
(_69 = (_68 = exports.dexFactories[ChainId.BASE]) === null || _68 === void 0 ? void 0 : _68.UniswapV3) === null ||
|
|
20653
|
+
(_69 = (_68 = exports$1.dexFactories[ChainId.BASE]) === null || _68 === void 0 ? void 0 : _68.UniswapV3) === null ||
|
|
20654
20654
|
_69 === void 0
|
|
20655
20655
|
? void 0
|
|
20656
20656
|
: _69.factory),
|
|
20657
20657
|
(_1[Protocols.Algebra] =
|
|
20658
|
-
(_71 = (_70 = exports.dexFactories[ChainId.BASE]) === null || _70 === void 0 ? void 0 : _70.Algebra) === null ||
|
|
20658
|
+
(_71 = (_70 = exports$1.dexFactories[ChainId.BASE]) === null || _70 === void 0 ? void 0 : _70.Algebra) === null ||
|
|
20659
20659
|
_71 === void 0
|
|
20660
20660
|
? void 0
|
|
20661
20661
|
: _71.factory),
|
|
20662
20662
|
(_1[Protocols.Solidly] =
|
|
20663
|
-
(_73 = (_72 = exports.dexFactories[ChainId.BASE]) === null || _72 === void 0 ? void 0 : _72.Aerodrome) === null ||
|
|
20663
|
+
(_73 = (_72 = exports$1.dexFactories[ChainId.BASE]) === null || _72 === void 0 ? void 0 : _72.Aerodrome) === null ||
|
|
20664
20664
|
_73 === void 0
|
|
20665
20665
|
? void 0
|
|
20666
20666
|
: _73.factory),
|
|
@@ -20668,7 +20668,7 @@ function requireTypes$1 () {
|
|
|
20668
20668
|
(_u[ChainId.IOTA] =
|
|
20669
20669
|
((_2 = {}),
|
|
20670
20670
|
(_2[Protocols.V2] =
|
|
20671
|
-
(_75 = (_74 = exports.dexFactories[ChainId.IOTA]) === null || _74 === void 0 ? void 0 : _74.MagicSea) === null ||
|
|
20671
|
+
(_75 = (_74 = exports$1.dexFactories[ChainId.IOTA]) === null || _74 === void 0 ? void 0 : _74.MagicSea) === null ||
|
|
20672
20672
|
_75 === void 0
|
|
20673
20673
|
? void 0
|
|
20674
20674
|
: _75.factory),
|
|
@@ -20676,12 +20676,12 @@ function requireTypes$1 () {
|
|
|
20676
20676
|
(_u[ChainId.AVAX] =
|
|
20677
20677
|
((_3 = {}),
|
|
20678
20678
|
(_3[Protocols.V2] =
|
|
20679
|
-
(_77 = (_76 = exports.dexFactories[ChainId.AVAX]) === null || _76 === void 0 ? void 0 : _76.LFJ) === null ||
|
|
20679
|
+
(_77 = (_76 = exports$1.dexFactories[ChainId.AVAX]) === null || _76 === void 0 ? void 0 : _76.LFJ) === null ||
|
|
20680
20680
|
_77 === void 0
|
|
20681
20681
|
? void 0
|
|
20682
20682
|
: _77.factory),
|
|
20683
20683
|
(_3[Protocols.V3] =
|
|
20684
|
-
(_79 = (_78 = exports.dexFactories[ChainId.AVAX]) === null || _78 === void 0 ? void 0 : _78.Pharaoh) === null ||
|
|
20684
|
+
(_79 = (_78 = exports$1.dexFactories[ChainId.AVAX]) === null || _78 === void 0 ? void 0 : _78.Pharaoh) === null ||
|
|
20685
20685
|
_79 === void 0
|
|
20686
20686
|
? void 0
|
|
20687
20687
|
: _79.factory),
|
|
@@ -20689,12 +20689,12 @@ function requireTypes$1 () {
|
|
|
20689
20689
|
(_u[ChainId.BLAST] =
|
|
20690
20690
|
((_4 = {}),
|
|
20691
20691
|
(_4[Protocols.V2] =
|
|
20692
|
-
(_81 = (_80 = exports.dexFactories[ChainId.BLAST]) === null || _80 === void 0 ? void 0 : _80.ThrusterV2_03) ===
|
|
20692
|
+
(_81 = (_80 = exports$1.dexFactories[ChainId.BLAST]) === null || _80 === void 0 ? void 0 : _80.ThrusterV2_03) ===
|
|
20693
20693
|
null || _81 === void 0
|
|
20694
20694
|
? void 0
|
|
20695
20695
|
: _81.factory),
|
|
20696
20696
|
(_4[Protocols.V3] =
|
|
20697
|
-
(_83 = (_82 = exports.dexFactories[ChainId.BLAST]) === null || _82 === void 0 ? void 0 : _82.ThrusterV3) ===
|
|
20697
|
+
(_83 = (_82 = exports$1.dexFactories[ChainId.BLAST]) === null || _82 === void 0 ? void 0 : _82.ThrusterV3) ===
|
|
20698
20698
|
null || _83 === void 0
|
|
20699
20699
|
? void 0
|
|
20700
20700
|
: _83.factory),
|
|
@@ -20703,7 +20703,7 @@ function requireTypes$1 () {
|
|
|
20703
20703
|
((_5 = {}),
|
|
20704
20704
|
(_5[Protocols.V2] =
|
|
20705
20705
|
(_85 =
|
|
20706
|
-
(_84 = exports.dexFactories[ChainId.SINGULARITY_TESTNET]) === null || _84 === void 0 ? void 0 : _84.Citea) ===
|
|
20706
|
+
(_84 = exports$1.dexFactories[ChainId.SINGULARITY_TESTNET]) === null || _84 === void 0 ? void 0 : _84.Citea) ===
|
|
20707
20707
|
null || _85 === void 0
|
|
20708
20708
|
? void 0
|
|
20709
20709
|
: _85.factory),
|
|
@@ -20711,7 +20711,7 @@ function requireTypes$1 () {
|
|
|
20711
20711
|
(_u[ChainId.CROSSFI] =
|
|
20712
20712
|
((_6 = {}),
|
|
20713
20713
|
(_6[Protocols.V2] =
|
|
20714
|
-
(_87 = (_86 = exports.dexFactories[ChainId.CROSSFI]) === null || _86 === void 0 ? void 0 : _86.XSwap) === null ||
|
|
20714
|
+
(_87 = (_86 = exports$1.dexFactories[ChainId.CROSSFI]) === null || _86 === void 0 ? void 0 : _86.XSwap) === null ||
|
|
20715
20715
|
_87 === void 0
|
|
20716
20716
|
? void 0
|
|
20717
20717
|
: _87.factory),
|
|
@@ -20719,18 +20719,18 @@ function requireTypes$1 () {
|
|
|
20719
20719
|
(_u[ChainId.SONIC] =
|
|
20720
20720
|
((_7 = {}),
|
|
20721
20721
|
(_7[Protocols.Solidly] =
|
|
20722
|
-
(_89 = (_88 = exports.dexFactories[ChainId.SONIC]) === null || _88 === void 0 ? void 0 : _88.ShadowExchange) ===
|
|
20722
|
+
(_89 = (_88 = exports$1.dexFactories[ChainId.SONIC]) === null || _88 === void 0 ? void 0 : _88.ShadowExchange) ===
|
|
20723
20723
|
null || _89 === void 0
|
|
20724
20724
|
? void 0
|
|
20725
20725
|
: _89.factory),
|
|
20726
20726
|
(_7[Protocols.V3] =
|
|
20727
|
-
(_91 = (_90 = exports.dexFactories[ChainId.SONIC]) === null || _90 === void 0 ? void 0 : _90.Wagmi) === null ||
|
|
20727
|
+
(_91 = (_90 = exports$1.dexFactories[ChainId.SONIC]) === null || _90 === void 0 ? void 0 : _90.Wagmi) === null ||
|
|
20728
20728
|
_91 === void 0
|
|
20729
20729
|
? void 0
|
|
20730
20730
|
: _91.factory),
|
|
20731
20731
|
(_7[Protocols.AlgebraIntegral] =
|
|
20732
20732
|
(_93 =
|
|
20733
|
-
(_92 = exports.dexFactories[ChainId.SONIC]) === null || _92 === void 0 ? void 0 : _92.SwapXAlgebraIntegral) ===
|
|
20733
|
+
(_92 = exports$1.dexFactories[ChainId.SONIC]) === null || _92 === void 0 ? void 0 : _92.SwapXAlgebraIntegral) ===
|
|
20734
20734
|
null || _93 === void 0
|
|
20735
20735
|
? void 0
|
|
20736
20736
|
: _93.factory),
|
|
@@ -20738,7 +20738,7 @@ function requireTypes$1 () {
|
|
|
20738
20738
|
(_u[ChainId.MONAD_TESTNET] =
|
|
20739
20739
|
((_8 = {}),
|
|
20740
20740
|
(_8[Protocols.V2] =
|
|
20741
|
-
(_95 = (_94 = exports.dexFactories[ChainId.MONAD_TESTNET]) === null || _94 === void 0 ? void 0 : _94.LFJ) ===
|
|
20741
|
+
(_95 = (_94 = exports$1.dexFactories[ChainId.MONAD_TESTNET]) === null || _94 === void 0 ? void 0 : _94.LFJ) ===
|
|
20742
20742
|
null || _95 === void 0
|
|
20743
20743
|
? void 0
|
|
20744
20744
|
: _95.factory),
|
|
@@ -20746,12 +20746,12 @@ function requireTypes$1 () {
|
|
|
20746
20746
|
(_u[ChainId.BERACHAIN] =
|
|
20747
20747
|
((_9 = {}),
|
|
20748
20748
|
(_9[Protocols.V2] =
|
|
20749
|
-
(_97 = (_96 = exports.dexFactories[ChainId.BERACHAIN]) === null || _96 === void 0 ? void 0 : _96.KodiakV2) ===
|
|
20749
|
+
(_97 = (_96 = exports$1.dexFactories[ChainId.BERACHAIN]) === null || _96 === void 0 ? void 0 : _96.KodiakV2) ===
|
|
20750
20750
|
null || _97 === void 0
|
|
20751
20751
|
? void 0
|
|
20752
20752
|
: _97.factory),
|
|
20753
20753
|
(_9[Protocols.V3] =
|
|
20754
|
-
(_99 = (_98 = exports.dexFactories[ChainId.BERACHAIN]) === null || _98 === void 0 ? void 0 : _98.KodiakV3) ===
|
|
20754
|
+
(_99 = (_98 = exports$1.dexFactories[ChainId.BERACHAIN]) === null || _98 === void 0 ? void 0 : _98.KodiakV3) ===
|
|
20755
20755
|
null || _99 === void 0
|
|
20756
20756
|
? void 0
|
|
20757
20757
|
: _99.factory),
|
|
@@ -20759,12 +20759,12 @@ function requireTypes$1 () {
|
|
|
20759
20759
|
(_u[ChainId.KATANA] =
|
|
20760
20760
|
((_10 = {}),
|
|
20761
20761
|
(_10[Protocols.V2] =
|
|
20762
|
-
(_101 = (_100 = exports.dexFactories[ChainId.KATANA]) === null || _100 === void 0 ? void 0 : _100.SushiSwapV2) ===
|
|
20762
|
+
(_101 = (_100 = exports$1.dexFactories[ChainId.KATANA]) === null || _100 === void 0 ? void 0 : _100.SushiSwapV2) ===
|
|
20763
20763
|
null || _101 === void 0
|
|
20764
20764
|
? void 0
|
|
20765
20765
|
: _101.factory),
|
|
20766
20766
|
(_10[Protocols.V3] =
|
|
20767
|
-
(_103 = (_102 = exports.dexFactories[ChainId.KATANA]) === null || _102 === void 0 ? void 0 : _102.SushiSwapV3) ===
|
|
20767
|
+
(_103 = (_102 = exports$1.dexFactories[ChainId.KATANA]) === null || _102 === void 0 ? void 0 : _102.SushiSwapV3) ===
|
|
20768
20768
|
null || _103 === void 0
|
|
20769
20769
|
? void 0
|
|
20770
20770
|
: _103.factory),
|
|
@@ -20772,18 +20772,18 @@ function requireTypes$1 () {
|
|
|
20772
20772
|
(_u[ChainId.UNICHAIN] =
|
|
20773
20773
|
((_11 = {}),
|
|
20774
20774
|
(_11[Protocols.V2] =
|
|
20775
|
-
(_105 = (_104 = exports.dexFactories[ChainId.UNICHAIN]) === null || _104 === void 0 ? void 0 : _104.UniswapV2) ===
|
|
20775
|
+
(_105 = (_104 = exports$1.dexFactories[ChainId.UNICHAIN]) === null || _104 === void 0 ? void 0 : _104.UniswapV2) ===
|
|
20776
20776
|
null || _105 === void 0
|
|
20777
20777
|
? void 0
|
|
20778
20778
|
: _105.factory),
|
|
20779
20779
|
(_11[Protocols.V3] =
|
|
20780
|
-
(_107 = (_106 = exports.dexFactories[ChainId.UNICHAIN]) === null || _106 === void 0 ? void 0 : _106.UniswapV3) ===
|
|
20780
|
+
(_107 = (_106 = exports$1.dexFactories[ChainId.UNICHAIN]) === null || _106 === void 0 ? void 0 : _106.UniswapV3) ===
|
|
20781
20781
|
null || _107 === void 0
|
|
20782
20782
|
? void 0
|
|
20783
20783
|
: _107.factory),
|
|
20784
20784
|
_11)),
|
|
20785
20785
|
_u);
|
|
20786
|
-
exports.dexToZapMapping =
|
|
20786
|
+
exports$1.dexToZapMapping =
|
|
20787
20787
|
((_12 = {}),
|
|
20788
20788
|
(_12[LiquidityDex.ApeSwapV2] =
|
|
20789
20789
|
((_13 = {}),
|
|
@@ -21505,20 +21505,20 @@ function requireZapTokens () {
|
|
|
21505
21505
|
return zapTokens;
|
|
21506
21506
|
}
|
|
21507
21507
|
|
|
21508
|
-
(function (exports) {
|
|
21509
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
21510
|
-
exports.zapInputTokens = exports.WNATIVE = void 0;
|
|
21508
|
+
(function (exports$1) {
|
|
21509
|
+
Object.defineProperty(exports$1, '__esModule', { value: true });
|
|
21510
|
+
exports$1.zapInputTokens = exports$1.WNATIVE = void 0;
|
|
21511
21511
|
var tslib_1 = require$$0;
|
|
21512
21512
|
// Main entry point - exports only types and specific constants to keep package size minimal
|
|
21513
|
-
tslib_1.__exportStar(requireTypes$1(), exports);
|
|
21513
|
+
tslib_1.__exportStar(requireTypes$1(), exports$1);
|
|
21514
21514
|
var zapTokens_1 = requireZapTokens();
|
|
21515
|
-
Object.defineProperty(exports, 'WNATIVE', {
|
|
21515
|
+
Object.defineProperty(exports$1, 'WNATIVE', {
|
|
21516
21516
|
enumerable: true,
|
|
21517
21517
|
get: function () {
|
|
21518
21518
|
return zapTokens_1.WNATIVE
|
|
21519
21519
|
},
|
|
21520
21520
|
});
|
|
21521
|
-
Object.defineProperty(exports, 'zapInputTokens', {
|
|
21521
|
+
Object.defineProperty(exports$1, 'zapInputTokens', {
|
|
21522
21522
|
enumerable: true,
|
|
21523
21523
|
get: function () {
|
|
21524
21524
|
return zapTokens_1.zapInputTokens
|
|
@@ -22158,7 +22158,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
22158
22158
|
* @license MIT
|
|
22159
22159
|
*/
|
|
22160
22160
|
|
|
22161
|
-
(function (exports) {
|
|
22161
|
+
(function (exports$1) {
|
|
22162
22162
|
|
|
22163
22163
|
const base64 = base64Js;
|
|
22164
22164
|
const ieee754$1 = ieee754;
|
|
@@ -22167,12 +22167,12 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
22167
22167
|
? Symbol['for']('nodejs.util.inspect.custom') // eslint-disable-line dot-notation
|
|
22168
22168
|
: null;
|
|
22169
22169
|
|
|
22170
|
-
exports.Buffer = Buffer;
|
|
22171
|
-
exports.SlowBuffer = SlowBuffer;
|
|
22172
|
-
exports.INSPECT_MAX_BYTES = 50;
|
|
22170
|
+
exports$1.Buffer = Buffer;
|
|
22171
|
+
exports$1.SlowBuffer = SlowBuffer;
|
|
22172
|
+
exports$1.INSPECT_MAX_BYTES = 50;
|
|
22173
22173
|
|
|
22174
22174
|
const K_MAX_LENGTH = 0x7fffffff;
|
|
22175
|
-
exports.kMaxLength = K_MAX_LENGTH;
|
|
22175
|
+
exports$1.kMaxLength = K_MAX_LENGTH;
|
|
22176
22176
|
|
|
22177
22177
|
/**
|
|
22178
22178
|
* If `Buffer.TYPED_ARRAY_SUPPORT`:
|
|
@@ -22768,7 +22768,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
22768
22768
|
|
|
22769
22769
|
Buffer.prototype.inspect = function inspect () {
|
|
22770
22770
|
let str = '';
|
|
22771
|
-
const max = exports.INSPECT_MAX_BYTES;
|
|
22771
|
+
const max = exports$1.INSPECT_MAX_BYTES;
|
|
22772
22772
|
str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim();
|
|
22773
22773
|
if (this.length > max) str += ' ... ';
|
|
22774
22774
|
return '<Buffer ' + str + '>'
|
|
@@ -24259,7 +24259,7 @@ ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
24259
24259
|
bn$1.exports;
|
|
24260
24260
|
|
|
24261
24261
|
(function (module) {
|
|
24262
|
-
(function (module, exports) {
|
|
24262
|
+
(function (module, exports$1) {
|
|
24263
24263
|
|
|
24264
24264
|
// Utils
|
|
24265
24265
|
function assert (val, msg) {
|
|
@@ -24302,7 +24302,7 @@ bn$1.exports;
|
|
|
24302
24302
|
if (typeof module === 'object') {
|
|
24303
24303
|
module.exports = BN;
|
|
24304
24304
|
} else {
|
|
24305
|
-
exports.BN = BN;
|
|
24305
|
+
exports$1.BN = BN;
|
|
24306
24306
|
}
|
|
24307
24307
|
|
|
24308
24308
|
BN.BN = BN;
|
|
@@ -35647,7 +35647,7 @@ var hasRequiredTypes;
|
|
|
35647
35647
|
function requireTypes () {
|
|
35648
35648
|
if (hasRequiredTypes) return types;
|
|
35649
35649
|
hasRequiredTypes = 1;
|
|
35650
|
-
(function (exports) {
|
|
35650
|
+
(function (exports$1) {
|
|
35651
35651
|
|
|
35652
35652
|
var isArgumentsObject = requireIsArguments();
|
|
35653
35653
|
var isGeneratorFunction = requireIsGeneratorFunction();
|
|
@@ -35687,9 +35687,9 @@ function requireTypes () {
|
|
|
35687
35687
|
}
|
|
35688
35688
|
}
|
|
35689
35689
|
|
|
35690
|
-
exports.isArgumentsObject = isArgumentsObject;
|
|
35691
|
-
exports.isGeneratorFunction = isGeneratorFunction;
|
|
35692
|
-
exports.isTypedArray = isTypedArray;
|
|
35690
|
+
exports$1.isArgumentsObject = isArgumentsObject;
|
|
35691
|
+
exports$1.isGeneratorFunction = isGeneratorFunction;
|
|
35692
|
+
exports$1.isTypedArray = isTypedArray;
|
|
35693
35693
|
|
|
35694
35694
|
// Taken from here and modified for better browser support
|
|
35695
35695
|
// https://github.com/sindresorhus/p-is-promise/blob/cda35a513bda03f977ad5cde3a079d237e82d7ef/index.js
|
|
@@ -35707,7 +35707,7 @@ function requireTypes () {
|
|
|
35707
35707
|
)
|
|
35708
35708
|
);
|
|
35709
35709
|
}
|
|
35710
|
-
exports.isPromise = isPromise;
|
|
35710
|
+
exports$1.isPromise = isPromise;
|
|
35711
35711
|
|
|
35712
35712
|
function isArrayBufferView(value) {
|
|
35713
35713
|
if (typeof ArrayBuffer !== 'undefined' && ArrayBuffer.isView) {
|
|
@@ -35719,63 +35719,63 @@ function requireTypes () {
|
|
|
35719
35719
|
isDataView(value)
|
|
35720
35720
|
);
|
|
35721
35721
|
}
|
|
35722
|
-
exports.isArrayBufferView = isArrayBufferView;
|
|
35722
|
+
exports$1.isArrayBufferView = isArrayBufferView;
|
|
35723
35723
|
|
|
35724
35724
|
|
|
35725
35725
|
function isUint8Array(value) {
|
|
35726
35726
|
return whichTypedArray(value) === 'Uint8Array';
|
|
35727
35727
|
}
|
|
35728
|
-
exports.isUint8Array = isUint8Array;
|
|
35728
|
+
exports$1.isUint8Array = isUint8Array;
|
|
35729
35729
|
|
|
35730
35730
|
function isUint8ClampedArray(value) {
|
|
35731
35731
|
return whichTypedArray(value) === 'Uint8ClampedArray';
|
|
35732
35732
|
}
|
|
35733
|
-
exports.isUint8ClampedArray = isUint8ClampedArray;
|
|
35733
|
+
exports$1.isUint8ClampedArray = isUint8ClampedArray;
|
|
35734
35734
|
|
|
35735
35735
|
function isUint16Array(value) {
|
|
35736
35736
|
return whichTypedArray(value) === 'Uint16Array';
|
|
35737
35737
|
}
|
|
35738
|
-
exports.isUint16Array = isUint16Array;
|
|
35738
|
+
exports$1.isUint16Array = isUint16Array;
|
|
35739
35739
|
|
|
35740
35740
|
function isUint32Array(value) {
|
|
35741
35741
|
return whichTypedArray(value) === 'Uint32Array';
|
|
35742
35742
|
}
|
|
35743
|
-
exports.isUint32Array = isUint32Array;
|
|
35743
|
+
exports$1.isUint32Array = isUint32Array;
|
|
35744
35744
|
|
|
35745
35745
|
function isInt8Array(value) {
|
|
35746
35746
|
return whichTypedArray(value) === 'Int8Array';
|
|
35747
35747
|
}
|
|
35748
|
-
exports.isInt8Array = isInt8Array;
|
|
35748
|
+
exports$1.isInt8Array = isInt8Array;
|
|
35749
35749
|
|
|
35750
35750
|
function isInt16Array(value) {
|
|
35751
35751
|
return whichTypedArray(value) === 'Int16Array';
|
|
35752
35752
|
}
|
|
35753
|
-
exports.isInt16Array = isInt16Array;
|
|
35753
|
+
exports$1.isInt16Array = isInt16Array;
|
|
35754
35754
|
|
|
35755
35755
|
function isInt32Array(value) {
|
|
35756
35756
|
return whichTypedArray(value) === 'Int32Array';
|
|
35757
35757
|
}
|
|
35758
|
-
exports.isInt32Array = isInt32Array;
|
|
35758
|
+
exports$1.isInt32Array = isInt32Array;
|
|
35759
35759
|
|
|
35760
35760
|
function isFloat32Array(value) {
|
|
35761
35761
|
return whichTypedArray(value) === 'Float32Array';
|
|
35762
35762
|
}
|
|
35763
|
-
exports.isFloat32Array = isFloat32Array;
|
|
35763
|
+
exports$1.isFloat32Array = isFloat32Array;
|
|
35764
35764
|
|
|
35765
35765
|
function isFloat64Array(value) {
|
|
35766
35766
|
return whichTypedArray(value) === 'Float64Array';
|
|
35767
35767
|
}
|
|
35768
|
-
exports.isFloat64Array = isFloat64Array;
|
|
35768
|
+
exports$1.isFloat64Array = isFloat64Array;
|
|
35769
35769
|
|
|
35770
35770
|
function isBigInt64Array(value) {
|
|
35771
35771
|
return whichTypedArray(value) === 'BigInt64Array';
|
|
35772
35772
|
}
|
|
35773
|
-
exports.isBigInt64Array = isBigInt64Array;
|
|
35773
|
+
exports$1.isBigInt64Array = isBigInt64Array;
|
|
35774
35774
|
|
|
35775
35775
|
function isBigUint64Array(value) {
|
|
35776
35776
|
return whichTypedArray(value) === 'BigUint64Array';
|
|
35777
35777
|
}
|
|
35778
|
-
exports.isBigUint64Array = isBigUint64Array;
|
|
35778
|
+
exports$1.isBigUint64Array = isBigUint64Array;
|
|
35779
35779
|
|
|
35780
35780
|
function isMapToString(value) {
|
|
35781
35781
|
return ObjectToString(value) === '[object Map]';
|
|
@@ -35794,7 +35794,7 @@ function requireTypes () {
|
|
|
35794
35794
|
? isMapToString(value)
|
|
35795
35795
|
: value instanceof Map;
|
|
35796
35796
|
}
|
|
35797
|
-
exports.isMap = isMap;
|
|
35797
|
+
exports$1.isMap = isMap;
|
|
35798
35798
|
|
|
35799
35799
|
function isSetToString(value) {
|
|
35800
35800
|
return ObjectToString(value) === '[object Set]';
|
|
@@ -35812,7 +35812,7 @@ function requireTypes () {
|
|
|
35812
35812
|
? isSetToString(value)
|
|
35813
35813
|
: value instanceof Set;
|
|
35814
35814
|
}
|
|
35815
|
-
exports.isSet = isSet;
|
|
35815
|
+
exports$1.isSet = isSet;
|
|
35816
35816
|
|
|
35817
35817
|
function isWeakMapToString(value) {
|
|
35818
35818
|
return ObjectToString(value) === '[object WeakMap]';
|
|
@@ -35830,7 +35830,7 @@ function requireTypes () {
|
|
|
35830
35830
|
? isWeakMapToString(value)
|
|
35831
35831
|
: value instanceof WeakMap;
|
|
35832
35832
|
}
|
|
35833
|
-
exports.isWeakMap = isWeakMap;
|
|
35833
|
+
exports$1.isWeakMap = isWeakMap;
|
|
35834
35834
|
|
|
35835
35835
|
function isWeakSetToString(value) {
|
|
35836
35836
|
return ObjectToString(value) === '[object WeakSet]';
|
|
@@ -35842,7 +35842,7 @@ function requireTypes () {
|
|
|
35842
35842
|
function isWeakSet(value) {
|
|
35843
35843
|
return isWeakSetToString(value);
|
|
35844
35844
|
}
|
|
35845
|
-
exports.isWeakSet = isWeakSet;
|
|
35845
|
+
exports$1.isWeakSet = isWeakSet;
|
|
35846
35846
|
|
|
35847
35847
|
function isArrayBufferToString(value) {
|
|
35848
35848
|
return ObjectToString(value) === '[object ArrayBuffer]';
|
|
@@ -35860,7 +35860,7 @@ function requireTypes () {
|
|
|
35860
35860
|
? isArrayBufferToString(value)
|
|
35861
35861
|
: value instanceof ArrayBuffer;
|
|
35862
35862
|
}
|
|
35863
|
-
exports.isArrayBuffer = isArrayBuffer;
|
|
35863
|
+
exports$1.isArrayBuffer = isArrayBuffer;
|
|
35864
35864
|
|
|
35865
35865
|
function isDataViewToString(value) {
|
|
35866
35866
|
return ObjectToString(value) === '[object DataView]';
|
|
@@ -35879,7 +35879,7 @@ function requireTypes () {
|
|
|
35879
35879
|
? isDataViewToString(value)
|
|
35880
35880
|
: value instanceof DataView;
|
|
35881
35881
|
}
|
|
35882
|
-
exports.isDataView = isDataView;
|
|
35882
|
+
exports$1.isDataView = isDataView;
|
|
35883
35883
|
|
|
35884
35884
|
// Store a copy of SharedArrayBuffer in case it's deleted elsewhere
|
|
35885
35885
|
var SharedArrayBufferCopy = typeof SharedArrayBuffer !== 'undefined' ? SharedArrayBuffer : undefined;
|
|
@@ -35899,57 +35899,57 @@ function requireTypes () {
|
|
|
35899
35899
|
? isSharedArrayBufferToString(value)
|
|
35900
35900
|
: value instanceof SharedArrayBufferCopy;
|
|
35901
35901
|
}
|
|
35902
|
-
exports.isSharedArrayBuffer = isSharedArrayBuffer;
|
|
35902
|
+
exports$1.isSharedArrayBuffer = isSharedArrayBuffer;
|
|
35903
35903
|
|
|
35904
35904
|
function isAsyncFunction(value) {
|
|
35905
35905
|
return ObjectToString(value) === '[object AsyncFunction]';
|
|
35906
35906
|
}
|
|
35907
|
-
exports.isAsyncFunction = isAsyncFunction;
|
|
35907
|
+
exports$1.isAsyncFunction = isAsyncFunction;
|
|
35908
35908
|
|
|
35909
35909
|
function isMapIterator(value) {
|
|
35910
35910
|
return ObjectToString(value) === '[object Map Iterator]';
|
|
35911
35911
|
}
|
|
35912
|
-
exports.isMapIterator = isMapIterator;
|
|
35912
|
+
exports$1.isMapIterator = isMapIterator;
|
|
35913
35913
|
|
|
35914
35914
|
function isSetIterator(value) {
|
|
35915
35915
|
return ObjectToString(value) === '[object Set Iterator]';
|
|
35916
35916
|
}
|
|
35917
|
-
exports.isSetIterator = isSetIterator;
|
|
35917
|
+
exports$1.isSetIterator = isSetIterator;
|
|
35918
35918
|
|
|
35919
35919
|
function isGeneratorObject(value) {
|
|
35920
35920
|
return ObjectToString(value) === '[object Generator]';
|
|
35921
35921
|
}
|
|
35922
|
-
exports.isGeneratorObject = isGeneratorObject;
|
|
35922
|
+
exports$1.isGeneratorObject = isGeneratorObject;
|
|
35923
35923
|
|
|
35924
35924
|
function isWebAssemblyCompiledModule(value) {
|
|
35925
35925
|
return ObjectToString(value) === '[object WebAssembly.Module]';
|
|
35926
35926
|
}
|
|
35927
|
-
exports.isWebAssemblyCompiledModule = isWebAssemblyCompiledModule;
|
|
35927
|
+
exports$1.isWebAssemblyCompiledModule = isWebAssemblyCompiledModule;
|
|
35928
35928
|
|
|
35929
35929
|
function isNumberObject(value) {
|
|
35930
35930
|
return checkBoxedPrimitive(value, numberValue);
|
|
35931
35931
|
}
|
|
35932
|
-
exports.isNumberObject = isNumberObject;
|
|
35932
|
+
exports$1.isNumberObject = isNumberObject;
|
|
35933
35933
|
|
|
35934
35934
|
function isStringObject(value) {
|
|
35935
35935
|
return checkBoxedPrimitive(value, stringValue);
|
|
35936
35936
|
}
|
|
35937
|
-
exports.isStringObject = isStringObject;
|
|
35937
|
+
exports$1.isStringObject = isStringObject;
|
|
35938
35938
|
|
|
35939
35939
|
function isBooleanObject(value) {
|
|
35940
35940
|
return checkBoxedPrimitive(value, booleanValue);
|
|
35941
35941
|
}
|
|
35942
|
-
exports.isBooleanObject = isBooleanObject;
|
|
35942
|
+
exports$1.isBooleanObject = isBooleanObject;
|
|
35943
35943
|
|
|
35944
35944
|
function isBigIntObject(value) {
|
|
35945
35945
|
return BigIntSupported && checkBoxedPrimitive(value, bigIntValue);
|
|
35946
35946
|
}
|
|
35947
|
-
exports.isBigIntObject = isBigIntObject;
|
|
35947
|
+
exports$1.isBigIntObject = isBigIntObject;
|
|
35948
35948
|
|
|
35949
35949
|
function isSymbolObject(value) {
|
|
35950
35950
|
return SymbolSupported && checkBoxedPrimitive(value, symbolValue);
|
|
35951
35951
|
}
|
|
35952
|
-
exports.isSymbolObject = isSymbolObject;
|
|
35952
|
+
exports$1.isSymbolObject = isSymbolObject;
|
|
35953
35953
|
|
|
35954
35954
|
function isBoxedPrimitive(value) {
|
|
35955
35955
|
return (
|
|
@@ -35960,7 +35960,7 @@ function requireTypes () {
|
|
|
35960
35960
|
isSymbolObject(value)
|
|
35961
35961
|
);
|
|
35962
35962
|
}
|
|
35963
|
-
exports.isBoxedPrimitive = isBoxedPrimitive;
|
|
35963
|
+
exports$1.isBoxedPrimitive = isBoxedPrimitive;
|
|
35964
35964
|
|
|
35965
35965
|
function isAnyArrayBuffer(value) {
|
|
35966
35966
|
return typeof Uint8Array !== 'undefined' && (
|
|
@@ -35968,10 +35968,10 @@ function requireTypes () {
|
|
|
35968
35968
|
isSharedArrayBuffer(value)
|
|
35969
35969
|
);
|
|
35970
35970
|
}
|
|
35971
|
-
exports.isAnyArrayBuffer = isAnyArrayBuffer;
|
|
35971
|
+
exports$1.isAnyArrayBuffer = isAnyArrayBuffer;
|
|
35972
35972
|
|
|
35973
35973
|
['isProxy', 'isExternal', 'isModuleNamespaceObject'].forEach(function(method) {
|
|
35974
|
-
Object.defineProperty(exports, method, {
|
|
35974
|
+
Object.defineProperty(exports$1, method, {
|
|
35975
35975
|
enumerable: false,
|
|
35976
35976
|
value: function() {
|
|
35977
35977
|
throw new Error(method + ' is not supported in userland');
|
|
@@ -35999,7 +35999,7 @@ var hasRequiredUtil;
|
|
|
35999
35999
|
function requireUtil () {
|
|
36000
36000
|
if (hasRequiredUtil) return util;
|
|
36001
36001
|
hasRequiredUtil = 1;
|
|
36002
|
-
(function (exports) {
|
|
36002
|
+
(function (exports$1) {
|
|
36003
36003
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
36004
36004
|
//
|
|
36005
36005
|
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
@@ -36032,7 +36032,7 @@ function requireUtil () {
|
|
|
36032
36032
|
};
|
|
36033
36033
|
|
|
36034
36034
|
var formatRegExp = /%[sdj%]/g;
|
|
36035
|
-
exports.format = function(f) {
|
|
36035
|
+
exports$1.format = function(f) {
|
|
36036
36036
|
if (!isString(f)) {
|
|
36037
36037
|
var objects = [];
|
|
36038
36038
|
for (var i = 0; i < arguments.length; i++) {
|
|
@@ -36074,7 +36074,7 @@ function requireUtil () {
|
|
|
36074
36074
|
// Mark that a method should not be used.
|
|
36075
36075
|
// Returns a modified function which warns once by default.
|
|
36076
36076
|
// If --no-deprecation is set, then it is a no-op.
|
|
36077
|
-
exports.deprecate = function(fn, msg) {
|
|
36077
|
+
exports$1.deprecate = function(fn, msg) {
|
|
36078
36078
|
if (typeof process !== 'undefined' && process.noDeprecation === true) {
|
|
36079
36079
|
return fn;
|
|
36080
36080
|
}
|
|
@@ -36082,7 +36082,7 @@ function requireUtil () {
|
|
|
36082
36082
|
// Allow for deprecating things in the process of starting up.
|
|
36083
36083
|
if (typeof process === 'undefined') {
|
|
36084
36084
|
return function() {
|
|
36085
|
-
return exports.deprecate(fn, msg).apply(this, arguments);
|
|
36085
|
+
return exports$1.deprecate(fn, msg).apply(this, arguments);
|
|
36086
36086
|
};
|
|
36087
36087
|
}
|
|
36088
36088
|
|
|
@@ -36116,13 +36116,13 @@ function requireUtil () {
|
|
|
36116
36116
|
.toUpperCase();
|
|
36117
36117
|
debugEnvRegex = new RegExp('^' + debugEnv + '$', 'i');
|
|
36118
36118
|
}
|
|
36119
|
-
exports.debuglog = function(set) {
|
|
36119
|
+
exports$1.debuglog = function(set) {
|
|
36120
36120
|
set = set.toUpperCase();
|
|
36121
36121
|
if (!debugs[set]) {
|
|
36122
36122
|
if (debugEnvRegex.test(set)) {
|
|
36123
36123
|
var pid = process.pid;
|
|
36124
36124
|
debugs[set] = function() {
|
|
36125
|
-
var msg = exports.format.apply(exports, arguments);
|
|
36125
|
+
var msg = exports$1.format.apply(exports$1, arguments);
|
|
36126
36126
|
console.error('%s %d: %s', set, pid, msg);
|
|
36127
36127
|
};
|
|
36128
36128
|
} else {
|
|
@@ -36155,7 +36155,7 @@ function requireUtil () {
|
|
|
36155
36155
|
ctx.showHidden = opts;
|
|
36156
36156
|
} else if (opts) {
|
|
36157
36157
|
// got an "options" object
|
|
36158
|
-
exports._extend(ctx, opts);
|
|
36158
|
+
exports$1._extend(ctx, opts);
|
|
36159
36159
|
}
|
|
36160
36160
|
// set default options
|
|
36161
36161
|
if (isUndefined(ctx.showHidden)) ctx.showHidden = false;
|
|
@@ -36165,7 +36165,7 @@ function requireUtil () {
|
|
|
36165
36165
|
if (ctx.colors) ctx.stylize = stylizeWithColor;
|
|
36166
36166
|
return formatValue(ctx, obj, ctx.depth);
|
|
36167
36167
|
}
|
|
36168
|
-
exports.inspect = inspect;
|
|
36168
|
+
exports$1.inspect = inspect;
|
|
36169
36169
|
|
|
36170
36170
|
|
|
36171
36171
|
// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics
|
|
@@ -36234,7 +36234,7 @@ function requireUtil () {
|
|
|
36234
36234
|
value &&
|
|
36235
36235
|
isFunction(value.inspect) &&
|
|
36236
36236
|
// Filter out the util module, it's inspect function is special
|
|
36237
|
-
value.inspect !== exports.inspect &&
|
|
36237
|
+
value.inspect !== exports$1.inspect &&
|
|
36238
36238
|
// Also filter out any prototype objects using the circular check.
|
|
36239
36239
|
!(value.constructor && value.constructor.prototype === value)) {
|
|
36240
36240
|
var ret = value.inspect(recurseTimes, ctx);
|
|
@@ -36464,76 +36464,76 @@ function requireUtil () {
|
|
|
36464
36464
|
|
|
36465
36465
|
// NOTE: These type checking functions intentionally don't use `instanceof`
|
|
36466
36466
|
// because it is fragile and can be easily faked with `Object.create()`.
|
|
36467
|
-
exports.types = requireTypes();
|
|
36467
|
+
exports$1.types = requireTypes();
|
|
36468
36468
|
|
|
36469
36469
|
function isArray(ar) {
|
|
36470
36470
|
return Array.isArray(ar);
|
|
36471
36471
|
}
|
|
36472
|
-
exports.isArray = isArray;
|
|
36472
|
+
exports$1.isArray = isArray;
|
|
36473
36473
|
|
|
36474
36474
|
function isBoolean(arg) {
|
|
36475
36475
|
return typeof arg === 'boolean';
|
|
36476
36476
|
}
|
|
36477
|
-
exports.isBoolean = isBoolean;
|
|
36477
|
+
exports$1.isBoolean = isBoolean;
|
|
36478
36478
|
|
|
36479
36479
|
function isNull(arg) {
|
|
36480
36480
|
return arg === null;
|
|
36481
36481
|
}
|
|
36482
|
-
exports.isNull = isNull;
|
|
36482
|
+
exports$1.isNull = isNull;
|
|
36483
36483
|
|
|
36484
36484
|
function isNullOrUndefined(arg) {
|
|
36485
36485
|
return arg == null;
|
|
36486
36486
|
}
|
|
36487
|
-
exports.isNullOrUndefined = isNullOrUndefined;
|
|
36487
|
+
exports$1.isNullOrUndefined = isNullOrUndefined;
|
|
36488
36488
|
|
|
36489
36489
|
function isNumber(arg) {
|
|
36490
36490
|
return typeof arg === 'number';
|
|
36491
36491
|
}
|
|
36492
|
-
exports.isNumber = isNumber;
|
|
36492
|
+
exports$1.isNumber = isNumber;
|
|
36493
36493
|
|
|
36494
36494
|
function isString(arg) {
|
|
36495
36495
|
return typeof arg === 'string';
|
|
36496
36496
|
}
|
|
36497
|
-
exports.isString = isString;
|
|
36497
|
+
exports$1.isString = isString;
|
|
36498
36498
|
|
|
36499
36499
|
function isSymbol(arg) {
|
|
36500
36500
|
return typeof arg === 'symbol';
|
|
36501
36501
|
}
|
|
36502
|
-
exports.isSymbol = isSymbol;
|
|
36502
|
+
exports$1.isSymbol = isSymbol;
|
|
36503
36503
|
|
|
36504
36504
|
function isUndefined(arg) {
|
|
36505
36505
|
return arg === void 0;
|
|
36506
36506
|
}
|
|
36507
|
-
exports.isUndefined = isUndefined;
|
|
36507
|
+
exports$1.isUndefined = isUndefined;
|
|
36508
36508
|
|
|
36509
36509
|
function isRegExp(re) {
|
|
36510
36510
|
return isObject(re) && objectToString(re) === '[object RegExp]';
|
|
36511
36511
|
}
|
|
36512
|
-
exports.isRegExp = isRegExp;
|
|
36513
|
-
exports.types.isRegExp = isRegExp;
|
|
36512
|
+
exports$1.isRegExp = isRegExp;
|
|
36513
|
+
exports$1.types.isRegExp = isRegExp;
|
|
36514
36514
|
|
|
36515
36515
|
function isObject(arg) {
|
|
36516
36516
|
return typeof arg === 'object' && arg !== null;
|
|
36517
36517
|
}
|
|
36518
|
-
exports.isObject = isObject;
|
|
36518
|
+
exports$1.isObject = isObject;
|
|
36519
36519
|
|
|
36520
36520
|
function isDate(d) {
|
|
36521
36521
|
return isObject(d) && objectToString(d) === '[object Date]';
|
|
36522
36522
|
}
|
|
36523
|
-
exports.isDate = isDate;
|
|
36524
|
-
exports.types.isDate = isDate;
|
|
36523
|
+
exports$1.isDate = isDate;
|
|
36524
|
+
exports$1.types.isDate = isDate;
|
|
36525
36525
|
|
|
36526
36526
|
function isError(e) {
|
|
36527
36527
|
return isObject(e) &&
|
|
36528
36528
|
(objectToString(e) === '[object Error]' || e instanceof Error);
|
|
36529
36529
|
}
|
|
36530
|
-
exports.isError = isError;
|
|
36531
|
-
exports.types.isNativeError = isError;
|
|
36530
|
+
exports$1.isError = isError;
|
|
36531
|
+
exports$1.types.isNativeError = isError;
|
|
36532
36532
|
|
|
36533
36533
|
function isFunction(arg) {
|
|
36534
36534
|
return typeof arg === 'function';
|
|
36535
36535
|
}
|
|
36536
|
-
exports.isFunction = isFunction;
|
|
36536
|
+
exports$1.isFunction = isFunction;
|
|
36537
36537
|
|
|
36538
36538
|
function isPrimitive(arg) {
|
|
36539
36539
|
return arg === null ||
|
|
@@ -36543,9 +36543,9 @@ function requireUtil () {
|
|
|
36543
36543
|
typeof arg === 'symbol' || // ES6 symbol
|
|
36544
36544
|
typeof arg === 'undefined';
|
|
36545
36545
|
}
|
|
36546
|
-
exports.isPrimitive = isPrimitive;
|
|
36546
|
+
exports$1.isPrimitive = isPrimitive;
|
|
36547
36547
|
|
|
36548
|
-
exports.isBuffer = requireIsBuffer();
|
|
36548
|
+
exports$1.isBuffer = requireIsBuffer();
|
|
36549
36549
|
|
|
36550
36550
|
function objectToString(o) {
|
|
36551
36551
|
return Object.prototype.toString.call(o);
|
|
@@ -36571,8 +36571,8 @@ function requireUtil () {
|
|
|
36571
36571
|
|
|
36572
36572
|
|
|
36573
36573
|
// 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));
|
|
36574
|
+
exports$1.log = function() {
|
|
36575
|
+
console.log('%s - %s', timestamp(), exports$1.format.apply(exports$1, arguments));
|
|
36576
36576
|
};
|
|
36577
36577
|
|
|
36578
36578
|
|
|
@@ -36589,9 +36589,9 @@ function requireUtil () {
|
|
|
36589
36589
|
* prototype.
|
|
36590
36590
|
* @param {function} superCtor Constructor function to inherit prototype from.
|
|
36591
36591
|
*/
|
|
36592
|
-
exports.inherits = requireInherits();
|
|
36592
|
+
exports$1.inherits = requireInherits();
|
|
36593
36593
|
|
|
36594
|
-
exports._extend = function(origin, add) {
|
|
36594
|
+
exports$1._extend = function(origin, add) {
|
|
36595
36595
|
// Don't do anything if add isn't an object
|
|
36596
36596
|
if (!add || !isObject(add)) return origin;
|
|
36597
36597
|
|
|
@@ -36609,7 +36609,7 @@ function requireUtil () {
|
|
|
36609
36609
|
|
|
36610
36610
|
var kCustomPromisifiedSymbol = typeof Symbol !== 'undefined' ? Symbol('util.promisify.custom') : undefined;
|
|
36611
36611
|
|
|
36612
|
-
exports.promisify = function promisify(original) {
|
|
36612
|
+
exports$1.promisify = function promisify(original) {
|
|
36613
36613
|
if (typeof original !== 'function')
|
|
36614
36614
|
throw new TypeError('The "original" argument must be of type Function');
|
|
36615
36615
|
|
|
@@ -36663,7 +36663,7 @@ function requireUtil () {
|
|
|
36663
36663
|
);
|
|
36664
36664
|
};
|
|
36665
36665
|
|
|
36666
|
-
exports.promisify.custom = kCustomPromisifiedSymbol;
|
|
36666
|
+
exports$1.promisify.custom = kCustomPromisifiedSymbol;
|
|
36667
36667
|
|
|
36668
36668
|
function callbackifyOnRejected(reason, cb) {
|
|
36669
36669
|
// `!reason` guard inspired by bluebird (Ref: https://goo.gl/t5IS6M).
|
|
@@ -36712,7 +36712,7 @@ function requireUtil () {
|
|
|
36712
36712
|
getOwnPropertyDescriptors(original));
|
|
36713
36713
|
return callbackified;
|
|
36714
36714
|
}
|
|
36715
|
-
exports.callbackify = callbackify;
|
|
36715
|
+
exports$1.callbackify = callbackify;
|
|
36716
36716
|
} (util));
|
|
36717
36717
|
return util;
|
|
36718
36718
|
}
|
|
@@ -37960,8 +37960,8 @@ Hmac.prototype.digest = function digest(enc) {
|
|
|
37960
37960
|
return this.outer.digest(enc);
|
|
37961
37961
|
};
|
|
37962
37962
|
|
|
37963
|
-
(function (exports) {
|
|
37964
|
-
var hash = exports;
|
|
37963
|
+
(function (exports$1) {
|
|
37964
|
+
var hash = exports$1;
|
|
37965
37965
|
|
|
37966
37966
|
hash.utils = utils$9;
|
|
37967
37967
|
hash.common = common$5;
|
|
@@ -38006,9 +38006,9 @@ assert.equal = function assertEqual(l, r, msg) {
|
|
|
38006
38006
|
throw new Error(msg || ('Assertion failed: ' + l + ' != ' + r));
|
|
38007
38007
|
};
|
|
38008
38008
|
|
|
38009
|
-
var utils_1 = createCommonjsModule(function (module, exports) {
|
|
38009
|
+
var utils_1 = createCommonjsModule(function (module, exports$1) {
|
|
38010
38010
|
|
|
38011
|
-
var utils = exports;
|
|
38011
|
+
var utils = exports$1;
|
|
38012
38012
|
|
|
38013
38013
|
function toArray(msg, enc) {
|
|
38014
38014
|
if (Array.isArray(msg))
|
|
@@ -38066,9 +38066,9 @@ utils.encode = function encode(arr, enc) {
|
|
|
38066
38066
|
};
|
|
38067
38067
|
});
|
|
38068
38068
|
|
|
38069
|
-
var utils_1$1 = createCommonjsModule(function (module, exports) {
|
|
38069
|
+
var utils_1$1 = createCommonjsModule(function (module, exports$1) {
|
|
38070
38070
|
|
|
38071
|
-
var utils = exports;
|
|
38071
|
+
var utils = exports$1;
|
|
38072
38072
|
|
|
38073
38073
|
|
|
38074
38074
|
|
|
@@ -39535,9 +39535,9 @@ JPoint.prototype.isInfinity = function isInfinity() {
|
|
|
39535
39535
|
return this.z.cmpn(0) === 0;
|
|
39536
39536
|
};
|
|
39537
39537
|
|
|
39538
|
-
var curve_1 = createCommonjsModule(function (module, exports) {
|
|
39538
|
+
var curve_1 = createCommonjsModule(function (module, exports$1) {
|
|
39539
39539
|
|
|
39540
|
-
var curve = exports;
|
|
39540
|
+
var curve = exports$1;
|
|
39541
39541
|
|
|
39542
39542
|
curve.base = base;
|
|
39543
39543
|
curve.short = short_1;
|
|
@@ -39545,9 +39545,9 @@ curve.mont = /*RicMoo:ethers:require(./mont)*/(null);
|
|
|
39545
39545
|
curve.edwards = /*RicMoo:ethers:require(./edwards)*/(null);
|
|
39546
39546
|
});
|
|
39547
39547
|
|
|
39548
|
-
var curves_1 = createCommonjsModule(function (module, exports) {
|
|
39548
|
+
var curves_1 = createCommonjsModule(function (module, exports$1) {
|
|
39549
39549
|
|
|
39550
|
-
var curves = exports;
|
|
39550
|
+
var curves = exports$1;
|
|
39551
39551
|
|
|
39552
39552
|
|
|
39553
39553
|
|
|
@@ -40437,9 +40437,9 @@ EC.prototype.getKeyRecoveryParam = function(e, signature$1, Q, enc) {
|
|
|
40437
40437
|
throw new Error('Unable to find valid recovery factor');
|
|
40438
40438
|
};
|
|
40439
40439
|
|
|
40440
|
-
var elliptic_1 = createCommonjsModule(function (module, exports) {
|
|
40440
|
+
var elliptic_1 = createCommonjsModule(function (module, exports$1) {
|
|
40441
40441
|
|
|
40442
|
-
var elliptic = exports;
|
|
40442
|
+
var elliptic = exports$1;
|
|
40443
40443
|
|
|
40444
40444
|
elliptic.version = /*RicMoo:ethers*/{ version: "6.6.1" }.version;
|
|
40445
40445
|
elliptic.utils = utils_1$1;
|
|
@@ -45809,7 +45809,7 @@ var lodash = {exports: {}};
|
|
|
45809
45809
|
*/
|
|
45810
45810
|
lodash.exports;
|
|
45811
45811
|
|
|
45812
|
-
(function (module, exports) {
|
|
45812
|
+
(function (module, exports$1) {
|
|
45813
45813
|
(function() {
|
|
45814
45814
|
|
|
45815
45815
|
/** Used as a safe reference for `undefined` in pre-ES5 environments. */
|
|
@@ -46240,7 +46240,7 @@ lodash.exports;
|
|
|
46240
46240
|
var root = freeGlobal || freeSelf || Function('return this')();
|
|
46241
46241
|
|
|
46242
46242
|
/** Detect free variable `exports`. */
|
|
46243
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
46243
|
+
var freeExports = exports$1 && !exports$1.nodeType && exports$1;
|
|
46244
46244
|
|
|
46245
46245
|
/** Detect free variable `module`. */
|
|
46246
46246
|
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
@@ -63626,13 +63626,16 @@ const getPayoutAmount = (bond, inputValue, userPoints) => {
|
|
|
63626
63626
|
return billValue.toNumber();
|
|
63627
63627
|
};
|
|
63628
63628
|
const youGetUSD = (bond, inputValue, userPoints) => {
|
|
63629
|
-
var _a, _b;
|
|
63629
|
+
var _a, _b, _c, _d;
|
|
63630
63630
|
if (!bond.trueBondPrices)
|
|
63631
63631
|
return '0';
|
|
63632
63632
|
const bigValue = new BigNumber$1(inputValue).times(new BigNumber$1(10).pow(18));
|
|
63633
|
-
const trueBondPrice = findHighestTrueBondPrice(userPoints, bond === null || bond === void 0 ? void 0 : bond.trueBondPrices);
|
|
63634
|
-
const
|
|
63635
|
-
|
|
63633
|
+
const trueBondPrice = (_b = (_a = findHighestTrueBondPrice(userPoints, bond === null || bond === void 0 ? void 0 : bond.trueBondPrices)) === null || _a === void 0 ? void 0 : _a.trueBondPrice) !== null && _b !== void 0 ? _b : 0;
|
|
63634
|
+
const fee = (_c = bond === null || bond === void 0 ? void 0 : bond.feeInPayout) !== null && _c !== void 0 ? _c : 0;
|
|
63635
|
+
const reverseFee = new BigNumber$1(fee / 100 / (1 - fee / 100));
|
|
63636
|
+
const trueBondPriceWithFee = new BigNumber$1(trueBondPrice).plus(new BigNumber$1(trueBondPrice).times(reverseFee));
|
|
63637
|
+
const billValue = bigValue.div(new BigNumber$1(trueBondPriceWithFee));
|
|
63638
|
+
return (billValue.toNumber() * parseFloat((_d = bond === null || bond === void 0 ? void 0 : bond.payoutTokenPrice) !== null && _d !== void 0 ? _d : '0')).toString();
|
|
63636
63639
|
};
|
|
63637
63640
|
const getRawBonus$1 = (bond, inputValue, userPoints) => {
|
|
63638
63641
|
if (!bond || !inputValue || !userPoints)
|
|
@@ -63640,16 +63643,6 @@ const getRawBonus$1 = (bond, inputValue, userPoints) => {
|
|
|
63640
63643
|
const premiumUSD = parseFloat(youGetUSD(bond, inputValue, userPoints)) - parseFloat(youSpendUSD(bond, inputValue));
|
|
63641
63644
|
return premiumUSD.toString();
|
|
63642
63645
|
};
|
|
63643
|
-
const getFeeAmount = (bond, inputValue, userPoints) => {
|
|
63644
|
-
var _a;
|
|
63645
|
-
const fee = bond === null || bond === void 0 ? void 0 : bond.feeInPayout;
|
|
63646
|
-
if (!bond || !inputValue || !fee || !userPoints)
|
|
63647
|
-
return 0;
|
|
63648
|
-
const billValue = new BigNumber$1(inputValue).times(new BigNumber$1(10).pow(18));
|
|
63649
|
-
const trueBondPrice = findHighestTrueBondPrice(userPoints, bond === null || bond === void 0 ? void 0 : bond.trueBondPrices);
|
|
63650
|
-
const feeAmount = billValue.div(new BigNumber$1((_a = trueBondPrice === null || trueBondPrice === void 0 ? void 0 : trueBondPrice.trueBondPrice) !== null && _a !== void 0 ? _a : 0).div(fee / 100));
|
|
63651
|
-
return feeAmount.toNumber();
|
|
63652
|
-
};
|
|
63653
63646
|
const getBonusColor = (premiumString) => {
|
|
63654
63647
|
return parseFloat(premiumString) < 0 ? 'premium-negative' : 'premium-positive';
|
|
63655
63648
|
};
|
|
@@ -65552,7 +65545,6 @@ const MAINNET_CHAINS = [
|
|
|
65552
65545
|
main.ChainId.BLAST,
|
|
65553
65546
|
main.ChainId.CROSSFI,
|
|
65554
65547
|
main.ChainId.SONIC,
|
|
65555
|
-
main.ChainId.MONAD_TESTNET,
|
|
65556
65548
|
main.ChainId.MONAD,
|
|
65557
65549
|
main.ChainId.BERACHAIN,
|
|
65558
65550
|
main.ChainId.SOL,
|
|
@@ -65560,7 +65552,7 @@ const MAINNET_CHAINS = [
|
|
|
65560
65552
|
main.ChainId.UNICHAIN,
|
|
65561
65553
|
main.ChainId.MEGAETH_TESTNET,
|
|
65562
65554
|
];
|
|
65563
|
-
const TESTNET_CHAINS = [main.ChainId.
|
|
65555
|
+
const TESTNET_CHAINS = [main.ChainId.MEGAETH_TESTNET];
|
|
65564
65556
|
// Network Icons
|
|
65565
65557
|
const NETWORK_ICONS = {
|
|
65566
65558
|
[main.ChainId.BSC]: icons.BNB_TOKEN,
|
|
@@ -65827,8 +65819,8 @@ const APEBOND = `https://ape.bond`;
|
|
|
65827
65819
|
const TokenImage = ({ symbol, symbol2, size, chain, }) => {
|
|
65828
65820
|
var _a, _b;
|
|
65829
65821
|
const [error, setError] = useState(false);
|
|
65830
|
-
const token1 = symbol === 'USDC.e' ? 'USDC' : symbol;
|
|
65831
|
-
const token2 = symbol2 === 'USDC.e' ? 'USDC' : symbol2;
|
|
65822
|
+
const token1 = symbol === 'USDC.e' ? 'USDC' : symbol === 'AIX' && chain === main.ChainId.SOL ? 'SOLAIX' : symbol;
|
|
65823
|
+
const token2 = symbol2 === 'USDC.e' ? 'USDC' : symbol2 === 'AIX' && chain === main.ChainId.SOL ? 'SOLAIX' : symbol2;
|
|
65832
65824
|
return error || !token1 ? (jsx$2(Flex, { sx: {
|
|
65833
65825
|
width: size - 2,
|
|
65834
65826
|
height: size - 2,
|
|
@@ -67687,7 +67679,7 @@ const TokenInfoAndName = ({ tokenSymbol, chain, tag, vestEnds, isHotBond, billAr
|
|
|
67687
67679
|
} }), jsx$2(Flex, { className: "tokeninfoname chain", children: jsx$2(Svg, { width: 20, height: 20, icon: chain ? NETWORK_ICONS[chain] : 'question' }) }), jsxs(Flex, { className: "tokeninfoname tokencontainer", sx: {
|
|
67688
67680
|
marginTop: vestEnds ? ['10px', '10px', '10px', '0px'] : 0,
|
|
67689
67681
|
maxWidth: ['175px', '175px', '140px', '190px', '190px'],
|
|
67690
|
-
}, children: [jsx$2(TokenImage, { symbol: tokenSymbol, size: 33 }), jsxs(Flex, { className: "tokeninfoname tokentext", children: [jsx$2(Flex, { sx: { justifyContent: 'space-between', width: '100%', alignItems: 'center' }, children: jsx$2(Text, { sx: { fontSize: ['12px', '12px', '14px', '16px'] }, children: tokenSymbol }) }), vestEnds && (jsx$2(Flex, { sx: { fontSize: '12px', fontWeight: 400, opacity: 0.6, lineHeight: '14px' }, children: vestEnds }))] }), jsx$2(Flex, { className: "tokeninfofav", sx: {
|
|
67682
|
+
}, children: [jsx$2(TokenImage, { symbol: tokenSymbol === 'AIX' && chain === main.ChainId.SOL ? 'SOLAIX' : tokenSymbol, size: 33 }), jsxs(Flex, { className: "tokeninfoname tokentext", children: [jsx$2(Flex, { sx: { justifyContent: 'space-between', width: '100%', alignItems: 'center' }, children: jsx$2(Text, { sx: { fontSize: ['12px', '12px', '14px', '16px'] }, children: tokenSymbol }) }), vestEnds && (jsx$2(Flex, { sx: { fontSize: '12px', fontWeight: 400, opacity: 0.6, lineHeight: '14px' }, children: vestEnds }))] }), jsx$2(Flex, { className: "tokeninfofav", sx: {
|
|
67691
67683
|
minWidth: '25px',
|
|
67692
67684
|
p: '5px',
|
|
67693
67685
|
}, children: jsx$2(AddFavToken, { tokenSymbol: tokenSymbol, hotBond: !vestEnds && isHotBond }) })] }), jsx$2(Flex, { sx: {
|
|
@@ -75908,7 +75900,7 @@ const ActionsSolana = ({ userBill }) => {
|
|
|
75908
75900
|
};
|
|
75909
75901
|
|
|
75910
75902
|
const YourBondsModal = ({ userBill, onDismiss }) => {
|
|
75911
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
75903
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
75912
75904
|
// State
|
|
75913
75905
|
const [showNFTImg, setShowNFTImg] = useState(false);
|
|
75914
75906
|
// Static Data
|
|
@@ -75916,11 +75908,12 @@ const YourBondsModal = ({ userBill, onDismiss }) => {
|
|
|
75916
75908
|
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;
|
|
75917
75909
|
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');
|
|
75918
75910
|
const payoutUSD = payout && payoutTokenPrice ? payout * payoutTokenPrice : 0;
|
|
75919
|
-
const
|
|
75911
|
+
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;
|
|
75912
|
+
const payoutTokenSymbol = payoutSymbol === 'AIX' && ((_k = userBill === null || userBill === void 0 ? void 0 : userBill.bond) === null || _k === void 0 ? void 0 : _k.chainId) === main.ChainId.SOL ? 'SOLAIX' : payoutSymbol;
|
|
75920
75913
|
// Cliff display info:
|
|
75921
|
-
const vestingCliff = (
|
|
75914
|
+
const vestingCliff = (_l = userBill === null || userBill === void 0 ? void 0 : userBill.bond) === null || _l === void 0 ? void 0 : _l.vestingCliff;
|
|
75922
75915
|
const currentTime = Math.round(new Date().getTime() / 1000);
|
|
75923
|
-
const lastBlockTimestamp = parseInt((
|
|
75916
|
+
const lastBlockTimestamp = parseInt((_m = userBill === null || userBill === void 0 ? void 0 : userBill.lastBlockTimestamp) !== null && _m !== void 0 ? _m : '0');
|
|
75924
75917
|
const isPendingCliff = vestingCliff ? currentTime - lastBlockTimestamp < vestingCliff : false;
|
|
75925
75918
|
const cliffCountdown = getTimePeriods(lastBlockTimestamp + (vestingCliff !== null && vestingCliff !== void 0 ? vestingCliff : 0) - currentTime, true);
|
|
75926
75919
|
return (jsx$2(Modal, { sx: {
|
|
@@ -76005,17 +75998,17 @@ const YourBondsModal = ({ userBill, onDismiss }) => {
|
|
|
76005
75998
|
fontWeight: 400,
|
|
76006
75999
|
ml: '10px',
|
|
76007
76000
|
opacity: 0.6,
|
|
76008
|
-
}, children: ["($", formatNumberSI(claimedUSD(userBill)), ")"] })] })] })] }), ((
|
|
76001
|
+
}, children: ["($", formatNumberSI(claimedUSD(userBill)), ")"] })] })] })] }), ((_o = userBill === null || userBill === void 0 ? void 0 : userBill.bond) === null || _o === void 0 ? void 0 : _o.warningCard) && (jsx$2(Flex, { sx: {
|
|
76009
76002
|
width: '100%',
|
|
76010
76003
|
background: '#DE62F366',
|
|
76011
76004
|
justifyContent: 'center',
|
|
76012
76005
|
borderRadius: 'normal',
|
|
76013
|
-
}, children: jsx$2(Text, { sx: { fontSize: '12px', fontWeight: 400, p: '4px 10px', lineHeight: '16px' }, children: jsx$2(SafeHTMLComponent, { html: (
|
|
76006
|
+
}, children: jsx$2(Text, { sx: { fontSize: '12px', fontWeight: 400, p: '4px 10px', lineHeight: '16px' }, children: jsx$2(SafeHTMLComponent, { html: (_p = userBill === null || userBill === void 0 ? void 0 : userBill.bond) === null || _p === void 0 ? void 0 : _p.warningCard }) }) })), jsx$2(Flex, { sx: {
|
|
76014
76007
|
width: '100%',
|
|
76015
76008
|
justifyContent: 'space-between',
|
|
76016
76009
|
gap: ['10px', '10px', '10px', '15px'],
|
|
76017
76010
|
height: '40px',
|
|
76018
|
-
}, children: ((
|
|
76011
|
+
}, children: ((_q = userBill === null || userBill === void 0 ? void 0 : userBill.bond) === null || _q === void 0 ? void 0 : _q.chainId) === main.ChainId.SOL ? (jsx$2(ActionsSolana, { userBill: userBill })) : (jsx$2(Actions, { userBill: userBill })) }), jsx$2(Recommendations, { billAddress: userBill === null || userBill === void 0 ? void 0 : userBill.address })] })] }))] }) }));
|
|
76019
76012
|
};
|
|
76020
76013
|
|
|
76021
76014
|
const styles$a = {
|
|
@@ -76940,7 +76933,6 @@ function useUserTokensBalance(tokens, chainId) {
|
|
|
76940
76933
|
const getTokensBalance = (account, tokens, chainId, apiUrl) => __awaiter$9(void 0, void 0, void 0, function* () {
|
|
76941
76934
|
try {
|
|
76942
76935
|
if (chainId !== main.ChainId.SOL) {
|
|
76943
|
-
console.log('chainId', chainId);
|
|
76944
76936
|
const callsToken = tokens
|
|
76945
76937
|
.filter((token) => token !== 'NATIVE')
|
|
76946
76938
|
.map((token) => {
|
|
@@ -76986,7 +76978,6 @@ const getTokensBalance = (account, tokens, chainId, apiUrl) => __awaiter$9(void
|
|
|
76986
76978
|
return [...balancesToken, ...balancesNative];
|
|
76987
76979
|
}
|
|
76988
76980
|
else {
|
|
76989
|
-
console.log('Solana balance fetch');
|
|
76990
76981
|
return yield Promise.all(tokens.map((token) => __awaiter$9(void 0, void 0, void 0, function* () {
|
|
76991
76982
|
const balance = yield getTokenBalanceSolana(token, account);
|
|
76992
76983
|
return {
|
|
@@ -78203,7 +78194,7 @@ const useApproval = (amount, currency, spender, account, chainId) => {
|
|
|
78203
78194
|
return [approvalState !== null && approvalState !== void 0 ? approvalState : ApprovalState.NOT_APPROVED, handleApprove];
|
|
78204
78195
|
};
|
|
78205
78196
|
|
|
78206
|
-
const version$1 = '2.
|
|
78197
|
+
const version$1 = '2.41.2';
|
|
78207
78198
|
|
|
78208
78199
|
let errorConfig = {
|
|
78209
78200
|
getDocsUrl: ({ docsBaseUrl, docsPath = '', docsSlug, }) => docsPath
|
|
@@ -78965,7 +78956,7 @@ const BondCards = ({ bondData }) => {
|
|
|
78965
78956
|
borderBottomRightRadius: 'normal',
|
|
78966
78957
|
borderBottomLeftRadius: 'normal',
|
|
78967
78958
|
},
|
|
78968
|
-
}, children: [jsxs("div", { className: "bond-card-title", children: ["Max Buy", jsx$2(TooltipBubble, { className: "tooltip-bubble", body: jsx$2(Flex, { children: TooltipText.MaxBuy((_b = bondData === null || bondData === void 0 ? void 0 : bondData.earnToken) === null || _b === void 0 ? void 0 : _b.symbol) }), width: "230px", placement: "bottomLeft", transformTip: "translate(-5%, -5%)", children: jsx$2("div", { className: "bond-card-tooltip", children: jsx$2(Svg, { icon: "questionCircle", width: "12px" }) }) })] }), jsxs(
|
|
78959
|
+
}, children: [jsxs("div", { className: "bond-card-title", children: ["Max Buy", jsx$2(TooltipBubble, { className: "tooltip-bubble", body: jsx$2(Flex, { children: TooltipText.MaxBuy((_b = bondData === null || bondData === void 0 ? void 0 : bondData.earnToken) === null || _b === void 0 ? void 0 : _b.symbol) }), width: "230px", placement: "bottomLeft", transformTip: "translate(-5%, -5%)", children: jsx$2("div", { className: "bond-card-tooltip", children: jsx$2(Svg, { icon: "questionCircle", width: "12px" }) }) })] }), jsxs(Flex, { className: "bond-card-content", sx: { alignItems: 'center' }, children: [jsx$2("div", { style: { paddingRight: '3px' }, children: jsx$2(TokenImage, { symbol: (_c = bondData.showcaseTokenName) !== null && _c !== void 0 ? _c : bondData.earnToken.symbol, size: 22, chain: bondData.chainId }) }), formatNumberSI(maxBuy(bondData, SDKConfig.showLowValueBonds).toFixed(0), 2)] })] }), jsxs("div", { className: "bond-card-block", sx: {
|
|
78969
78960
|
borderRadius: ['0px', '0px', '0px', 'normal'],
|
|
78970
78961
|
'&:first-of-type': {
|
|
78971
78962
|
borderTopRightRadius: 'normal',
|
|
@@ -78984,21 +78975,23 @@ const BondCards = ({ bondData }) => {
|
|
|
78984
78975
|
};
|
|
78985
78976
|
|
|
78986
78977
|
const Estimations = ({ depositAmount, bondData, youSpendString, isZap, fetchingZapQuote, zapError, }) => {
|
|
78987
|
-
var _a, _b, _c
|
|
78978
|
+
var _a, _b, _c;
|
|
78988
78979
|
const { data: userPoints } = useTierPoints();
|
|
78989
78980
|
const trueBondPrice = findHighestTrueBondPrice(userPoints, bondData === null || bondData === void 0 ? void 0 : bondData.trueBondPrices);
|
|
78990
78981
|
const SDKConfig = useSDKConfig();
|
|
78991
78982
|
const userTier = getUserTier(userPoints);
|
|
78992
78983
|
const tierName = userTier ? TIERS_NAMES[userTier] : '';
|
|
78993
78984
|
// Estimations
|
|
78994
|
-
const bonusString = getRawBonus$1(bondData, depositAmount,
|
|
78995
|
-
const fee = getFeeAmount(bondData, depositAmount, userPoints
|
|
78996
|
-
const feeUSD = fee * parseFloat(
|
|
78985
|
+
const bonusString = getRawBonus$1(bondData, depositAmount, '0');
|
|
78986
|
+
// const fee = getFeeAmount(bondData, depositAmount, userPoints ?? '0')
|
|
78987
|
+
// const feeUSD = fee * parseFloat(bondData?.payoutTokenPrice ?? '0')
|
|
78997
78988
|
const estimatedOutputAmount = getPayoutAmount(bondData, depositAmount, userPoints !== null && userPoints !== void 0 ? userPoints : '0');
|
|
78998
|
-
const estimatedOutputUSD = estimatedOutputAmount * parseFloat((
|
|
78989
|
+
const estimatedOutputUSD = estimatedOutputAmount * parseFloat((_a = bondData === null || bondData === void 0 ? void 0 : bondData.payoutTokenPrice) !== null && _a !== void 0 ? _a : '0');
|
|
78999
78990
|
const noTierAmount = getRawBonus$1(bondData, depositAmount, '0');
|
|
79000
|
-
const boostAmount = parseFloat(
|
|
79001
|
-
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: [
|
|
78991
|
+
const boostAmount = parseFloat(getRawBonus$1(bondData, depositAmount, userPoints !== null && userPoints !== void 0 ? userPoints : '0')) - parseFloat(noTierAmount);
|
|
78992
|
+
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
|
|
78993
|
+
? 'Base Bonus:'
|
|
78994
|
+
: '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: {
|
|
79002
78995
|
border: '1px solid var(--theme-ui-colors-primaryButton)',
|
|
79003
78996
|
borderRadius: 'normal',
|
|
79004
78997
|
mx: '-8px',
|
|
@@ -79014,7 +79007,7 @@ const Estimations = ({ depositAmount, bondData, youSpendString, isZap, fetchingZ
|
|
|
79014
79007
|
background: 'primaryButton',
|
|
79015
79008
|
opacity: 0.3,
|
|
79016
79009
|
borderRadius: 'normal',
|
|
79017
|
-
} }), jsxs(Flex, { className: "row-container premium", sx: { zIndex: 1 }, children: [jsx$2("img", { src: `https://ape.bond/images/launch/${tierName === null || tierName === void 0 ? void 0 : tierName.toLowerCase()}.png`, alt: "minTier", style: { width: '21px', height: '21px', marginRight: '3px', zIndex: 1 } }), jsx$2(Flex, { sx: { color: 'success', mr: '3px', fontWeight: 700 }, children:
|
|
79010
|
+
} }), jsxs(Flex, { className: "row-container premium", sx: { zIndex: 1 }, children: [jsx$2("img", { src: `https://ape.bond/images/launch/${tierName === null || tierName === void 0 ? void 0 : tierName.toLowerCase()}.png`, alt: "minTier", style: { width: '21px', height: '21px', marginRight: '3px', zIndex: 1 } }), jsx$2(Flex, { sx: { color: 'success', mr: '3px', fontWeight: 700 }, children: `+${(_b = trueBondPrice === null || trueBondPrice === void 0 ? void 0 : trueBondPrice.boost) !== null && _b !== void 0 ? _b : 0}%` }), "Boost:", jsx$2(TooltipBubble, { className: "tooltip-bubble", body: jsx$2(Flex, { children: TooltipText.Boost }), 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 premium-positive`, children: ["$ ", formatNumberSI(boostAmount)] }))] })), jsxs(Flex, { className: "text-container row", children: [jsxs(Flex, { className: "row-container get", children: ["You Get (over ", vestingTime((_c = bondData === null || bondData === void 0 ? void 0 : bondData.vestingTerm) !== null && _c !== void 0 ? _c : 0).days, " days):"] }), isZap && fetchingZapQuote ? (jsx$2(Dots, {})) : isZap && zapError ? ('-') : (jsxs(Flex, { className: "row-container get-val", children: [formatNumberSI(estimatedOutputAmount, 4), " ", bondData === null || bondData === void 0 ? void 0 : bondData.showcaseTokenName, " = $", ' ', formatNumberSI(estimatedOutputUSD, 2)] }))] })] }));
|
|
79018
79011
|
};
|
|
79019
79012
|
|
|
79020
79013
|
const ProjectDescription = ({ description, isProjectView }) => {
|
|
@@ -87136,16 +87129,16 @@ const HotBondCards = () => {
|
|
|
87136
87129
|
};
|
|
87137
87130
|
|
|
87138
87131
|
const BANNER_INFO = {
|
|
87139
|
-
[main.ChainId.
|
|
87140
|
-
title: '
|
|
87141
|
-
subtitle: '
|
|
87132
|
+
[main.ChainId.MONAD]: {
|
|
87133
|
+
title: 'Monad Mainnet Bonds',
|
|
87134
|
+
subtitle: 'Launch Coming Soon.',
|
|
87142
87135
|
buttons: [
|
|
87143
87136
|
{
|
|
87144
87137
|
label: 'LEARN MORE',
|
|
87145
|
-
href: 'https://
|
|
87138
|
+
href: 'https://x.com/ApeBond/status/1995538519536578880?s=20',
|
|
87146
87139
|
variant: variants.SECONDARY,
|
|
87147
87140
|
},
|
|
87148
|
-
{ label: '
|
|
87141
|
+
{ label: 'Launch Yours', href: 'https://forms.clickup.com/3080492/f/2y09c-6585/O175DYTK4PMR6P4CZA' },
|
|
87149
87142
|
],
|
|
87150
87143
|
background: 'https://res.cloudinary.com/dswmrqgwy/image/upload/v1/banner_jpkg38.png',
|
|
87151
87144
|
backgroundMobile: 'https://res.cloudinary.com/dswmrqgwy/image/upload/v1/banner-mobile_y6xveu.png',
|
|
@@ -87200,12 +87193,12 @@ const ActiveBondRows = ({ chain, bonds, hideTitles, showHotBonds }) => {
|
|
|
87200
87193
|
const { namingPreference } = useSDKConfig();
|
|
87201
87194
|
const [isOpen, setIsOpen] = useState(true);
|
|
87202
87195
|
const key = chain;
|
|
87203
|
-
return (jsx$2(Flex$1, { className: "bondrowswithtitle", children: jsxs(AnimatePresence, { initial: false, children: [jsx$2(Flex$1, { onClick: () => setIsOpen(!isOpen), sx: { cursor: 'pointer' }, children: jsx$2(ChainTitle, { chain: chain, pt: '5px', hideTitles: (bonds.length <= 0 && chain !== main.ChainId.SOL) || hideTitles, isOpen: isOpen }) }), isOpen && (bonds.length > 0 || chain === main.ChainId.SOL) && (jsxs(motion.div, { initial: { height: 0, overflow: 'hidden' }, animate: { height: 'fit-content', overflow: 'hidden', transitionEnd: { overflow: 'visible' } }, exit: { height: 0, overflow: 'hidden' }, sx: {
|
|
87196
|
+
return (jsx$2(Flex$1, { className: "bondrowswithtitle", children: jsxs(AnimatePresence, { initial: false, children: [jsx$2(Flex$1, { onClick: () => setIsOpen(!isOpen), sx: { cursor: 'pointer' }, children: jsx$2(ChainTitle, { chain: chain, pt: '5px', hideTitles: (bonds.length <= 0 && chain !== main.ChainId.SOL && chain !== main.ChainId.MONAD) || hideTitles, isOpen: isOpen }) }), isOpen && (bonds.length > 0 || chain === main.ChainId.SOL || chain === main.ChainId.MONAD) && (jsxs(motion.div, { initial: { height: 0, overflow: 'hidden' }, animate: { height: 'fit-content', overflow: 'hidden', transitionEnd: { overflow: 'visible' } }, exit: { height: 0, overflow: 'hidden' }, sx: {
|
|
87204
87197
|
position: 'relative',
|
|
87205
87198
|
overflow: 'hidden',
|
|
87206
87199
|
width: '100%',
|
|
87207
87200
|
marginTop: '0px',
|
|
87208
|
-
}, className: "bonds-card-container", children: [[main.ChainId.SOL, main.ChainId.
|
|
87201
|
+
}, className: "bonds-card-container", children: [[main.ChainId.SOL, main.ChainId.MONAD].includes(chain) && !hideTitles && jsx$2(ChainBanner, { chainId: chain }), bonds === null || bonds === void 0 ? void 0 : bonds.map((bondFromMap, index) => {
|
|
87209
87202
|
// PRE TGE ROWS
|
|
87210
87203
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
87211
87204
|
if (bondFromMap.billType === 'fcfs') {
|