@aave-dao/aave-helpers-js 1.0.14 → 1.2.0

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/cli.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- const require_protocol_diff = require('./protocol-diff-D-8nafmy.cjs');
2
+ const require_protocol_diff_v4 = require('./protocol-diff-v4-D8is4kDx.cjs');
3
3
  let _bgd_labs_toolbox = require("@bgd-labs/toolbox");
4
4
  let viem = require("viem");
5
5
  let fs = require("fs");
@@ -13,7 +13,12 @@ let viem_accounts = require("viem/accounts");
13
13
  const program = new commander.Command();
14
14
  program.name("aave-helpers-js").description("Aave protocol snapshot tooling").version("1.0.0");
15
15
  program.command("diff-snapshots").description("Diff two Aave V3 protocol snapshot JSON files and produce a markdown report").argument("<before>", "path to the before snapshot JSON").argument("<after>", "path to the after snapshot JSON").requiredOption("-o, --out <path>", "output path for the markdown report").action(async (beforePath, afterPath, opts) => {
16
- const md = await require_protocol_diff.diffSnapshots(JSON.parse((0, fs.readFileSync)(beforePath, "utf-8")), JSON.parse((0, fs.readFileSync)(afterPath, "utf-8")));
16
+ const md = await require_protocol_diff_v4.diffSnapshots(JSON.parse((0, fs.readFileSync)(beforePath, "utf-8")), JSON.parse((0, fs.readFileSync)(afterPath, "utf-8")));
17
+ (0, fs.mkdirSync)((0, path.dirname)(opts.out), { recursive: true });
18
+ (0, fs.writeFileSync)(opts.out, md, "utf-8");
19
+ });
20
+ program.command("diff-v4-snapshots").description("Diff two Aave V4 protocol snapshot JSON files and produce a markdown report").argument("<before>", "path to the before snapshot JSON").argument("<after>", "path to the after snapshot JSON").requiredOption("-o, --out <path>", "output path for the markdown report").action(async (beforePath, afterPath, opts) => {
21
+ const md = await require_protocol_diff_v4.diffV4Snapshots(JSON.parse((0, fs.readFileSync)(beforePath, "utf-8")), JSON.parse((0, fs.readFileSync)(afterPath, "utf-8")));
17
22
  (0, fs.mkdirSync)((0, path.dirname)(opts.out), { recursive: true });
18
23
  (0, fs.writeFileSync)(opts.out, md, "utf-8");
19
24
  });
package/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { t as diffSnapshots } from "./protocol-diff-WamwVjzl.mjs";
2
+ import { n as diffSnapshots, t as diffV4Snapshots } from "./protocol-diff-v4-DJXB5OyC.mjs";
3
3
  import { Aip, IPayloadsController_ABI, cidV0ToBs58, getMdContractName, getPayloadsController, hash, makePayloadExecutableOnTestClient, parseFrontmatterMd, renderTenderlyReport, tenderly_createVnet } from "@bgd-labs/toolbox";
4
4
  import { encodeFunctionData, parseAbi, zeroAddress } from "viem";
5
5
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from "fs";
@@ -17,6 +17,11 @@ program.command("diff-snapshots").description("Diff two Aave V3 protocol snapsho
17
17
  mkdirSync(dirname(opts.out), { recursive: true });
18
18
  writeFileSync(opts.out, md, "utf-8");
19
19
  });
