@bgd-labs/toolbox 0.0.39 → 0.0.41
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/index.d.mts +71 -9
- package/dist/index.d.ts +71 -9
- package/dist/index.js +115 -40
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +117 -41
- package/dist/index.mjs.map +1 -1
- package/dist/node.js +115 -40
- package/dist/node.js.map +1 -1
- package/dist/node.mjs +117 -41
- package/dist/node.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -17942,7 +17942,8 @@ import {
|
|
|
17942
17942
|
zksync,
|
|
17943
17943
|
ink,
|
|
17944
17944
|
soneium,
|
|
17945
|
-
bob
|
|
17945
|
+
bob,
|
|
17946
|
+
plasma
|
|
17946
17947
|
} from "viem/chains";
|
|
17947
17948
|
var ChainId = {
|
|
17948
17949
|
celo: celo.id,
|
|
@@ -17973,7 +17974,8 @@ var ChainId = {
|
|
|
17973
17974
|
linea: linea.id,
|
|
17974
17975
|
ink: ink.id,
|
|
17975
17976
|
soneium: soneium.id,
|
|
17976
|
-
bob: bob.id
|
|
17977
|
+
bob: bob.id,
|
|
17978
|
+
plasma: plasma.id
|
|
17977
17979
|
};
|
|
17978
17980
|
var ChainList = {
|
|
17979
17981
|
[ChainId.mainnet]: mainnet,
|
|
@@ -18014,7 +18016,8 @@ var ChainList = {
|
|
|
18014
18016
|
[ChainId.linea]: linea,
|
|
18015
18017
|
[ChainId.ink]: ink,
|
|
18016
18018
|
[ChainId.soneium]: soneium,
|
|
18017
|
-
[ChainId.bob]: bob
|
|
18019
|
+
[ChainId.bob]: bob,
|
|
18020
|
+
[ChainId.plasma]: plasma
|
|
18018
18021
|
};
|
|
18019
18022
|
|
|
18020
18023
|
// src/ecosystem/tenderly.ts
|
|
@@ -18131,7 +18134,7 @@ async function tenderly_createVnet({
|
|
|
18131
18134
|
id: forkChainId
|
|
18132
18135
|
},
|
|
18133
18136
|
mode: "tenderly",
|
|
18134
|
-
transport: http(rpc.url)
|
|
18137
|
+
transport: http(rpc.url, { timeout: 2e5 })
|
|
18135
18138
|
}),
|
|
18136
18139
|
walletClient: createWalletClient({
|
|
18137
18140
|
chain: {
|
|
@@ -18139,7 +18142,7 @@ async function tenderly_createVnet({
|
|
|
18139
18142
|
id: forkChainId
|
|
18140
18143
|
},
|
|
18141
18144
|
account: "0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9",
|
|
18142
|
-
transport: http(rpc.url)
|
|
18145
|
+
transport: http(rpc.url, { timeout: 2e5 })
|
|
18143
18146
|
}),
|
|
18144
18147
|
simulate: (body2) => tenderly_simVnet(
|
|
18145
18148
|
response.id,
|
|
@@ -18491,7 +18494,6 @@ var tenderlyNetworkMap = {
|
|
|
18491
18494
|
7887: "kinto",
|
|
18492
18495
|
8008: "polynomial",
|
|
18493
18496
|
8453: "base",
|
|
18494
|
-
9069: "af-nexus-mainnet",
|
|
18495
18497
|
9070: "af-nexus-testnet",
|
|
18496
18498
|
9728: "boba-bnb-testnet",
|
|
18497
18499
|
9746: "plasma-testnet",
|
|
@@ -18564,7 +18566,8 @@ var publicRPCs = {
|
|
|
18564
18566
|
[ChainId.fantom]: "https://rpc.ftm.tools",
|
|
18565
18567
|
[ChainId.avalanche]: "https://api.avax.network/ext/bc/C/rpc",
|
|
18566
18568
|
[ChainId.linea]: "https://rpc.linea.build",
|
|
18567
|
-
[ChainId.bob]: "https://rpc.gobob.xyz"
|
|
18569
|
+
[ChainId.bob]: "https://rpc.gobob.xyz",
|
|
18570
|
+
[ChainId.plasma]: "https://rpc.plasma.to"
|
|
18568
18571
|
};
|
|
18569
18572
|
var alchemySupportedChainIds = Object.values(ChainId).filter(
|
|
18570
18573
|
(id) => alchemyNetworkMap[id]
|
|
@@ -21547,12 +21550,6 @@ var chainlinkFeeds = {
|
|
|
21547
21550
|
"decimals": 8,
|
|
21548
21551
|
"name": "YFI / USD"
|
|
21549
21552
|
},
|
|
21550
|
-
{
|
|
21551
|
-
"contractAddress": "0x5359676cD1840De248D71541a3c7B358036D2c93",
|
|
21552
|
-
"proxyAddress": "0x079674468Fee6ab45aBfE986737A440701c49BdB",
|
|
21553
|
-
"decimals": 8,
|
|
21554
|
-
"name": "USDM / USD"
|
|
21555
|
-
},
|
|
21556
21553
|
{
|
|
21557
21554
|
"contractAddress": "0x5406F7bfF74320e7EEB9ebf720E812599F71800c",
|
|
21558
21555
|
"proxyAddress": "0x7A364e8770418566e3eb2001A96116E6138Eb32F",
|
|
@@ -25809,6 +25806,12 @@ var chainlinkFeeds = {
|
|
|
25809
25806
|
"decimals": 8,
|
|
25810
25807
|
"name": "stS / USD"
|
|
25811
25808
|
},
|
|
25809
|
+
{
|
|
25810
|
+
"contractAddress": "0xEA67c1E120c71d4c8045937FBB511FC44CBF1d85",
|
|
25811
|
+
"proxyAddress": "0x5c042362ecB555D9fb554E4ee1821Aa6762D9239",
|
|
25812
|
+
"decimals": 18,
|
|
25813
|
+
"name": "xSolvBTC NAV"
|
|
25814
|
+
},
|
|
25812
25815
|
{
|
|
25813
25816
|
"contractAddress": "0xEaDe2845b14d262b89608908A64103E942cC9F85",
|
|
25814
25817
|
"proxyAddress": "0x3c6490e4c60BD8246071A014AaCE7A596d392642",
|
|
@@ -25925,6 +25928,12 @@ var chainlinkFeeds = {
|
|
|
25925
25928
|
"decimals": 8,
|
|
25926
25929
|
"name": "AAVE / USD"
|
|
25927
25930
|
},
|
|
25931
|
+
{
|
|
25932
|
+
"contractAddress": "0x4D322E2636C01f3968153d2fB416737299B0481A",
|
|
25933
|
+
"proxyAddress": "0x7e161604Da57DF30bbC9f0C166e8163fB9147a7a",
|
|
25934
|
+
"decimals": 18,
|
|
25935
|
+
"name": "xSolvBTC NAV"
|
|
25936
|
+
},
|
|
25928
25937
|
{
|
|
25929
25938
|
"contractAddress": "0x5941757Be22E8093Ef463d00F1f55eAAaa1D4FEb",
|
|
25930
25939
|
"proxyAddress": "0x8D3184a992f93729b249407C33F1e78abE0d650e",
|
|
@@ -26234,6 +26243,12 @@ var chainlinkFeeds = {
|
|
|
26234
26243
|
"proxyAddress": "0x931602D8758E7A891Dce57A31c2A23A98931Fe1c",
|
|
26235
26244
|
"decimals": 18,
|
|
26236
26245
|
"name": "stETH / ETH"
|
|
26246
|
+
},
|
|
26247
|
+
{
|
|
26248
|
+
"contractAddress": "0xb4D8DC49FE2b8b9d4FeAEE430a1E5d6D069F00f4",
|
|
26249
|
+
"proxyAddress": "0x42237D7d96A4178bB22498bb3B2C689D502DE847",
|
|
26250
|
+
"decimals": 18,
|
|
26251
|
+
"name": "xSolvBTC NAV"
|
|
26237
26252
|
}
|
|
26238
26253
|
],
|
|
26239
26254
|
"5000": [
|
|
@@ -26491,6 +26506,12 @@ var chainlinkFeeds = {
|
|
|
26491
26506
|
"decimals": 18,
|
|
26492
26507
|
"name": "ezETH / ETH Exchange Rate"
|
|
26493
26508
|
},
|
|
26509
|
+
{
|
|
26510
|
+
"contractAddress": "0x23c463c4fB13fFC8c20a1Bdd71A928686eD3A4A2",
|
|
26511
|
+
"proxyAddress": "0x237A94A589DD38DF7e50CeFDa0b8916a54d01ecC",
|
|
26512
|
+
"decimals": 8,
|
|
26513
|
+
"name": "XDC / USD"
|
|
26514
|
+
},
|
|
26494
26515
|
{
|
|
26495
26516
|
"contractAddress": "0x23e47A253776F1Fce32e5F2D5D342ca5D6Edd226",
|
|
26496
26517
|
"proxyAddress": "0x3E3A6bD129A63564FE7abde85FA67c3950569060",
|
|
@@ -27759,6 +27780,12 @@ var chainlinkFeeds = {
|
|
|
27759
27780
|
"decimals": 18,
|
|
27760
27781
|
"name": "GHO/USD-RefPrice-mainnet-production"
|
|
27761
27782
|
},
|
|
27783
|
+
{
|
|
27784
|
+
"contractAddress": "0x0000000000000000000000000000000000000000",
|
|
27785
|
+
"proxyAddress": null,
|
|
27786
|
+
"decimals": 18,
|
|
27787
|
+
"name": "USD0/USD-Streams-DexPrice-mainnet-production"
|
|
27788
|
+
},
|
|
27762
27789
|
{
|
|
27763
27790
|
"contractAddress": "0x0000000000000000000000000000000000000000",
|
|
27764
27791
|
"proxyAddress": null,
|
|
@@ -27987,6 +28014,12 @@ var chainlinkFeeds = {
|
|
|
27987
28014
|
"decimals": 18,
|
|
27988
28015
|
"name": "TNSR/USD-RefPrice-mainnet-production"
|
|
27989
28016
|
},
|
|
28017
|
+
{
|
|
28018
|
+
"contractAddress": "0x0000000000000000000000000000000000000000",
|
|
28019
|
+
"proxyAddress": null,
|
|
28020
|
+
"decimals": 18,
|
|
28021
|
+
"name": "MYX/USD-Streams-DexPrice-mainnet-production"
|
|
28022
|
+
},
|
|
27990
28023
|
{
|
|
27991
28024
|
"contractAddress": "0x0000000000000000000000000000000000000000",
|
|
27992
28025
|
"proxyAddress": null,
|
|
@@ -28305,6 +28338,12 @@ var chainlinkFeeds = {
|
|
|
28305
28338
|
"decimals": 18,
|
|
28306
28339
|
"name": "KAVA/USD-RefPrice-mainnet-staging"
|
|
28307
28340
|
},
|
|
28341
|
+
{
|
|
28342
|
+
"contractAddress": "0x0000000000000000000000000000000000000000",
|
|
28343
|
+
"proxyAddress": null,
|
|
28344
|
+
"decimals": 18,
|
|
28345
|
+
"name": "OKB/USD-Streams-CexPrice-mainnet-production"
|
|
28346
|
+
},
|
|
28308
28347
|
{
|
|
28309
28348
|
"contractAddress": "0x0000000000000000000000000000000000000000",
|
|
28310
28349
|
"proxyAddress": null,
|
|
@@ -28365,6 +28404,12 @@ var chainlinkFeeds = {
|
|
|
28365
28404
|
"decimals": 18,
|
|
28366
28405
|
"name": "BNSOL/USD-RefPrice-mainnet-production"
|
|
28367
28406
|
},
|
|
28407
|
+
{
|
|
28408
|
+
"contractAddress": "0x0000000000000000000000000000000000000000",
|
|
28409
|
+
"proxyAddress": null,
|
|
28410
|
+
"decimals": 18,
|
|
28411
|
+
"name": "BRL/USDT-RefPrice-mainnet-production"
|
|
28412
|
+
},
|
|
28368
28413
|
{
|
|
28369
28414
|
"contractAddress": "0x0000000000000000000000000000000000000000",
|
|
28370
28415
|
"proxyAddress": null,
|
|
@@ -28641,6 +28686,12 @@ var chainlinkFeeds = {
|
|
|
28641
28686
|
"decimals": 18,
|
|
28642
28687
|
"name": "MSTR/USD-Streams-EquityPrice-Timestamped-mainnet-production"
|
|
28643
28688
|
},
|
|
28689
|
+
{
|
|
28690
|
+
"contractAddress": "0x0000000000000000000000000000000000000000",
|
|
28691
|
+
"proxyAddress": null,
|
|
28692
|
+
"decimals": 18,
|
|
28693
|
+
"name": "VXX/USD-Streams-EquityPrice-Timestamped-mainnet-production"
|
|
28694
|
+
},
|
|
28644
28695
|
{
|
|
28645
28696
|
"contractAddress": "0x0000000000000000000000000000000000000000",
|
|
28646
28697
|
"proxyAddress": null,
|
|
@@ -28683,6 +28734,12 @@ var chainlinkFeeds = {
|
|
|
28683
28734
|
"decimals": 18,
|
|
28684
28735
|
"name": "VZ/USD-Streams-EquityPrice-Timestamped-mainnet-production"
|
|
28685
28736
|
},
|
|
28737
|
+
{
|
|
28738
|
+
"contractAddress": "0x0000000000000000000000000000000000000000",
|
|
28739
|
+
"proxyAddress": null,
|
|
28740
|
+
"decimals": 18,
|
|
28741
|
+
"name": "IBIT/USD-Streams-EquityPrice-Timestamped-mainnet-production"
|
|
28742
|
+
},
|
|
28686
28743
|
{
|
|
28687
28744
|
"contractAddress": "0x0000000000000000000000000000000000000000",
|
|
28688
28745
|
"proxyAddress": null,
|
|
@@ -32049,6 +32106,12 @@ var chainlinkFeeds = {
|
|
|
32049
32106
|
"decimals": 8,
|
|
32050
32107
|
"name": "1INCH / USD"
|
|
32051
32108
|
},
|
|
32109
|
+
{
|
|
32110
|
+
"contractAddress": "0xaD81BC9887ab35B4aA05493E9B3C32cA7393c8b1",
|
|
32111
|
+
"proxyAddress": "0x3b9c34dC5B6BfC1dE896496aFCEf1ca705D0c762",
|
|
32112
|
+
"decimals": 8,
|
|
32113
|
+
"name": "XDC / USD"
|
|
32114
|
+
},
|
|
32052
32115
|
{
|
|
32053
32116
|
"contractAddress": "0xadBf1c8a244d537C343d771e2Fa897F3654a1Ae4",
|
|
32054
32117
|
"proxyAddress": "0x3dD6e51CB9caE717d5a8778CF79A04029f9cFDF8",
|
|
@@ -32893,6 +32956,12 @@ var chainlinkFeeds = {
|
|
|
32893
32956
|
"decimals": 8,
|
|
32894
32957
|
"name": "COMP / USD"
|
|
32895
32958
|
},
|
|
32959
|
+
{
|
|
32960
|
+
"contractAddress": "0xF4D6Ed96A78EB7e78B77D47cfD288C2468024D3B",
|
|
32961
|
+
"proxyAddress": "0x55b5dc7d7CDD5d3b2Eb189bf11140839076E5d40",
|
|
32962
|
+
"decimals": 18,
|
|
32963
|
+
"name": "xSolvBTC NAV"
|
|
32964
|
+
},
|
|
32896
32965
|
{
|
|
32897
32966
|
"contractAddress": "0xFE7019D5BCD395C56FB1cF43be548B1F056288FB",
|
|
32898
32967
|
"proxyAddress": "0x9Cf3Ef104A973b351B2c032AA6793c3A6F76b448",
|
|
@@ -33069,6 +33138,12 @@ var chainlinkFeeds = {
|
|
|
33069
33138
|
"decimals": 8,
|
|
33070
33139
|
"name": "COMP / USD"
|
|
33071
33140
|
},
|
|
33141
|
+
{
|
|
33142
|
+
"contractAddress": "0x67F8F34a08233FA07fcD15EE597C643fd1eBc422",
|
|
33143
|
+
"proxyAddress": "0x49768d7ebB7694b1e72546300cCCeD877084d72f",
|
|
33144
|
+
"decimals": 18,
|
|
33145
|
+
"name": "xSolvBTC NAV"
|
|
33146
|
+
},
|
|
33072
33147
|
{
|
|
33073
33148
|
"contractAddress": "0x6f0D003A0743F5acea5680B1D128bd433B07ffCE",
|
|
33074
33149
|
"proxyAddress": "0xEEDF0B095B5dfe75F3881Cb26c19DA209A27463a",
|
|
@@ -33412,56 +33487,57 @@ var chainlinkFeeds = {
|
|
|
33412
33487
|
|
|
33413
33488
|
// src/ecosystem/generated/hyperRPC.ts
|
|
33414
33489
|
var hyperRPCSupportedNetworks = [
|
|
33415
|
-
1,
|
|
33416
33490
|
1,
|
|
33417
33491
|
10,
|
|
33492
|
+
42,
|
|
33493
|
+
50,
|
|
33494
|
+
51,
|
|
33495
|
+
56,
|
|
33496
|
+
97,
|
|
33418
33497
|
100,
|
|
33419
|
-
10143,
|
|
33420
|
-
10200,
|
|
33421
|
-
1101,
|
|
33422
|
-
11155111,
|
|
33423
|
-
11155420,
|
|
33424
|
-
1135,
|
|
33425
|
-
1284,
|
|
33426
33498
|
130,
|
|
33427
|
-
1301,
|
|
33428
|
-
1313161567,
|
|
33429
33499
|
137,
|
|
33430
33500
|
146,
|
|
33431
|
-
16666e5,
|
|
33432
|
-
168587773,
|
|
33433
|
-
17e3,
|
|
33434
33501
|
250,
|
|
33435
|
-
2818,
|
|
33436
33502
|
288,
|
|
33437
33503
|
324,
|
|
33438
|
-
|
|
33504
|
+
480,
|
|
33505
|
+
999,
|
|
33506
|
+
1101,
|
|
33507
|
+
1135,
|
|
33508
|
+
1284,
|
|
33509
|
+
1301,
|
|
33510
|
+
2818,
|
|
33439
33511
|
4201,
|
|
33512
|
+
6342,
|
|
33513
|
+
7560,
|
|
33514
|
+
8453,
|
|
33515
|
+
9889,
|
|
33516
|
+
10143,
|
|
33517
|
+
10200,
|
|
33518
|
+
17e3,
|
|
33440
33519
|
42161,
|
|
33441
|
-
421614,
|
|
33442
33520
|
43113,
|
|
33443
33521
|
43114,
|
|
33444
|
-
50,
|
|
33445
33522
|
50104,
|
|
33446
|
-
51,
|
|
33447
|
-
531050104,
|
|
33448
|
-
534352,
|
|
33449
|
-
56,
|
|
33450
33523
|
59144,
|
|
33451
|
-
6342,
|
|
33452
|
-
7225878,
|
|
33453
|
-
7560,
|
|
33454
|
-
7777777,
|
|
33455
33524
|
80002,
|
|
33456
33525
|
80084,
|
|
33457
33526
|
80094,
|
|
33458
33527
|
81457,
|
|
33459
|
-
8453,
|
|
33460
33528
|
84532,
|
|
33461
33529
|
88888,
|
|
33462
|
-
97,
|
|
33463
33530
|
98866,
|
|
33464
|
-
|
|
33531
|
+
421614,
|
|
33532
|
+
534352,
|
|
33533
|
+
7225878,
|
|
33534
|
+
7777777,
|
|
33535
|
+
11155111,
|
|
33536
|
+
11155420,
|
|
33537
|
+
168587773,
|
|
33538
|
+
531050104,
|
|
33539
|
+
1313161567,
|
|
33540
|
+
16666e5
|
|
33465
33541
|
];
|
|
33466
33542
|
|
|
33467
33543
|
// src/operations/diffCode.ts
|