Skip to content

Commit 90bef25

Browse files
committed
fmt
1 parent 1490ee9 commit 90bef25

File tree

40 files changed

+186
-157
lines changed

40 files changed

+186
-157
lines changed

local-tests/setup/networkContext.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14596,4 +14596,4 @@
1459614596
],
1459714597
"name": "Ledger"
1459814598
}
14599-
}
14599+
}

packages/access-control-conditions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222
"universal"
2323
],
2424
"version": "8.0.0-alpha.0"
25-
}
25+
}

packages/auth-browser/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@
3232
"browser"
3333
],
3434
"version": "8.0.0-alpha.0"
35-
}
35+
}

packages/auth-helpers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@
2626
"stream": false
2727
},
2828
"version": "8.0.0-alpha.0"
29-
}
29+
}

packages/constants/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
"universal"
2222
],
2323
"version": "8.0.0-alpha.0"
24-
}
24+
}

packages/constants/src/lib/constants/curves.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,13 @@ export type LIT_CURVE_VALUES = (typeof LIT_CURVE)[keyof typeof LIT_CURVE];
3636

3737
export const CURVE_GROUPS = ['ECDSA', 'BLS'] as const;
3838

39-
export const CURVE_GROUP_BY_CURVE_TYPE: Record<LIT_CURVE_VALUES, typeof CURVE_GROUPS[number]> = {
39+
export const CURVE_GROUP_BY_CURVE_TYPE: Record<
40+
LIT_CURVE_VALUES,
41+
(typeof CURVE_GROUPS)[number]
42+
> = {
4043
[LIT_CURVE.EcdsaK256]: CURVE_GROUPS[0],
4144
[LIT_CURVE.EcdsaK256Sha256]: CURVE_GROUPS[0],
4245
[LIT_CURVE.EcdsaCAITSITHP256]: CURVE_GROUPS[0],
4346
[LIT_CURVE.EcdsaCaitSith]: CURVE_GROUPS[0],
4447
[LIT_CURVE.BLS]: CURVE_GROUPS[1],
45-
} as const;
48+
} as const;

packages/constants/src/lib/constants/mappers.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ const deprecated = depd('lit-js-sdk:constants:mappers');
1212
*/
1313
export const NETWORK_CONTEXT_BY_NETWORK: {
1414
[key in LIT_NETWORK_VALUES]:
15-
| typeof datilDev
16-
| typeof datilTest
17-
| typeof datil
18-
| typeof _nagaDev;
15+
| typeof datilDev
16+
| typeof datilTest
17+
| typeof datil
18+
| typeof _nagaDev;
1919
} = {
2020
'datil-dev': datilDev,
2121
'datil-test': datilTest,
@@ -45,4 +45,4 @@ export const PRODUCT_IDS = {
4545
DECRYPTION: 0, // For decryption operations
4646
SIGN: 1, // For signing operations
4747
LA: 2, // For Lit Actions execution
48-
} as const;
48+
} as const;

packages/contracts-sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@
2626
"universal"
2727
],
2828
"version": "8.0.0-alpha.0"
29-
}
29+
}

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@
2525
"tags": [
2626
"universal"
2727
]
28-
}
28+
}

packages/core/src/lib/lit-core.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ export class LitCore {
276276
nodeProtocol: this.config.nodeProtocol,
277277
sortByPrice: true,
278278
});
279-
279+
280280
// Validate minNodeCount
281281
if (!minNodeCount) {
282282
throw new InvalidArgumentException(
@@ -316,7 +316,7 @@ export class LitCore {
316316
*/
317317
protected _getThreshold = (): number => {
318318
return Math.max(3, Math.floor((this.config.minNodeCount * 2) / 3));
319-
}
319+
};
320320

321321
private async _handleStakingContractStateChange(
322322
state: STAKING_STATES_VALUES
@@ -722,9 +722,11 @@ export class LitCore {
722722
await Promise.race([
723723
new Promise((_resolve, reject) => {
724724
timeoutHandle = setTimeout(() => {
725-
const msg = `Error: Could not handshake with nodes after timeout of ${this.config.connectTimeout
726-
}ms. Could only connect to ${Object.keys(serverKeys).length} of ${this.config.bootstrapUrls.length
727-
} nodes. Please check your network connection and try again. Note that you can control this timeout with the connectTimeout config option which takes milliseconds.`;
725+
const msg = `Error: Could not handshake with nodes after timeout of ${
726+
this.config.connectTimeout
727+
}ms. Could only connect to ${Object.keys(serverKeys).length} of ${
728+
this.config.bootstrapUrls.length
729+
} nodes. Please check your network connection and try again. Note that you can control this timeout with the connectTimeout config option which takes milliseconds.`;
728730

729731
try {
730732
throw new InitError({}, msg);
@@ -1059,8 +1061,8 @@ export class LitCore {
10591061
this._epochCache.currentNumber &&
10601062
this._epochCache.startTime &&
10611063
Math.floor(Date.now() / 1000) <
1062-
this._epochCache.startTime +
1063-
Math.floor(EPOCH_PROPAGATION_DELAY / 1000) &&
1064+
this._epochCache.startTime +
1065+
Math.floor(EPOCH_PROPAGATION_DELAY / 1000) &&
10641066
this._epochCache.currentNumber >= 3 // FIXME: Why this check?
10651067
) {
10661068
return this._epochCache.currentNumber - 1;
@@ -1091,7 +1093,7 @@ export class LitCore {
10911093
data,
10921094
requestId,
10931095
}: // eslint-disable-next-line @typescript-eslint/no-explicit-any
1094-
SendNodeCommand): Promise<any> => {
1096+
SendNodeCommand): Promise<any> => {
10951097
// FIXME: Replace <any> usage with explicit, strongly typed handlers
10961098
data = { ...data, epoch: this.currentEpochNumber };
10971099

0 commit comments

Comments
 (0)