@gvnrdao/dh-sdk 0.0.234 → 0.0.235
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 +18 -14
- package/dist/index.mjs +18 -14
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14322,7 +14322,9 @@ var init_deployment_addresses = __esm({
|
|
|
14322
14322
|
LITActionValidator: "0x54eECd7C90F8A8fac27749Ba30BbE8AFBAccc856",
|
|
14323
14323
|
SimplePSMV2: "0x19EcF7BA26e054fd4Ff06009A03070103dbBB058",
|
|
14324
14324
|
BitcoinProviderRegistry: "0xbfA0c48B070D0a9A9CD27469AeacFD2d4261cEE2",
|
|
14325
|
-
ContractVersionRegistry: "0x97E43AA6aFF2C0cf659d3aE501658D2Ef6777522"
|
|
14325
|
+
ContractVersionRegistry: "0x97E43AA6aFF2C0cf659d3aE501658D2Ef6777522",
|
|
14326
|
+
mockUsdcToken: "0x96409A98e0D322d6566b7F44a0fAbD1BD4ce2AEc",
|
|
14327
|
+
mockUsdtToken: "0xF8b7fB38b17a310960E47805Be9adba0b0e0394D"
|
|
14326
14328
|
},
|
|
14327
14329
|
upgraded: {
|
|
14328
14330
|
PositionManager: {
|
|
@@ -14332,11 +14334,11 @@ var init_deployment_addresses = __esm({
|
|
|
14332
14334
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6"
|
|
14333
14335
|
},
|
|
14334
14336
|
LoanOperationsManagerModule: {
|
|
14335
|
-
previousImplementation: "
|
|
14336
|
-
newImplementation: "
|
|
14337
|
-
upgradedAt: "2026-05-
|
|
14337
|
+
previousImplementation: "0x8a795b082c002aC07fb43Db0ae8eF8bE653cc4bb",
|
|
14338
|
+
newImplementation: "0x3011d928c426764781b9638D34772d1C155F3194",
|
|
14339
|
+
upgradedAt: "2026-05-06T11:37:01.875Z",
|
|
14338
14340
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
14339
|
-
reason: "
|
|
14341
|
+
reason: "Shared upgrade script: LoanOperationsManagerModule implementation update"
|
|
14340
14342
|
},
|
|
14341
14343
|
UCDController: {
|
|
14342
14344
|
previousImplementation: "0xB5322F0D4a07d4342FA38137ebD95ac41D1c6036",
|
|
@@ -14502,7 +14504,7 @@ var init_deployment_addresses = __esm({
|
|
|
14502
14504
|
CIRCUIT_BREAKER_MODULE: "0x3D0B2cAE481821E57BA9CC3807bCC0d0D7F18bd8",
|
|
14503
14505
|
ADMIN_MODULE: "0xAcd1f07915b17CA3727e7fE89BdF618A1545a1ed",
|
|
14504
14506
|
UCD_CONTROLLER_IMPL: "0x2d4d689A70B56b6E0B9F70BffA6265A55173A4A1",
|
|
14505
|
-
LOAN_OPERATIONS_MANAGER_MODULE_IMPL: "
|
|
14507
|
+
LOAN_OPERATIONS_MANAGER_MODULE_IMPL: "0x3011d928c426764781b9638D34772d1C155F3194",
|
|
14506
14508
|
TERM_MANAGER_MODULE_IMPL: "0xcc3D2dD7aAfaE5DE923dfd53833a40077178dd75",
|
|
14507
14509
|
CIRCUIT_BREAKER_MODULE_IMPL: "0x8e9e10B14E6a91ec271FBEb4FD3fB1FE06b545dD",
|
|
14508
14510
|
ADMIN_MODULE_IMPL: "0x67AE2F872c37f33db9bC631e135432B2845d308b",
|
|
@@ -14549,7 +14551,9 @@ var init_deployment_addresses = __esm({
|
|
|
14549
14551
|
LITActionValidator: "0x54eECd7C90F8A8fac27749Ba30BbE8AFBAccc856",
|
|
14550
14552
|
SimplePSMV2: "0x19EcF7BA26e054fd4Ff06009A03070103dbBB058",
|
|
14551
14553
|
BitcoinProviderRegistry: "0xbfA0c48B070D0a9A9CD27469AeacFD2d4261cEE2",
|
|
14552
|
-
ContractVersionRegistry: "0x97E43AA6aFF2C0cf659d3aE501658D2Ef6777522"
|
|
14554
|
+
ContractVersionRegistry: "0x97E43AA6aFF2C0cf659d3aE501658D2Ef6777522",
|
|
14555
|
+
mockUsdcToken: "0x96409A98e0D322d6566b7F44a0fAbD1BD4ce2AEc",
|
|
14556
|
+
mockUsdtToken: "0xF8b7fB38b17a310960E47805Be9adba0b0e0394D"
|
|
14553
14557
|
};
|
|
14554
14558
|
LOCALHOST_DEPLOYMENT = {
|
|
14555
14559
|
network: "localhost",
|
|
@@ -42541,21 +42545,21 @@ Error data: ${errorData || "none"}`
|
|
|
42541
42545
|
try {
|
|
42542
42546
|
const signer = this.getSignerOrThrow();
|
|
42543
42547
|
const contractAddresses = this.getContractAddressesOrThrow();
|
|
42544
|
-
const
|
|
42545
|
-
if (!
|
|
42546
|
-
return { success: false, error: "
|
|
42548
|
+
const loanOperationsManagerAddress = contractAddresses.loanOperationsManager;
|
|
42549
|
+
if (!loanOperationsManagerAddress) {
|
|
42550
|
+
return { success: false, error: "LoanOperationsManager address not configured" };
|
|
42547
42551
|
}
|
|
42548
42552
|
const utxoKey = ethers_exports.utils.solidityKeccak256(
|
|
42549
42553
|
["string", "uint32"],
|
|
42550
42554
|
[txid, vout]
|
|
42551
42555
|
);
|
|
42552
|
-
const
|
|
42553
|
-
|
|
42554
|
-
["function
|
|
42556
|
+
const loanOperationsManager = new ethers_exports.Contract(
|
|
42557
|
+
loanOperationsManagerAddress,
|
|
42558
|
+
["function cancelStaleSpendByOwner(bytes32 positionId, bytes32 utxoKey) external"],
|
|
42555
42559
|
signer
|
|
42556
42560
|
);
|
|
42557
42561
|
const positionIdBytes32 = this.toBytes32(positionId);
|
|
42558
|
-
const tx = await
|
|
42562
|
+
const tx = await loanOperationsManager["cancelStaleSpendByOwner"](positionIdBytes32, utxoKey);
|
|
42559
42563
|
const receipt = await tx.wait();
|
|
42560
42564
|
return { success: true, transactionHash: receipt.transactionHash };
|
|
42561
42565
|
} catch (error) {
|
package/dist/index.mjs
CHANGED
|
@@ -14328,7 +14328,9 @@ var init_deployment_addresses = __esm({
|
|
|
14328
14328
|
LITActionValidator: "0x54eECd7C90F8A8fac27749Ba30BbE8AFBAccc856",
|
|
14329
14329
|
SimplePSMV2: "0x19EcF7BA26e054fd4Ff06009A03070103dbBB058",
|
|
14330
14330
|
BitcoinProviderRegistry: "0xbfA0c48B070D0a9A9CD27469AeacFD2d4261cEE2",
|
|
14331
|
-
ContractVersionRegistry: "0x97E43AA6aFF2C0cf659d3aE501658D2Ef6777522"
|
|
14331
|
+
ContractVersionRegistry: "0x97E43AA6aFF2C0cf659d3aE501658D2Ef6777522",
|
|
14332
|
+
mockUsdcToken: "0x96409A98e0D322d6566b7F44a0fAbD1BD4ce2AEc",
|
|
14333
|
+
mockUsdtToken: "0xF8b7fB38b17a310960E47805Be9adba0b0e0394D"
|
|
14332
14334
|
},
|
|
14333
14335
|
upgraded: {
|
|
14334
14336
|
PositionManager: {
|
|
@@ -14338,11 +14340,11 @@ var init_deployment_addresses = __esm({
|
|
|
14338
14340
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6"
|
|
14339
14341
|
},
|
|
14340
14342
|
LoanOperationsManagerModule: {
|
|
14341
|
-
previousImplementation: "
|
|
14342
|
-
newImplementation: "
|
|
14343
|
-
upgradedAt: "2026-05-
|
|
14343
|
+
previousImplementation: "0x8a795b082c002aC07fb43Db0ae8eF8bE653cc4bb",
|
|
14344
|
+
newImplementation: "0x3011d928c426764781b9638D34772d1C155F3194",
|
|
14345
|
+
upgradedAt: "2026-05-06T11:37:01.875Z",
|
|
14344
14346
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
14345
|
-
reason: "
|
|
14347
|
+
reason: "Shared upgrade script: LoanOperationsManagerModule implementation update"
|
|
14346
14348
|
},
|
|
14347
14349
|
UCDController: {
|
|
14348
14350
|
previousImplementation: "0xB5322F0D4a07d4342FA38137ebD95ac41D1c6036",
|
|
@@ -14508,7 +14510,7 @@ var init_deployment_addresses = __esm({
|
|
|
14508
14510
|
CIRCUIT_BREAKER_MODULE: "0x3D0B2cAE481821E57BA9CC3807bCC0d0D7F18bd8",
|
|
14509
14511
|
ADMIN_MODULE: "0xAcd1f07915b17CA3727e7fE89BdF618A1545a1ed",
|
|
14510
14512
|
UCD_CONTROLLER_IMPL: "0x2d4d689A70B56b6E0B9F70BffA6265A55173A4A1",
|
|
14511
|
-
LOAN_OPERATIONS_MANAGER_MODULE_IMPL: "
|
|
14513
|
+
LOAN_OPERATIONS_MANAGER_MODULE_IMPL: "0x3011d928c426764781b9638D34772d1C155F3194",
|
|
14512
14514
|
TERM_MANAGER_MODULE_IMPL: "0xcc3D2dD7aAfaE5DE923dfd53833a40077178dd75",
|
|
14513
14515
|
CIRCUIT_BREAKER_MODULE_IMPL: "0x8e9e10B14E6a91ec271FBEb4FD3fB1FE06b545dD",
|
|
14514
14516
|
ADMIN_MODULE_IMPL: "0x67AE2F872c37f33db9bC631e135432B2845d308b",
|
|
@@ -14555,7 +14557,9 @@ var init_deployment_addresses = __esm({
|
|
|
14555
14557
|
LITActionValidator: "0x54eECd7C90F8A8fac27749Ba30BbE8AFBAccc856",
|
|
14556
14558
|
SimplePSMV2: "0x19EcF7BA26e054fd4Ff06009A03070103dbBB058",
|
|
14557
14559
|
BitcoinProviderRegistry: "0xbfA0c48B070D0a9A9CD27469AeacFD2d4261cEE2",
|
|
14558
|
-
ContractVersionRegistry: "0x97E43AA6aFF2C0cf659d3aE501658D2Ef6777522"
|
|
14560
|
+
ContractVersionRegistry: "0x97E43AA6aFF2C0cf659d3aE501658D2Ef6777522",
|
|
14561
|
+
mockUsdcToken: "0x96409A98e0D322d6566b7F44a0fAbD1BD4ce2AEc",
|
|
14562
|
+
mockUsdtToken: "0xF8b7fB38b17a310960E47805Be9adba0b0e0394D"
|
|
14559
14563
|
};
|
|
14560
14564
|
LOCALHOST_DEPLOYMENT = {
|
|
14561
14565
|
network: "localhost",
|
|
@@ -42469,21 +42473,21 @@ Error data: ${errorData || "none"}`
|
|
|
42469
42473
|
try {
|
|
42470
42474
|
const signer = this.getSignerOrThrow();
|
|
42471
42475
|
const contractAddresses = this.getContractAddressesOrThrow();
|
|
42472
|
-
const
|
|
42473
|
-
if (!
|
|
42474
|
-
return { success: false, error: "
|
|
42476
|
+
const loanOperationsManagerAddress = contractAddresses.loanOperationsManager;
|
|
42477
|
+
if (!loanOperationsManagerAddress) {
|
|
42478
|
+
return { success: false, error: "LoanOperationsManager address not configured" };
|
|
42475
42479
|
}
|
|
42476
42480
|
const utxoKey = ethers_exports.utils.solidityKeccak256(
|
|
42477
42481
|
["string", "uint32"],
|
|
42478
42482
|
[txid, vout]
|
|
42479
42483
|
);
|
|
42480
|
-
const
|
|
42481
|
-
|
|
42482
|
-
["function
|
|
42484
|
+
const loanOperationsManager = new ethers_exports.Contract(
|
|
42485
|
+
loanOperationsManagerAddress,
|
|
42486
|
+
["function cancelStaleSpendByOwner(bytes32 positionId, bytes32 utxoKey) external"],
|
|
42483
42487
|
signer
|
|
42484
42488
|
);
|
|
42485
42489
|
const positionIdBytes32 = this.toBytes32(positionId);
|
|
42486
|
-
const tx = await
|
|
42490
|
+
const tx = await loanOperationsManager["cancelStaleSpendByOwner"](positionIdBytes32, utxoKey);
|
|
42487
42491
|
const receipt = await tx.wait();
|
|
42488
42492
|
return { success: true, transactionHash: receipt.transactionHash };
|
|
42489
42493
|
} catch (error) {
|
package/package.json
CHANGED