@gvnrdao/dh-sdk 0.0.327 → 0.0.328

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.js CHANGED
@@ -1363,7 +1363,7 @@ var require_pkg_src = __commonJS({
1363
1363
  description: "Production Btc Transaction Signer",
1364
1364
  version: "1.1.1",
1365
1365
  deployed: true,
1366
- deployedAt: 1786113907707,
1366
+ deployedAt: 1786465606156,
1367
1367
  size: 67999,
1368
1368
  hash: "83f3644c68819215e05ba8db3225571354a009458fc1437f606df6cb9142d3f9"
1369
1369
  },
@@ -1376,7 +1376,7 @@ var require_pkg_src = __commonJS({
1376
1376
  description: "Production Ucd Mint Validator",
1377
1377
  version: "1.2.1",
1378
1378
  deployed: true,
1379
- deployedAt: 1786113908489,
1379
+ deployedAt: 1786465627201,
1380
1380
  size: 82739,
1381
1381
  hash: "2bdd9aebdaad58a43a4731d5b7284f2531b7a9caaf8caf5719d891c4ed33cb2e",
1382
1382
  validatorWalletAddress: "0x82DB9F515957aA380B596C6eA2Bd30CEF181f236",
@@ -1394,7 +1394,7 @@ var require_pkg_src = __commonJS({
1394
1394
  description: "Production Process Payment Validator",
1395
1395
  version: "1.2.1",
1396
1396
  deployed: true,
1397
- deployedAt: 1786113909138,
1397
+ deployedAt: 1786465654796,
1398
1398
  size: 78736,
1399
1399
  hash: "17191ecc9c009e0fa5ab52c876330beb2a9a75d30cccb92e7c0c04f169df088b",
1400
1400
  validatorWalletAddress: "0x82DB9F515957aA380B596C6eA2Bd30CEF181f236",
@@ -1412,7 +1412,7 @@ var require_pkg_src = __commonJS({
1412
1412
  description: "Production Extend Position Validator",
1413
1413
  version: "1.2.1",
1414
1414
  deployed: true,
1415
- deployedAt: 1786113909872,
1415
+ deployedAt: 1786465681874,
1416
1416
  size: 76515,
1417
1417
  hash: "1d4e085335af80f194a663a577876902c83015177e95906a0b461fa93bd5da08",
1418
1418
  validatorWalletAddress: "0x82DB9F515957aA380B596C6eA2Bd30CEF181f236",
@@ -1422,21 +1422,17 @@ var require_pkg_src = __commonJS({
1422
1422
  }
1423
1423
  },
1424
1424
  btcWithdrawal: {
1425
- cid: "QmZuR3qSBajutXfRd91ffpyFrRMgmaMh7fDEHRiQQF8Ljp",
1425
+ cid: "QmRYVoTTDxk2McvBqxSm9M7YcaBGdTqjnZGPX4Y191DaZh",
1426
1426
  authorizedCidHex: cidToHex(
1427
- "QmZuR3qSBajutXfRd91ffpyFrRMgmaMh7fDEHRiQQF8Ljp"
1427
+ "QmRYVoTTDxk2McvBqxSm9M7YcaBGdTqjnZGPX4Y191DaZh"
1428
1428
  ),
1429
1429
  name: "Btc Withdrawal",
1430
1430
  description: "Production Btc Withdrawal",
1431
- // Monotonic per action, NOT a shared release train — the EIP-1271 rotation
1432
- // stamped its cohort 1.2.1, but this action was already at 1.2.3 from the vout
1433
- // canonicalization fix. Reusing the cohort stamp made a newer CID read as older
1434
- // than the one it replaced, which a rotation ceremony would treat as a rollback.
1435
- version: "1.2.4",
1431
+ version: "1.2.7",
1436
1432
  deployed: true,
1437
- deployedAt: 1786113910531,
1438
- size: 95313,
1439
- hash: "ce12f11e3b5469953bc919586e4f3b8b5d594224b58b799dd9a3b60e3749559c",
1433
+ deployedAt: 1786446046614,
1434
+ size: 97456,
1435
+ hash: "3cae8250861832f91ee3c573abeb50ff27b9acd34148176071cbfbabb359fc91",
1440
1436
  validatorWalletAddress: "0x82DB9F515957aA380B596C6eA2Bd30CEF181f236",
1441
1437
  pkp: {
1442
1438
  publicKey: "0x043616787c5432415c24378c4ef48de2bcd6bb7b575b837e3cff09171802662da7105d79586c7659677a0ecbaddac4cce06cb2a11f69a16fa0c4d7002ac7d51a4d",
@@ -1548,19 +1544,17 @@ var require_pkg_src = __commonJS({
1548
1544
  hash: "03ee5be239c91c735d2c95db89a0d1b77e602cfc18af8eb64b3281fddcd90a72"
1549
1545
  },
1550
1546
  agentModuleExecutor: {
1551
- // Bound to the isolated Sepolia agent group 7 ("DH-Agent-Sepolia"), which
1552
- // holds this action and no PKPs until an agent is minted into it. NOT yet
1553
- // bound on mainnet — the Base `DH-Agent-Mainnet` group is created at rollout.
1554
- cid: "QmVgjGXUuxoGf8XyddW8a7btaazT9yEotpKoBgb65oPvcF",
1547
+ cid: "QmdhC18wF7PFGMQ8aThdPsEVSpuDewA27dFvbA3bG6kVDQ",
1555
1548
  authorizedCidHex: cidToHex(
1556
- "QmVgjGXUuxoGf8XyddW8a7btaazT9yEotpKoBgb65oPvcF"
1549
+ "QmdhC18wF7PFGMQ8aThdPsEVSpuDewA27dFvbA3bG6kVDQ"
1557
1550
  ),
1558
1551
  name: "Agent Module Executor",
1559
- description: "Capability gate for multi-sig Safe agent delegation: binds the agent PKP to the AgentDelegationRegistry record before signing (authorize | execute modes)",
1560
- version: "1.0.0",
1552
+ description: "Production Agent Module Executor",
1553
+ version: "1.1.1",
1561
1554
  deployed: true,
1562
- size: 11785,
1563
- hash: "fa294e164273c2158f9ef11a0ccfd735c343c0e3759fcb4b37e0f8a5d1ab0d29"
1555
+ deployedAt: 1786446108348,
1556
+ size: 11655,
1557
+ hash: "d4e2149f843d6c2699fc61114d54b268ba4ed2c46ebdaee1145e0f101ec2a1ec"
1564
1558
  },
1565
1559
  staleSpendRecoveryValidator: {
1566
1560
  cid: "QmXQWT8V4wjuvH8BbC7xrkYxsVu5AKfvfWcS7jnYfrexYm",
@@ -1589,7 +1583,7 @@ var require_pkg_src = __commonJS({
1589
1583
  description: "Production Btc Utxo Invalidator",
1590
1584
  version: "1.0.0",
1591
1585
  deployed: true,
1592
- deployedAt: 1786113911948,
1586
+ deployedAt: 1786465704240,
1593
1587
  size: 62553,
1594
1588
  hash: "1dcea2b49e545c423195be22e072dc5e3039ed1c95a8490b23505956029f5b33"
1595
1589
  }
@@ -24511,6 +24505,13 @@ Message: ${causeMessage}${quantumContext}${mintDebtDiagnostics}`
24511
24505
  error: "ethRpcUrl required for recoverStaleSpend \u2014 set DiamondHandsSDKConfig.ethRpcUrl or pass rpcUrl"
24512
24506
  };
24513
24507
  }
24508
+ if (!this.config.contractSigner) {
24509
+ return {
24510
+ success: false,
24511
+ failedStep: "config",
24512
+ error: "Contract signer not configured \u2014 recoverStaleSpend submits its own recovery transaction in direct mode. Set DiamondHandsSDKConfig.contractSigner, or use service mode, where the server relays and pays for it."
24513
+ };
24514
+ }
24514
24515
  const sdkBitcoinProviderUrl = this.config.bitcoinProviders?.[0]?.url;
24515
24516
  attRes = await this.litOps.requestStaleSpendRecoveryAttestation({
24516
24517
  chainId,
package/dist/index.mjs CHANGED
@@ -1369,7 +1369,7 @@ var require_pkg_src = __commonJS({
1369
1369
  description: "Production Btc Transaction Signer",
1370
1370
  version: "1.1.1",
1371
1371
  deployed: true,
1372
- deployedAt: 1786113907707,
1372
+ deployedAt: 1786465606156,
1373
1373
  size: 67999,
1374
1374
  hash: "83f3644c68819215e05ba8db3225571354a009458fc1437f606df6cb9142d3f9"
1375
1375
  },
@@ -1382,7 +1382,7 @@ var require_pkg_src = __commonJS({
1382
1382
  description: "Production Ucd Mint Validator",
1383
1383
  version: "1.2.1",
1384
1384
  deployed: true,
1385
- deployedAt: 1786113908489,
1385
+ deployedAt: 1786465627201,
1386
1386
  size: 82739,
1387
1387
  hash: "2bdd9aebdaad58a43a4731d5b7284f2531b7a9caaf8caf5719d891c4ed33cb2e",
1388
1388
  validatorWalletAddress: "0x82DB9F515957aA380B596C6eA2Bd30CEF181f236",
@@ -1400,7 +1400,7 @@ var require_pkg_src = __commonJS({
1400
1400
  description: "Production Process Payment Validator",
1401
1401
  version: "1.2.1",
1402
1402
  deployed: true,
1403
- deployedAt: 1786113909138,
1403
+ deployedAt: 1786465654796,
1404
1404
  size: 78736,
1405
1405
  hash: "17191ecc9c009e0fa5ab52c876330beb2a9a75d30cccb92e7c0c04f169df088b",
1406
1406
  validatorWalletAddress: "0x82DB9F515957aA380B596C6eA2Bd30CEF181f236",
@@ -1418,7 +1418,7 @@ var require_pkg_src = __commonJS({
1418
1418
  description: "Production Extend Position Validator",
1419
1419
  version: "1.2.1",
1420
1420
  deployed: true,
1421
- deployedAt: 1786113909872,
1421
+ deployedAt: 1786465681874,
1422
1422
  size: 76515,
1423
1423
  hash: "1d4e085335af80f194a663a577876902c83015177e95906a0b461fa93bd5da08",
1424
1424
  validatorWalletAddress: "0x82DB9F515957aA380B596C6eA2Bd30CEF181f236",
@@ -1428,21 +1428,17 @@ var require_pkg_src = __commonJS({
1428
1428
  }
1429
1429
  },
1430
1430
  btcWithdrawal: {
1431
- cid: "QmZuR3qSBajutXfRd91ffpyFrRMgmaMh7fDEHRiQQF8Ljp",
1431
+ cid: "QmRYVoTTDxk2McvBqxSm9M7YcaBGdTqjnZGPX4Y191DaZh",
1432
1432
  authorizedCidHex: cidToHex(
1433
- "QmZuR3qSBajutXfRd91ffpyFrRMgmaMh7fDEHRiQQF8Ljp"
1433
+ "QmRYVoTTDxk2McvBqxSm9M7YcaBGdTqjnZGPX4Y191DaZh"
1434
1434
  ),
1435
1435
  name: "Btc Withdrawal",
1436
1436
  description: "Production Btc Withdrawal",
1437
- // Monotonic per action, NOT a shared release train — the EIP-1271 rotation
1438
- // stamped its cohort 1.2.1, but this action was already at 1.2.3 from the vout
1439
- // canonicalization fix. Reusing the cohort stamp made a newer CID read as older
1440
- // than the one it replaced, which a rotation ceremony would treat as a rollback.
1441
- version: "1.2.4",
1437
+ version: "1.2.7",
1442
1438
  deployed: true,
1443
- deployedAt: 1786113910531,
1444
- size: 95313,
1445
- hash: "ce12f11e3b5469953bc919586e4f3b8b5d594224b58b799dd9a3b60e3749559c",
1439
+ deployedAt: 1786446046614,
1440
+ size: 97456,
1441
+ hash: "3cae8250861832f91ee3c573abeb50ff27b9acd34148176071cbfbabb359fc91",
1446
1442
  validatorWalletAddress: "0x82DB9F515957aA380B596C6eA2Bd30CEF181f236",
1447
1443
  pkp: {
1448
1444
  publicKey: "0x043616787c5432415c24378c4ef48de2bcd6bb7b575b837e3cff09171802662da7105d79586c7659677a0ecbaddac4cce06cb2a11f69a16fa0c4d7002ac7d51a4d",
@@ -1554,19 +1550,17 @@ var require_pkg_src = __commonJS({
1554
1550
  hash: "03ee5be239c91c735d2c95db89a0d1b77e602cfc18af8eb64b3281fddcd90a72"
1555
1551
  },
1556
1552
  agentModuleExecutor: {
1557
- // Bound to the isolated Sepolia agent group 7 ("DH-Agent-Sepolia"), which
1558
- // holds this action and no PKPs until an agent is minted into it. NOT yet
1559
- // bound on mainnet — the Base `DH-Agent-Mainnet` group is created at rollout.
1560
- cid: "QmVgjGXUuxoGf8XyddW8a7btaazT9yEotpKoBgb65oPvcF",
1553
+ cid: "QmdhC18wF7PFGMQ8aThdPsEVSpuDewA27dFvbA3bG6kVDQ",
1561
1554
  authorizedCidHex: cidToHex(
1562
- "QmVgjGXUuxoGf8XyddW8a7btaazT9yEotpKoBgb65oPvcF"
1555
+ "QmdhC18wF7PFGMQ8aThdPsEVSpuDewA27dFvbA3bG6kVDQ"
1563
1556
  ),
1564
1557
  name: "Agent Module Executor",
1565
- description: "Capability gate for multi-sig Safe agent delegation: binds the agent PKP to the AgentDelegationRegistry record before signing (authorize | execute modes)",
1566
- version: "1.0.0",
1558
+ description: "Production Agent Module Executor",
1559
+ version: "1.1.1",
1567
1560
  deployed: true,
1568
- size: 11785,
1569
- hash: "fa294e164273c2158f9ef11a0ccfd735c343c0e3759fcb4b37e0f8a5d1ab0d29"
1561
+ deployedAt: 1786446108348,
1562
+ size: 11655,
1563
+ hash: "d4e2149f843d6c2699fc61114d54b268ba4ed2c46ebdaee1145e0f101ec2a1ec"
1570
1564
  },
1571
1565
  staleSpendRecoveryValidator: {
1572
1566
  cid: "QmXQWT8V4wjuvH8BbC7xrkYxsVu5AKfvfWcS7jnYfrexYm",
@@ -1595,7 +1589,7 @@ var require_pkg_src = __commonJS({
1595
1589
  description: "Production Btc Utxo Invalidator",
1596
1590
  version: "1.0.0",
1597
1591
  deployed: true,
1598
- deployedAt: 1786113911948,
1592
+ deployedAt: 1786465704240,
1599
1593
  size: 62553,
1600
1594
  hash: "1dcea2b49e545c423195be22e072dc5e3039ed1c95a8490b23505956029f5b33"
1601
1595
  }
@@ -24436,6 +24430,13 @@ Message: ${causeMessage}${quantumContext}${mintDebtDiagnostics}`
24436
24430
  error: "ethRpcUrl required for recoverStaleSpend \u2014 set DiamondHandsSDKConfig.ethRpcUrl or pass rpcUrl"
24437
24431
  };
24438
24432
  }
24433
+ if (!this.config.contractSigner) {
24434
+ return {
24435
+ success: false,
24436
+ failedStep: "config",
24437
+ error: "Contract signer not configured \u2014 recoverStaleSpend submits its own recovery transaction in direct mode. Set DiamondHandsSDKConfig.contractSigner, or use service mode, where the server relays and pays for it."
24438
+ };
24439
+ }
24439
24440
  const sdkBitcoinProviderUrl = this.config.bitcoinProviders?.[0]?.url;
24440
24441
  attRes = await this.litOps.requestStaleSpendRecoveryAttestation({
24441
24442
  chainId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gvnrdao/dh-sdk",
3
- "version": "0.0.327",
3
+ "version": "0.0.328",
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",
@@ -87,8 +87,8 @@
87
87
  },
88
88
  "sideEffects": false,
89
89
  "dependencies": {
90
- "@gvnrdao/dh-lit-actions": "^0.0.320",
91
- "@gvnrdao/dh-lit-ops": "^0.0.312",
90
+ "@gvnrdao/dh-lit-actions": "^0.0.321",
91
+ "@gvnrdao/dh-lit-ops": "^0.0.313",
92
92
  "@noble/hashes": "^1.5.0",
93
93
  "axios": "^1.17.0",
94
94
  "bech32": "^2.0.0",