20
+ program.command("diff-v4-snapshots").description("Diff two Aave V4 protocol snapshot JSON files and produce a markdown report").argument("<before>", "path to the before snapshot JSON").argument("<after>", "path to the after snapshot JSON").requiredOption("-o, --out <path>", "output path for the markdown report").action(async (beforePath, afterPath, opts) => {
21
+ const md = await diffV4Snapshots(JSON.parse(readFileSync(beforePath, "utf-8")), JSON.parse(readFileSync(afterPath, "utf-8")));
22
+ mkdirSync(dirname(opts.out), { recursive: true });
23
+ writeFileSync(opts.out, md, "utf-8");
24
+ });
20
25
  async function uploadToPinata(source) {
21
26
  const PINATA_KEY = process.env.PINATA_KEY;
22
27
  if (!PINATA_KEY) throw new Error("PINATA_KEY env must be set");
package/dist/index.cjs CHANGED
@@ -1,8 +1,9 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_protocol_diff = require('./protocol-diff-D-8nafmy.cjs');
2
+ const require_protocol_diff_v4 = require('./protocol-diff-v4-D8is4kDx.cjs');
3
3
 
4
- exports.diff = require_protocol_diff.diff;
5
- exports.diffSnapshots = require_protocol_diff.diffSnapshots;
6
- exports.eventDb = require_protocol_diff.eventDb;
7
- exports.hasChanges = require_protocol_diff.hasChanges;
8
- exports.isChange = require_protocol_diff.isChange;
4
+ exports.diff = require_protocol_diff_v4.diff;
5
+ exports.diffSnapshots = require_protocol_diff_v4.diffSnapshots;
6
+ exports.diffV4Snapshots = require_protocol_diff_v4.diffV4Snapshots;
7
+ exports.eventDb = require_protocol_diff_v4.eventDb;
8
+ exports.hasChanges = require_protocol_diff_v4.hasChanges;
9
+ exports.isChange = require_protocol_diff_v4.isChange;
package/dist/index.d.cts CHANGED
@@ -1,3 +1,4 @@
1
+ import * as viem from "viem";
1
2
  import { AbiEvent, Hex } from "viem";
2
3
  import { z } from "zod";
3
4
 
@@ -270,6 +271,157 @@ type AaveV3Snapshot = z.infer<typeof aaveV3SnapshotSchema>;
270
271
  */
271
272
  declare function diffSnapshots(before: AaveV3Snapshot, after: AaveV3Snapshot): Promise<string>;
272
273
  //#endregion
274
+ //#region snapshot-types-v4.d.ts
275
+ declare const v4SpokeReserveSchema: z.ZodObject<{
276
+ symbol: z.ZodString;
277
+ underlying: z.ZodString;
278
+ hub: z.ZodString;
279
+ assetId: z.ZodNumber;
280
+ decimals: z.ZodNumber;
281
+ collateralRisk: z.ZodNumber;
282
+ paused: z.ZodBoolean;
283
+ frozen: z.ZodBoolean;
284
+ borrowable: z.ZodBoolean;
285
+ receiveSharesEnabled: z.ZodBoolean;
286
+ dynamicConfigKey: z.ZodNumber;
287
+ collateralFactor: z.ZodNumber;
288
+ maxLiquidationBonus: z.ZodNumber;
289
+ liquidationFee: z.ZodNumber;
290
+ oracleAddress: z.ZodString;
291
+ priceSource: z.ZodString;
292
+ oraclePrice: z.ZodString;
293
+ }, z.core.$strip>;
294
+ type V4SpokeReserve = z.infer<typeof v4SpokeReserveSchema>;
295
+ declare const v4SpokeLiquidationConfigSchema: z.ZodObject<{
296
+ targetHealthFactor: z.ZodString;
297
+ healthFactorForMaxBonus: z.ZodString;
298
+ liquidationBonusFactor: z.ZodNumber;
299
+ maxUserReservesLimit: z.ZodNumber;
300
+ }, z.core.$strip>;
301
+ type V4SpokeLiquidationConfig = z.infer<typeof v4SpokeLiquidationConfigSchema>;
302
+ declare const v4HubAssetSchema: z.ZodObject<{
303
+ symbol: z.ZodString;
304
+ underlying: z.ZodString;
305
+ decimals: z.ZodNumber;
306
+ liquidityFee: z.ZodNumber;
307
+ irStrategy: z.ZodString;
308
+ feeReceiver: z.ZodString;
309
+ reinvestmentController: z.ZodString;
310
+ optimalUsageRatio: z.ZodNumber;
311
+ baseDrawnRate: z.ZodNumber;
312
+ rateGrowthBeforeOptimal: z.ZodNumber;
313
+ rateGrowthAfterOptimal: z.ZodNumber;
314
+ maxDrawnRate: z.ZodString;
315
+ deficitRay: z.ZodString;
316
+ swept: z.ZodString;
317
+ premiumShares: z.ZodString;
318
+ premiumOffsetRay: z.ZodString;
319
+ }, z.core.$strip>;
320
+ type V4HubAsset = z.infer<typeof v4HubAssetSchema>;
321
+ declare const v4SpokeConfigSchema: z.ZodObject<{
322
+ assetSymbol: z.ZodString;
323
+ addCap: z.ZodNumber;
324
+ drawCap: z.ZodNumber;
325
+ riskPremiumThreshold: z.ZodNumber;
326
+ active: z.ZodBoolean;
327
+ halted: z.ZodBoolean;
328
+ }, z.core.$strip>;
329
+ type V4SpokeConfig = z.infer<typeof v4SpokeConfigSchema>;
330
+ declare const aaveV4SnapshotSchema: z.ZodObject<{
331
+ chainId: z.ZodNumber;
332
+ spokeReserves: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
333
+ symbol: z.ZodString;
334
+ underlying: z.ZodString;
335
+ hub: z.ZodString;
336
+ assetId: z.ZodNumber;
337
+ decimals: z.ZodNumber;
338
+ collateralRisk: z.ZodNumber;
339
+ paused: z.ZodBoolean;
340
+ frozen: z.ZodBoolean;
341
+ borrowable: z.ZodBoolean;
342
+ receiveSharesEnabled: z.ZodBoolean;
343
+ dynamicConfigKey: z.ZodNumber;
344
+ collateralFactor: z.ZodNumber;
345
+ maxLiquidationBonus: z.ZodNumber;
346
+ liquidationFee: z.ZodNumber;
347
+ oracleAddress: z.ZodString;
348
+ priceSource: z.ZodString;
349
+ oraclePrice: z.ZodString;
350
+ }, z.core.$strip>>>;
351
+ spokeLiquidationConfigs: z.ZodRecord<z.ZodString, z.ZodObject<{
352
+ targetHealthFactor: z.ZodString;
353
+ healthFactorForMaxBonus: z.ZodString;
354
+ liquidationBonusFactor: z.ZodNumber;
355
+ maxUserReservesLimit: z.ZodNumber;
356
+ }, z.core.$strip>>;
357
+ hubAssets: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
358
+ symbol: z.ZodString;
359
+ underlying: z.ZodString;
360
+ decimals: z.ZodNumber;
361
+ liquidityFee: z.ZodNumber;
362
+ irStrategy: z.ZodString;
363
+ feeReceiver: z.ZodString;
364
+ reinvestmentController: z.ZodString;
365
+ optimalUsageRatio: z.ZodNumber;
366
+ baseDrawnRate: z.ZodNumber;
367
+ rateGrowthBeforeOptimal: z.ZodNumber;
368
+ rateGrowthAfterOptimal: z.ZodNumber;
369
+ maxDrawnRate: z.ZodString;
370
+ deficitRay: z.ZodString;
371
+ swept: z.ZodString;
372
+ premiumShares: z.ZodString;
373
+ premiumOffsetRay: z.ZodString;
374
+ }, z.core.$strip>>>;
375
+ spokeConfigs: z.ZodRecord<z.ZodString, z.ZodObject<{
376
+ assetSymbol: z.ZodString;
377
+ addCap: z.ZodNumber;
378
+ drawCap: z.ZodNumber;
379
+ riskPremiumThreshold: z.ZodNumber;
380
+ active: z.ZodBoolean;
381
+ halted: z.ZodBoolean;
382
+ }, z.core.$strip>>;
383
+ raw: z.ZodOptional<z.ZodRecord<z.ZodType<`0x${string}`, unknown, z.core.$ZodTypeInternals<`0x${string}`, unknown>>, z.ZodObject<{
384
+ label: z.ZodNullable<z.ZodString>;
385
+ contract: z.ZodNullable<z.ZodString>;
386
+ balanceDiff: z.ZodNullable<z.ZodObject<{
387
+ previousValue: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
388
+ newValue: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
389
+ }, z.core.$strip>>;
390
+ nonceDiff: z.ZodNullable<z.ZodObject<{
391
+ previousValue: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
392
+ newValue: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
393
+ }, z.core.$strip>>;
394
+ stateDiff: z.ZodRecord<z.ZodString, z.ZodObject<{
395
+ previousValue: z.ZodType<viem.Hex>;
396
+ newValue: z.ZodType<viem.Hex>;
397
+ label: z.ZodOptional<z.ZodString>;
398
+ type: z.ZodOptional<z.ZodString>;
399
+ offset: z.ZodOptional<z.ZodNumber>;
400
+ slot: z.ZodOptional<z.ZodString>;
401
+ decoded: z.ZodOptional<z.ZodObject<{
402
+ previousValue: z.ZodString;
403
+ newValue: z.ZodString;
404
+ }, z.core.$strip>>;
405
+ key: z.ZodOptional<z.ZodString>;
406
+ }, z.core.$strip>>;
407
+ }, z.core.$strip>>>;
408
+ logs: z.ZodOptional<z.ZodArray<z.ZodObject<{
409
+ topics: z.ZodArray<z.ZodString>;
410
+ data: z.ZodString;
411
+ emitter: z.ZodString;
412
+ }, z.core.$strip>>>;
413
+ }, z.core.$strip>;
414
+ type AaveV4Snapshot = z.infer<typeof aaveV4SnapshotSchema>;
415
+ //#endregion
416
+ //#region protocol-diff-v4.d.ts
417
+ /**
418
+ * Diff two Aave V4 protocol snapshots and produce a formatted markdown report.
419
+ *
420
+ * The `raw` and `logs` sections only exist in the "after" snapshot and are
421
+ * rendered as-is (they already represent the diff / changes).
422
+ */
423
+ declare function diffV4Snapshots(before: AaveV4Snapshot, after: AaveV4Snapshot): Promise<string>;
424
+ //#endregion
273
425
  //#region utils/eventDb.d.ts
