@gvnrdao/dh-sdk 0.0.276 → 0.0.278

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.
@@ -5,6 +5,16 @@
5
5
  import { type Provider, type Signer, type TransactionResponse } from "ethers";
6
6
  /** Observed mintUCD + LIT validation can exceed 7M gas; cap avoids block limit issues. */
7
7
  export declare const MINT_UCD_GAS_CEILING: bigint;
8
+ /**
9
+ * Fixed-gas ceiling for the withdrawBTC raw-tx fallback (used when estimateGas
10
+ * is unavailable on the RPC). The on-chain flow now spans PositionManager →
11
+ * CollateralManager → LoanOperationsManager → BTCSpendAuthorizer plus the audit
12
+ * #3 Chainlink feed-staleness gate and the BitcoinWithdrawalAddressRegistry
13
+ * allowlist STATICCALL; observed end-to-end cost is ~1.0–1.3M gas, so the prior
14
+ * hardcoded 1,000,000 limit caused a nested out-of-gas. 3M gives ~2x headroom
15
+ * while staying well under the block gas limit.
16
+ */
17
+ export declare const WITHDRAW_BTC_GAS_CEILING: bigint;
8
18
  /** Headroom on eth_estimateGas (25%). */
9
19
  export declare const MINT_UCD_ESTIMATE_MARGIN_BPS = 2500;
10
20
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gvnrdao/dh-sdk",
3
- "version": "0.0.276",
3
+ "version": "0.0.278",
4
4
  "description": "TypeScript SDK for Diamond Hands Protocol - Bitcoin-backed lending with LIT Protocol PKPs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -81,8 +81,8 @@
81
81
  },
82
82
  "sideEffects": false,
83
83
  "dependencies": {
84
- "@gvnrdao/dh-lit-actions": "^0.0.307",
85
- "@gvnrdao/dh-lit-ops": "^0.0.294",
84
+ "@gvnrdao/dh-lit-actions": "^0.0.308",
85
+ "@gvnrdao/dh-lit-ops": "^0.0.296",
86
86
  "@noble/hashes": "^1.5.0",
87
87
  "axios": "^1.17.0",
88
88
  "bech32": "^2.0.0",