@gvnrdao/dh-sdk 0.0.349 → 0.0.351

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.
@@ -99,6 +99,7 @@ var CONTRACT_ERROR_FRAGMENTS = [
99
99
  { fragment: "error FeeOnTransferNotSupported()", contracts: ["SimplePSMV2"] },
100
100
  { fragment: "error FeeTooHigh(uint256 fee, uint256 max)", contracts: ["PositionManagerErrors"] },
101
101
  { fragment: "error FeeTooLow(uint256 fee, uint256 min)", contracts: ["PositionManagerErrors"] },
102
+ { fragment: "error GlobalReentrancyGuardReentrantCall()", contracts: ["PositionManager", "CollateralManagerModule"] },
102
103
  { fragment: "error ImplNotDeployed()", contracts: ["LoanOperationsManagerModule", "BTCSpendAuthorizer"] },
103
104
  { fragment: "error ImplementationNotDeployed()", contracts: ["UCDController"] },
104
105
  { fragment: "error InitialBalanceTooLarge()", contracts: ["SimplePSMV2"] },
@@ -63,6 +63,7 @@ var CONTRACT_ERROR_FRAGMENTS = [
63
63
  { fragment: "error FeeOnTransferNotSupported()", contracts: ["SimplePSMV2"] },
64
64
  { fragment: "error FeeTooHigh(uint256 fee, uint256 max)", contracts: ["PositionManagerErrors"] },
65
65
  { fragment: "error FeeTooLow(uint256 fee, uint256 min)", contracts: ["PositionManagerErrors"] },
66
+ { fragment: "error GlobalReentrancyGuardReentrantCall()", contracts: ["PositionManager", "CollateralManagerModule"] },
66
67
  { fragment: "error ImplNotDeployed()", contracts: ["LoanOperationsManagerModule", "BTCSpendAuthorizer"] },
67
68
  { fragment: "error ImplementationNotDeployed()", contracts: ["UCDController"] },
68
69
  { fragment: "error InitialBalanceTooLarge()", contracts: ["SimplePSMV2"] },
@@ -146,11 +146,11 @@ var SEPOLIA_DEPLOYMENT = {
146
146
  reason: "Shared upgrade script: CollateralManagerModule implementation update"
147
147
  },
148
148
  LiquidationManagerModule: {
149
- previousImplementation: "0x31CD6191d80F484b72925Aa1834c80F5f739252A",
150
- newImplementation: "0xCe7587C47094BBb3dCa13D7a2299Ec9beA6cd759",
151
- upgradedAt: "2026-07-03T20:02:00.579Z",
152
- upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
153
- reason: "Shared upgrade script: LiquidationManagerModule implementation update"
149
+ previousImplementation: "0xCe7587C47094BBb3dCa13D7a2299Ec9beA6cd759",
150
+ newImplementation: "0xa82640776B1fEBb00c208869E4c6413536be17FA",
151
+ upgradedAt: "2026-10-20T20:21:14.391Z",
152
+ upgradedBy: "0x0f8f23674cc90Ef7107930a4437341fD8B460362",
153
+ reason: "LiquidationManager 1.6.3: EIP-712 domain backfill (Sepolia proxy skipped reinitializer 2)"
154
154
  },
155
155
  BTCSpendAuthorizer: {
156
156
  previousImplementation: "0xdd3DFaEc50d6214d57eA64e8b76ff318b501607b",
@@ -578,7 +578,7 @@ var MAINNET_DEPLOYMENT = {
578
578
  BTC_SPEND_AUTHORIZER: "0xfBbF108486fa07F1B06a811C5b66ed68DD9c508a",
579
579
  BTC_SPEND_AUTHORIZER_IMPL: "0x00D7a47798E8ff169104b748131703B78f23390C",
580
580
  POSITION_MANAGER_VIEWS: "0x8B57954eA338c6A6bfF1457f71080e25baFF3937",
581
- POSITION_MANAGER_VIEWS_IMPL: "0xE68DC096A65Ecddbc6A9b5c6e5f878e2CE143Bfe",
581
+ POSITION_MANAGER_VIEWS_IMPL: "0x8fe7aF14dB9Bef814c4c8fBc0ce206Cb17F25E8e",
582
582
  POSITION_MANAGER: "0x12A1836e56139ccaD8722B89519d84233efc224B",
583
583
  POSITION_MANAGER_IMPL: "0x2e7170d6Fb15A876dB726732e72e63109bcB916d",
584
584
  LOAN_OPERATIONS_MANAGER_MODULE: "0x2561974A40F1AEed1251d0A090A83cF8536FB9E9",
@@ -113,11 +113,11 @@ var SEPOLIA_DEPLOYMENT = {
113
113
  reason: "Shared upgrade script: CollateralManagerModule implementation update"
114
114
  },
115
115
  LiquidationManagerModule: {
116
- previousImplementation: "0x31CD6191d80F484b72925Aa1834c80F5f739252A",
117
- newImplementation: "0xCe7587C47094BBb3dCa13D7a2299Ec9beA6cd759",
118
- upgradedAt: "2026-07-03T20:02:00.579Z",
119
- upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
120
- reason: "Shared upgrade script: LiquidationManagerModule implementation update"
116
+ previousImplementation: "0xCe7587C47094BBb3dCa13D7a2299Ec9beA6cd759",
117
+ newImplementation: "0xa82640776B1fEBb00c208869E4c6413536be17FA",
118
+ upgradedAt: "2026-10-20T20:21:14.391Z",
119
+ upgradedBy: "0x0f8f23674cc90Ef7107930a4437341fD8B460362",
120
+ reason: "LiquidationManager 1.6.3: EIP-712 domain backfill (Sepolia proxy skipped reinitializer 2)"
121
121
  },
122
122
  BTCSpendAuthorizer: {
123
123
  previousImplementation: "0xdd3DFaEc50d6214d57eA64e8b76ff318b501607b",
@@ -545,7 +545,7 @@ var MAINNET_DEPLOYMENT = {
545
545
  BTC_SPEND_AUTHORIZER: "0xfBbF108486fa07F1B06a811C5b66ed68DD9c508a",
546
546
  BTC_SPEND_AUTHORIZER_IMPL: "0x00D7a47798E8ff169104b748131703B78f23390C",
547
547
  POSITION_MANAGER_VIEWS: "0x8B57954eA338c6A6bfF1457f71080e25baFF3937",
548
- POSITION_MANAGER_VIEWS_IMPL: "0xE68DC096A65Ecddbc6A9b5c6e5f878e2CE143Bfe",
548
+ POSITION_MANAGER_VIEWS_IMPL: "0x8fe7aF14dB9Bef814c4c8fBc0ce206Cb17F25E8e",
549
549
  POSITION_MANAGER: "0x12A1836e56139ccaD8722B89519d84233efc224B",
550
550
  POSITION_MANAGER_IMPL: "0x2e7170d6Fb15A876dB726732e72e63109bcB916d",
551
551
  LOAN_OPERATIONS_MANAGER_MODULE: "0x2561974A40F1AEed1251d0A090A83cF8536FB9E9",
package/dist/index.js CHANGED
@@ -171,11 +171,11 @@ var init_deployment_addresses = __esm({
171
171
  reason: "Shared upgrade script: CollateralManagerModule implementation update"
172
172
  },
173
173
  LiquidationManagerModule: {
174
- previousImplementation: "0x31CD6191d80F484b72925Aa1834c80F5f739252A",
175
- newImplementation: "0xCe7587C47094BBb3dCa13D7a2299Ec9beA6cd759",
176
- upgradedAt: "2026-07-03T20:02:00.579Z",
177
- upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
178
- reason: "Shared upgrade script: LiquidationManagerModule implementation update"
174
+ previousImplementation: "0xCe7587C47094BBb3dCa13D7a2299Ec9beA6cd759",
175
+ newImplementation: "0xa82640776B1fEBb00c208869E4c6413536be17FA",
176
+ upgradedAt: "2026-10-20T20:21:14.391Z",
177
+ upgradedBy: "0x0f8f23674cc90Ef7107930a4437341fD8B460362",
178
+ reason: "LiquidationManager 1.6.3: EIP-712 domain backfill (Sepolia proxy skipped reinitializer 2)"
179
179
  },
180
180
  BTCSpendAuthorizer: {
181
181
  previousImplementation: "0xdd3DFaEc50d6214d57eA64e8b76ff318b501607b",
@@ -603,7 +603,7 @@ var init_deployment_addresses = __esm({
603
603
  BTC_SPEND_AUTHORIZER: "0xfBbF108486fa07F1B06a811C5b66ed68DD9c508a",
604
604
  BTC_SPEND_AUTHORIZER_IMPL: "0x00D7a47798E8ff169104b748131703B78f23390C",
605
605
  POSITION_MANAGER_VIEWS: "0x8B57954eA338c6A6bfF1457f71080e25baFF3937",
606
- POSITION_MANAGER_VIEWS_IMPL: "0xE68DC096A65Ecddbc6A9b5c6e5f878e2CE143Bfe",
606
+ POSITION_MANAGER_VIEWS_IMPL: "0x8fe7aF14dB9Bef814c4c8fBc0ce206Cb17F25E8e",
607
607
  POSITION_MANAGER: "0x12A1836e56139ccaD8722B89519d84233efc224B",
608
608
  POSITION_MANAGER_IMPL: "0x2e7170d6Fb15A876dB726732e72e63109bcB916d",
609
609
  LOAN_OPERATIONS_MANAGER_MODULE: "0x2561974A40F1AEed1251d0A090A83cF8536FB9E9",
@@ -6559,8 +6559,8 @@ var MINT_UCD_GAS_CEILING = BigInt(13e5);
6559
6559
  var WITHDRAW_BTC_GAS_CEILING = BigInt(3e6);
6560
6560
  var MAKE_PAYMENT_GAS_CEILING = BigInt(1e6);
6561
6561
  var EXTEND_POSITION_GAS_CEILING = BigInt(1e6);
6562
- var LIQUIDATION_COMMIT_GAS_CEILING = BigInt(1e6);
6563
- var LIQUIDATION_REVEAL_GAS_CEILING = BigInt(2e6);
6562
+ var LIQUIDATION_COMMIT_GAS_CEILING = BigInt(2e6);
6563
+ var LIQUIDATION_REVEAL_GAS_CEILING = BigInt(25e5);
6564
6564
  var FEE_HISTORY_BLOCK_COUNT = 20;
6565
6565
  var FEE_HISTORY_REWARD_PERCENTILE = 75;
6566
6566
  function isJsonRpcSendable(provider) {
@@ -20732,6 +20732,7 @@ var CONTRACT_ERROR_FRAGMENTS = [
20732
20732
  { fragment: "error FeeOnTransferNotSupported()", contracts: ["SimplePSMV2"] },
20733
20733
  { fragment: "error FeeTooHigh(uint256 fee, uint256 max)", contracts: ["PositionManagerErrors"] },
20734
20734
  { fragment: "error FeeTooLow(uint256 fee, uint256 min)", contracts: ["PositionManagerErrors"] },
20735
+ { fragment: "error GlobalReentrancyGuardReentrantCall()", contracts: ["PositionManager", "CollateralManagerModule"] },
20735
20736
  { fragment: "error ImplNotDeployed()", contracts: ["LoanOperationsManagerModule", "BTCSpendAuthorizer"] },
20736
20737
  { fragment: "error ImplementationNotDeployed()", contracts: ["UCDController"] },
20737
20738
  { fragment: "error InitialBalanceTooLarge()", contracts: ["SimplePSMV2"] },
@@ -23965,7 +23966,7 @@ Message: ${causeMessage}${quantumContext}${loanCapDiagnostics}${mintDebtDiagnost
23965
23966
  ),
23966
23967
  litActionResult.signature || "0x",
23967
23968
  { gasLimit: LIQUIDATION_COMMIT_GAS_CEILING }
23968
- // see definition: provisional, unverified against a real liquidation
23969
+ // see definition: measured on Sepolia 2026-10-20
23969
23970
  );
23970
23971
  const commitReceipt = await commitTx.wait();
23971
23972
  if (this.config.debug) {
@@ -24064,7 +24065,7 @@ Message: ${causeMessage}${quantumContext}${loanCapDiagnostics}${mintDebtDiagnost
24064
24065
  revealResult.signature || "0x",
24065
24066
  BigInt(revealDeadline.toString()),
24066
24067
  { gasLimit: LIQUIDATION_REVEAL_GAS_CEILING }
24067
- // see definition: provisional, unverified against a real liquidation
24068
+ // see definition: measured on Sepolia 2026-10-20
24068
24069
  );
24069
24070
  if (this.config.debug) {
24070
24071
  log.info(` \u{1F4E4} Reveal TX submitted`, { txHash: revealTx.hash });
@@ -29242,7 +29243,10 @@ Message: ${causeMessage}${quantumContext}${loanCapDiagnostics}${mintDebtDiagnost
29242
29243
  const intentSignature = await signer.signMessage((0, import_ethers23.getBytes)(intentHash));
29243
29244
  const response = await fetch(endpoint, {
29244
29245
  method: "POST",
29245
- headers: { "Content-Type": "application/json" },
29246
+ headers: {
29247
+ "Content-Type": "application/json",
29248
+ ...await this.getAuthHeader()
29249
+ },
29246
29250
  body: JSON.stringify({
29247
29251
  positionId: params.positionId,
29248
29252
  liquidatorAddress: params.liquidatorAddress,
package/dist/index.mjs CHANGED
@@ -177,11 +177,11 @@ var init_deployment_addresses = __esm({
177
177
  reason: "Shared upgrade script: CollateralManagerModule implementation update"
178
178
  },
179
179
  LiquidationManagerModule: {
180
- previousImplementation: "0x31CD6191d80F484b72925Aa1834c80F5f739252A",
181
- newImplementation: "0xCe7587C47094BBb3dCa13D7a2299Ec9beA6cd759",
182
- upgradedAt: "2026-07-03T20:02:00.579Z",
183
- upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
184
- reason: "Shared upgrade script: LiquidationManagerModule implementation update"
180
+ previousImplementation: "0xCe7587C47094BBb3dCa13D7a2299Ec9beA6cd759",
181
+ newImplementation: "0xa82640776B1fEBb00c208869E4c6413536be17FA",
182
+ upgradedAt: "2026-10-20T20:21:14.391Z",
183
+ upgradedBy: "0x0f8f23674cc90Ef7107930a4437341fD8B460362",
184
+ reason: "LiquidationManager 1.6.3: EIP-712 domain backfill (Sepolia proxy skipped reinitializer 2)"
185
185
  },
186
186
  BTCSpendAuthorizer: {
187
187
  previousImplementation: "0xdd3DFaEc50d6214d57eA64e8b76ff318b501607b",
@@ -609,7 +609,7 @@ var init_deployment_addresses = __esm({
609
609
  BTC_SPEND_AUTHORIZER: "0xfBbF108486fa07F1B06a811C5b66ed68DD9c508a",
610
610
  BTC_SPEND_AUTHORIZER_IMPL: "0x00D7a47798E8ff169104b748131703B78f23390C",
611
611
  POSITION_MANAGER_VIEWS: "0x8B57954eA338c6A6bfF1457f71080e25baFF3937",
612
- POSITION_MANAGER_VIEWS_IMPL: "0xE68DC096A65Ecddbc6A9b5c6e5f878e2CE143Bfe",
612
+ POSITION_MANAGER_VIEWS_IMPL: "0x8fe7aF14dB9Bef814c4c8fBc0ce206Cb17F25E8e",
613
613
  POSITION_MANAGER: "0x12A1836e56139ccaD8722B89519d84233efc224B",
614
614
  POSITION_MANAGER_IMPL: "0x2e7170d6Fb15A876dB726732e72e63109bcB916d",
615
615
  LOAN_OPERATIONS_MANAGER_MODULE: "0x2561974A40F1AEed1251d0A090A83cF8536FB9E9",
@@ -6457,8 +6457,8 @@ var MINT_UCD_GAS_CEILING = BigInt(13e5);
6457
6457
  var WITHDRAW_BTC_GAS_CEILING = BigInt(3e6);
6458
6458
  var MAKE_PAYMENT_GAS_CEILING = BigInt(1e6);
6459
6459
  var EXTEND_POSITION_GAS_CEILING = BigInt(1e6);
6460
- var LIQUIDATION_COMMIT_GAS_CEILING = BigInt(1e6);
6461
- var LIQUIDATION_REVEAL_GAS_CEILING = BigInt(2e6);
6460
+ var LIQUIDATION_COMMIT_GAS_CEILING = BigInt(2e6);
6461
+ var LIQUIDATION_REVEAL_GAS_CEILING = BigInt(25e5);
6462
6462
  var FEE_HISTORY_BLOCK_COUNT = 20;
6463
6463
  var FEE_HISTORY_REWARD_PERCENTILE = 75;
6464
6464
  function isJsonRpcSendable(provider) {
@@ -20646,6 +20646,7 @@ var CONTRACT_ERROR_FRAGMENTS = [
20646
20646
  { fragment: "error FeeOnTransferNotSupported()", contracts: ["SimplePSMV2"] },
20647
20647
  { fragment: "error FeeTooHigh(uint256 fee, uint256 max)", contracts: ["PositionManagerErrors"] },
20648
20648
  { fragment: "error FeeTooLow(uint256 fee, uint256 min)", contracts: ["PositionManagerErrors"] },
20649
+ { fragment: "error GlobalReentrancyGuardReentrantCall()", contracts: ["PositionManager", "CollateralManagerModule"] },
20649
20650
  { fragment: "error ImplNotDeployed()", contracts: ["LoanOperationsManagerModule", "BTCSpendAuthorizer"] },
20650
20651
  { fragment: "error ImplementationNotDeployed()", contracts: ["UCDController"] },
20651
20652
  { fragment: "error InitialBalanceTooLarge()", contracts: ["SimplePSMV2"] },
@@ -23879,7 +23880,7 @@ Message: ${causeMessage}${quantumContext}${loanCapDiagnostics}${mintDebtDiagnost
23879
23880
  ),
23880
23881
  litActionResult.signature || "0x",
23881
23882
  { gasLimit: LIQUIDATION_COMMIT_GAS_CEILING }
23882
- // see definition: provisional, unverified against a real liquidation
23883
+ // see definition: measured on Sepolia 2026-10-20
23883
23884
  );
23884
23885
  const commitReceipt = await commitTx.wait();
23885
23886
  if (this.config.debug) {
@@ -23978,7 +23979,7 @@ Message: ${causeMessage}${quantumContext}${loanCapDiagnostics}${mintDebtDiagnost
23978
23979
  revealResult.signature || "0x",
23979
23980
  BigInt(revealDeadline.toString()),
23980
23981
  { gasLimit: LIQUIDATION_REVEAL_GAS_CEILING }
23981
- // see definition: provisional, unverified against a real liquidation
23982
+ // see definition: measured on Sepolia 2026-10-20
23982
23983
  );
23983
23984
  if (this.config.debug) {
23984
23985
  log.info(` \u{1F4E4} Reveal TX submitted`, { txHash: revealTx.hash });
@@ -29156,7 +29157,10 @@ Message: ${causeMessage}${quantumContext}${loanCapDiagnostics}${mintDebtDiagnost
29156
29157
  const intentSignature = await signer.signMessage(getBytes2(intentHash));
29157
29158
  const response = await fetch(endpoint, {
29158
29159
  method: "POST",
29159
- headers: { "Content-Type": "application/json" },
29160
+ headers: {
29161
+ "Content-Type": "application/json",
29162
+ ...await this.getAuthHeader()
29163
+ },
29160
29164
  body: JSON.stringify({
29161
29165
  positionId: params.positionId,
29162
29166
  liquidatorAddress: params.liquidatorAddress,
@@ -143,11 +143,11 @@ var SEPOLIA_DEPLOYMENT = {
143
143
  reason: "Shared upgrade script: CollateralManagerModule implementation update"
144
144
  },
145
145
  LiquidationManagerModule: {
146
- previousImplementation: "0x31CD6191d80F484b72925Aa1834c80F5f739252A",
147
- newImplementation: "0xCe7587C47094BBb3dCa13D7a2299Ec9beA6cd759",
148
- upgradedAt: "2026-07-03T20:02:00.579Z",
149
- upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
150
- reason: "Shared upgrade script: LiquidationManagerModule implementation update"
146
+ previousImplementation: "0xCe7587C47094BBb3dCa13D7a2299Ec9beA6cd759",
147
+ newImplementation: "0xa82640776B1fEBb00c208869E4c6413536be17FA",
148
+ upgradedAt: "2026-10-20T20:21:14.391Z",
149
+ upgradedBy: "0x0f8f23674cc90Ef7107930a4437341fD8B460362",
150
+ reason: "LiquidationManager 1.6.3: EIP-712 domain backfill (Sepolia proxy skipped reinitializer 2)"
151
151
  },
152
152
  BTCSpendAuthorizer: {
153
153
  previousImplementation: "0xdd3DFaEc50d6214d57eA64e8b76ff318b501607b",
@@ -545,7 +545,7 @@ var MAINNET_DEPLOYMENT = {
545
545
  BTC_SPEND_AUTHORIZER: "0xfBbF108486fa07F1B06a811C5b66ed68DD9c508a",
546
546
  BTC_SPEND_AUTHORIZER_IMPL: "0x00D7a47798E8ff169104b748131703B78f23390C",
547
547
  POSITION_MANAGER_VIEWS: "0x8B57954eA338c6A6bfF1457f71080e25baFF3937",
548
- POSITION_MANAGER_VIEWS_IMPL: "0xE68DC096A65Ecddbc6A9b5c6e5f878e2CE143Bfe",
548
+ POSITION_MANAGER_VIEWS_IMPL: "0x8fe7aF14dB9Bef814c4c8fBc0ce206Cb17F25E8e",
549
549
  POSITION_MANAGER: "0x12A1836e56139ccaD8722B89519d84233efc224B",
550
550
  POSITION_MANAGER_IMPL: "0x2e7170d6Fb15A876dB726732e72e63109bcB916d",
551
551
  LOAN_OPERATIONS_MANAGER_MODULE: "0x2561974A40F1AEed1251d0A090A83cF8536FB9E9",
@@ -116,11 +116,11 @@ var SEPOLIA_DEPLOYMENT = {
116
116
  reason: "Shared upgrade script: CollateralManagerModule implementation update"
117
117
  },
118
118
  LiquidationManagerModule: {
119
- previousImplementation: "0x31CD6191d80F484b72925Aa1834c80F5f739252A",
120
- newImplementation: "0xCe7587C47094BBb3dCa13D7a2299Ec9beA6cd759",
121
- upgradedAt: "2026-07-03T20:02:00.579Z",
122
- upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
123
- reason: "Shared upgrade script: LiquidationManagerModule implementation update"
119
+ previousImplementation: "0xCe7587C47094BBb3dCa13D7a2299Ec9beA6cd759",
120
+ newImplementation: "0xa82640776B1fEBb00c208869E4c6413536be17FA",
121
+ upgradedAt: "2026-10-20T20:21:14.391Z",
122
+ upgradedBy: "0x0f8f23674cc90Ef7107930a4437341fD8B460362",
123
+ reason: "LiquidationManager 1.6.3: EIP-712 domain backfill (Sepolia proxy skipped reinitializer 2)"
124
124
  },
125
125
  BTCSpendAuthorizer: {
126
126
  previousImplementation: "0xdd3DFaEc50d6214d57eA64e8b76ff318b501607b",
@@ -518,7 +518,7 @@ var MAINNET_DEPLOYMENT = {
518
518
  BTC_SPEND_AUTHORIZER: "0xfBbF108486fa07F1B06a811C5b66ed68DD9c508a",
519
519
  BTC_SPEND_AUTHORIZER_IMPL: "0x00D7a47798E8ff169104b748131703B78f23390C",
520
520
  POSITION_MANAGER_VIEWS: "0x8B57954eA338c6A6bfF1457f71080e25baFF3937",
521
- POSITION_MANAGER_VIEWS_IMPL: "0xE68DC096A65Ecddbc6A9b5c6e5f878e2CE143Bfe",
521
+ POSITION_MANAGER_VIEWS_IMPL: "0x8fe7aF14dB9Bef814c4c8fBc0ce206Cb17F25E8e",
522
522
  POSITION_MANAGER: "0x12A1836e56139ccaD8722B89519d84233efc224B",
523
523
  POSITION_MANAGER_IMPL: "0x2e7170d6Fb15A876dB726732e72e63109bcB916d",
524
524
  LOAN_OPERATIONS_MANAGER_MODULE: "0x2561974A40F1AEed1251d0A090A83cF8536FB9E9",
@@ -318,11 +318,11 @@ var SEPOLIA_DEPLOYMENT = {
318
318
  reason: "Shared upgrade script: CollateralManagerModule implementation update"
319
319
  },
320
320
  LiquidationManagerModule: {
321
- previousImplementation: "0x31CD6191d80F484b72925Aa1834c80F5f739252A",
322
- newImplementation: "0xCe7587C47094BBb3dCa13D7a2299Ec9beA6cd759",
323
- upgradedAt: "2026-07-03T20:02:00.579Z",
324
- upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
325
- reason: "Shared upgrade script: LiquidationManagerModule implementation update"
321
+ previousImplementation: "0xCe7587C47094BBb3dCa13D7a2299Ec9beA6cd759",
322
+ newImplementation: "0xa82640776B1fEBb00c208869E4c6413536be17FA",
323
+ upgradedAt: "2026-10-20T20:21:14.391Z",
324
+ upgradedBy: "0x0f8f23674cc90Ef7107930a4437341fD8B460362",
325
+ reason: "LiquidationManager 1.6.3: EIP-712 domain backfill (Sepolia proxy skipped reinitializer 2)"
326
326
  },
327
327
  BTCSpendAuthorizer: {
328
328
  previousImplementation: "0xdd3DFaEc50d6214d57eA64e8b76ff318b501607b",
@@ -750,7 +750,7 @@ var MAINNET_DEPLOYMENT = {
750
750
  BTC_SPEND_AUTHORIZER: "0xfBbF108486fa07F1B06a811C5b66ed68DD9c508a",
751
751
  BTC_SPEND_AUTHORIZER_IMPL: "0x00D7a47798E8ff169104b748131703B78f23390C",
752
752
  POSITION_MANAGER_VIEWS: "0x8B57954eA338c6A6bfF1457f71080e25baFF3937",
753
- POSITION_MANAGER_VIEWS_IMPL: "0xE68DC096A65Ecddbc6A9b5c6e5f878e2CE143Bfe",
753
+ POSITION_MANAGER_VIEWS_IMPL: "0x8fe7aF14dB9Bef814c4c8fBc0ce206Cb17F25E8e",
754
754
  POSITION_MANAGER: "0x12A1836e56139ccaD8722B89519d84233efc224B",
755
755
  POSITION_MANAGER_IMPL: "0x2e7170d6Fb15A876dB726732e72e63109bcB916d",
756
756
  LOAN_OPERATIONS_MANAGER_MODULE: "0x2561974A40F1AEed1251d0A090A83cF8536FB9E9",
@@ -241,11 +241,11 @@ var SEPOLIA_DEPLOYMENT = {
241
241
  reason: "Shared upgrade script: CollateralManagerModule implementation update"
242
242
  },
243
243
  LiquidationManagerModule: {
244
- previousImplementation: "0x31CD6191d80F484b72925Aa1834c80F5f739252A",
245
- newImplementation: "0xCe7587C47094BBb3dCa13D7a2299Ec9beA6cd759",
246
- upgradedAt: "2026-07-03T20:02:00.579Z",
247
- upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
248
- reason: "Shared upgrade script: LiquidationManagerModule implementation update"
244
+ previousImplementation: "0xCe7587C47094BBb3dCa13D7a2299Ec9beA6cd759",
245
+ newImplementation: "0xa82640776B1fEBb00c208869E4c6413536be17FA",
246
+ upgradedAt: "2026-10-20T20:21:14.391Z",
247
+ upgradedBy: "0x0f8f23674cc90Ef7107930a4437341fD8B460362",
248
+ reason: "LiquidationManager 1.6.3: EIP-712 domain backfill (Sepolia proxy skipped reinitializer 2)"
249
249
  },
250
250
  BTCSpendAuthorizer: {
251
251
  previousImplementation: "0xdd3DFaEc50d6214d57eA64e8b76ff318b501607b",
@@ -673,7 +673,7 @@ var MAINNET_DEPLOYMENT = {
673
673
  BTC_SPEND_AUTHORIZER: "0xfBbF108486fa07F1B06a811C5b66ed68DD9c508a",
674
674
  BTC_SPEND_AUTHORIZER_IMPL: "0x00D7a47798E8ff169104b748131703B78f23390C",
675
675
  POSITION_MANAGER_VIEWS: "0x8B57954eA338c6A6bfF1457f71080e25baFF3937",
676
- POSITION_MANAGER_VIEWS_IMPL: "0xE68DC096A65Ecddbc6A9b5c6e5f878e2CE143Bfe",
676
+ POSITION_MANAGER_VIEWS_IMPL: "0x8fe7aF14dB9Bef814c4c8fBc0ce206Cb17F25E8e",
677
677
  POSITION_MANAGER: "0x12A1836e56139ccaD8722B89519d84233efc224B",
678
678
  POSITION_MANAGER_IMPL: "0x2e7170d6Fb15A876dB726732e72e63109bcB916d",
679
679
  LOAN_OPERATIONS_MANAGER_MODULE: "0x2561974A40F1AEed1251d0A090A83cF8536FB9E9",
@@ -67,28 +67,19 @@ export declare const MAKE_PAYMENT_GAS_CEILING: bigint;
67
67
  */
68
68
  export declare const EXTEND_POSITION_GAS_CEILING: bigint;
69
69
  /**
70
- * Fixed-gas ceiling for commitLiquidation's broadcast. No liquidation has ever
71
- * executed on mainnet OR Sepolia yet (both networks are too new / no position
72
- * has needed it), so unlike MAKE_PAYMENT_GAS_CEILING this is NOT verified
73
- * against any real transaction -- it is a reasoned estimate only. The commit
74
- * phase's on-chain work (auth + quantum checks, no burn/collateral movement)
75
- * is similar in shape to makePayment's, so this matches MAKE_PAYMENT_GAS_CEILING.
76
- * The prior hardcoded 500,000 followed the exact same "round unverified guess"
77
- * pattern that caused MAKE_PAYMENT_GAS_CEILING's real production failure, so
78
- * treat this as provisional until a real mainnet liquidation exists to
79
- * measure against (see the debug_traceCall + binary-search method used for
80
- * makePayment/withdrawBTC).
70
+ * Fixed-gas ceiling for commitLiquidation's broadcast. MEASURED 2026-10-20 on the
71
+ * first real Sepolia liquidation commit (tx 0x0dcb948b…f0a0, which ran out of gas at
72
+ * the old 1,000,000): debug_traceCall gasUsed 844,141, of which
73
+ * LiquidationManager.commitLiquidation alone is ~643k (VRF request + commit storage).
74
+ * Binary search over eth_call put the smallest succeeding gasLimit at ~1,019,531
75
+ * (63/64 forwarding to the nested call). 2,000,000 gives ~2.4x the measured use.
81
76
  */
82
77
  export declare const LIQUIDATION_COMMIT_GAS_CEILING: bigint;
83
78
  /**
84
- * Fixed-gas ceiling for revealAndLiquidate's broadcast. Same "no real
85
- * transaction exists yet to verify against" caveat as
86
- * LIQUIDATION_COMMIT_GAS_CEILING. The reveal phase does substantially more
87
- * on-chain work than commit or makePayment -- position lookup, liquidation-
88
- * eligibility calculation, debt burn, AND collateral/vault handling -- closer
89
- * in shape to WITHDRAW_BTC_GAS_CEILING's flow than to MAKE_PAYMENT_GAS_CEILING's.
90
- * The prior hardcoded 700,000 was likewise an unverified guess. Treat as
91
- * provisional until re-measured against a real liquidation.
79
+ * Fixed-gas ceiling for revealAndLiquidate's broadcast. MEASURED 2026-10-20 on the
80
+ * first real Sepolia liquidation (reveal tx 0x42dcd83b…eface): gasUsed 1,117,634 —
81
+ * position lookup, eligibility, full-debt UCD burn and the PKP ownership transfer.
82
+ * 2,500,000 keeps >2x headroom over that and stays >= the commit ceiling.
92
83
  */
93
84
  export declare const LIQUIDATION_REVEAL_GAS_CEILING: bigint;
94
85
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gvnrdao/dh-sdk",
3
- "version": "0.0.349",
3
+ "version": "0.0.351",
4
4
  "description": "TypeScript SDK for Diamond Hands Protocol",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -101,17 +101,17 @@
101
101
  },
102
102
  "sideEffects": false,
103
103
  "dependencies": {
104
- "@gvnrdao/dh-lit-actions": "^0.0.326",
105
- "@gvnrdao/dh-lit-ops": "^0.0.323",
104
+ "@gvnrdao/dh-lit-actions": "^0.0.327",
105
+ "@gvnrdao/dh-lit-ops": "^0.0.324",
106
106
  "@noble/hashes": "^1.5.0",
107
- "axios": "^1.17.0",
107
+ "axios": "^1.20.0",
108
108
  "bech32": "^2.0.0",
109
109
  "bip66": "^2.0.0",
110
110
  "bitcoinjs-lib": "^6.1.0",
111
111
  "bs58check": "^3.0.1",
112
112
  "crypto-js": "^4.2.0",
113
113
  "dotenv": "^17.4.2",
114
- "ethers": "6.16.0"
114
+ "ethers": "6.17.0"
115
115
  },
116
116
  "devDependencies": {
117
117
  "@babel/preset-env": "7.29.7",