274
426
  declare const eventDb: AbiEvent[];
275
427
  //#endregion
@@ -301,4 +453,4 @@ declare function isChange<T = any>(value: any): value is Change<T>;
301
453
  */
302
454
  declare function hasChanges<T extends Record<string, any>>(diffObj: DiffResult<T> | Record<string, unknown> | null | undefined): boolean;
303
455
  //#endregion
304
- export { type AaveV3Config, type AaveV3Emode, type AaveV3Reserve, type AaveV3Snapshot, type AaveV3Strategy, type CHAIN_ID, type Change, type DiffResult, type Log, type RawStorage, type SlotDiff, type ValueDiff, diff, diffSnapshots, eventDb, hasChanges, isChange };
456
+ export { type AaveV3Config, type AaveV3Emode, type AaveV3Reserve, type AaveV3Snapshot, type AaveV3Strategy, type AaveV4Snapshot, type CHAIN_ID, type Change, type DiffResult, type Log, type RawStorage, type SlotDiff, type V4HubAsset, type V4SpokeConfig, type V4SpokeLiquidationConfig, type V4SpokeReserve, type ValueDiff, diff, diffSnapshots, diffV4Snapshots, eventDb, hasChanges, isChange };
package/dist/index.d.mts CHANGED
@@ -1,3 +1,4 @@
1
+ import * as viem from "viem";
1
2
  import { AbiEvent, Hex } from "viem";
