@gvnrdao/dh-lit-ops 0.0.6 → 0.0.8

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.
Files changed (40) hide show
  1. package/dist/constants/chunks/pkp-data.d.ts.map +1 -1
  2. package/dist/constants/chunks/pkp-data.js +1 -1
  3. package/dist/constants/chunks/pkp-data.js.map +1 -1
  4. package/dist/interfaces/chunks/authentication.d.ts +2 -0
  5. package/dist/interfaces/chunks/authentication.d.ts.map +1 -1
  6. package/dist/interfaces/chunks/config.d.ts +7 -1
  7. package/dist/interfaces/chunks/config.d.ts.map +1 -1
  8. package/dist/interfaces/chunks/lit-action-execution.d.ts +2 -0
  9. package/dist/interfaces/chunks/lit-action-execution.d.ts.map +1 -1
  10. package/dist/modules/action-executor.module.d.ts.map +1 -1
  11. package/dist/modules/action-executor.module.js +45 -11
  12. package/dist/modules/action-executor.module.js.map +1 -1
  13. package/dist/modules/auth-manager.module.d.ts.map +1 -1
  14. package/dist/modules/auth-manager.module.js +8 -2
  15. package/dist/modules/auth-manager.module.js.map +1 -1
  16. package/dist/modules/client-manager.module.d.ts.map +1 -1
  17. package/dist/modules/client-manager.module.js +11 -2
  18. package/dist/modules/client-manager.module.js.map +1 -1
  19. package/dist/modules/lit-ops.module.d.ts +6 -2
  20. package/dist/modules/lit-ops.module.d.ts.map +1 -1
  21. package/dist/modules/lit-ops.module.js +126 -67
  22. package/dist/modules/lit-ops.module.js.map +1 -1
  23. package/dist/modules/pkp-authorizer.module.d.ts.map +1 -1
  24. package/dist/modules/pkp-authorizer.module.js +16 -10
  25. package/dist/modules/pkp-authorizer.module.js.map +1 -1
  26. package/dist/modules/pkp-macros.module.d.ts.map +1 -1
  27. package/dist/modules/pkp-macros.module.js +38 -7
  28. package/dist/modules/pkp-macros.module.js.map +1 -1
  29. package/dist/modules/pkp-minter.module.d.ts.map +1 -1
  30. package/dist/modules/pkp-minter.module.js +76 -45
  31. package/dist/modules/pkp-minter.module.js.map +1 -1
  32. package/dist/modules/session-signature-manager.module.d.ts +4 -1
  33. package/dist/modules/session-signature-manager.module.d.ts.map +1 -1
  34. package/dist/modules/session-signature-manager.module.js +7 -9
  35. package/dist/modules/session-signature-manager.module.js.map +1 -1
  36. package/dist/utils/connection-helpers.d.ts +68 -0
  37. package/dist/utils/connection-helpers.d.ts.map +1 -0
  38. package/dist/utils/connection-helpers.js +229 -0
  39. package/dist/utils/connection-helpers.js.map +1 -0
  40. package/package.json +8 -8
