@gvnrdao/dh-lit-actions 0.0.32 → 0.0.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/package.json +1 -1
- package/pkg-dist/constants/chunks/lit-actions-registry.cjs +1 -1
- package/pkg-dist/constants/chunks/package-registry.cjs +1 -1
- package/pkg-dist/constants/index.cjs +2 -2
- package/pkg-dist/index.cjs +4 -4
- package/pkg-dist/interfaces/index.cjs +4 -4
- package/pkg-dist/utils/chunks/connection-helpers.cjs +4 -4
- package/pkg-dist/utils/chunks/lit-action-helpers.cjs +1 -1
- package/pkg-dist/utils/chunks/pkp-setup.cjs +1 -1
- package/pkg-dist/utils/chunks/session-signature-cache.cjs +1 -1
- package/pkg-dist/utils/index.cjs +7 -7
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DATIL_TEST_PKP_VALIDATOR_CID = exports.DATIL_TEST_AUTHORIZATION_DUMMY_B_CID = exports.DATIL_TEST_AUTHORIZATION_DUMMY_CID = exports.DATIL_PKP_VALIDATOR_CID = exports.DATIL_AUTHORIZATION_DUMMY_B_CID = exports.DATIL_AUTHORIZATION_DUMMY_CID = exports.DATIL_TEST_DEPLOYMENTS = exports.DATIL_DEPLOYMENTS = exports.DH_LIT_ACTIONS_DATIL_TEST = exports.DH_LIT_ACTIONS_DATIL = void 0;
|
|
4
4
|
exports.getDeploymentsForNetwork = getDeploymentsForNetwork;
|
|
5
|
-
const cid_utils_1 = require("../../utils/chunks/cid-utils");
|
|
5
|
+
const cid_utils_1 = require("../../utils/chunks/cid-utils.cjs");
|
|
6
6
|
/**
|
|
7
7
|
* Diamond Hands LIT Actions Registry
|
|
8
8
|
* Contains all deployed LIT Actions with their IPFS CIDs and metadata
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DH_LIT_ACTIONS_REGISTRY = void 0;
|
|
4
|
-
const lit_actions_registry_1 = require("./lit-actions-registry");
|
|
4
|
+
const lit_actions_registry_1 = require("./lit-actions-registry.cjs");
|
|
5
5
|
/**
|
|
6
6
|
* Package Registry with Metadata
|
|
7
7
|
*/
|
|
@@ -18,6 +18,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
18
18
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
__exportStar(require("./chunks/lit-actions-registry"), exports);
|
|
22
|
-
__exportStar(require("./chunks/package-registry"), exports);
|
|
21
|
+
__exportStar(require("./chunks/lit-actions-registry.cjs"), exports);
|
|
22
|
+
__exportStar(require("./chunks/package-registry.cjs"), exports);
|
|
23
23
|
//# sourceMappingURL=index.js.map
|
package/pkg-dist/index.cjs
CHANGED
|
@@ -23,13 +23,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
23
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
24
|
exports.DH_LIT_ACTIONS_DATIL_TEST = exports.DH_LIT_ACTIONS_DATIL = void 0;
|
|
25
25
|
// Export interfaces
|
|
26
|
-
__exportStar(require("./interfaces"), exports);
|
|
26
|
+
__exportStar(require("./interfaces/index.cjs"), exports);
|
|
27
27
|
// Export constants from registry
|
|
28
|
-
__exportStar(require("./constants/chunks/lit-actions-registry"), exports);
|
|
28
|
+
__exportStar(require("./constants/chunks/lit-actions-registry.cjs"), exports);
|
|
29
29
|
// Export utilities
|
|
30
|
-
__exportStar(require("./utils"), exports);
|
|
30
|
+
__exportStar(require("./utils/index.cjs"), exports);
|
|
31
31
|
// Default export
|
|
32
|
-
var lit_actions_registry_1 = require("./constants/chunks/lit-actions-registry");
|
|
32
|
+
var lit_actions_registry_1 = require("./constants/chunks/lit-actions-registry.cjs");
|
|
33
33
|
Object.defineProperty(exports, "DH_LIT_ACTIONS_DATIL", { enumerable: true, get: function () { return lit_actions_registry_1.DH_LIT_ACTIONS_DATIL; } });
|
|
34
34
|
Object.defineProperty(exports, "DH_LIT_ACTIONS_DATIL_TEST", { enumerable: true, get: function () { return lit_actions_registry_1.DH_LIT_ACTIONS_DATIL_TEST; } });
|
|
35
35
|
//# sourceMappingURL=index.js.map
|
|
@@ -18,8 +18,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
18
18
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
__exportStar(require("./chunks/pkp-info.i"), exports);
|
|
22
|
-
__exportStar(require("./chunks/lit-action-config.i"), exports);
|
|
23
|
-
__exportStar(require("./chunks/diamond-hands-lit-actions.i"), exports);
|
|
24
|
-
__exportStar(require("./chunks/lit-action-registry.i"), exports);
|
|
21
|
+
__exportStar(require("./chunks/pkp-info.i.cjs"), exports);
|
|
22
|
+
__exportStar(require("./chunks/lit-action-config.i.cjs"), exports);
|
|
23
|
+
__exportStar(require("./chunks/diamond-hands-lit-actions.i.cjs"), exports);
|
|
24
|
+
__exportStar(require("./chunks/lit-action-registry.i.cjs"), exports);
|
|
25
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -51,8 +51,8 @@ exports.validateLitNodeReadiness = validateLitNodeReadiness;
|
|
|
51
51
|
exports.executeLitAction = executeLitAction;
|
|
52
52
|
exports.executePkpOperation = executePkpOperation;
|
|
53
53
|
exports.getNetworkTimeouts = getNetworkTimeouts;
|
|
54
|
-
const debug_logger_1 = require("./debug-logger");
|
|
55
|
-
const error_classification_1 = require("./error-classification");
|
|
54
|
+
const debug_logger_1 = require("./debug-logger.cjs");
|
|
55
|
+
const error_classification_1 = require("./error-classification.cjs");
|
|
56
56
|
/**
|
|
57
57
|
* Default retry configuration optimized for LIT Protocol operations
|
|
58
58
|
*/
|
|
@@ -254,7 +254,7 @@ async function validateLitNodeConnection(litNodeClient) {
|
|
|
254
254
|
async function generateSessionSignatures(litNodeClient, sessionConfig, config = {}, pkpTokenId, litActionCid, signerAddress, network = 'datil') {
|
|
255
255
|
// If caching parameters are provided, try cache first
|
|
256
256
|
if (pkpTokenId && litActionCid && signerAddress) {
|
|
257
|
-
const { sessionSignatureCache } = await Promise.resolve().then(() => __importStar(require(
|
|
257
|
+
const { sessionSignatureCache } = await Promise.resolve().then(() => __importStar(require("./session-signature-cache.cjs")));
|
|
258
258
|
const cached = sessionSignatureCache.get(pkpTokenId, litActionCid, signerAddress, network);
|
|
259
259
|
if (cached) {
|
|
260
260
|
const sigCount = Object.keys(cached).length;
|
|
@@ -268,7 +268,7 @@ async function generateSessionSignatures(litNodeClient, sessionConfig, config =
|
|
|
268
268
|
const sigCount = Object.keys(sessionSigs).length;
|
|
269
269
|
// Cache if parameters provided
|
|
270
270
|
if (pkpTokenId && litActionCid && signerAddress) {
|
|
271
|
-
const { sessionSignatureCache } = await Promise.resolve().then(() => __importStar(require(
|
|
271
|
+
const { sessionSignatureCache } = await Promise.resolve().then(() => __importStar(require("./session-signature-cache.cjs")));
|
|
272
272
|
const expiration = new Date(sessionConfig.expiration);
|
|
273
273
|
sessionSignatureCache.set(pkpTokenId, litActionCid, signerAddress, network, sessionSigs, expiration);
|
|
274
274
|
}
|
|
@@ -5,7 +5,7 @@ exports.getLitActionConfig = getLitActionConfig;
|
|
|
5
5
|
exports.isLitActionDeployed = isLitActionDeployed;
|
|
6
6
|
exports.validateDeployedActions = validateDeployedActions;
|
|
7
7
|
exports.getDeployedActions = getDeployedActions;
|
|
8
|
-
const constants_1 = require("../../constants");
|
|
8
|
+
const constants_1 = require("../../constants/index.cjs");
|
|
9
9
|
/**
|
|
10
10
|
* Get LIT Action CID by name
|
|
11
11
|
* @param actionName - Name of the LIT Action
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getPKPValidatorSetup = getPKPValidatorSetup;
|
|
4
|
-
const lit_actions_registry_1 = require("../../constants/chunks/lit-actions-registry");
|
|
4
|
+
const lit_actions_registry_1 = require("../../constants/chunks/lit-actions-registry.cjs");
|
|
5
5
|
/**
|
|
6
6
|
* Get the complete setup for PKP Validator testing
|
|
7
7
|
* Returns both the LIT Action config and its associated PKP
|
|
@@ -9,7 +9,7 @@ exports.generateSessionSignaturesWithCache = generateSessionSignaturesWithCache;
|
|
|
9
9
|
exports.configureSessionSignatureCache = configureSessionSignatureCache;
|
|
10
10
|
exports.clearSessionSignatureCache = clearSessionSignatureCache;
|
|
11
11
|
exports.getSessionSignatureCacheStats = getSessionSignatureCacheStats;
|
|
12
|
-
const debug_logger_1 = require("./debug-logger");
|
|
12
|
+
const debug_logger_1 = require("./debug-logger.cjs");
|
|
13
13
|
exports.DEFAULT_CACHE_CONFIG = {
|
|
14
14
|
maxEntries: 50,
|
|
15
15
|
bufferTimeMs: 60000, // 1 minute buffer before expiration
|
package/pkg-dist/utils/index.cjs
CHANGED
|
@@ -18,11 +18,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
18
18
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
__exportStar(require("./chunks/lit-action-helpers"), exports);
|
|
22
|
-
__exportStar(require("./chunks/pkp-setup"), exports);
|
|
23
|
-
__exportStar(require("./chunks/cid-utils"), exports);
|
|
24
|
-
__exportStar(require("./chunks/connection-helpers"), exports);
|
|
25
|
-
__exportStar(require("./chunks/debug-logger"), exports);
|
|
26
|
-
__exportStar(require("./chunks/error-classification"), exports);
|
|
27
|
-
__exportStar(require("./chunks/session-signature-cache"), exports);
|
|
21
|
+
__exportStar(require("./chunks/lit-action-helpers.cjs"), exports);
|
|
22
|
+
__exportStar(require("./chunks/pkp-setup.cjs"), exports);
|
|
23
|
+
__exportStar(require("./chunks/cid-utils.cjs"), exports);
|
|
24
|
+
__exportStar(require("./chunks/connection-helpers.cjs"), exports);
|
|
25
|
+
__exportStar(require("./chunks/debug-logger.cjs"), exports);
|
|
26
|
+
__exportStar(require("./chunks/error-classification.cjs"), exports);
|
|
27
|
+
__exportStar(require("./chunks/session-signature-cache.cjs"), exports);
|
|
28
28
|
//# sourceMappingURL=index.js.map
|