@gvnrdao/dh-sdk 0.0.284 → 0.0.286
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/browser/dist/browser.js +1 -1
- package/browser/dist/browser.js.LICENSE.txt +1 -1
- package/dist/deployments.js +4 -2
- package/dist/deployments.mjs +4 -2
- package/dist/index.js +9 -3
- package/dist/index.mjs +9 -3
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
/*! Axios v1.18.
|
|
8
|
+
/*! Axios v1.18.1 Copyright (c) 2026 Matt Zabriskie and contributors */
|
|
9
9
|
|
|
10
10
|
/*! MIT License. Copyright 2015-2022 Richard Moore <me@ricmoo.com>. See LICENSE.txt. */
|
|
11
11
|
|
package/dist/deployments.js
CHANGED
|
@@ -373,7 +373,8 @@ var MAINNET_DEPLOYMENT = {
|
|
|
373
373
|
PositionDelegateRegistry: "0xf0aa2678aD4F60f49e8F7725089B5E86B7F8FE4C",
|
|
374
374
|
BitcoinProviderRegistry: "0x4ab3Fb96e02893Ed6FAa61bad1918390c8DbbFFC",
|
|
375
375
|
BitcoinWithdrawalAddressRegistry: "0xf667f77FDba7458345f227eB6Bfe4148243E7270",
|
|
376
|
-
SimplePSMV2: "0xfE0C14B4E614f40Bf58845b4B04CeD17fd116532"
|
|
376
|
+
SimplePSMV2: "0xfE0C14B4E614f40Bf58845b4B04CeD17fd116532",
|
|
377
|
+
PKPValidation: "0x1950d230D5dc93b4CfA1Bc04dba43AcE3a365bf4"
|
|
377
378
|
},
|
|
378
379
|
upgraded: {
|
|
379
380
|
SimplePSMV2: {
|
|
@@ -421,7 +422,8 @@ var MAINNET_CONTRACTS = {
|
|
|
421
422
|
PositionDelegateRegistry: "0xf0aa2678aD4F60f49e8F7725089B5E86B7F8FE4C",
|
|
422
423
|
BitcoinProviderRegistry: "0x4ab3Fb96e02893Ed6FAa61bad1918390c8DbbFFC",
|
|
423
424
|
BitcoinWithdrawalAddressRegistry: "0xf667f77FDba7458345f227eB6Bfe4148243E7270",
|
|
424
|
-
SimplePSMV2: "0xfE0C14B4E614f40Bf58845b4B04CeD17fd116532"
|
|
425
|
+
SimplePSMV2: "0xfE0C14B4E614f40Bf58845b4B04CeD17fd116532",
|
|
426
|
+
PKPValidation: "0x1950d230D5dc93b4CfA1Bc04dba43AcE3a365bf4"
|
|
425
427
|
};
|
|
426
428
|
var LOCALHOST_DEPLOYMENT = {
|
|
427
429
|
network: "localhost",
|
package/dist/deployments.mjs
CHANGED
|
@@ -340,7 +340,8 @@ var MAINNET_DEPLOYMENT = {
|
|
|
340
340
|
PositionDelegateRegistry: "0xf0aa2678aD4F60f49e8F7725089B5E86B7F8FE4C",
|
|
341
341
|
BitcoinProviderRegistry: "0x4ab3Fb96e02893Ed6FAa61bad1918390c8DbbFFC",
|
|
342
342
|
BitcoinWithdrawalAddressRegistry: "0xf667f77FDba7458345f227eB6Bfe4148243E7270",
|
|
343
|
-
SimplePSMV2: "0xfE0C14B4E614f40Bf58845b4B04CeD17fd116532"
|
|
343
|
+
SimplePSMV2: "0xfE0C14B4E614f40Bf58845b4B04CeD17fd116532",
|
|
344
|
+
PKPValidation: "0x1950d230D5dc93b4CfA1Bc04dba43AcE3a365bf4"
|
|
344
345
|
},
|
|
345
346
|
upgraded: {
|
|
346
347
|
SimplePSMV2: {
|
|
@@ -388,7 +389,8 @@ var MAINNET_CONTRACTS = {
|
|
|
388
389
|
PositionDelegateRegistry: "0xf0aa2678aD4F60f49e8F7725089B5E86B7F8FE4C",
|
|
389
390
|
BitcoinProviderRegistry: "0x4ab3Fb96e02893Ed6FAa61bad1918390c8DbbFFC",
|
|
390
391
|
BitcoinWithdrawalAddressRegistry: "0xf667f77FDba7458345f227eB6Bfe4148243E7270",
|
|
391
|
-
SimplePSMV2: "0xfE0C14B4E614f40Bf58845b4B04CeD17fd116532"
|
|
392
|
+
SimplePSMV2: "0xfE0C14B4E614f40Bf58845b4B04CeD17fd116532",
|
|
393
|
+
PKPValidation: "0x1950d230D5dc93b4CfA1Bc04dba43AcE3a365bf4"
|
|
392
394
|
};
|
|
393
395
|
var LOCALHOST_DEPLOYMENT = {
|
|
394
396
|
network: "localhost",
|
package/dist/index.js
CHANGED
|
@@ -398,7 +398,8 @@ var init_deployment_addresses = __esm({
|
|
|
398
398
|
PositionDelegateRegistry: "0xf0aa2678aD4F60f49e8F7725089B5E86B7F8FE4C",
|
|
399
399
|
BitcoinProviderRegistry: "0x4ab3Fb96e02893Ed6FAa61bad1918390c8DbbFFC",
|
|
400
400
|
BitcoinWithdrawalAddressRegistry: "0xf667f77FDba7458345f227eB6Bfe4148243E7270",
|
|
401
|
-
SimplePSMV2: "0xfE0C14B4E614f40Bf58845b4B04CeD17fd116532"
|
|
401
|
+
SimplePSMV2: "0xfE0C14B4E614f40Bf58845b4B04CeD17fd116532",
|
|
402
|
+
PKPValidation: "0x1950d230D5dc93b4CfA1Bc04dba43AcE3a365bf4"
|
|
402
403
|
},
|
|
403
404
|
upgraded: {
|
|
404
405
|
SimplePSMV2: {
|
|
@@ -446,7 +447,8 @@ var init_deployment_addresses = __esm({
|
|
|
446
447
|
PositionDelegateRegistry: "0xf0aa2678aD4F60f49e8F7725089B5E86B7F8FE4C",
|
|
447
448
|
BitcoinProviderRegistry: "0x4ab3Fb96e02893Ed6FAa61bad1918390c8DbbFFC",
|
|
448
449
|
BitcoinWithdrawalAddressRegistry: "0xf667f77FDba7458345f227eB6Bfe4148243E7270",
|
|
449
|
-
SimplePSMV2: "0xfE0C14B4E614f40Bf58845b4B04CeD17fd116532"
|
|
450
|
+
SimplePSMV2: "0xfE0C14B4E614f40Bf58845b4B04CeD17fd116532",
|
|
451
|
+
PKPValidation: "0x1950d230D5dc93b4CfA1Bc04dba43AcE3a365bf4"
|
|
450
452
|
};
|
|
451
453
|
LOCALHOST_DEPLOYMENT = {
|
|
452
454
|
network: "localhost",
|
|
@@ -118078,7 +118080,11 @@ var DiamondHandsSDK = class _DiamondHandsSDK {
|
|
|
118078
118080
|
}
|
|
118079
118081
|
this.pkpManager = pkpManagerResult.value;
|
|
118080
118082
|
const serviceMode = isServiceModeConfig(config);
|
|
118081
|
-
|
|
118083
|
+
let graphEndpoint = serviceMode ? `${config.serviceEndpoint}/api/lit/graph/query` : config.subgraphs?.diamondHandsUrl;
|
|
118084
|
+
const ETHEREUM_MAINNET_CHAIN_ID = 1;
|
|
118085
|
+
if (serviceMode && graphEndpoint && typeof config.chainId === "number" && config.chainId !== ETHEREUM_MAINNET_CHAIN_ID) {
|
|
118086
|
+
graphEndpoint += `?chainId=${config.chainId}`;
|
|
118087
|
+
}
|
|
118082
118088
|
if (!graphEndpoint) {
|
|
118083
118089
|
throw new Error(
|
|
118084
118090
|
"Diamond Hands subgraph URL is required. Please provide config.subgraphs.diamondHandsUrl"
|
package/dist/index.mjs
CHANGED
|
@@ -404,7 +404,8 @@ var init_deployment_addresses = __esm({
|
|
|
404
404
|
PositionDelegateRegistry: "0xf0aa2678aD4F60f49e8F7725089B5E86B7F8FE4C",
|
|
405
405
|
BitcoinProviderRegistry: "0x4ab3Fb96e02893Ed6FAa61bad1918390c8DbbFFC",
|
|
406
406
|
BitcoinWithdrawalAddressRegistry: "0xf667f77FDba7458345f227eB6Bfe4148243E7270",
|
|
407
|
-
SimplePSMV2: "0xfE0C14B4E614f40Bf58845b4B04CeD17fd116532"
|
|
407
|
+
SimplePSMV2: "0xfE0C14B4E614f40Bf58845b4B04CeD17fd116532",
|
|
408
|
+
PKPValidation: "0x1950d230D5dc93b4CfA1Bc04dba43AcE3a365bf4"
|
|
408
409
|
},
|
|
409
410
|
upgraded: {
|
|
410
411
|
SimplePSMV2: {
|
|
@@ -452,7 +453,8 @@ var init_deployment_addresses = __esm({
|
|
|
452
453
|
PositionDelegateRegistry: "0xf0aa2678aD4F60f49e8F7725089B5E86B7F8FE4C",
|
|
453
454
|
BitcoinProviderRegistry: "0x4ab3Fb96e02893Ed6FAa61bad1918390c8DbbFFC",
|
|
454
455
|
BitcoinWithdrawalAddressRegistry: "0xf667f77FDba7458345f227eB6Bfe4148243E7270",
|
|
455
|
-
SimplePSMV2: "0xfE0C14B4E614f40Bf58845b4B04CeD17fd116532"
|
|
456
|
+
SimplePSMV2: "0xfE0C14B4E614f40Bf58845b4B04CeD17fd116532",
|
|
457
|
+
PKPValidation: "0x1950d230D5dc93b4CfA1Bc04dba43AcE3a365bf4"
|
|
456
458
|
};
|
|
457
459
|
LOCALHOST_DEPLOYMENT = {
|
|
458
460
|
network: "localhost",
|
|
@@ -118000,7 +118002,11 @@ var DiamondHandsSDK = class _DiamondHandsSDK {
|
|
|
118000
118002
|
}
|
|
118001
118003
|
this.pkpManager = pkpManagerResult.value;
|
|
118002
118004
|
const serviceMode = isServiceModeConfig(config);
|
|
118003
|
-
|
|
118005
|
+
let graphEndpoint = serviceMode ? `${config.serviceEndpoint}/api/lit/graph/query` : config.subgraphs?.diamondHandsUrl;
|
|
118006
|
+
const ETHEREUM_MAINNET_CHAIN_ID = 1;
|
|
118007
|
+
if (serviceMode && graphEndpoint && typeof config.chainId === "number" && config.chainId !== ETHEREUM_MAINNET_CHAIN_ID) {
|
|
118008
|
+
graphEndpoint += `?chainId=${config.chainId}`;
|
|
118009
|
+
}
|
|
118004
118010
|
if (!graphEndpoint) {
|
|
118005
118011
|
throw new Error(
|
|
118006
118012
|
"Diamond Hands subgraph URL is required. Please provide config.subgraphs.diamondHandsUrl"
|
package/package.json
CHANGED