Skip to content

Commit 6a53064

Browse files
committed
fmt
1 parent ca57645 commit 6a53064

File tree

2 files changed

+40
-40
lines changed

2 files changed

+40
-40
lines changed

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

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ import type {
135135

136136
export class LitNodeClientNodeJs
137137
extends LitCore
138-
implements LitClientSessionManager, ILitNodeClient {
138+
implements LitClientSessionManager, ILitNodeClient
139+
{
139140
defaultAuthCallback?: (authSigParams: AuthCallbackParams) => Promise<AuthSig>;
140141

141142
// ========== Constructor ==========
@@ -1276,8 +1277,8 @@ export class LitNodeClientNodeJs
12761277
// -- optional params
12771278
...(params.authMethods &&
12781279
params.authMethods.length > 0 && {
1279-
authMethods: params.authMethods,
1280-
}),
1280+
authMethods: params.authMethods,
1281+
}),
12811282
};
12821283

12831284
logWithRequestId(requestId, 'reqBody:', reqBody);
@@ -2075,8 +2076,8 @@ export class LitNodeClientNodeJs
20752076
const sessionCapabilityObject = params.sessionCapabilityObject
20762077
? params.sessionCapabilityObject
20772078
: await this.generateSessionCapabilityObjectWithWildcards(
2078-
params.resourceAbilityRequests.map((r) => r.resource)
2079-
);
2079+
params.resourceAbilityRequests.map((r) => r.resource)
2080+
);
20802081
const expiration = params.expiration || LitNodeClientNodeJs.getExpiration();
20812082

20822083
// -- (TRY) to get the wallet signature
@@ -2159,10 +2160,10 @@ export class LitNodeClientNodeJs
21592160

21602161
const capabilities = params.capacityDelegationAuthSig
21612162
? [
2162-
...(params.capabilityAuthSigs ?? []),
2163-
params.capacityDelegationAuthSig,
2164-
authSig,
2165-
]
2163+
...(params.capabilityAuthSigs ?? []),
2164+
params.capacityDelegationAuthSig,
2165+
authSig,
2166+
]
21662167
: [...(params.capabilityAuthSigs ?? []), authSig];
21672168

