@gvnrdao/dh-mcp 0.5.31 → 0.5.33
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/boundary.js +192 -125
- package/dist/connector-embed.js +196 -129
- package/dist/connector.js +196 -129
- package/dist/index.js +196 -129
- package/package.json +2 -2
package/dist/boundary.js
CHANGED
|
@@ -14501,30 +14501,30 @@ var require_pkg_src = __commonJS({
|
|
|
14501
14501
|
}
|
|
14502
14502
|
},
|
|
14503
14503
|
btcTransactionSigner: {
|
|
14504
|
-
cid: "
|
|
14504
|
+
cid: "QmSTRJ5MzhJQ3mBJHys8mgBfn3yQtP5hu3wo2WzvJxafxs",
|
|
14505
14505
|
authorizedCidHex: cidToHex(
|
|
14506
|
-
"
|
|
14506
|
+
"QmSTRJ5MzhJQ3mBJHys8mgBfn3yQtP5hu3wo2WzvJxafxs"
|
|
14507
14507
|
),
|
|
14508
14508
|
name: "Btc Transaction Signer",
|
|
14509
14509
|
description: "Production Btc Transaction Signer",
|
|
14510
|
-
version: "1.
|
|
14510
|
+
version: "1.5.0",
|
|
14511
14511
|
deployed: true,
|
|
14512
|
-
deployedAt:
|
|
14513
|
-
size:
|
|
14514
|
-
hash: "
|
|
14512
|
+
deployedAt: 1795563786470,
|
|
14513
|
+
size: 83923,
|
|
14514
|
+
hash: "a0b1a1a349d7594a4a8e9b0a360ba3964099d4c35831a530205ec5f0c7fb624c"
|
|
14515
14515
|
},
|
|
14516
14516
|
ucdMintValidator: {
|
|
14517
|
-
cid: "
|
|
14517
|
+
cid: "QmQB3ftrLLfrMs1XVzyzGBuVmCPU7ePfDU9vtFhjFi62pn",
|
|
14518
14518
|
authorizedCidHex: cidToHex(
|
|
14519
|
-
"
|
|
14519
|
+
"QmQB3ftrLLfrMs1XVzyzGBuVmCPU7ePfDU9vtFhjFi62pn"
|
|
14520
14520
|
),
|
|
14521
14521
|
name: "Ucd Mint Validator",
|
|
14522
14522
|
description: "Production Ucd Mint Validator",
|
|
14523
|
-
version: "1.
|
|
14523
|
+
version: "1.7.0",
|
|
14524
14524
|
deployed: true,
|
|
14525
|
-
deployedAt:
|
|
14526
|
-
size:
|
|
14527
|
-
hash: "
|
|
14525
|
+
deployedAt: 1795563807907,
|
|
14526
|
+
size: 93075,
|
|
14527
|
+
hash: "fd1dba7ba6cab4022b8e7be4b9812a04b2e9baab90c864d57bb51ea7354f426f",
|
|
14528
14528
|
validatorWalletAddress: "0xEfb258D455a31d061Bbeb3DE3D2143BdFCB67a6C",
|
|
14529
14529
|
pkp: {
|
|
14530
14530
|
publicKey: "0x041ab17cd91fc5c0b761eea6092d032807561b621b82c488826776e04a9158d61ba64d809a4729f0501289d980732cb06d8dfd06999dd9c8efd2f495dad78b31bb",
|
|
@@ -14532,17 +14532,17 @@ var require_pkg_src = __commonJS({
|
|
|
14532
14532
|
}
|
|
14533
14533
|
},
|
|
14534
14534
|
processPaymentValidator: {
|
|
14535
|
-
cid: "
|
|
14535
|
+
cid: "Qmeq2rArEzMumTYN8PssuvRUZACk6kjzP9pgMtA7NnpiC7",
|
|
14536
14536
|
authorizedCidHex: cidToHex(
|
|
14537
|
-
"
|
|
14537
|
+
"Qmeq2rArEzMumTYN8PssuvRUZACk6kjzP9pgMtA7NnpiC7"
|
|
14538
14538
|
),
|
|
14539
14539
|
name: "Process Payment Validator",
|
|
14540
14540
|
description: "Production Process Payment Validator",
|
|
14541
|
-
version: "1.
|
|
14541
|
+
version: "1.4.0",
|
|
14542
14542
|
deployed: true,
|
|
14543
|
-
deployedAt:
|
|
14544
|
-
size:
|
|
14545
|
-
hash: "
|
|
14543
|
+
deployedAt: 1795563821504,
|
|
14544
|
+
size: 88235,
|
|
14545
|
+
hash: "d78862dc1574a04818f2fd824394f2efab70e9674defc88b234a03862982ddda",
|
|
14546
14546
|
validatorWalletAddress: "0xEfb258D455a31d061Bbeb3DE3D2143BdFCB67a6C",
|
|
14547
14547
|
pkp: {
|
|
14548
14548
|
publicKey: "0x04cfccb9b6c7addc79469c0e9fafebef4c70801302c62cdb26b610723a9b8527d23f98a40158c7340d83fd0e62d02b5ec74c12f7a86d98e8c6973b4811110f19ad",
|
|
@@ -14550,17 +14550,17 @@ var require_pkg_src = __commonJS({
|
|
|
14550
14550
|
}
|
|
14551
14551
|
},
|
|
14552
14552
|
extendPositionValidator: {
|
|
14553
|
-
cid: "
|
|
14553
|
+
cid: "QmZsLdkD6VdpBCseW2LsXGW7SYDMezq8NgWUQjVVbDXCLj",
|
|
14554
14554
|
authorizedCidHex: cidToHex(
|
|
14555
|
-
"
|
|
14555
|
+
"QmZsLdkD6VdpBCseW2LsXGW7SYDMezq8NgWUQjVVbDXCLj"
|
|
14556
14556
|
),
|
|
14557
14557
|
name: "Extend Position Validator",
|
|
14558
14558
|
description: "Production Extend Position Validator",
|
|
14559
|
-
version: "1.
|
|
14559
|
+
version: "1.4.0",
|
|
14560
14560
|
deployed: true,
|
|
14561
|
-
deployedAt:
|
|
14562
|
-
size:
|
|
14563
|
-
hash: "
|
|
14561
|
+
deployedAt: 1795563831913,
|
|
14562
|
+
size: 85511,
|
|
14563
|
+
hash: "44ee02e254b28271a851bd26a12334d0302b27877029c3824eb406e0df697fd1",
|
|
14564
14564
|
validatorWalletAddress: "0xEfb258D455a31d061Bbeb3DE3D2143BdFCB67a6C",
|
|
14565
14565
|
pkp: {
|
|
14566
14566
|
publicKey: "0x04e52338f6a0c3362800f1a94c4c8f08be5030dde0fa217388c53d1c1a4790f4443c9f2886b2d2d8f4b75a9a156e9b028011b1a1cf7648da0e556aa980ec692836",
|
|
@@ -14568,17 +14568,17 @@ var require_pkg_src = __commonJS({
|
|
|
14568
14568
|
}
|
|
14569
14569
|
},
|
|
14570
14570
|
btcWithdrawal: {
|
|
14571
|
-
cid: "
|
|
14571
|
+
cid: "QmSzTK5gM9tp1Mp4UGwu7iHQYMkxtyjmtbEDvETG9A38ge",
|
|
14572
14572
|
authorizedCidHex: cidToHex(
|
|
14573
|
-
"
|
|
14573
|
+
"QmSzTK5gM9tp1Mp4UGwu7iHQYMkxtyjmtbEDvETG9A38ge"
|
|
14574
14574
|
),
|
|
14575
14575
|
name: "Btc Withdrawal",
|
|
14576
14576
|
description: "Production Btc Withdrawal",
|
|
14577
|
-
version: "1.
|
|
14577
|
+
version: "1.6.0",
|
|
14578
14578
|
deployed: true,
|
|
14579
|
-
deployedAt:
|
|
14580
|
-
size:
|
|
14581
|
-
hash: "
|
|
14579
|
+
deployedAt: 1795563842248,
|
|
14580
|
+
size: 104402,
|
|
14581
|
+
hash: "3539732d8701c7473dbb7a8af0c23a085b7f7dff7171c74bd2587f6e95abb13d",
|
|
14582
14582
|
validatorWalletAddress: "0xEfb258D455a31d061Bbeb3DE3D2143BdFCB67a6C",
|
|
14583
14583
|
pkp: {
|
|
14584
14584
|
publicKey: "0x043616787c5432415c24378c4ef48de2bcd6bb7b575b837e3cff09171802662da7105d79586c7659677a0ecbaddac4cce06cb2a11f69a16fa0c4d7002ac7d51a4d",
|
|
@@ -14690,17 +14690,17 @@ var require_pkg_src = __commonJS({
|
|
|
14690
14690
|
hash: "03ee5be239c91c735d2c95db89a0d1b77e602cfc18af8eb64b3281fddcd90a72"
|
|
14691
14691
|
},
|
|
14692
14692
|
agentModuleExecutor: {
|
|
14693
|
-
cid: "
|
|
14693
|
+
cid: "QmQ1kQ6BsXALB48Lg1oUpnrfpQ5CtPjet2UG29MwcsRgPV",
|
|
14694
14694
|
authorizedCidHex: cidToHex(
|
|
14695
|
-
"
|
|
14695
|
+
"QmQ1kQ6BsXALB48Lg1oUpnrfpQ5CtPjet2UG29MwcsRgPV"
|
|
14696
14696
|
),
|
|
14697
14697
|
name: "Agent Module Executor",
|
|
14698
14698
|
description: "Production Agent Module Executor",
|
|
14699
|
-
version: "1.
|
|
14699
|
+
version: "1.5.0",
|
|
14700
14700
|
deployed: true,
|
|
14701
|
-
deployedAt:
|
|
14702
|
-
size:
|
|
14703
|
-
hash: "
|
|
14701
|
+
deployedAt: 1795563851831,
|
|
14702
|
+
size: 22663,
|
|
14703
|
+
hash: "4a7163e7f04ed1477ea36264f85dd698a7f2bdf096b219b60fae0697bbe10f45"
|
|
14704
14704
|
},
|
|
14705
14705
|
staleSpendRecoveryValidator: {
|
|
14706
14706
|
cid: "QmbEwx37vbQ3PNTWbAqMw9UsCcxNaBeYtJUopmjGQdCZ3R",
|
|
@@ -14721,47 +14721,47 @@ var require_pkg_src = __commonJS({
|
|
|
14721
14721
|
}
|
|
14722
14722
|
},
|
|
14723
14723
|
btcUtxoInvalidator: {
|
|
14724
|
-
cid: "
|
|
14724
|
+
cid: "QmUNWrxPBzSDiNNN4QjfAz2wCNTDFYSYbYpc46LggdFLSK",
|
|
14725
14725
|
authorizedCidHex: cidToHex(
|
|
14726
|
-
"
|
|
14726
|
+
"QmUNWrxPBzSDiNNN4QjfAz2wCNTDFYSYbYpc46LggdFLSK"
|
|
14727
14727
|
),
|
|
14728
14728
|
name: "Btc Utxo Invalidator",
|
|
14729
14729
|
description: "Production Btc Utxo Invalidator",
|
|
14730
|
-
version: "1.
|
|
14730
|
+
version: "1.4.0",
|
|
14731
14731
|
deployed: true,
|
|
14732
|
-
deployedAt:
|
|
14733
|
-
size:
|
|
14734
|
-
hash: "
|
|
14732
|
+
deployedAt: 1795563863556,
|
|
14733
|
+
size: 75531,
|
|
14734
|
+
hash: "8f0fc05481bbdecee0355baea69a65052a7d973f6fcd2a8161c2273e7d235c81"
|
|
14735
14735
|
},
|
|
14736
14736
|
// 1.2.1 (audit 2026-11-14, H-3): pinned and attached to the Sepolia carry group (8) on 2026-11-15.
|
|
14737
14737
|
// The 1.2.0 CID QmbGLm5rivPBLeGTuiWyCLAio4WHt8XnmMGxxY3fuEEsxs signs the LIVE vault's domain for `chain: "hardhat"`:
|
|
14738
14738
|
// it is STILL in group 8 while the api keeper runs it, and MUST be removed from the group as soon as the api is
|
|
14739
14739
|
// deployed on this CID (tasks/todo.md, H-3 step 4 (a)).
|
|
14740
14740
|
carryCollateralAttestation: {
|
|
14741
|
-
cid: "
|
|
14741
|
+
cid: "QmaFKD7F9KPQBEfMhTuunw1L6zEQZijW5j5DPKtSaWqAHa",
|
|
14742
14742
|
authorizedCidHex: cidToHex(
|
|
14743
|
-
"
|
|
14743
|
+
"QmaFKD7F9KPQBEfMhTuunw1L6zEQZijW5j5DPKtSaWqAHa"
|
|
14744
14744
|
),
|
|
14745
14745
|
name: "Carry Collateral Attestation",
|
|
14746
14746
|
description: "LoanCarryVault collateral attestation (borrower, BTC vault, confirmed BTC)",
|
|
14747
|
-
version: "1.
|
|
14747
|
+
version: "1.3.0",
|
|
14748
14748
|
deployed: true,
|
|
14749
|
-
deployedAt:
|
|
14750
|
-
size:
|
|
14751
|
-
hash: "
|
|
14749
|
+
deployedAt: 1795563876975,
|
|
14750
|
+
size: 26918,
|
|
14751
|
+
hash: "5edef681e87905ef2e580aa0c29cb2bcd20dc0d9e9fe9cd668d9a61dcb596e2e"
|
|
14752
14752
|
},
|
|
14753
14753
|
backingAttestation: {
|
|
14754
|
-
cid: "
|
|
14754
|
+
cid: "Qma2CvUCvCfPxpskFwCac9ngfRZRnnTvTtSVi5BMLKaYxj",
|
|
14755
14755
|
authorizedCidHex: cidToHex(
|
|
14756
|
-
"
|
|
14756
|
+
"Qma2CvUCvCfPxpskFwCac9ngfRZRnnTvTtSVi5BMLKaYxj"
|
|
14757
14757
|
),
|
|
14758
14758
|
name: "Backing Attestation",
|
|
14759
14759
|
description: "BackingOracle report: BTC collateral over loan UCD at a pinned block, from a keeper snapshot the action verifies",
|
|
14760
|
-
version: "
|
|
14760
|
+
version: "2.0.0",
|
|
14761
14761
|
deployed: true,
|
|
14762
|
-
deployedAt:
|
|
14763
|
-
size:
|
|
14764
|
-
hash: "
|
|
14762
|
+
deployedAt: 1795632828899,
|
|
14763
|
+
size: 22464,
|
|
14764
|
+
hash: "79abbd41198c38a5d22cab235ef8d372699d1f4606b0be093c78d6d41a19b8bc"
|
|
14765
14765
|
},
|
|
14766
14766
|
// Carry capital lock plan, Step 4: its own wallet in the Sepolia carry group (8), registered in OAR for the
|
|
14767
14767
|
// makePaymentFrom selector. 1.0.1 (audit 2026-11-14: the RPC must report the policy chain) pinned and attached to
|
|
@@ -14790,17 +14790,17 @@ var require_pkg_src = __commonJS({
|
|
|
14790
14790
|
// the automation group (SEPOLIA_LIT_AGENT_AUTOMATION_GROUP_ID) — and to no other. It signs with each borrower's
|
|
14791
14791
|
// AGENT key (no wallet of its own).
|
|
14792
14792
|
agentAutomation: {
|
|
14793
|
-
cid: "
|
|
14793
|
+
cid: "QmXZT3ciN66puZPuQrXqNmST6jWAHeBjZiAiEPMDYdhTkk",
|
|
14794
14794
|
authorizedCidHex: cidToHex(
|
|
14795
|
-
"
|
|
14795
|
+
"QmXZT3ciN66puZPuQrXqNmST6jWAHeBjZiAiEPMDYdhTkk"
|
|
14796
14796
|
),
|
|
14797
14797
|
name: "Agent Automation",
|
|
14798
14798
|
description: "Signs the one loan or hedge operation a delegated agent owes (rescue repay, renew, hedge top-up, release)",
|
|
14799
|
-
version: "1.
|
|
14799
|
+
version: "1.1.0",
|
|
14800
14800
|
deployed: true,
|
|
14801
|
-
deployedAt:
|
|
14802
|
-
size:
|
|
14803
|
-
hash: "
|
|
14801
|
+
deployedAt: 1795563899351,
|
|
14802
|
+
size: 45461,
|
|
14803
|
+
hash: "be49824356466e6c3bbcfc02708e3bd9819607b9c9b0543403bc0f2d5d54944d"
|
|
14804
14804
|
}
|
|
14805
14805
|
};
|
|
14806
14806
|
function getDeploymentsForNetwork(network) {
|
|
@@ -26649,6 +26649,24 @@ var require_async_request_util = __commonJS({
|
|
|
26649
26649
|
}
|
|
26650
26650
|
});
|
|
26651
26651
|
|
|
26652
|
+
// node_modules/@gvnrdao/dh-lit-ops/dist/utils/lit-core-host.js
|
|
26653
|
+
var require_lit_core_host = __commonJS({
|
|
26654
|
+
"node_modules/@gvnrdao/dh-lit-ops/dist/utils/lit-core-host.js"(exports2) {
|
|
26655
|
+
"use strict";
|
|
26656
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
26657
|
+
exports2.DEFAULT_LIT_CORE_HOST = void 0;
|
|
26658
|
+
exports2.litCoreHost = litCoreHost;
|
|
26659
|
+
exports2.litCoreApiBase = litCoreApiBase;
|
|
26660
|
+
exports2.DEFAULT_LIT_CORE_HOST = "https://api2.chipotle.litprotocol.com";
|
|
26661
|
+
function litCoreHost(explicit) {
|
|
26662
|
+
return (explicit || process.env.LIT_CORE_API_BASE_URL || exports2.DEFAULT_LIT_CORE_HOST).replace(/\/+$/, "");
|
|
26663
|
+
}
|
|
26664
|
+
function litCoreApiBase(explicit) {
|
|
26665
|
+
return `${litCoreHost(explicit)}/core/v1`;
|
|
26666
|
+
}
|
|
26667
|
+
}
|
|
26668
|
+
});
|
|
26669
|
+
|
|
26652
26670
|
// node_modules/@gvnrdao/dh-lit-ops/dist/utils/lit-core-lit-action-client.js
|
|
26653
26671
|
var require_lit_core_lit_action_client = __commonJS({
|
|
26654
26672
|
"node_modules/@gvnrdao/dh-lit-ops/dist/utils/lit-core-lit-action-client.js"(exports2) {
|
|
@@ -26660,6 +26678,7 @@ var require_lit_core_lit_action_client = __commonJS({
|
|
|
26660
26678
|
exports2.isCoreApiTransportError = isCoreApiTransportError;
|
|
26661
26679
|
exports2.executeLitActionViaCoreApi = executeLitActionViaCoreApi;
|
|
26662
26680
|
var fetch_lit_action_from_ipfs_1 = require_fetch_lit_action_from_ipfs();
|
|
26681
|
+
var lit_core_host_1 = require_lit_core_host();
|
|
26663
26682
|
function parseResponsePayload(raw) {
|
|
26664
26683
|
if (raw == null)
|
|
26665
26684
|
return raw;
|
|
@@ -26705,8 +26724,7 @@ var require_lit_core_lit_action_client = __commonJS({
|
|
|
26705
26724
|
};
|
|
26706
26725
|
}
|
|
26707
26726
|
function resolveLitCoreBaseUrl(explicit) {
|
|
26708
|
-
|
|
26709
|
-
return (explicit || fromEnv || "https://api.chipotle.litprotocol.com").replace(/\/$/, "");
|
|
26727
|
+
return (0, lit_core_host_1.litCoreHost)(explicit);
|
|
26710
26728
|
}
|
|
26711
26729
|
exports2.CORE_API_TRANSPORT_FAILURE_MARKER = "Lit Core lit_action transport failure";
|
|
26712
26730
|
function describeErrorWithCause(e) {
|
|
@@ -26857,6 +26875,7 @@ var require_lit_ops_module = __commonJS({
|
|
|
26857
26875
|
var mainnet_validator_wallets_1 = require_mainnet_validator_wallets();
|
|
26858
26876
|
var lane_overrides_1 = require_lane_overrides();
|
|
26859
26877
|
var async_request_util_1 = require_async_request_util();
|
|
26878
|
+
var lit_core_host_1 = require_lit_core_host();
|
|
26860
26879
|
var crypto_1 = require("crypto");
|
|
26861
26880
|
var lit_core_lit_action_client_1 = require_lit_core_lit_action_client();
|
|
26862
26881
|
var PKP_VAULT_ATTESTATION_TYPES = {
|
|
@@ -29670,7 +29689,7 @@ var require_lit_ops_module = __commonJS({
|
|
|
29670
29689
|
}
|
|
29671
29690
|
};
|
|
29672
29691
|
exports2.LitOps = LitOps2;
|
|
29673
|
-
LitOps2.LIT_CORE_API_BASE =
|
|
29692
|
+
LitOps2.LIT_CORE_API_BASE = (0, lit_core_host_1.litCoreApiBase)();
|
|
29674
29693
|
}
|
|
29675
29694
|
});
|
|
29676
29695
|
|
|
@@ -42106,6 +42125,9 @@ function boundaryError(code, message, extra) {
|
|
|
42106
42125
|
// src/boundary/config.ts
|
|
42107
42126
|
function carryEndpoints(config) {
|
|
42108
42127
|
if (config.network === "mainnet") {
|
|
42128
|
+
if (config.servedNetworks !== void 0 && !config.servedNetworks.includes("sepolia")) {
|
|
42129
|
+
return { ok: false, reason: "Carry is not deployed on mainnet yet, and this connector serves mainnet only \u2014 Carry is not available on this connector" };
|
|
42130
|
+
}
|
|
42109
42131
|
return { ok: false, reason: "Carry is not deployed on mainnet yet \u2014 the carry_* tools act on sepolia (switch with network_switch)" };
|
|
42110
42132
|
}
|
|
42111
42133
|
const apiBase = config.carryApiBase ?? "https://api-test.gvnr.xyz";
|
|
@@ -42654,6 +42676,20 @@ var CarryCore = class {
|
|
|
42654
42676
|
}
|
|
42655
42677
|
const auth = await this.deps.requireBorrower();
|
|
42656
42678
|
if (!auth.ok) return errEnvelope(auth.error);
|
|
42679
|
+
const owned = await this.deps.plugin.chain.getPositionDetails(p.loanId);
|
|
42680
|
+
if (!owned.ok) return errEnvelope(this.deps.failureToError(owned.failure));
|
|
42681
|
+
if (owned.value === null) {
|
|
42682
|
+
return errEnvelope(boundaryError("NOT_FOUND", `Loan ${p.loanId} does not exist on the authoritative source \u2014 nothing was signed. Check the loan id with position_list.`, { source: owned.source.id }));
|
|
42683
|
+
}
|
|
42684
|
+
if (owned.value.borrower.toLowerCase() !== auth.borrower.toLowerCase()) {
|
|
42685
|
+
return errEnvelope(
|
|
42686
|
+
boundaryError(
|
|
42687
|
+
"UPSTREAM_REJECTED",
|
|
42688
|
+
`Loan ${p.loanId} does not belong to the connected wallet ${auth.borrower} \u2014 nothing was signed, and no UCD was sold. Check the loan id with position_list; Carry can only be funded for a loan you own.`,
|
|
42689
|
+
{ source: owned.source.id }
|
|
42690
|
+
)
|
|
42691
|
+
);
|
|
42692
|
+
}
|
|
42657
42693
|
let amountUcdWei;
|
|
42658
42694
|
let quoteUsdc;
|
|
42659
42695
|
if (p.amountUcd !== void 0) {
|
|
@@ -62347,30 +62383,30 @@ var require_pkg_src2 = __commonJS2({
|
|
|
62347
62383
|
}
|
|
62348
62384
|
},
|
|
62349
62385
|
btcTransactionSigner: {
|
|
62350
|
-
cid: "
|
|
62386
|
+
cid: "QmSTRJ5MzhJQ3mBJHys8mgBfn3yQtP5hu3wo2WzvJxafxs",
|
|
62351
62387
|
authorizedCidHex: cidToHex(
|
|
62352
|
-
"
|
|
62388
|
+
"QmSTRJ5MzhJQ3mBJHys8mgBfn3yQtP5hu3wo2WzvJxafxs"
|
|
62353
62389
|
),
|
|
62354
62390
|
name: "Btc Transaction Signer",
|
|
62355
62391
|
description: "Production Btc Transaction Signer",
|
|
62356
|
-
version: "1.
|
|
62392
|
+
version: "1.5.0",
|
|
62357
62393
|
deployed: true,
|
|
62358
|
-
deployedAt:
|
|
62359
|
-
size:
|
|
62360
|
-
hash: "
|
|
62394
|
+
deployedAt: 1795563786470,
|
|
62395
|
+
size: 83923,
|
|
62396
|
+
hash: "a0b1a1a349d7594a4a8e9b0a360ba3964099d4c35831a530205ec5f0c7fb624c"
|
|
62361
62397
|
},
|
|
62362
62398
|
ucdMintValidator: {
|
|
62363
|
-
cid: "
|
|
62399
|
+
cid: "QmQB3ftrLLfrMs1XVzyzGBuVmCPU7ePfDU9vtFhjFi62pn",
|
|
62364
62400
|
authorizedCidHex: cidToHex(
|
|
62365
|
-
"
|
|
62401
|
+
"QmQB3ftrLLfrMs1XVzyzGBuVmCPU7ePfDU9vtFhjFi62pn"
|
|
62366
62402
|
),
|
|
62367
62403
|
name: "Ucd Mint Validator",
|
|
62368
62404
|
description: "Production Ucd Mint Validator",
|
|
62369
|
-
version: "1.
|
|
62405
|
+
version: "1.7.0",
|
|
62370
62406
|
deployed: true,
|
|
62371
|
-
deployedAt:
|
|
62372
|
-
size:
|
|
62373
|
-
hash: "
|
|
62407
|
+
deployedAt: 1795563807907,
|
|
62408
|
+
size: 93075,
|
|
62409
|
+
hash: "fd1dba7ba6cab4022b8e7be4b9812a04b2e9baab90c864d57bb51ea7354f426f",
|
|
62374
62410
|
validatorWalletAddress: "0xEfb258D455a31d061Bbeb3DE3D2143BdFCB67a6C",
|
|
62375
62411
|
pkp: {
|
|
62376
62412
|
publicKey: "0x041ab17cd91fc5c0b761eea6092d032807561b621b82c488826776e04a9158d61ba64d809a4729f0501289d980732cb06d8dfd06999dd9c8efd2f495dad78b31bb",
|
|
@@ -62378,17 +62414,17 @@ var require_pkg_src2 = __commonJS2({
|
|
|
62378
62414
|
}
|
|
62379
62415
|
},
|
|
62380
62416
|
processPaymentValidator: {
|
|
62381
|
-
cid: "
|
|
62417
|
+
cid: "Qmeq2rArEzMumTYN8PssuvRUZACk6kjzP9pgMtA7NnpiC7",
|
|
62382
62418
|
authorizedCidHex: cidToHex(
|
|
62383
|
-
"
|
|
62419
|
+
"Qmeq2rArEzMumTYN8PssuvRUZACk6kjzP9pgMtA7NnpiC7"
|
|
62384
62420
|
),
|
|
62385
62421
|
name: "Process Payment Validator",
|
|
62386
62422
|
description: "Production Process Payment Validator",
|
|
62387
|
-
version: "1.
|
|
62423
|
+
version: "1.4.0",
|
|
62388
62424
|
deployed: true,
|
|
62389
|
-
deployedAt:
|
|
62390
|
-
size:
|
|
62391
|
-
hash: "
|
|
62425
|
+
deployedAt: 1795563821504,
|
|
62426
|
+
size: 88235,
|
|
62427
|
+
hash: "d78862dc1574a04818f2fd824394f2efab70e9674defc88b234a03862982ddda",
|
|
62392
62428
|
validatorWalletAddress: "0xEfb258D455a31d061Bbeb3DE3D2143BdFCB67a6C",
|
|
62393
62429
|
pkp: {
|
|
62394
62430
|
publicKey: "0x04cfccb9b6c7addc79469c0e9fafebef4c70801302c62cdb26b610723a9b8527d23f98a40158c7340d83fd0e62d02b5ec74c12f7a86d98e8c6973b4811110f19ad",
|
|
@@ -62396,17 +62432,17 @@ var require_pkg_src2 = __commonJS2({
|
|
|
62396
62432
|
}
|
|
62397
62433
|
},
|
|
62398
62434
|
extendPositionValidator: {
|
|
62399
|
-
cid: "
|
|
62435
|
+
cid: "QmZsLdkD6VdpBCseW2LsXGW7SYDMezq8NgWUQjVVbDXCLj",
|
|
62400
62436
|
authorizedCidHex: cidToHex(
|
|
62401
|
-
"
|
|
62437
|
+
"QmZsLdkD6VdpBCseW2LsXGW7SYDMezq8NgWUQjVVbDXCLj"
|
|
62402
62438
|
),
|
|
62403
62439
|
name: "Extend Position Validator",
|
|
62404
62440
|
description: "Production Extend Position Validator",
|
|
62405
|
-
version: "1.
|
|
62441
|
+
version: "1.4.0",
|
|
62406
62442
|
deployed: true,
|
|
62407
|
-
deployedAt:
|
|
62408
|
-
size:
|
|
62409
|
-
hash: "
|
|
62443
|
+
deployedAt: 1795563831913,
|
|
62444
|
+
size: 85511,
|
|
62445
|
+
hash: "44ee02e254b28271a851bd26a12334d0302b27877029c3824eb406e0df697fd1",
|
|
62410
62446
|
validatorWalletAddress: "0xEfb258D455a31d061Bbeb3DE3D2143BdFCB67a6C",
|
|
62411
62447
|
pkp: {
|
|
62412
62448
|
publicKey: "0x04e52338f6a0c3362800f1a94c4c8f08be5030dde0fa217388c53d1c1a4790f4443c9f2886b2d2d8f4b75a9a156e9b028011b1a1cf7648da0e556aa980ec692836",
|
|
@@ -62414,17 +62450,17 @@ var require_pkg_src2 = __commonJS2({
|
|
|
62414
62450
|
}
|
|
62415
62451
|
},
|
|
62416
62452
|
btcWithdrawal: {
|
|
62417
|
-
cid: "
|
|
62453
|
+
cid: "QmSzTK5gM9tp1Mp4UGwu7iHQYMkxtyjmtbEDvETG9A38ge",
|
|
62418
62454
|
authorizedCidHex: cidToHex(
|
|
62419
|
-
"
|
|
62455
|
+
"QmSzTK5gM9tp1Mp4UGwu7iHQYMkxtyjmtbEDvETG9A38ge"
|
|
62420
62456
|
),
|
|
62421
62457
|
name: "Btc Withdrawal",
|
|
62422
62458
|
description: "Production Btc Withdrawal",
|
|
62423
|
-
version: "1.
|
|
62459
|
+
version: "1.6.0",
|
|
62424
62460
|
deployed: true,
|
|
62425
|
-
deployedAt:
|
|
62426
|
-
size:
|
|
62427
|
-
hash: "
|
|
62461
|
+
deployedAt: 1795563842248,
|
|
62462
|
+
size: 104402,
|
|
62463
|
+
hash: "3539732d8701c7473dbb7a8af0c23a085b7f7dff7171c74bd2587f6e95abb13d",
|
|
62428
62464
|
validatorWalletAddress: "0xEfb258D455a31d061Bbeb3DE3D2143BdFCB67a6C",
|
|
62429
62465
|
pkp: {
|
|
62430
62466
|
publicKey: "0x043616787c5432415c24378c4ef48de2bcd6bb7b575b837e3cff09171802662da7105d79586c7659677a0ecbaddac4cce06cb2a11f69a16fa0c4d7002ac7d51a4d",
|
|
@@ -62536,17 +62572,17 @@ var require_pkg_src2 = __commonJS2({
|
|
|
62536
62572
|
hash: "03ee5be239c91c735d2c95db89a0d1b77e602cfc18af8eb64b3281fddcd90a72"
|
|
62537
62573
|
},
|
|
62538
62574
|
agentModuleExecutor: {
|
|
62539
|
-
cid: "
|
|
62575
|
+
cid: "QmQ1kQ6BsXALB48Lg1oUpnrfpQ5CtPjet2UG29MwcsRgPV",
|
|
62540
62576
|
authorizedCidHex: cidToHex(
|
|
62541
|
-
"
|
|
62577
|
+
"QmQ1kQ6BsXALB48Lg1oUpnrfpQ5CtPjet2UG29MwcsRgPV"
|
|
62542
62578
|
),
|
|
62543
62579
|
name: "Agent Module Executor",
|
|
62544
62580
|
description: "Production Agent Module Executor",
|
|
62545
|
-
version: "1.
|
|
62581
|
+
version: "1.5.0",
|
|
62546
62582
|
deployed: true,
|
|
62547
|
-
deployedAt:
|
|
62548
|
-
size:
|
|
62549
|
-
hash: "
|
|
62583
|
+
deployedAt: 1795563851831,
|
|
62584
|
+
size: 22663,
|
|
62585
|
+
hash: "4a7163e7f04ed1477ea36264f85dd698a7f2bdf096b219b60fae0697bbe10f45"
|
|
62550
62586
|
},
|
|
62551
62587
|
staleSpendRecoveryValidator: {
|
|
62552
62588
|
cid: "QmbEwx37vbQ3PNTWbAqMw9UsCcxNaBeYtJUopmjGQdCZ3R",
|
|
@@ -62567,47 +62603,47 @@ var require_pkg_src2 = __commonJS2({
|
|
|
62567
62603
|
}
|
|
62568
62604
|
},
|
|
62569
62605
|
btcUtxoInvalidator: {
|
|
62570
|
-
cid: "
|
|
62606
|
+
cid: "QmUNWrxPBzSDiNNN4QjfAz2wCNTDFYSYbYpc46LggdFLSK",
|
|
62571
62607
|
authorizedCidHex: cidToHex(
|
|
62572
|
-
"
|
|
62608
|
+
"QmUNWrxPBzSDiNNN4QjfAz2wCNTDFYSYbYpc46LggdFLSK"
|
|
62573
62609
|
),
|
|
62574
62610
|
name: "Btc Utxo Invalidator",
|
|
62575
62611
|
description: "Production Btc Utxo Invalidator",
|
|
62576
|
-
version: "1.
|
|
62612
|
+
version: "1.4.0",
|
|
62577
62613
|
deployed: true,
|
|
62578
|
-
deployedAt:
|
|
62579
|
-
size:
|
|
62580
|
-
hash: "
|
|
62614
|
+
deployedAt: 1795563863556,
|
|
62615
|
+
size: 75531,
|
|
62616
|
+
hash: "8f0fc05481bbdecee0355baea69a65052a7d973f6fcd2a8161c2273e7d235c81"
|
|
62581
62617
|
},
|
|
62582
62618
|
// 1.2.1 (audit 2026-11-14, H-3): pinned and attached to the Sepolia carry group (8) on 2026-11-15.
|
|
62583
62619
|
// The 1.2.0 CID QmbGLm5rivPBLeGTuiWyCLAio4WHt8XnmMGxxY3fuEEsxs signs the LIVE vault's domain for `chain: "hardhat"`:
|
|
62584
62620
|
// it is STILL in group 8 while the api keeper runs it, and MUST be removed from the group as soon as the api is
|
|
62585
62621
|
// deployed on this CID (tasks/todo.md, H-3 step 4 (a)).
|
|
62586
62622
|
carryCollateralAttestation: {
|
|
62587
|
-
cid: "
|
|
62623
|
+
cid: "QmaFKD7F9KPQBEfMhTuunw1L6zEQZijW5j5DPKtSaWqAHa",
|
|
62588
62624
|
authorizedCidHex: cidToHex(
|
|
62589
|
-
"
|
|
62625
|
+
"QmaFKD7F9KPQBEfMhTuunw1L6zEQZijW5j5DPKtSaWqAHa"
|
|
62590
62626
|
),
|
|
62591
62627
|
name: "Carry Collateral Attestation",
|
|
62592
62628
|
description: "LoanCarryVault collateral attestation (borrower, BTC vault, confirmed BTC)",
|
|
62593
|
-
version: "1.
|
|
62629
|
+
version: "1.3.0",
|
|
62594
62630
|
deployed: true,
|
|
62595
|
-
deployedAt:
|
|
62596
|
-
size:
|
|
62597
|
-
hash: "
|
|
62631
|
+
deployedAt: 1795563876975,
|
|
62632
|
+
size: 26918,
|
|
62633
|
+
hash: "5edef681e87905ef2e580aa0c29cb2bcd20dc0d9e9fe9cd668d9a61dcb596e2e"
|
|
62598
62634
|
},
|
|
62599
62635
|
backingAttestation: {
|
|
62600
|
-
cid: "
|
|
62636
|
+
cid: "Qma2CvUCvCfPxpskFwCac9ngfRZRnnTvTtSVi5BMLKaYxj",
|
|
62601
62637
|
authorizedCidHex: cidToHex(
|
|
62602
|
-
"
|
|
62638
|
+
"Qma2CvUCvCfPxpskFwCac9ngfRZRnnTvTtSVi5BMLKaYxj"
|
|
62603
62639
|
),
|
|
62604
62640
|
name: "Backing Attestation",
|
|
62605
62641
|
description: "BackingOracle report: BTC collateral over loan UCD at a pinned block, from a keeper snapshot the action verifies",
|
|
62606
|
-
version: "
|
|
62642
|
+
version: "2.0.0",
|
|
62607
62643
|
deployed: true,
|
|
62608
|
-
deployedAt:
|
|
62609
|
-
size:
|
|
62610
|
-
hash: "
|
|
62644
|
+
deployedAt: 1795632828899,
|
|
62645
|
+
size: 22464,
|
|
62646
|
+
hash: "79abbd41198c38a5d22cab235ef8d372699d1f4606b0be093c78d6d41a19b8bc"
|
|
62611
62647
|
},
|
|
62612
62648
|
// Carry capital lock plan, Step 4: its own wallet in the Sepolia carry group (8), registered in OAR for the
|
|
62613
62649
|
// makePaymentFrom selector. 1.0.1 (audit 2026-11-14: the RPC must report the policy chain) pinned and attached to
|
|
@@ -62636,17 +62672,17 @@ var require_pkg_src2 = __commonJS2({
|
|
|
62636
62672
|
// the automation group (SEPOLIA_LIT_AGENT_AUTOMATION_GROUP_ID) — and to no other. It signs with each borrower's
|
|
62637
62673
|
// AGENT key (no wallet of its own).
|
|
62638
62674
|
agentAutomation: {
|
|
62639
|
-
cid: "
|
|
62675
|
+
cid: "QmXZT3ciN66puZPuQrXqNmST6jWAHeBjZiAiEPMDYdhTkk",
|
|
62640
62676
|
authorizedCidHex: cidToHex(
|
|
62641
|
-
"
|
|
62677
|
+
"QmXZT3ciN66puZPuQrXqNmST6jWAHeBjZiAiEPMDYdhTkk"
|
|
62642
62678
|
),
|
|
62643
62679
|
name: "Agent Automation",
|
|
62644
62680
|
description: "Signs the one loan or hedge operation a delegated agent owes (rescue repay, renew, hedge top-up, release)",
|
|
62645
|
-
version: "1.
|
|
62681
|
+
version: "1.1.0",
|
|
62646
62682
|
deployed: true,
|
|
62647
|
-
deployedAt:
|
|
62648
|
-
size:
|
|
62649
|
-
hash: "
|
|
62683
|
+
deployedAt: 1795563899351,
|
|
62684
|
+
size: 45461,
|
|
62685
|
+
hash: "be49824356466e6c3bbcfc02708e3bd9819607b9c9b0543403bc0f2d5d54944d"
|
|
62650
62686
|
}
|
|
62651
62687
|
};
|
|
62652
62688
|
function getDeploymentsForNetwork(network) {
|
|
@@ -85134,6 +85170,10 @@ async function safeWaitForTransaction(tx2, confirmations = 1, timeout = 6e4) {
|
|
|
85134
85170
|
}
|
|
85135
85171
|
throw new Error(`Transaction ${txHash} confirmation timed out after ${timeout}ms`);
|
|
85136
85172
|
}
|
|
85173
|
+
var SAFE_IDENTITY_ABI = [
|
|
85174
|
+
"function getThreshold() view returns (uint256)",
|
|
85175
|
+
"function getOwners() view returns (address[])"
|
|
85176
|
+
];
|
|
85137
85177
|
var POSITION_NOT_FOUND_SELECTOR = "0x6ec9be11";
|
|
85138
85178
|
var DiamondHandsSDK = class _DiamondHandsSDK {
|
|
85139
85179
|
config;
|
|
@@ -92622,7 +92662,8 @@ Message: ${causeMessage}${quantumContext}${loanCapDiagnostics}${mintDebtDiagnost
|
|
|
92622
92662
|
/* HIGH */
|
|
92623
92663
|
});
|
|
92624
92664
|
}
|
|
92625
|
-
const
|
|
92665
|
+
const provider = this.getProviderOrThrow();
|
|
92666
|
+
const code = await provider.getCode(borrower);
|
|
92626
92667
|
if (!code || code === "0x") {
|
|
92627
92668
|
throw new SDKError({
|
|
92628
92669
|
message: `Withdrawal delegation is only available to contract wallets. Borrower ${borrower} is an EOA, and the withdrawal validator has no delegate arm for one \u2014 an EOA can sign inside the withdrawal quantum window itself, so the grant would be recorded on-chain and never honoured.`,
|
|
@@ -92631,6 +92672,31 @@ Message: ${causeMessage}${quantumContext}${loanCapDiagnostics}${mintDebtDiagnost
|
|
|
92631
92672
|
/* MEDIUM */
|
|
92632
92673
|
});
|
|
92633
92674
|
}
|
|
92675
|
+
if (code.toLowerCase().startsWith("0xef0100")) {
|
|
92676
|
+
throw new SDKError({
|
|
92677
|
+
message: `Withdrawal delegation is only available to Safe wallets. Borrower ${borrower} is an EIP-7702-delegated EOA (code ${code}), not a Safe \u2014 the withdrawal validator has no delegate arm for it, so the grant would be recorded on-chain and never honoured.`,
|
|
92678
|
+
category: "VALIDATION",
|
|
92679
|
+
severity: "MEDIUM"
|
|
92680
|
+
/* MEDIUM */
|
|
92681
|
+
});
|
|
92682
|
+
}
|
|
92683
|
+
const safe = new import_ethers25.Contract(borrower, SAFE_IDENTITY_ABI, provider);
|
|
92684
|
+
const answered = await Promise.all([safe.getThreshold(), safe.getOwners()]).then(
|
|
92685
|
+
() => true,
|
|
92686
|
+
(error) => {
|
|
92687
|
+
if ((0, import_ethers25.isError)(error, "CALL_EXCEPTION") || (0, import_ethers25.isError)(error, "BAD_DATA"))
|
|
92688
|
+
return false;
|
|
92689
|
+
throw error;
|
|
92690
|
+
}
|
|
92691
|
+
);
|
|
92692
|
+
if (!answered) {
|
|
92693
|
+
throw new SDKError({
|
|
92694
|
+
message: `Withdrawal delegation is only available to Safe wallets. Borrower ${borrower} has contract code but does not answer getThreshold()/getOwners(), so it is not a Safe \u2014 the withdrawal validator has no delegate arm for it and the grant would never be honoured.`,
|
|
92695
|
+
category: "VALIDATION",
|
|
92696
|
+
severity: "MEDIUM"
|
|
92697
|
+
/* MEDIUM */
|
|
92698
|
+
});
|
|
92699
|
+
}
|
|
92634
92700
|
}
|
|
92635
92701
|
/**
|
|
92636
92702
|
* Pre-flight the registry's `FloorBelowProtocolMin` guard with a message a user can act on.
|
|
@@ -100301,7 +100367,8 @@ function createBoundary(config, opts) {
|
|
|
100301
100367
|
}
|
|
100302
100368
|
};
|
|
100303
100369
|
}
|
|
100304
|
-
async function createRealBoundary(
|
|
100370
|
+
async function createRealBoundary(bootConfig, wallet, overrides) {
|
|
100371
|
+
const config = overrides?.allowedNetworks ? { ...bootConfig, servedNetworks: overrides.allowedNetworks } : bootConfig;
|
|
100305
100372
|
const externalOnly = overrides?.externalOnly === true;
|
|
100306
100373
|
const keystore = externalOnly ? null : new KeystoreProvider({
|
|
100307
100374
|
...config.keystorePath ? { keystorePath: config.keystorePath } : {},
|