@gearbox-protocol/deploy-tools 5.9.11 → 5.9.12

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.
Files changed (2) hide show
  1. package/dist/index.mjs +23 -10
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -375348,11 +375348,24 @@ var MarketRegister = class extends SDKConstruct {
375348
375348
  abi: iPeripheryCompressorAbi,
375349
375349
  address: pcAddr,
375350
375350
  functionName: "getZappers",
375351
- args: [m.configurator, m.pool.pool.address]
375351
+ args: [m.configurator.address, m.pool.pool.address]
375352
375352
  })),
375353
- allowFailure: false
375353
+ allowFailure: true
375354
375354
  });
375355
- this.#zappers = resp.flat();
375355
+ const zappers = [];
375356
+ for (let i = 0; i < resp.length; i++) {
375357
+ const { status, result, error } = resp[i];
375358
+ const marketConfigurator = this.markets[i].configurator.address;
375359
+ const pool = this.markets[i].pool.pool.address;
375360
+ if (status === "success") {
375361
+ zappers.push(...result);
375362
+ } else {
375363
+ this.#logger?.error(
375364
+ `failed to load zapper for market configurator ${this.labelAddress(marketConfigurator)} and pool ${this.labelAddress(pool)}: ${error}`
375365
+ );
375366
+ }
375367
+ }
375368
+ this.#zappers = zappers;
375356
375369
  const zappersTokens = this.#zappers.flatMap((z2) => [z2.tokenIn, z2.tokenOut]);
375357
375370
  for (const t of zappersTokens) {
375358
375371
  this.sdk.tokensMeta.upsert(t.addr, t);
@@ -403030,6 +403043,11 @@ var SDKExample = class {
403030
403043
  ignoreUpdateablePrices: true,
403031
403044
  marketConfigurators
403032
403045
  });
403046
+ try {
403047
+ await this.#sdk.marketRegister.loadZappers();
403048
+ } catch (e) {
403049
+ this.#logger?.error(`failed to load zappers: ${e}`);
403050
+ }
403033
403051
  await this.#safeMigrateFaucet(addressProvider);
403034
403052
  const puTx = await this.#sdk.priceFeeds.getUpdatePriceFeedsTx(marketConfigurators);
403035
403053
  const updater = createWalletClient({
@@ -403045,11 +403063,6 @@ var SDKExample = class {
403045
403063
  const hash2 = await sendRawTx(updater, { tx: puTx });
403046
403064
  await publicClient.waitForTransactionReceipt({ hash: hash2 });
403047
403065
  await this.#sdk.marketRegister.loadMarkets(marketConfigurators, true);
403048
- try {
403049
- await this.#sdk.marketRegister.loadZappers();
403050
- } catch (e) {
403051
- this.#logger?.error(`failed to load zappers: ${e}`);
403052
- }
403053
403066
  this.#logger?.info("attached sdk");
403054
403067
  if (outFile) {
403055
403068
  try {
@@ -409611,7 +409624,7 @@ function getRenderer(opts) {
409611
409624
  var package_default = {
409612
409625
  name: "@gearbox-protocol/deploy-tools",
409613
409626
  description: "Gearbox deploy tools",
409614
- version: "5.9.11",
409627
+ version: "5.9.12",
409615
409628
  homepage: "https://gearbox.fi",
409616
409629
  keywords: [
409617
409630
  "gearbox"
@@ -409654,7 +409667,7 @@ var package_default = {
409654
409667
  "@gearbox-protocol/deploy-tools-node": "0.0.0",
409655
409668
  "@gearbox-protocol/deploy-tools-shared": "0.0.0",
409656
409669
  "@gearbox-protocol/deploy-tools-types": "0.0.0",
409657
- "@gearbox-protocol/sdk": "3.0.0-vfour.214",
409670
+ "@gearbox-protocol/sdk": "3.0.0-vfour.215",
409658
409671
  "@gearbox-protocol/sdk-gov": "^2.34.0",
409659
409672
  "@types/lodash-es": "^4.17.12",
409660
409673
  "@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.11",
4
+ "version": "5.9.12",
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.214",
47
+ "@gearbox-protocol/sdk": "3.0.0-vfour.215",
48
48
  "@gearbox-protocol/sdk-gov": "^2.34.0",
49
49
  "@types/lodash-es": "^4.17.12",
50
50
  "@types/node": "^22.12.0",