Skip to content

Commit b6f004d

Browse files
committed
feat: declare global variables
1 parent faa4c69 commit b6f004d

File tree

8 files changed

+50
-0
lines changed

8 files changed

+50
-0
lines changed

packages/wrapped-keys-lit-actions/src/lib/self-executing-actions/common/batchGenerateEncryptedKeys.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@ import { batchGenerateEncryptedKeys } from '../../raw-action-functions/common/ba
33

44
/* global actions accessControlConditions */
55

6+
declare global {
7+
var actions: any[];
8+
var accessControlConditions: any;
9+
}
10+
611
(async () =>
712
litActionHandler(async () =>
13+
814
batchGenerateEncryptedKeys({ actions, accessControlConditions })
915
))();

packages/wrapped-keys-lit-actions/src/lib/self-executing-actions/common/exportPrivateKey.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
import { litActionHandler } from '../../litActionHandler';
44
import { exportPrivateKey } from '../../raw-action-functions/common/exportPrivateKey';
55

6+
declare global {
7+
var accessControlConditions: any;
8+
var ciphertext: any;
9+
var dataToEncryptHash: any;
10+
}
11+
612
(async () =>
713
litActionHandler(async () =>
814
exportPrivateKey({

packages/wrapped-keys-lit-actions/src/lib/self-executing-actions/ethereum/generateEncryptedEthereumPrivateKey.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
import { litActionHandler } from '../../litActionHandler';
44
import { generateEncryptedEthereumPrivateKey } from '../../raw-action-functions/ethereum/generateEncryptedEthereumPrivateKey';
55

6+
declare global {
7+
var accessControlConditions: any;
8+
}
9+
610
(async () =>
711
litActionHandler(async () =>
812
generateEncryptedEthereumPrivateKey({

packages/wrapped-keys-lit-actions/src/lib/self-executing-actions/ethereum/signMessageWithEncryptedEthereumKey.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
import { litActionHandler } from '../../litActionHandler';
44
import { signMessageWithEncryptedEthereumKey } from '../../raw-action-functions/ethereum/signMessageWithEncryptedEthereumKey';
55

6+
declare global {
7+
var accessControlConditions: any;
8+
var ciphertext: any;
9+
var dataToEncryptHash: any;
10+
var messageToSign: any;
11+
}
12+
613
(async () =>
714
litActionHandler(async () =>
815
signMessageWithEncryptedEthereumKey({

packages/wrapped-keys-lit-actions/src/lib/self-executing-actions/ethereum/signTransactionWithEncryptedEthereumKey.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
import { litActionHandler } from '../../litActionHandler';
44
import { signTransactionWithEncryptedEthereumKey } from '../../raw-action-functions/ethereum/signTransactionWithEncryptedEthereumKey';
55

6+
declare global {
7+
var accessControlConditions: any;
8+
var ciphertext: any;
9+
var dataToEncryptHash: any;
10+
var unsignedTransaction: any;
11+
var broadcast: any;
12+
}
13+
614
(async () =>
715
litActionHandler(async () =>
816
signTransactionWithEncryptedEthereumKey({

packages/wrapped-keys-lit-actions/src/lib/self-executing-actions/solana/generateEncryptedSolanaPrivateKey.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
import { litActionHandler } from '../../litActionHandler';
44
import { generateEncryptedSolanaPrivateKey } from '../../raw-action-functions/solana/generateEncryptedSolanaPrivateKey';
55

6+
declare global {
7+
var accessControlConditions: any;
8+
}
9+
610
(async () =>
711
litActionHandler(async () =>
812
generateEncryptedSolanaPrivateKey({

packages/wrapped-keys-lit-actions/src/lib/self-executing-actions/solana/signMessageWithEncryptedSolanaKey.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
import { litActionHandler } from '../../litActionHandler';
44
import { signMessageWithEncryptedSolanaKey } from '../../raw-action-functions/solana/signMessageWithEncryptedSolanaKey';
55

6+
declare global {
7+
var accessControlConditions: any;
8+
var ciphertext: any;
9+
var dataToEncryptHash: any;
10+
var messageToSign: any;
11+
}
12+
613
(async () =>
714
litActionHandler(async () =>
815
signMessageWithEncryptedSolanaKey({

packages/wrapped-keys-lit-actions/src/lib/self-executing-actions/solana/signTransactionWithEncryptedSolanaKey.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
import { litActionHandler } from '../../litActionHandler';
44
import { signTransactionWithEncryptedSolanaKey } from '../../raw-action-functions/solana/signTransactionWithEncryptedSolanaKey';
55

6+
declare global {
7+
var accessControlConditions: any;
8+
var ciphertext: any;
9+
var dataToEncryptHash: any;
10+
var unsignedTransaction: any;
11+
var broadcast: any;
12+
}
13+
614
(async () =>
715
litActionHandler(async () =>
816
signTransactionWithEncryptedSolanaKey({

0 commit comments

Comments
 (0)