Skip to content

Commit 4ff536f

Browse files
committed
fmt
1 parent 828a72c commit 4ff536f

23 files changed

+30
-38
lines changed

packages/wrapped-keys-lit-actions/esbuild.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ module.exports = {
6767
treeShaking: true,
6868
outdir: './src/generated/',
6969
inject: ['./buffer.shim.js'],
70-
external: ['ethers'],
70+
external: ['ethers'],
7171
plugins: [wrapIIFEInStringPlugin],
7272
platform: 'browser',
7373
})

packages/wrapped-keys-lit-actions/global.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// @ts-nocheck - got this directly from the lit-assets repo
22
declare global {
3-
43
export declare namespace Lit {
54
export namespace Actions {
65
/**
@@ -384,4 +383,4 @@ declare global {
384383
}
385384
}
386385

387-
export { };
386+
export {};

packages/wrapped-keys-lit-actions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@
2929
"version": "6.10.0",
3030
"main": "./dist/src/index.js",
3131
"typings": "./dist/src/index.d.ts"
32-
}
32+
}

packages/wrapped-keys-lit-actions/src/lib/internal/common/getDecryptedKeyToSingleNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { AbortError } from '../../abortError';
44
import { removeSaltFromDecryptedKey } from '../../utils';
55

66
interface TryDecryptToSingleNodeParams {
7-
accessControlConditions: string
7+
accessControlConditions: string;
88
ciphertext: string;
99
dataToEncryptHash: string;
1010
}

packages/wrapped-keys-lit-actions/src/lib/internal/ethereum/signMessage.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ function verifyMessageSignature({
3939
return ethers.utils.verifyMessage(messageToSign, signature);
4040
} catch (err: unknown) {
4141
throw new Error(
42-
`When validating signed Ethereum message is valid: ${(err as Error).message
42+
`When validating signed Ethereum message is valid: ${
43+
(err as Error).message
4344
}`
4445
);
4546
}

packages/wrapped-keys-lit-actions/src/lib/internal/solana/signMessage.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ function verifyMessageSignature({
5252
return isValid;
5353
} catch (err: unknown) {
5454
throw new Error(
55-
`When validating signed Solana message is valid: ${(err as Error).message
55+
`When validating signed Solana message is valid: ${
56+
(err as Error).message
5657
}`
5758
);
5859
}

packages/wrapped-keys-lit-actions/src/lib/raw-action-functions/common/batchGenerateEncryptedKeys.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ async function processEthereumAction({
1919
accessControlConditions,
2020
}: {
2121
action: Action;
22-
accessControlConditions: string
22+
accessControlConditions: string;
2323
}) {
2424
const { network, generateKeyParams } = action;
2525
const messageToSign = action.signMessageParams?.messageToSign;
@@ -57,7 +57,7 @@ async function processSolanaAction({
5757
accessControlConditions,
5858
}: {
5959
action: Action;
60-
accessControlConditions: string
60+
accessControlConditions: string;
6161
}) {
6262
const { network, generateKeyParams } = action;
6363

@@ -96,7 +96,7 @@ async function processActions({
9696
accessControlConditions,
9797
}: {
9898
actions: Action[];
99-
accessControlConditions: string
99+
accessControlConditions: string;
100100
}) {
101101
return Promise.all(
102102
actions.map(async (action, ndx) => {
@@ -161,7 +161,7 @@ export async function batchGenerateEncryptedKeys({
161161
accessControlConditions,
162162
}: {
163163
actions: Action[];
164-
accessControlConditions: string
164+
accessControlConditions: string;
165165
}) {
166166
validateParams(actions);
167167

packages/wrapped-keys-lit-actions/src/lib/raw-action-functions/common/exportPrivateKey.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { getDecryptedKeyToSingleNode } from '../../internal/common/getDecryptedKeyToSingleNode';
22

33
interface ExportPrivateKeyParams {
4-
accessControlConditions: string
4+
accessControlConditions: string;
55
ciphertext: string;
66
dataToEncryptHash: string;
77
}

packages/wrapped-keys-lit-actions/src/lib/raw-action-functions/ethereum/generateEncryptedEthereumPrivateKey.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { encryptPrivateKey } from '../../internal/common/encryptKey';
1111
import { generateEthereumPrivateKey } from '../../internal/ethereum/generatePrivateKey';
1212

1313
interface GenerateEncryptedEthereumPrivateKeyParams {
14-
accessControlConditions: string
14+
accessControlConditions: string;
1515
}
1616

1717
export async function generateEncryptedEthereumPrivateKey({

packages/wrapped-keys-lit-actions/src/lib/raw-action-functions/ethereum/signMessageWithEncryptedEthereumKey.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { getDecryptedKeyToSingleNode } from '../../internal/common/getDecryptedK
22
import { signMessageEthereumKey } from '../../internal/ethereum/signMessage';
33

44
interface SignMessageWithEncryptedEthereumKeyParams {
5-
accessControlConditions: string
5+
accessControlConditions: string;
66
ciphertext: string;
77
dataToEncryptHash: string;
88
messageToSign: string;

0 commit comments

Comments
 (0)