@gvnrdao/dh-sdk 0.0.229 → 0.0.230
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.
|
@@ -26,6 +26,7 @@ export interface DeploymentContracts {
|
|
|
26
26
|
BTCProofValidator?: string;
|
|
27
27
|
LITActionValidator?: string;
|
|
28
28
|
BitcoinProviderRegistry?: string;
|
|
29
|
+
ContractVersionRegistry?: string;
|
|
29
30
|
PriceFeedConsumer?: string;
|
|
30
31
|
OperationAuthorizationRegistry?: string;
|
|
31
32
|
PKPValidation?: string;
|
|
@@ -27,6 +27,7 @@ export interface NetworkConfig {
|
|
|
27
27
|
operationAuthorizationRegistry?: string;
|
|
28
28
|
btcSpendAuthorizer?: string;
|
|
29
29
|
bitcoinProviderRegistry?: string;
|
|
30
|
+
contractVersionRegistry?: string;
|
|
30
31
|
mockUsdcToken?: string;
|
|
31
32
|
mockUsdtToken?: string;
|
|
32
33
|
mockUsdcOwner?: string;
|
package/dist/index.js
CHANGED
|
@@ -14321,7 +14321,8 @@ var init_deployment_addresses = __esm({
|
|
|
14321
14321
|
BTCSpendAuthorizer: "0xd7E9Eb5eE53f1d9ee55Dc162bBC7486bE437B6bD",
|
|
14322
14322
|
LITActionValidator: "0x54eECd7C90F8A8fac27749Ba30BbE8AFBAccc856",
|
|
14323
14323
|
SimplePSMV2: "0x19EcF7BA26e054fd4Ff06009A03070103dbBB058",
|
|
14324
|
-
BitcoinProviderRegistry: "0xbfA0c48B070D0a9A9CD27469AeacFD2d4261cEE2"
|
|
14324
|
+
BitcoinProviderRegistry: "0xbfA0c48B070D0a9A9CD27469AeacFD2d4261cEE2",
|
|
14325
|
+
ContractVersionRegistry: "0x97E43AA6aFF2C0cf659d3aE501658D2Ef6777522"
|
|
14325
14326
|
},
|
|
14326
14327
|
upgraded: {
|
|
14327
14328
|
PositionManager: {
|
|
@@ -14381,9 +14382,9 @@ var init_deployment_addresses = __esm({
|
|
|
14381
14382
|
reason: "Add setPositionExpiry() for expiry-liquidation E2E testing"
|
|
14382
14383
|
},
|
|
14383
14384
|
UCDToken: {
|
|
14384
|
-
previousImplementation: "
|
|
14385
|
-
newImplementation: "
|
|
14386
|
-
upgradedAt: "2026-
|
|
14385
|
+
previousImplementation: "0x155Da00Ee0beb1d9D5BA34Aeb62c9ad4E8227d5D",
|
|
14386
|
+
newImplementation: "0xd681943e38275CF2c46Ec2498d49fF75E4C6cb74",
|
|
14387
|
+
upgradedAt: "2026-05-04T15:45:48.650Z",
|
|
14387
14388
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
14388
14389
|
reason: "Shared upgrade script: UCDToken implementation update"
|
|
14389
14390
|
},
|
|
@@ -14511,7 +14512,7 @@ var init_deployment_addresses = __esm({
|
|
|
14511
14512
|
POSITION_MANAGER_IMPL: "0x94096F14f58Cb427B36f2a5aeE24348a26534C74",
|
|
14512
14513
|
SIMPLE_PSM_V2: "0x19EcF7BA26e054fd4Ff06009A03070103dbBB058",
|
|
14513
14514
|
SIMPLE_PSM_V2_IMPL: "0x4107104fDF61AACC674f1F168c275f034c8112BF",
|
|
14514
|
-
UCD_TOKEN_IMPL: "
|
|
14515
|
+
UCD_TOKEN_IMPL: "0xd681943e38275CF2c46Ec2498d49fF75E4C6cb74",
|
|
14515
14516
|
POSITION_MANAGER_CORE_MODULE: "0xfFAA39a08887FeFB697eBC8691A8630CbCC33391",
|
|
14516
14517
|
POSITION_MANAGER_CORE_MODULE_IMPL: "0x41168d9BF8e696eBAB05ea539321ac212859d80b",
|
|
14517
14518
|
COLLATERAL_MANAGER_MODULE: "0x967E92c976Fc0fa8268D37D4d6B7245d912aA7dB",
|
|
@@ -14525,7 +14526,9 @@ var init_deployment_addresses = __esm({
|
|
|
14525
14526
|
BITCOIN_PROVIDER_REGISTRY: "0xbfA0c48B070D0a9A9CD27469AeacFD2d4261cEE2",
|
|
14526
14527
|
BITCOIN_PROVIDER_REGISTRY_IMPL: "0x225309A4ae6D146ba93A3278A7b40224FfC81448",
|
|
14527
14528
|
LIT_ACTION_VALIDATOR: "0x54eECd7C90F8A8fac27749Ba30BbE8AFBAccc856",
|
|
14528
|
-
LIT_ACTION_VALIDATOR_IMPL: "0x7D2a754AaF41E135c626553000139d5039095E29"
|
|
14529
|
+
LIT_ACTION_VALIDATOR_IMPL: "0x7D2a754AaF41E135c626553000139d5039095E29",
|
|
14530
|
+
CONTRACT_VERSION_REGISTRY: "0x97E43AA6aFF2C0cf659d3aE501658D2Ef6777522",
|
|
14531
|
+
CONTRACT_VERSION_REGISTRY_IMPL: "0xf77Dab9dE23aEdFf23E90A6c6d8aE9cDb437B498"
|
|
14529
14532
|
}
|
|
14530
14533
|
};
|
|
14531
14534
|
SEPOLIA_CONTRACTS = {
|
|
@@ -14547,7 +14550,8 @@ var init_deployment_addresses = __esm({
|
|
|
14547
14550
|
BTCSpendAuthorizer: "0xd7E9Eb5eE53f1d9ee55Dc162bBC7486bE437B6bD",
|
|
14548
14551
|
LITActionValidator: "0x54eECd7C90F8A8fac27749Ba30BbE8AFBAccc856",
|
|
14549
14552
|
SimplePSMV2: "0x19EcF7BA26e054fd4Ff06009A03070103dbBB058",
|
|
14550
|
-
BitcoinProviderRegistry: "0xbfA0c48B070D0a9A9CD27469AeacFD2d4261cEE2"
|
|
14553
|
+
BitcoinProviderRegistry: "0xbfA0c48B070D0a9A9CD27469AeacFD2d4261cEE2",
|
|
14554
|
+
ContractVersionRegistry: "0x97E43AA6aFF2C0cf659d3aE501658D2Ef6777522"
|
|
14551
14555
|
};
|
|
14552
14556
|
LOCALHOST_DEPLOYMENT = {
|
|
14553
14557
|
network: "localhost",
|
|
@@ -14754,7 +14758,8 @@ function getSepoliaConfig() {
|
|
|
14754
14758
|
priceFeedConsumer: SEPOLIA_CONTRACTS.PriceFeedConsumer || "",
|
|
14755
14759
|
operationAuthorizationRegistry: SEPOLIA_CONTRACTS.OperationAuthorizationRegistry || "",
|
|
14756
14760
|
btcSpendAuthorizer: SEPOLIA_CONTRACTS.BTCSpendAuthorizer || "",
|
|
14757
|
-
bitcoinProviderRegistry: SEPOLIA_CONTRACTS.BitcoinProviderRegistry || ""
|
|
14761
|
+
bitcoinProviderRegistry: SEPOLIA_CONTRACTS.BitcoinProviderRegistry || "",
|
|
14762
|
+
contractVersionRegistry: SEPOLIA_CONTRACTS.ContractVersionRegistry || ""
|
|
14758
14763
|
},
|
|
14759
14764
|
subgraphs: {
|
|
14760
14765
|
diamondHandsUrl: "https://api.studio.thegraph.com/query/1747853/diamond-hands/version/latest"
|
package/dist/index.mjs
CHANGED
|
@@ -14327,7 +14327,8 @@ var init_deployment_addresses = __esm({
|
|
|
14327
14327
|
BTCSpendAuthorizer: "0xd7E9Eb5eE53f1d9ee55Dc162bBC7486bE437B6bD",
|
|
14328
14328
|
LITActionValidator: "0x54eECd7C90F8A8fac27749Ba30BbE8AFBAccc856",
|
|
14329
14329
|
SimplePSMV2: "0x19EcF7BA26e054fd4Ff06009A03070103dbBB058",
|
|
14330
|
-
BitcoinProviderRegistry: "0xbfA0c48B070D0a9A9CD27469AeacFD2d4261cEE2"
|
|
14330
|
+
BitcoinProviderRegistry: "0xbfA0c48B070D0a9A9CD27469AeacFD2d4261cEE2",
|
|
14331
|
+
ContractVersionRegistry: "0x97E43AA6aFF2C0cf659d3aE501658D2Ef6777522"
|
|
14331
14332
|
},
|
|
14332
14333
|
upgraded: {
|
|
14333
14334
|
PositionManager: {
|
|
@@ -14387,9 +14388,9 @@ var init_deployment_addresses = __esm({
|
|
|
14387
14388
|
reason: "Add setPositionExpiry() for expiry-liquidation E2E testing"
|
|
14388
14389
|
},
|
|
14389
14390
|
UCDToken: {
|
|
14390
|
-
previousImplementation: "
|
|
14391
|
-
newImplementation: "
|
|
14392
|
-
upgradedAt: "2026-
|
|
14391
|
+
previousImplementation: "0x155Da00Ee0beb1d9D5BA34Aeb62c9ad4E8227d5D",
|
|
14392
|
+
newImplementation: "0xd681943e38275CF2c46Ec2498d49fF75E4C6cb74",
|
|
14393
|
+
upgradedAt: "2026-05-04T15:45:48.650Z",
|
|
14393
14394
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
14394
14395
|
reason: "Shared upgrade script: UCDToken implementation update"
|
|
14395
14396
|
},
|
|
@@ -14517,7 +14518,7 @@ var init_deployment_addresses = __esm({
|
|
|
14517
14518
|
POSITION_MANAGER_IMPL: "0x94096F14f58Cb427B36f2a5aeE24348a26534C74",
|
|
14518
14519
|
SIMPLE_PSM_V2: "0x19EcF7BA26e054fd4Ff06009A03070103dbBB058",
|
|
14519
14520
|
SIMPLE_PSM_V2_IMPL: "0x4107104fDF61AACC674f1F168c275f034c8112BF",
|
|
14520
|
-
UCD_TOKEN_IMPL: "
|
|
14521
|
+
UCD_TOKEN_IMPL: "0xd681943e38275CF2c46Ec2498d49fF75E4C6cb74",
|
|
14521
14522
|
POSITION_MANAGER_CORE_MODULE: "0xfFAA39a08887FeFB697eBC8691A8630CbCC33391",
|
|
14522
14523
|
POSITION_MANAGER_CORE_MODULE_IMPL: "0x41168d9BF8e696eBAB05ea539321ac212859d80b",
|
|
14523
14524
|
COLLATERAL_MANAGER_MODULE: "0x967E92c976Fc0fa8268D37D4d6B7245d912aA7dB",
|
|
@@ -14531,7 +14532,9 @@ var init_deployment_addresses = __esm({
|
|
|
14531
14532
|
BITCOIN_PROVIDER_REGISTRY: "0xbfA0c48B070D0a9A9CD27469AeacFD2d4261cEE2",
|
|
14532
14533
|
BITCOIN_PROVIDER_REGISTRY_IMPL: "0x225309A4ae6D146ba93A3278A7b40224FfC81448",
|
|
14533
14534
|
LIT_ACTION_VALIDATOR: "0x54eECd7C90F8A8fac27749Ba30BbE8AFBAccc856",
|
|
14534
|
-
LIT_ACTION_VALIDATOR_IMPL: "0x7D2a754AaF41E135c626553000139d5039095E29"
|
|
14535
|
+
LIT_ACTION_VALIDATOR_IMPL: "0x7D2a754AaF41E135c626553000139d5039095E29",
|
|
14536
|
+
CONTRACT_VERSION_REGISTRY: "0x97E43AA6aFF2C0cf659d3aE501658D2Ef6777522",
|
|
14537
|
+
CONTRACT_VERSION_REGISTRY_IMPL: "0xf77Dab9dE23aEdFf23E90A6c6d8aE9cDb437B498"
|
|
14535
14538
|
}
|
|
14536
14539
|
};
|
|
14537
14540
|
SEPOLIA_CONTRACTS = {
|
|
@@ -14553,7 +14556,8 @@ var init_deployment_addresses = __esm({
|
|
|
14553
14556
|
BTCSpendAuthorizer: "0xd7E9Eb5eE53f1d9ee55Dc162bBC7486bE437B6bD",
|
|
14554
14557
|
LITActionValidator: "0x54eECd7C90F8A8fac27749Ba30BbE8AFBAccc856",
|
|
14555
14558
|
SimplePSMV2: "0x19EcF7BA26e054fd4Ff06009A03070103dbBB058",
|
|
14556
|
-
BitcoinProviderRegistry: "0xbfA0c48B070D0a9A9CD27469AeacFD2d4261cEE2"
|
|
14559
|
+
BitcoinProviderRegistry: "0xbfA0c48B070D0a9A9CD27469AeacFD2d4261cEE2",
|
|
14560
|
+
ContractVersionRegistry: "0x97E43AA6aFF2C0cf659d3aE501658D2Ef6777522"
|
|
14557
14561
|
};
|
|
14558
14562
|
LOCALHOST_DEPLOYMENT = {
|
|
14559
14563
|
network: "localhost",
|
|
@@ -14760,7 +14764,8 @@ function getSepoliaConfig() {
|
|
|
14760
14764
|
priceFeedConsumer: SEPOLIA_CONTRACTS.PriceFeedConsumer || "",
|
|
14761
14765
|
operationAuthorizationRegistry: SEPOLIA_CONTRACTS.OperationAuthorizationRegistry || "",
|
|
14762
14766
|
btcSpendAuthorizer: SEPOLIA_CONTRACTS.BTCSpendAuthorizer || "",
|
|
14763
|
-
bitcoinProviderRegistry: SEPOLIA_CONTRACTS.BitcoinProviderRegistry || ""
|
|
14767
|
+
bitcoinProviderRegistry: SEPOLIA_CONTRACTS.BitcoinProviderRegistry || "",
|
|
14768
|
+
contractVersionRegistry: SEPOLIA_CONTRACTS.ContractVersionRegistry || ""
|
|
14764
14769
|
},
|
|
14765
14770
|
subgraphs: {
|
|
14766
14771
|
diamondHandsUrl: "https://api.studio.thegraph.com/query/1747853/diamond-hands/version/latest"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gvnrdao/dh-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.230",
|
|
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",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"sideEffects": false,
|
|
72
72
|
"dependencies": {
|
|
73
73
|
"@gvnrdao/dh-lit-actions": "^0.0.287",
|
|
74
|
-
"@gvnrdao/dh-lit-ops": "^0.0.
|
|
74
|
+
"@gvnrdao/dh-lit-ops": "^0.0.264",
|
|
75
75
|
"@noble/hashes": "^1.5.0",
|
|
76
76
|
"axios": "^1.15.2",
|
|
77
77
|
"bech32": "^2.0.0",
|