2
3
  import { z } from "zod";
3
4
 
@@ -270,6 +271,157 @@ type AaveV3Snapshot = z.infer<typeof aaveV3SnapshotSchema>;
270
271
  */
271
272
  declare function diffSnapshots(before: AaveV3Snapshot, after: AaveV3Snapshot): Promise<string>;
272
273
  //#endregion
274
+ //#region snapshot-types-v4.d.ts
275
+ declare const v4SpokeReserveSchema: z.ZodObject<{
276
+ symbol: z.ZodString;
277
+ underlying: z.ZodString;
278
+ hub: z.ZodString;
279
+ assetId: z.ZodNumber;
280
+ decimals: z.ZodNumber;
281
+ collateralRisk: z.ZodNumber;
282
+ paused: z.ZodBoolean;
283
+ frozen: z.ZodBoolean;
284
+ borrowable: z.ZodBoolean;
285
+ receiveSharesEnabled: z.ZodBoolean;
286
+ dynamicConfigKey: z.ZodNumber;
287
+ collateralFactor: z.ZodNumber;
288
+ maxLiquidationBonus: z.ZodNumber;
289
+ liquidationFee: z.ZodNumber;
290
+ oracleAddress: z.ZodString;
291
+ priceSource: z.ZodString;
292
+ oraclePrice: z.ZodString;
293
+ }, z.core.$strip>;
294
+ type V4SpokeReserve = z.infer<typeof v4SpokeReserveSchema>;
295
+ declare const v4SpokeLiquidationConfigSchema: z.ZodObject<{
296
+ targetHealthFactor: z.ZodString;
297
+ healthFactorForMaxBonus: z.ZodString;
298
+ liquidationBonusFactor: z.ZodNumber;
299
+ maxUserReservesLimit: z.ZodNumber;
300
+ }, z.core.$strip>;
301
+ type V4SpokeLiquidationConfig = z.infer<typeof v4SpokeLiquidationConfigSchema>;
302
+ declare const v4HubAssetSchema: z.ZodObject<{
303
+ symbol: z.ZodString;
304
+ underlying: z.ZodString;
305
+ decimals: z.ZodNumber;
306
+ liquidityFee: z.ZodNumber;
307
+ irStrategy: z.ZodString;
308
+ feeReceiver: z.ZodString;
309
+ reinvestmentController: z.ZodString;
310
+ optimalUsageRatio: z.ZodNumber;
311
+ baseDrawnRate: z.ZodNumber;
312
+ rateGrowthBeforeOptimal: z.ZodNumber;
313
+ rateGrowthAfterOptimal: z.ZodNumber;
314
+ maxDrawnRate: z.ZodString;
315
+ deficitRay: z.ZodString;
316
+ swept: z.ZodString;
317
+ premiumShares: z.ZodString;
318
+ premiumOffsetRay: z.ZodString;
319
+ }, z.core.$strip>;
320
+ type V4HubAsset = z.infer<typeof v4HubAssetSchema>;
321
+ declare const v4SpokeConfigSchema: z.ZodObject<{
322
+ assetSymbol: z.ZodString;
323
+ addCap: z.ZodNumber;
324
+ drawCap: z.ZodNumber;
325
+ riskPremiumThreshold: z.ZodNumber;
326
+ active: z.ZodBoolean;
327
+ halted: z.ZodBoolean;
328
+ }, z.core.$strip>;
329
+ type V4SpokeConfig = z.infer<typeof v4SpokeConfigSchema>;
330
+ declare const aaveV4SnapshotSchema: z.ZodObject<{
331
+ chainId: z.ZodNumber;
332
+ spokeReserves: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
333
+ symbol: z.ZodString;
334
+ underlying: z.ZodString;
335
+ hub: z.ZodString;
336
+ assetId: z.ZodNumber;
337
+ decimals: z.ZodNumber;
338
+ collateralRisk: z.ZodNumber;
339
+ paused: z.ZodBoolean;
340
+ frozen: z.ZodBoolean;
341
+ borrowable: z.ZodBoolean;
342
+ receiveSharesEnabled: z.ZodBoolean;
343
+ dynamicConfigKey: z.ZodNumber;
344
+ collateralFactor: z.ZodNumber;
345
+ maxLiquidationBonus: z.ZodNumber;
346
+ liquidationFee: z.ZodNumber;
347
+ oracleAddress: z.ZodString;
348
+ priceSource: z.ZodString;
349
+ oraclePrice: z.ZodString;
350
+ }, z.core.$strip>>>;
351
+ spokeLiquidationConfigs: z.ZodRecord<z.ZodString, z.ZodObject<{
352
+ targetHealthFactor: z.ZodString;
353
+ healthFactorForMaxBonus: z.ZodString;
354
+ liquidationBonusFactor: z.ZodNumber;
355
+ maxUserReservesLimit: z.ZodNumber;
356
+ }, z.core.$strip>>;
357
+ hubAssets: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
358
+ symbol: z.ZodString;
359
+ underlying: z.ZodString;
360
+ decimals: z.ZodNumber;
361
+ liquidityFee: z.ZodNumber;
362
+ irStrategy: z.ZodString;
363
+ feeReceiver: z.ZodString;
364
+ reinvestmentController: z.ZodString;
365
+ optimalUsageRatio: z.ZodNumber;
366
+ baseDrawnRate: z.ZodNumber;
367
+ rateGrowthBeforeOptimal: z.ZodNumber;
368
+ rateGrowthAfterOptimal: z.ZodNumber;
369
+ maxDrawnRate: z.ZodString;
370
+ deficitRay: z.ZodString;
371
+ swept: z.ZodString;
372
+ premiumShares: z.ZodString;
373
+ premiumOffsetRay: z.ZodString;
374
+ }, z.core.$strip>>>;
375
+ spokeConfigs: z.ZodRecord<z.ZodString, z.ZodObject<{
376
+ assetSymbol: z.ZodString;
377
+ addCap: z.ZodNumber;
378
+ drawCap: z.ZodNumber;
379
+ riskPremiumThreshold: z.ZodNumber;
380
+ active: z.ZodBoolean;
381
+ halted: z.ZodBoolean;
382
+ }, z.core.$strip>>;
383
+ raw: z.ZodOptional<z.ZodRecord<z.ZodType<`0x${string}`, unknown, z.core.$ZodTypeInternals<`0x${string}`, unknown>>, z.ZodObject<{
384
+ label: z.ZodNullable<z.ZodString>;
385
+ contract: z.ZodNullable<z.ZodString>;
386
+ balanceDiff: z.ZodNullable<z.ZodObject<{
387
+ previousValue: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
388
+ newValue: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
389
+ }, z.core.$strip>>;
390
+ nonceDiff: z.ZodNullable<z.ZodObject<{
391
+ previousValue: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
392
+ newValue: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
393
+ }, z.core.$strip>>;
394
+ stateDiff: z.ZodRecord<z.ZodString, z.ZodObject<{
395
+ previousValue: z.ZodType<viem.Hex>;
396
+ newValue: z.ZodType<viem.Hex>;
397
+ label: z.ZodOptional<z.ZodString>;
398
+ type: z.ZodOptional<z.ZodString>;
399
+ offset: z.ZodOptional<z.ZodNumber>;
400
+ slot: z.ZodOptional<z.ZodString>;
401
+ decoded: z.ZodOptional<z.ZodObject<{
402
+ previousValue: z.ZodString;
403
+ newValue: z.ZodString;
404
+ }, z.core.$strip>>;
405
+ key: z.ZodOptional<z.ZodString>;
406
+ }, z.core.$strip>>;
407
+ }, z.core.$strip>>>;
408
+ logs: z.ZodOptional<z.ZodArray<z.ZodObject<{
409
+ topics: z.ZodArray<z.ZodString>;
410
+ data: z.ZodString;
411
+ emitter: z.ZodString;
412
+ }, z.core.$strip>>>;
413
+ }, z.core.$strip>;
414
+ type AaveV4Snapshot = z.infer<typeof aaveV4SnapshotSchema>;
415
+ //#endregion
416
+ //#region protocol-diff-v4.d.ts
417
+ /**
418
+ * Diff two Aave V4 protocol snapshots and produce a formatted markdown report.
419
+ *
420
+ * The `raw` and `logs` sections only exist in the "after" snapshot and are
421
+ * rendered as-is (they already represent the diff / changes).
422
+ */
423
+ declare function diffV4Snapshots(before: AaveV4Snapshot, after: AaveV4Snapshot): Promise<string>;
424
+ //#endregion
273
425
  //#region utils/eventDb.d.ts
