@whetstone-research/doppler-sdk 1.0.27 → 1.0.28

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.
@@ -1210,6 +1210,7 @@ declare class StaticAuction {
1210
1210
  * Get total liquidity in the pool
1211
1211
  */
1212
1212
  getTotalLiquidity(): Promise<bigint>;
1213
+ private isRegisteredAirlockAsset;
1213
1214
  }
1214
1215
 
1215
1216
  /**
@@ -1266,16 +1267,7 @@ declare class DynamicAuction {
1266
1267
  * Check if the auction ended early due to max proceeds
1267
1268
  */
1268
1269
  hasEndedEarly(): Promise<boolean>;
1269
- /**
1270
- * Compute V4 pool ID from pool key components
1271
- */
1272
- private computePoolId;
1273
- /**
1274
- * Read hook state with backward-compatible decoding.
1275
- * Falls back to legacy state() ABI if the latest ABI fails to decode.
1276
- */
1277
1270
  private readHookState;
1278
- private normalizePoolKey;
1279
1271
  }
1280
1272
 
1281
1273
  interface MulticurvePendingFees {
@@ -1372,6 +1364,34 @@ declare class MulticurveFees {
1372
1364
  getPendingFees(beneficiary: Address, tokenAddresses: readonly Address[], options: MulticurveFeesOptions): Promise<readonly MulticurveTokenPendingFees[]>;
1373
1365
  }
1374
1366
 
1367
+ interface RehypeFeeSchedule {
1368
+ startingTime: number;
1369
+ startFee: number;
1370
+ endFee: number;
1371
+ lastFee: number;
1372
+ durationSeconds: number;
1373
+ }
1374
+ interface RehypeHookFees {
1375
+ fees0: bigint;
1376
+ fees1: bigint;
1377
+ beneficiaryFees0: bigint;
1378
+ beneficiaryFees1: bigint;
1379
+ airlockOwnerFees0: bigint;
1380
+ airlockOwnerFees1: bigint;
1381
+ customFee: number;
1382
+ }
1383
+ interface RehypePoolInfo {
1384
+ asset: Address;
1385
+ numeraire: Address;
1386
+ buybackDst: Address;
1387
+ }
1388
+ interface RehypePosition {
1389
+ tickLower: number;
1390
+ tickUpper: number;
1391
+ liquidity: bigint;
1392
+ salt: Hex;
1393
+ }
1394
+
1375
1395
  declare class RehypeDopplerHook {
1376
1396
  private client;
1377
1397
  private walletClient?;
@@ -1389,38 +1409,11 @@ declare class RehypeDopplerHook {
1389
1409
  fees1: bigint;
1390
1410
  transactionHash: Hash;
1391
1411
  }>;
1392
- getFeeDistributionInfo(poolId: Hex): Promise<{
1393
- assetFeesToAssetBuybackWad: bigint;
1394
- assetFeesToNumeraireBuybackWad: bigint;
1395
- assetFeesToBeneficiaryWad: bigint;
1396
- assetFeesToLpWad: bigint;
1397
- numeraireFeesToAssetBuybackWad: bigint;
1398
- numeraireFeesToNumeraireBuybackWad: bigint;
1399
- numeraireFeesToBeneficiaryWad: bigint;
1400
- numeraireFeesToLpWad: bigint;
1401
- }>;
1412
+ getFeeDistributionInfo(poolId: Hex): Promise<RehypeFeeDistributionInfo>;
1402
1413
  getFeeRoutingMode(poolId: Hex): Promise<number>;
1403
- getFeeSchedule(poolId: Hex): Promise<{
1404
- startingTime: number;
1405
- startFee: number;
1406
- endFee: number;
1407
- lastFee: number;
1408
- durationSeconds: number;
1409
- }>;
1410
- getHookFees(poolId: Hex): Promise<{
1411
- fees0: bigint;
1412
- fees1: bigint;
1413
- beneficiaryFees0: bigint;
1414
- beneficiaryFees1: bigint;
1415
- airlockOwnerFees0: bigint;
1416
- airlockOwnerFees1: bigint;
1417
- customFee: number;
1418
- }>;
1419
- getPoolInfo(poolId: Hex): Promise<{
1420
- asset: Address;
1421
- numeraire: Address;
1422
- buybackDst: Address;
1423
- }>;
1414
+ getFeeSchedule(poolId: Hex): Promise<RehypeFeeSchedule>;
1415
+ getHookFees(poolId: Hex): Promise<RehypeHookFees>;
1416
+ getPoolInfo(poolId: Hex): Promise<RehypePoolInfo>;
1424
1417
  }
1425
1418
 
1426
1419
  declare class RehypeDopplerHookMigrator {
@@ -1443,26 +1436,9 @@ declare class RehypeDopplerHookMigrator {
1443
1436
  setFeeDistribution(poolId: Hex, feeDistributionInfo: RehypeFeeDistributionInfo): Promise<Hash>;
1444
1437
  getFeeDistributionInfo(poolId: Hex): Promise<RehypeFeeDistributionInfo>;
1445
1438
  getFeeRoutingMode(poolId: Hex): Promise<number>;
1446
- getHookFees(poolId: Hex): Promise<{
1447
- fees0: bigint;
1448
- fees1: bigint;
1449
- beneficiaryFees0: bigint;
1450
- beneficiaryFees1: bigint;
1451
- airlockOwnerFees0: bigint;
1452
- airlockOwnerFees1: bigint;
1453
- customFee: number;
1454
- }>;
1455
- getPoolInfo(poolId: Hex): Promise<{
1456
- asset: Address;
1457
- numeraire: Address;
1458
- buybackDst: Address;
1459
- }>;
1460
- getPosition(poolId: Hex): Promise<{
1461
- tickLower: number;
1462
- tickUpper: number;
1463
- liquidity: bigint;
1464
- salt: Hex;
1465
- }>;
1439
+ getHookFees(poolId: Hex): Promise<RehypeHookFees>;
1440
+ getPoolInfo(poolId: Hex): Promise<RehypePoolInfo>;
1441
+ getPosition(poolId: Hex): Promise<RehypePosition>;
1466
1442
  }
1467
1443
 
1468
1444
  interface OpeningAuctionPosition {
@@ -1210,6 +1210,7 @@ declare class StaticAuction {
1210
1210
  * Get total liquidity in the pool
1211
1211
  */
1212
1212
  getTotalLiquidity(): Promise<bigint>;
1213
+ private isRegisteredAirlockAsset;
1213
1214
  }
1214
1215
 
1215
1216
  /**
@@ -1266,16 +1267,7 @@ declare class DynamicAuction {
1266
1267
  * Check if the auction ended early due to max proceeds
1267
1268
  */
1268
1269
  hasEndedEarly(): Promise<boolean>;
1269
- /**
1270
- * Compute V4 pool ID from pool key components
1271
- */
1272
- private computePoolId;
1273
- /**
1274
- * Read hook state with backward-compatible decoding.
1275
- * Falls back to legacy state() ABI if the latest ABI fails to decode.
1276
- */
1277
1270
  private readHookState;
1278
- private normalizePoolKey;
1279
1271
  }
1280
1272
 
1281
1273
  interface MulticurvePendingFees {
@@ -1372,6 +1364,34 @@ declare class MulticurveFees {
1372
1364
  getPendingFees(beneficiary: Address, tokenAddresses: readonly Address[], options: MulticurveFeesOptions): Promise<readonly MulticurveTokenPendingFees[]>;
1373
1365
  }
1374
1366
 
1367
+ interface RehypeFeeSchedule {
1368
+ startingTime: number;
1369
+ startFee: number;
1370
+ endFee: number;
1371
+ lastFee: number;
1372
+ durationSeconds: number;
1373
+ }
1374
+ interface RehypeHookFees {
1375
+ fees0: bigint;
1376
+ fees1: bigint;
1377
+ beneficiaryFees0: bigint;
1378
+ beneficiaryFees1: bigint;
1379
+ airlockOwnerFees0: bigint;
1380
+ airlockOwnerFees1: bigint;
1381
+ customFee: number;
1382
+ }
1383
+ interface RehypePoolInfo {
1384
+ asset: Address;
1385
+ numeraire: Address;
1386
+ buybackDst: Address;
1387
+ }
1388
+ interface RehypePosition {
1389
+ tickLower: number;
1390
+ tickUpper: number;
1391
+ liquidity: bigint;
1392
+ salt: Hex;
1393
+ }
1394
+
1375
1395
  declare class RehypeDopplerHook {
1376
1396
  private client;
1377
1397
  private walletClient?;
@@ -1389,38 +1409,11 @@ declare class RehypeDopplerHook {
1389
1409
  fees1: bigint;
1390
1410
  transactionHash: Hash;
1391
1411
  }>;
1392
- getFeeDistributionInfo(poolId: Hex): Promise<{
1393
- assetFeesToAssetBuybackWad: bigint;
1394
- assetFeesToNumeraireBuybackWad: bigint;
1395
- assetFeesToBeneficiaryWad: bigint;
1396
- assetFeesToLpWad: bigint;
1397
- numeraireFeesToAssetBuybackWad: bigint;
1398
- numeraireFeesToNumeraireBuybackWad: bigint;
1399
- numeraireFeesToBeneficiaryWad: bigint;
1400
- numeraireFeesToLpWad: bigint;
1401
- }>;
1412
+ getFeeDistributionInfo(poolId: Hex): Promise<RehypeFeeDistributionInfo>;
1402
1413
  getFeeRoutingMode(poolId: Hex): Promise<number>;
1403
- getFeeSchedule(poolId: Hex): Promise<{
1404
- startingTime: number;
1405
- startFee: number;
1406
- endFee: number;
1407
- lastFee: number;
1408
- durationSeconds: number;
1409
- }>;
1410
- getHookFees(poolId: Hex): Promise<{
1411
- fees0: bigint;
1412
- fees1: bigint;
1413
- beneficiaryFees0: bigint;
1414
- beneficiaryFees1: bigint;
1415
- airlockOwnerFees0: bigint;
1416
- airlockOwnerFees1: bigint;
1417
- customFee: number;
1418
- }>;
1419
- getPoolInfo(poolId: Hex): Promise<{
1420
- asset: Address;
1421
- numeraire: Address;
1422
- buybackDst: Address;
1423
- }>;
1414
+ getFeeSchedule(poolId: Hex): Promise<RehypeFeeSchedule>;
1415
+ getHookFees(poolId: Hex): Promise<RehypeHookFees>;
1416
+ getPoolInfo(poolId: Hex): Promise<RehypePoolInfo>;
1424
1417
  }
1425
1418
 
1426
1419
  declare class RehypeDopplerHookMigrator {
@@ -1443,26 +1436,9 @@ declare class RehypeDopplerHookMigrator {
1443
1436
  setFeeDistribution(poolId: Hex, feeDistributionInfo: RehypeFeeDistributionInfo): Promise<Hash>;
1444
1437
  getFeeDistributionInfo(poolId: Hex): Promise<RehypeFeeDistributionInfo>;
1445
1438
  getFeeRoutingMode(poolId: Hex): Promise<number>;
1446
- getHookFees(poolId: Hex): Promise<{
1447
- fees0: bigint;
1448
- fees1: bigint;
1449
- beneficiaryFees0: bigint;
1450
- beneficiaryFees1: bigint;
1451
- airlockOwnerFees0: bigint;
1452
- airlockOwnerFees1: bigint;
1453
- customFee: number;
1454
- }>;
1455
- getPoolInfo(poolId: Hex): Promise<{
1456
- asset: Address;
1457
- numeraire: Address;
1458
- buybackDst: Address;
1459
- }>;
1460
- getPosition(poolId: Hex): Promise<{
1461
- tickLower: number;
1462
- tickUpper: number;
1463
- liquidity: bigint;
1464
- salt: Hex;
1465
- }>;
1439
+ getHookFees(poolId: Hex): Promise<RehypeHookFees>;
1440
+ getPoolInfo(poolId: Hex): Promise<RehypePoolInfo>;
1441
+ getPosition(poolId: Hex): Promise<RehypePosition>;
1466
1442
  }
1467
1443
 
1468
1444
  interface OpeningAuctionPosition {