@gearbox-protocol/deploy-tools 5.11.10 → 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.
- package/dist/index.mjs +14 -26
- 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:
|
|
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,16 +414022,9 @@ function openAccounts() {
|
|
|
414034
414022
|
sharedDir = ".",
|
|
414035
414023
|
nexo,
|
|
414036
414024
|
castBin = "cast",
|
|
414037
|
-
automine: automineIntervalS = "
|
|
414025
|
+
automine: automineIntervalS = "0"
|
|
414038
414026
|
} = opts;
|
|
414039
414027
|
await mkdir2(path9.resolve(sharedDir, "deploy-state"), { recursive: true });
|
|
414040
|
-
const anvil = createAnvilClient({ transport: http(anvilUrl) });
|
|
414041
|
-
const automineInterval = parseInt(automineIntervalS, 10);
|
|
414042
|
-
const automine = await anvil.getAutomine();
|
|
414043
|
-
await anvil.setBlockTimestampInterval({ interval: automineInterval });
|
|
414044
|
-
log_default.debug(
|
|
414045
|
-
`setting block timestamp interval, automine: ${automine}, interval ${automineInterval}`
|
|
414046
|
-
);
|
|
414047
414028
|
const sdkExample2 = new SDKExample(log_default);
|
|
414048
414029
|
await sdkExample2.run({
|
|
414049
414030
|
addressProvider,
|
|
@@ -414068,6 +414049,13 @@ function openAccounts() {
|
|
|
414068
414049
|
args: [stringToHex("FAUCET", { size: 32 }), 0n]
|
|
414069
414050
|
});
|
|
414070
414051
|
log_default.debug(`faucet address: ${faucetAddr}`);
|
|
414052
|
+
const anvil = createAnvilClient({ transport: http(anvilUrl) });
|
|
414053
|
+
const automineInterval = parseInt(automineIntervalS, 10);
|
|
414054
|
+
const automine = await anvil.getAutomine();
|
|
414055
|
+
await anvil.setBlockTimestampInterval({ interval: automineInterval });
|
|
414056
|
+
log_default.debug(
|
|
414057
|
+
`setting block timestamp interval, automine: ${automine}, interval ${automineInterval}`
|
|
414058
|
+
);
|
|
414071
414059
|
const borrowerKey = generatePrivateKey();
|
|
414072
414060
|
const borrower = privateKeyToAccount(borrowerKey);
|
|
414073
414061
|
await anvil.setBalance({
|
|
@@ -414242,7 +414230,7 @@ function getRenderer(opts) {
|
|
|
414242
414230
|
var package_default = {
|
|
414243
414231
|
name: "@gearbox-protocol/deploy-tools",
|
|
414244
414232
|
description: "Gearbox deploy tools",
|
|
414245
|
-
version: "5.11.
|
|
414233
|
+
version: "5.11.11",
|
|
414246
414234
|
homepage: "https://gearbox.fi",
|
|
414247
414235
|
keywords: [
|
|
414248
414236
|
"gearbox"
|
|
@@ -414285,7 +414273,7 @@ var package_default = {
|
|
|
414285
414273
|
"@gearbox-protocol/deploy-tools-node": "0.0.0",
|
|
414286
414274
|
"@gearbox-protocol/deploy-tools-shared": "0.0.0",
|
|
414287
414275
|
"@gearbox-protocol/deploy-tools-types": "0.0.0",
|
|
414288
|
-
"@gearbox-protocol/sdk": "3.0.0-vfour.
|
|
414276
|
+
"@gearbox-protocol/sdk": "3.0.0-vfour.247",
|
|
414289
414277
|
"@gearbox-protocol/sdk-gov": "^2.34.1",
|
|
414290
414278
|
"@types/lodash-es": "^4.17.12",
|
|
414291
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.
|
|
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.
|
|
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",
|