274
426
  declare const eventDb: AbiEvent[];
275
427
  //#endregion
@@ -301,4 +453,4 @@ declare function isChange<T = any>(value: any): value is Change<T>;
301
453
  */
302
454
  declare function hasChanges<T extends Record<string, any>>(diffObj: DiffResult<T> | Record<string, unknown> | null | undefined): boolean;
303
455
  //#endregion
304
- export { type AaveV3Config, type AaveV3Emode, type AaveV3Reserve, type AaveV3Snapshot, type AaveV3Strategy, type CHAIN_ID, type Change, type DiffResult, type Log, type RawStorage, type SlotDiff, type ValueDiff, diff, diffSnapshots, eventDb, hasChanges, isChange };
456
+ export { type AaveV3Config, type AaveV3Emode, type AaveV3Reserve, type AaveV3Snapshot, type AaveV3Strategy, type AaveV4Snapshot, type CHAIN_ID, type Change, type DiffResult, type Log, type RawStorage, type SlotDiff, type V4HubAsset, type V4SpokeConfig, type V4SpokeLiquidationConfig, type V4SpokeReserve, type ValueDiff, diff, diffSnapshots, diffV4Snapshots, eventDb, hasChanges, isChange };
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { a as isChange, i as hasChanges, n as eventDb, r as diff, t as diffSnapshots } from "./protocol-diff-WamwVjzl.mjs";
1
+ import { a as hasChanges, i as diff, n as diffSnapshots, o as isChange, r as eventDb, t as diffV4Snapshots } from "./protocol-diff-v4-DJXB5OyC.mjs";
2
2
 
3
- export { diff, diffSnapshots, eventDb, hasChanges, isChange };
3
+ export { diff, diffSnapshots, diffV4Snapshots, eventDb, hasChanges, isChange };