@@ -0,0 +1,229 @@
1
+ "use strict";
2
+ /**
3
+ * LIT Protocol Connection Helpers
4
+ * Provides retry logic, error handling, and connection validation utilities
5
+ * for robust LIT Protocol operations (adapted from lit-actions)
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.DEFAULT_RETRY_CONFIG = void 0;
9
+ exports.sleep = sleep;
10
+ exports.isRetryableError = isRetryableError;
11
+ exports.calculateDelay = calculateDelay;
12
+ exports.withRetry = withRetry;
13
+ exports.connectLitNodeClient = connectLitNodeClient;
14
+ exports.connectLitContracts = connectLitContracts;
15
+ exports.validateLitNodeConnection = validateLitNodeConnection;
16
+ exports.validateLitNodeReadiness = validateLitNodeReadiness;
17
+ exports.executeLitAction = executeLitAction;
18
+ exports.executePkpOperation = executePkpOperation;
19
+ /**
20
+ * Default retry configuration optimized for LIT Protocol operations
21
+ */
22
+ exports.DEFAULT_RETRY_CONFIG = {
23
+ maxAttempts: 5, // Increased from 3 for PKP operations
24
+ initialDelayMs: 2000, // Increased from 1000ms for PKP operations
25
+ maxDelayMs: 60000, // Increased from 30000ms for PKP operations
26
+ backoffMultiplier: 2,
27
+ retryableErrors: [
28
+ 'request_timeout',
29
+ 'network error',
30
+ 'connection failed',
31
+ 'ENOTFOUND',
32
+ 'ECONNREFUSED',
33
+ 'ETIMEDOUT',
34
+ 'socket hang up',
35
+ 'timeout',
36
+ // PKP-specific errors
37
+ 'signing shares',
38
+ 'There was an error getting the signing shares',
39
+ 'PKP validation',
40
+ 'pkp validation failed',
41
+ 'resource validation',
42
+ 'ipfs propagation',
43
+ 'session.*expired',
44
+ 'NodeError',
45
+ 'Response from the nodes',
46
+ 'consensus',
47
+ 'threshold'
48
+ ]
49
+ };
50
+ /**
51
+ * Sleep utility for retry delays
52
+ */
53
+ function sleep(ms) {
54
+ return new Promise(resolve => setTimeout(resolve, ms));
55
+ }
56
+ /**
57
+ * Check if an error is retryable
58
+ */
59
+ function isRetryableError(error, retryableErrors = exports.DEFAULT_RETRY_CONFIG.retryableErrors) {
60
+ if (!error)
61
+ return false;
62
+ const errorMessage = error.message || error.toString() || '';
63
+ const errorLower = errorMessage.toLowerCase();
64
+ return retryableErrors.some(pattern => errorLower.includes(pattern.toLowerCase()));
65
+ }
66
+ /**
67
+ * Calculate exponential backoff delay with jitter
68
+ */
69
+ function calculateDelay(attempt, config) {
70
+ const exponentialDelay = Math.min(config.initialDelayMs * Math.pow(config.backoffMultiplier, attempt - 1), config.maxDelayMs);
71
+ // Add jitter (±25%) to avoid thundering herd
72
+ const jitter = exponentialDelay * 0.25 * (Math.random() - 0.5);
73
+ return Math.max(100, exponentialDelay + jitter);
74
+ }
75
+ /**
76
+ * Retry wrapper with exponential backoff
77
+ */
78
+ async function withRetry(operation, config = {}, operationName = 'operation') {
79
+ const finalConfig = { ...exports.DEFAULT_RETRY_CONFIG, ...config };
80
+ let lastError;
81
+ for (let attempt = 1; attempt <= finalConfig.maxAttempts; attempt++) {
82
+ try {
83
+ console.log(`🔄 [${operationName}] Attempt ${attempt}/${finalConfig.maxAttempts}`);
84
+ const startTime = Date.now();
85
+ const result = await operation();
86
+ const duration = Date.now() - startTime;
87
+ console.log(`✅ [${operationName}] Success after ${duration}ms (attempt ${attempt})`);
88
+ return result;
89
+ }
90
+ catch (error) {
91
+ lastError = error;
92
+ const errorMessage = error?.message || error?.toString() || 'Unknown error';
93
+ console.warn(`⚠️ [${operationName}] Attempt ${attempt} failed: ${errorMessage}`);
94
+ if (attempt >= finalConfig.maxAttempts) {
95
+ console.error(`❌ [${operationName}] All attempts failed. Last error: ${errorMessage}`);
96
+ break;
97
+ }
98
+ if (!isRetryableError(error, finalConfig.retryableErrors)) {
99
+ console.error(`🚫 [${operationName}] Non-retryable error: ${errorMessage}`);
100
+ break;
101
+ }
102
+ const delayMs = calculateDelay(attempt, finalConfig);
103
+ console.log(`⏳ [${operationName}] Waiting ${delayMs}ms before retry...`);
104
+ await sleep(delayMs);
105
+ }
106
+ }
107
+ throw lastError;
108
+ }
109
+ /**
110
+ * Enhanced LIT Node Client connector with retry logic and readiness validation
111
+ */
112
+ async function connectLitNodeClient(litNodeClient, config = {}) {
113
+ const network = litNodeClient?.config?.litNetwork || 'unknown';
114
+ return withRetry(async () => {
115
+ if (!litNodeClient) {
116
+ throw new Error('LIT Node Client is null or undefined');
117
+ }
118
+ const startTime = Date.now();
119
+ console.log(`🔗 Connecting to ${network}...`);
120
+ // First connect to the network
121
+ await litNodeClient.connect();
122
+ // Wait for client to be ready
123
+ console.log(`⏳ Waiting for LIT Node Client to be ready...`);
124
+ const readyTimeout = 30000; // 30 seconds timeout for readiness
125
+ const readyStartTime = Date.now();
126
+ while (!litNodeClient.ready && (Date.now() - readyStartTime) < readyTimeout) {
127
+ await sleep(500); // Check every 500ms
128
+ }
129
+ if (!litNodeClient.ready) {
130
+ throw new Error(`LIT Node Client failed to become ready within ${readyTimeout}ms`);
131
+ }
132
+ const latency = Date.now() - startTime;
133
+ console.log(`✅ LIT Node Client is ready (${litNodeClient.ready}) - ${latency}ms`);
134
+ }, config, 'LIT Node Client Connection');
135
+ }
136
+ /**
137
+ * Enhanced LIT Contracts connector with retry logic
138
+ */
139
+ async function connectLitContracts(litContracts, config = {}) {
140
+ return withRetry(async () => {
141
+ if (!litContracts) {
142
+ throw new Error('LIT Contracts is null or undefined');
143
+ }
144
+ console.log(`🔗 Connecting to LIT Contracts: ${litContracts.network || 'unknown'}`);
145
+ await litContracts.connect();
146
+ console.log('✅ LIT Contracts connected successfully');
147
+ }, config, 'LIT Contracts Connection');
148
+ }
149
+ /**
150
+ * Validate LIT Node Client connection health
151
+ */
152
+ async function validateLitNodeConnection(litNodeClient) {
153
+ try {
154
+ const startTime = Date.now();
155
+ if (!litNodeClient) {
156
+ return { isValid: false, error: 'LIT Node Client is null or undefined' };
157
+ }
158
+ // Try to get the latest block hash as a health check
159
+ await litNodeClient.getLatestBlockhash();
160
+ const latencyMs = Date.now() - startTime;
161
+ return { isValid: true, latencyMs };
162
+ }
163
+ catch (error) {
164
+ return {
165
+ isValid: false,
166
+ error: error?.message || error?.toString() || 'Unknown validation error'
167
+ };
168
+ }
169
+ }
170
+ /**
171
+ * Validate LIT Node Client readiness before operations
172
+ */
173
+ async function validateLitNodeReadiness(litNodeClient) {
174
+ if (!litNodeClient) {
175
+ throw new Error('LIT Node Client is null or undefined');
176
+ }
177
+ // Check if client is connected
178
+ if (!litNodeClient.ready) {
179
+ console.warn('⚠️ LIT Node Client not ready, attempting to reconnect...');
180
+ await litNodeClient.connect();
181
+ // Wait for readiness with timeout
182
+ const readyTimeout = 15000; // 15 seconds
183
+ const startTime = Date.now();
184
+ while (!litNodeClient.ready && (Date.now() - startTime) < readyTimeout) {
185
+ await sleep(500);
186
+ }
187
+ if (!litNodeClient.ready) {
188
+ throw new Error('LIT Node Client is not ready for operations');
189
+ }
190
+ }
191
+ console.log('✅ LIT Node Client readiness validated');
192
+ }
193
+ /**
194
+ * Enhanced LIT Action executor with retry logic and readiness validation
195
+ */
196
+ async function executeLitAction(litNodeClient, executionConfig, config = {}) {
197
+ const cid = executionConfig.ipfsId;
198
+ return withRetry(async () => {
199
+ const startTime = Date.now();
200
+ // Validate client readiness before execution
201
+ await validateLitNodeReadiness(litNodeClient);
202
+ console.log(`🚀 Executing LIT Action: ${cid}`);
203
+ const result = await litNodeClient.executeJs(executionConfig);
204
+ const duration = Date.now() - startTime;
205
+ if (!result.response) {
206
+ throw new Error('No response from LIT Action');
207
+ }
208
+ console.log(`✅ LIT Action executed successfully in ${duration}ms`);
209
+ return result;
210
+ }, config, 'LIT Action Execution');
211
+ }
212
+ /**
213
+ * PKP operation wrapper with enhanced error handling
214
+ */
215
+ async function executePkpOperation(operation, operationName, config = {}) {
216
+ const pkpConfig = {
217
+ ...exports.DEFAULT_RETRY_CONFIG,
218
+ ...config,
219
+ retryableErrors: [
220
+ ...exports.DEFAULT_RETRY_CONFIG.retryableErrors,
221
+ 'pkp validation',
222
+ 'signing shares',
223
+ 'resource validation',
224
+ 'ipfs propagation'
225
+ ]
226
+ };
227
+ return withRetry(operation, pkpConfig, `PKP ${operationName}`);
228
+ }
229
+ //# sourceMappingURL=connection-helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connection-helpers.js","sourceRoot":"","sources":["../../src/utils/connection-helpers.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAyDH,sBAEC;AAKD,4CASC;AAKD,wCASC;AAKD,8BAwCC;AAKD,oDAqCC;AAKD,kDAiBC;AAKD,8DAmBC;AAKD,4DAwBC;AAKD,4CA6BC;AAKD,kDAkBC;AArSD;;GAEG;AACU,QAAA,oBAAoB,GAAgB;IAC/C,WAAW,EAAE,CAAC,EAAE,sCAAsC;IACtD,cAAc,EAAE,IAAI,EAAE,2CAA2C;IACjE,UAAU,EAAE,KAAK,EAAE,4CAA4C;IAC/D,iBAAiB,EAAE,CAAC;IACpB,eAAe,EAAE;QACf,iBAAiB;QACjB,eAAe;QACf,mBAAmB;QACnB,WAAW;QACX,cAAc;QACd,WAAW;QACX,gBAAgB;QAChB,SAAS;QACT,sBAAsB;QACtB,gBAAgB;QAChB,+CAA+C;QAC/C,gBAAgB;QAChB,uBAAuB;QACvB,qBAAqB;QACrB,kBAAkB;QAClB,kBAAkB;QAClB,WAAW;QACX,yBAAyB;QACzB,WAAW;QACX,WAAW;KACZ;CACF,CAAC;AAWF;;GAEG;AACH,SAAgB,KAAK,CAAC,EAAU;IAC9B,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,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D,MAAM,EACN,sBAAsB,CACvB,CAAC;AACJ,CAAC;AAED;;GAEG;AACI,KAAK,UAAU,mBAAmB,CACvC,SAA2B,EAC3B,aAAqB,EACrB,SAA+B,EAAE;IAEjC,MAAM,SAAS,GAAG;QAChB,GAAG,4BAAoB;QACvB,GAAG,MAAM;QACT,eAAe,EAAE;YACf,GAAG,4BAAoB,CAAC,eAAe;YACvC,gBAAgB;YAChB,gBAAgB;YAChB,qBAAqB;YACrB,kBAAkB;SACnB;KACF,CAAC;IAEF,OAAO,SAAS,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,aAAa,EAAE,CAAC,CAAC;AACjE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gvnrdao/dh-lit-ops",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "description": "Diamond Hands Protocol - LIT Protocol Operations Package",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -33,13 +33,13 @@
33
33
  "directory": "lit-ops"
34
34
  },
35
35
  "dependencies": {
36
- "@gvnrdao/dh-lit-actions": "^0.0.3",
37
- "@lit-protocol/auth-helpers": "^7.3.0",
38
- "@lit-protocol/constants": "^7.3.0",
39
- "@lit-protocol/contracts-sdk": "^7.3.0",
40
- "@lit-protocol/lit-auth-client": "^7.3.0",
41
- "@lit-protocol/lit-node-client": "^7.3.0",
42
- "@lit-protocol/types": "^7.3.0",
36
+ "@gvnrdao/dh-lit-actions": "0.0.6",
37
+ "@lit-protocol/auth-helpers": "^7.3.1",
38
+ "@lit-protocol/constants": "^7.3.1",
39
+ "@lit-protocol/contracts-sdk": "^7.3.1",
40
+ "@lit-protocol/lit-auth-client": "^7.3.1",
41
+ "@lit-protocol/lit-node-client": "^7.3.1",
42
+ "@lit-protocol/types": "^7.3.1",
43
43
  "axios": "^1.5.0",
44
44
  "bs58": "^6.0.0",
45
45
  "ethers": "5.8.0",