Skip to content

Commit e7476a3

Browse files
committed
fmt
1 parent 4214276 commit e7476a3

File tree

3 files changed

+34
-34
lines changed

3 files changed

+34
-34
lines changed

packages/crypto/src/lib/crypto.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ export const encrypt = async (
7373
publicKeyHex,
7474
},
7575
},
76-
`Invalid public key length. Expecting 96 characters, got ${publicKeyHex.replace('0x', '').length
76+
`Invalid public key length. Expecting 96 characters, got ${
77+
publicKeyHex.replace('0x', '').length
7778
} instead.`
7879
);
7980
}
@@ -470,4 +471,3 @@ declare global {
470471
// eslint-disable-next-line no-var, @typescript-eslint/no-explicit-any
471472
var LitNodeClient: any;
472473
}
473-

packages/lit-node-client-nodejs/src/lib/lit-node-client-nodejs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import {
3232
ParamsMissingError,
3333
UnknownError,
3434
UnsupportedMethodError,
35-
WalletSignatureNotFoundError
35+
WalletSignatureNotFoundError,
3636
} from '@lit-protocol/constants';
3737
import { LitCore, composeLitUrl } from '@lit-protocol/core';
3838
import {
@@ -131,7 +131,7 @@ import type {
131131
SignSessionKeyProp,
132132
SignSessionKeyResponse,
133133
Signature,
134-
SuccessNodePromises
134+
SuccessNodePromises,
135135
} from '@lit-protocol/types';
136136

137137
export class LitNodeClientNodeJs

packages/types/src/lib/interfaces.ts

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ export interface JsonSignChainDataRequest {
277277

278278
export interface JsonSignSessionKeyRequestV1
279279
extends Pick<LitActionSdkParams, 'jsParams'>,
280-
Pick<LitActionSdkParams, 'litActionIpfsId'> {
280+
Pick<LitActionSdkParams, 'litActionIpfsId'> {
281281
sessionKey: string;
282282
authMethods: AuthMethod[];
283283
pkpPublicKey?: string;
@@ -461,7 +461,7 @@ export interface JsonExecutionSdkParamsTargetNode
461461

462462
export interface JsonExecutionSdkParams
463463
extends Pick<LitActionSdkParams, 'jsParams'>,
464-
ExecuteJsAdvancedOptions {
464+
ExecuteJsAdvancedOptions {
465465
/**
466466
* JS code to run on the nodes
467467
*/
@@ -537,7 +537,7 @@ export interface SessionSigsOrAuthSig {
537537

538538
export interface DecryptRequestBase
539539
extends SessionSigsOrAuthSig,
540-
MultipleAccessControlConditions {
540+
MultipleAccessControlConditions {
541541
/**
542542
* The chain name of the chain that this contract is deployed on. See LIT_CHAINS for currently supported chains.
543543
*/
@@ -583,7 +583,7 @@ export interface EncryptFileRequest extends DecryptRequestBase {
583583
file: AcceptedFileType;
584584
}
585585

586-
export interface DecryptRequest extends EncryptResponse, DecryptRequestBase { }
586+
export interface DecryptRequest extends EncryptResponse, DecryptRequestBase {}
587587

588588
export interface DecryptResponse {
589589
// The decrypted data as a Uint8Array
@@ -605,10 +605,10 @@ export interface SigResponse {
605605

606606
export interface ExecuteJsResponseBase {
607607
signatures:
608-
| {
609-
sig: SigResponse;
610-
}
611-
| any;
608+
| {
609+
sig: SigResponse;
610+
}
611+
| any;
612612
}
613613

614614
/**
@@ -638,7 +638,7 @@ export interface ExecuteJsNoSigningResponse extends ExecuteJsResponseBase {
638638
logs: string;
639639
}
640640

641-
export interface LitNodePromise { }
641+
export interface LitNodePromise {}
642642

643643
export interface SendNodeCommand {
644644
url: string;
@@ -647,10 +647,10 @@ export interface SendNodeCommand {
647647
}
648648
export interface SigShare {
649649
sigType:
650-
| 'BLS'
651-
| 'K256'
652-
| 'ECDSA_CAIT_SITH' // Legacy alias of K256
653-
| 'EcdsaCaitSithP256';
650+
| 'BLS'
651+
| 'K256'
652+
| 'ECDSA_CAIT_SITH' // Legacy alias of K256
653+
| 'EcdsaCaitSithP256';
654654

655655
signatureShare: string;
656656
shareIndex?: number;
@@ -1095,7 +1095,7 @@ export interface CommonGetSessionSigsProps {
10951095

10961096
export interface BaseProviderGetSessionSigsProps
10971097
extends CommonGetSessionSigsProps,
1098-
LitActionSdkParams {
1098+
LitActionSdkParams {
10991099
/**
11001100
* This is a callback that will be used to generate an AuthSig within the session signatures. It's inclusion is required, as it defines the specific resources and abilities that will be allowed for the current session.
11011101
*/
@@ -1104,7 +1104,7 @@ export interface BaseProviderGetSessionSigsProps
11041104

11051105
export interface GetSessionSigsProps
11061106
extends CommonGetSessionSigsProps,
1107-
LitActionSdkParams {
1107+
LitActionSdkParams {
11081108
/**
11091109
* This is a callback that will be used to generate an AuthSig within the session signatures. It's inclusion is required, as it defines the specific resources and abilities that will be allowed for the current session.
11101110
*/
@@ -1599,7 +1599,7 @@ export interface BaseProviderSessionSigsParams {
15991599
resourceAbilityRequests?: LitResourceAbilityRequest[];
16001600
}
16011601

1602-
export interface BaseAuthenticateOptions { }
1602+
export interface BaseAuthenticateOptions {}
16031603

16041604
export interface EthWalletAuthenticateOptions extends BaseAuthenticateOptions {
16051605
/**
@@ -1665,9 +1665,9 @@ export interface MintCapacityCreditsPerKilosecond
16651665
}
16661666
export interface MintCapacityCreditsContext
16671667
extends MintCapacityCreditsPerDay,
1668-
MintCapacityCreditsPerSecond,
1669-
MintCapacityCreditsPerKilosecond,
1670-
GasLimitParam { }
1668+
MintCapacityCreditsPerSecond,
1669+
MintCapacityCreditsPerKilosecond,
1670+
GasLimitParam {}
16711671
export interface MintCapacityCreditsRes {
16721672
rliTxHash: string;
16731673
capacityTokenId: any;
@@ -1790,12 +1790,12 @@ export interface LitActionSdkParams {
17901790
* An object that contains params to expose to the Lit Action. These will be injected to the JS runtime before your code runs, so you can use any of these as normal variables in your Lit Action.
17911791
*/
17921792
jsParams?:
1793-
| {
1794-
[key: string]: any;
1795-
publicKey?: string;
1796-
sigName?: string;
1797-
}
1798-
| any;
1793+
| {
1794+
[key: string]: any;
1795+
publicKey?: string;
1796+
sigName?: string;
1797+
}
1798+
| any;
17991799
}
18001800

18011801
export interface LitEndpoint {
@@ -1817,7 +1817,7 @@ export interface SignerLike {
18171817

18181818
export interface GetPkpSessionSigs
18191819
extends CommonGetSessionSigsProps,
1820-
LitActionSdkParams {
1820+
LitActionSdkParams {
18211821
pkpPublicKey: string;
18221822

18231823
/**
@@ -1843,11 +1843,11 @@ export type GetLitActionSessionSigs = CommonGetSessionSigsProps &
18431843
Pick<Required<LitActionSdkParams>, 'jsParams'> &
18441844
(
18451845
| (Pick<Required<LitActionSdkParams>, 'litActionCode'> & {
1846-
litActionIpfsId?: never;
1847-
})
1846+
litActionIpfsId?: never;
1847+
})
18481848
| (Pick<Required<LitActionSdkParams>, 'litActionIpfsId'> & {
1849-
litActionCode?: never;
1850-
})
1849+
litActionCode?: never;
1850+
})
18511851
) & {
18521852
ipfsOptions?: IpfsOptions;
18531853
};

0 commit comments

Comments
 (0)