@gearbox-protocol/deploy-tools 5.11.9 → 5.11.11

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 +7 -32
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -407458,30 +407458,16 @@ var SDKExample = class {
407458
407458
  timeout: 48e4,
407459
407459
  addressProvider,
407460
407460
  logger: this.#logger,
407461
- ignoreUpdateablePrices: true,
407461
+ ignoreUpdateablePrices: false,
407462
407462
  marketConfigurators
407463
407463
  });
407464
+ this.#logger?.info("attached sdk");
407464
407465
  try {
407465
407466
  await this.#sdk.marketRegister.loadZappers();
407466
407467
  } catch (e) {
407467
407468
  this.#logger?.error(`failed to load zappers: ${e}`);
407468
407469
  }
407469
407470
  await this.#safeMigrateFaucet(addressProvider);
407470
- const puTx = await this.#sdk.priceFeeds.getUpdatePriceFeedsTx(marketConfigurators);
407471
- const updater = createWalletClient({
407472
- account: privateKeyToAccount(
407473
- "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"
407474
- // well-known anvil private key
407475
- ),
407476
- transport: http(anvilUrl)
407477
- });
407478
- const publicClient = createPublicClient({
407479
- transport: http(anvilUrl)
407480
- });
407481
- const hash2 = await sendRawTx(updater, { tx: puTx });
407482
- await publicClient.waitForTransactionReceipt({ hash: hash2 });
407483
- await this.#sdk.marketRegister.loadMarkets(marketConfigurators, true);
407484
- this.#logger?.info("attached sdk");
407485
407471
  await Promise.allSettled(
407486
407472
  this.#sdk.marketRegister.marketConfigurators.map(
407487
407473
  (m) => m.loadCuratorName()
@@ -407559,6 +407545,7 @@ var SDKExample = class {
407559
407545
  address: owner,
407560
407546
  value: parseEther("100")
407561
407547
  });
407548
+ await anvil.setBlockTimestampInterval({ interval: 0 });
407562
407549
  const hash2 = await anvil.writeContract({
407563
407550
  chain: anvil.chain,
407564
407551
  account: owner,
@@ -407568,6 +407555,7 @@ var SDKExample = class {
407568
407555
  args: [stringToHex("FAUCET", { size: 32 }), faucetAddr, true]
407569
407556
  });
407570
407557
  const receipt = await anvil.waitForTransactionReceipt({ hash: hash2 });
407558
+ await anvil.removeBlockTimestampInterval();
407571
407559
  await anvil.stopImpersonatingAccount({ address: owner });
407572
407560
  if (receipt.status === "reverted") {
407573
407561
  throw new Error("faucet migration reverted");
@@ -414034,7 +414022,7 @@ function openAccounts() {
414034
414022
  sharedDir = ".",
414035
414023
  nexo,
414036
414024
  castBin = "cast",
414037
- automine: automineIntervalS = "1"
414025
+ automine: automineIntervalS = "0"
414038
414026
  } = opts;
414039
414027
  await mkdir2(path9.resolve(sharedDir, "deploy-state"), { recursive: true });
414040
414028
  const sdkExample2 = new SDKExample(log_default);
@@ -414062,19 +414050,6 @@ function openAccounts() {
414062
414050
  });
414063
414051
  log_default.debug(`faucet address: ${faucetAddr}`);
414064
414052
  const anvil = createAnvilClient({ transport: http(anvilUrl) });
414065
- sdkExample2.sdk.priceFeeds.addHook(
414066
- "updatesGenerated",
414067
- async ({ timestamp }) => {
414068
- try {
414069
- const block = await anvil.evmMineDetailed(timestamp);
414070
- log_default.debug(
414071
- { tag: "timing" },
414072
- `new block ts: ${block?.timestamp}`
414073
- );
414074
- } catch {
414075
- }
414076
- }
414077
- );
414078
414053
  const automineInterval = parseInt(automineIntervalS, 10);
414079
414054
  const automine = await anvil.getAutomine();
414080
414055
  await anvil.setBlockTimestampInterval({ interval: automineInterval });
@@ -414255,7 +414230,7 @@ function getRenderer(opts) {
414255
414230
  var package_default = {
414256
414231
  name: "@gearbox-protocol/deploy-tools",
414257
414232
  description: "Gearbox deploy tools",
414258
- version: "5.11.9",
414233
+ version: "5.11.11",
414259
414234
  homepage: "https://gearbox.fi",
414260
414235
  keywords: [
414261
414236
  "gearbox"
@@ -414298,7 +414273,7 @@ var package_default = {
414298
414273
  "@gearbox-protocol/deploy-tools-node": "0.0.0",
414299
414274
  "@gearbox-protocol/deploy-tools-shared": "0.0.0",
414300
414275
  "@gearbox-protocol/deploy-tools-types": "0.0.0",
414301
- "@gearbox-protocol/sdk": "3.0.0-vfour.245",
414276
+ "@gearbox-protocol/sdk": "3.0.0-vfour.247",
414302
414277
  "@gearbox-protocol/sdk-gov": "^2.34.1",
414303
414278
  "@types/lodash-es": "^4.17.12",
414304
414279
  "@types/node": "^22.13.1",
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.11.9",
4
+ "version": "5.11.11",
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.245",
47
+ "@gearbox-protocol/sdk": "3.0.0-vfour.247",
48
48
  "@gearbox-protocol/sdk-gov": "^2.34.1",
49
49
  "@types/lodash-es": "^4.17.12",
50
50
  "@types/node": "^22.13.1",