21682169
const signingTemplate = {

packages/types/src/lib/interfaces.ts

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

315315
export interface JsonSignSessionKeyRequestV1
316316
extends Pick<LitActionSdkParams, 'jsParams'>,
317-
Pick<LitActionSdkParams, 'litActionIpfsId'> {
317+
Pick<LitActionSdkParams, 'litActionIpfsId'> {
318318
sessionKey: string;
319319
authMethods: AuthMethod[];
320320
pkpPublicKey?: string;
@@ -503,7 +503,7 @@ export interface JsonExecutionSdkParamsTargetNode
503503

504504
export interface JsonExecutionSdkParams
505505
extends Pick<LitActionSdkParams, 'jsParams'>,
506-
ExecuteJsAdvancedOptions {
506+
ExecuteJsAdvancedOptions {
507507
/**
508508
* JS code to run on the nodes
509509
*/
@@ -526,7 +526,6 @@ export interface JsonExecutionSdkParams
526526
}
527527

528528
export interface ExecuteJsAdvancedOptions {
529-
530529
/**
531530
* a strategy for proccessing `reponse` objects returned from the
532531
* Lit Action execution context
@@ -585,7 +584,7 @@ export interface SessionSigsOrAuthSig {
585584

586585
export interface DecryptRequestBase
587586
extends SessionSigsOrAuthSig,
588-
MultipleAccessControlConditions {
587+
MultipleAccessControlConditions {
589588
/**
590589
* The chain name of the chain that this contract is deployed on. See LIT_CHAINS for currently supported chains.
591590
*/
@@ -630,7 +629,7 @@ export interface EncryptFileRequest extends DecryptRequestBase {
630629
file: AcceptedFileType;
631630
}
632631

633-
export interface DecryptRequest extends EncryptResponse, DecryptRequestBase { }
632+
export interface DecryptRequest extends EncryptResponse, DecryptRequestBase {}
634633

635634
export interface DecryptResponse {
636635
// The decrypted data as a Uint8Array
@@ -652,10 +651,10 @@ export interface SigResponse {
652651

653652
export interface ExecuteJsResponseBase {
654653
signatures:
655-
| {
656-
sig: SigResponse;
657-
}
658-
| any;
654+
| {
655+
sig: SigResponse;
656+
}
657+
| any;
659658
}
660659

661660
/**
@@ -685,7 +684,7 @@ export interface ExecuteJsNoSigningResponse extends ExecuteJsResponseBase {
685684
logs: string;
686685
}
687686

688-
export interface LitNodePromise { }
687+
export interface LitNodePromise {}
689688

690689
export interface SendNodeCommand {
691690
url: string;
@@ -694,10 +693,10 @@ export interface SendNodeCommand {
694693
}
695694
export interface SigShare {
696695
sigType:
697-
| 'BLS'
698-
| 'K256'
699-
| 'ECDSA_CAIT_SITH' // Legacy alias of K256
700-
| 'EcdsaCaitSithP256';
696+
| 'BLS'
697+
| 'K256'
698+
| 'ECDSA_CAIT_SITH' // Legacy alias of K256
699+
| 'EcdsaCaitSithP256';
701700

702701
signatureShare: string;
703702
shareIndex?: number;
@@ -1165,7 +1164,7 @@ export interface CommonGetSessionSigsProps {
11651164

11661165
export interface BaseProviderGetSessionSigsProps
11671166
extends CommonGetSessionSigsProps,
1168-
LitActionSdkParams {
1167+
LitActionSdkParams {
11691168
/**
11701169
* 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.
11711170
*/
@@ -1174,7 +1173,7 @@ export interface BaseProviderGetSessionSigsProps
11741173

11751174
export interface GetSessionSigsProps
11761175
extends CommonGetSessionSigsProps,
1177-
LitActionSdkParams {
1176+
LitActionSdkParams {
11781177
/**
11791178
* 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.
11801179
*/
@@ -1698,7 +1697,7 @@ export interface LoginUrlParams {
16981697
error: string | null;
16991698
}
17001699

1701-
export interface BaseAuthenticateOptions { }
1700+
export interface BaseAuthenticateOptions {}
17021701

17031702
export interface EthWalletAuthenticateOptions extends BaseAuthenticateOptions {
17041703
/**
@@ -1764,9 +1763,9 @@ export interface MintCapacityCreditsPerKilosecond
17641763
}
17651764
export interface MintCapacityCreditsContext
17661765
extends MintCapacityCreditsPerDay,
1767-
MintCapacityCreditsPerSecond,
1768-
MintCapacityCreditsPerKilosecond,
1769-
GasLimitParam { }
1766+
MintCapacityCreditsPerSecond,
1767+
MintCapacityCreditsPerKilosecond,
1768+
GasLimitParam {}
17701769
export interface MintCapacityCreditsRes {
17711770
rliTxHash: string;
17721771
capacityTokenId: any;
@@ -1889,12 +1888,12 @@ export interface LitActionSdkParams {
18891888
* 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.
18901889
*/
18911890
jsParams?:
1892-
| {
1893-
[key: string]: any;
1894-
publicKey?: string;
1895-
sigName?: string;
1896-
}
1897-
| any;
1891+
| {
1892+
[key: string]: any;
1893+
publicKey?: string;
1894+
sigName?: string;
1895+
}
1896+
| any;
18981897
}
18991898

19001899
export interface LitEndpoint {
@@ -1916,7 +1915,7 @@ export interface SignerLike {
19161915

19171916
export interface GetPkpSessionSigs
19181917
extends CommonGetSessionSigsProps,
1919-
LitActionSdkParams {
1918+
LitActionSdkParams {
19201919
pkpPublicKey: string;
19211920

19221921
/**
@@ -1942,11 +1941,11 @@ export type GetLitActionSessionSigs = CommonGetSessionSigsProps &
19421941
Pick<Required<LitActionSdkParams>, 'jsParams'> &
19431942
(
19441943
| (Pick<Required<LitActionSdkParams>, 'litActionCode'> & {
1945-
litActionIpfsId?: never;
1946-
})
1944+
litActionIpfsId?: never;
1945+
})
19471946
| (Pick<Required<LitActionSdkParams>, 'litActionIpfsId'> & {
1948-
litActionCode?: never;
1949-
})
1947+
litActionCode?: never;
1948+
})
19501949
) & {
19511950
ipfsOptions?: IpfsOptions;
19521951
};

0 commit comments

Comments
 (0)