@gearbox-protocol/deploy-tools 5.9.9 → 5.9.10
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.mjs +30 -18
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -375415,22 +375415,34 @@ var MarketRegister = class extends SDKConstruct {
|
|
|
375415
375415
|
{ configurators, pools },
|
|
375416
375416
|
`calling getMarkets with ${txs.length} price updates`
|
|
375417
375417
|
);
|
|
375418
|
-
|
|
375419
|
-
|
|
375420
|
-
|
|
375421
|
-
|
|
375422
|
-
|
|
375423
|
-
|
|
375424
|
-
|
|
375425
|
-
|
|
375426
|
-
|
|
375427
|
-
|
|
375428
|
-
|
|
375429
|
-
|
|
375430
|
-
|
|
375431
|
-
|
|
375432
|
-
|
|
375433
|
-
|
|
375418
|
+
let markets = [];
|
|
375419
|
+
if (txs.length) {
|
|
375420
|
+
const resp = await simulateMulticall(this.provider.publicClient, {
|
|
375421
|
+
contracts: [
|
|
375422
|
+
...txs.map(rawTxToMulticallPriceUpdate),
|
|
375423
|
+
{
|
|
375424
|
+
abi: iMarketCompressorAbi,
|
|
375425
|
+
address: marketCompressorAddress,
|
|
375426
|
+
functionName: "getMarkets",
|
|
375427
|
+
args: [this.#marketFilter]
|
|
375428
|
+
}
|
|
375429
|
+
],
|
|
375430
|
+
allowFailure: false,
|
|
375431
|
+
gas: 550000000n,
|
|
375432
|
+
batchSize: 0
|
|
375433
|
+
// we cannot have price updates and compressor request in different batches
|
|
375434
|
+
});
|
|
375435
|
+
markets = resp.pop();
|
|
375436
|
+
} else {
|
|
375437
|
+
markets = await this.provider.publicClient.readContract({
|
|
375438
|
+
abi: iMarketCompressorAbi,
|
|
375439
|
+
address: marketCompressorAddress,
|
|
375440
|
+
functionName: "getMarkets",
|
|
375441
|
+
args: [this.#marketFilter],
|
|
375442
|
+
// @ts-ignore
|
|
375443
|
+
gas: 550000000n
|
|
375444
|
+
});
|
|
375445
|
+
}
|
|
375434
375446
|
for (const data of markets) {
|
|
375435
375447
|
this.#markets.upsert(
|
|
375436
375448
|
data.pool.baseParams.addr,
|
|
@@ -409600,7 +409612,7 @@ function getRenderer(opts) {
|
|
|
409600
409612
|
var package_default = {
|
|
409601
409613
|
name: "@gearbox-protocol/deploy-tools",
|
|
409602
409614
|
description: "Gearbox deploy tools",
|
|
409603
|
-
version: "5.9.
|
|
409615
|
+
version: "5.9.10",
|
|
409604
409616
|
homepage: "https://gearbox.fi",
|
|
409605
409617
|
keywords: [
|
|
409606
409618
|
"gearbox"
|
|
@@ -409643,7 +409655,7 @@ var package_default = {
|
|
|
409643
409655
|
"@gearbox-protocol/deploy-tools-node": "0.0.0",
|
|
409644
409656
|
"@gearbox-protocol/deploy-tools-shared": "0.0.0",
|
|
409645
409657
|
"@gearbox-protocol/deploy-tools-types": "0.0.0",
|
|
409646
|
-
"@gearbox-protocol/sdk": "3.0.0-vfour.
|
|
409658
|
+
"@gearbox-protocol/sdk": "3.0.0-vfour.213",
|
|
409647
409659
|
"@gearbox-protocol/sdk-gov": "^2.34.0",
|
|
409648
409660
|
"@types/lodash-es": "^4.17.12",
|
|
409649
409661
|
"@types/node": "^22.12.0",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gearbox-protocol/deploy-tools",
|
|
3
3
|
"description": "Gearbox deploy tools",
|
|
4
|
-
"version": "5.9.
|
|
4
|
+
"version": "5.9.10",
|
|
5
5
|
"homepage": "https://gearbox.fi",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"gearbox"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@gearbox-protocol/deploy-tools-node": "0.0.0",
|
|
45
45
|
"@gearbox-protocol/deploy-tools-shared": "0.0.0",
|
|
46
46
|
"@gearbox-protocol/deploy-tools-types": "0.0.0",
|
|
47
|
-
"@gearbox-protocol/sdk": "3.0.0-vfour.
|
|
47
|
+
"@gearbox-protocol/sdk": "3.0.0-vfour.213",
|
|
48
48
|
"@gearbox-protocol/sdk-gov": "^2.34.0",
|
|
49
49
|
"@types/lodash-es": "^4.17.12",
|
|
50
50
|
"@types/node": "^22.12.0",
|