File tree Expand file tree Collapse file tree 6 files changed +14
-40
lines changed
constants/src/lib/constants
wrapped-keys/src/lib/lit-actions-client Expand file tree Collapse file tree 6 files changed +14
-40
lines changed Original file line number Diff line number Diff line change 1- import { nagaDev } from '@lit-protocol/contracts' ;
1+ import { nagaDev , nagaStaging , nagaTest } from '@lit-protocol/contracts' ;
22
33import {
44 LIT_NETWORK ,
@@ -12,25 +12,14 @@ import {
1212 */
1313export const NETWORK_CONTEXT_BY_NETWORK : Record <
1414 LIT_NETWORK_VALUES ,
15- typeof nagaDev | undefined
15+ typeof nagaDev | typeof nagaTest | typeof nagaStaging | undefined
1616> = {
1717 [ LIT_NETWORK . NagaDev ] : nagaDev ,
18+ [ LIT_NETWORK . NagaTest ] : nagaTest ,
19+ [ LIT_NETWORK . NagaStaging ] : nagaStaging ,
1820 [ LIT_NETWORK . Custom ] : undefined ,
1921} as const ;
2022
21- /**
22- * Whether to overwrite the IPFS code for a given network.
23- * This is useful when the nodes are not able to connect to the IPFS gateway,
24- * so the sdk can fallback to these gateways.
25- */
26- export const GLOBAL_OVERWRITE_IPFS_CODE_BY_NETWORK : Record <
27- LIT_NETWORK_VALUES ,
28- boolean
29- > = {
30- [ LIT_NETWORK . NagaDev ] : false ,
31- [ LIT_NETWORK . Custom ] : false ,
32- } as const ;
33-
3423/**
3524 * Product IDs used for price feed and node selection
3625 *
Original file line number Diff line number Diff line change 1- import { GLOBAL_OVERWRITE_IPFS_CODE_BY_NETWORK } from '@lit-protocol/constants' ;
1+
22import { AccessControlConditions } from '@lit-protocol/types' ;
33
44import { postLitActionValidation } from './utils' ;
@@ -45,10 +45,7 @@ export async function batchGenerateKeysWithLitAction(
4545 actions,
4646 accessControlConditions,
4747 } ,
48- ipfsOptions : {
49- overwriteCode :
50- GLOBAL_OVERWRITE_IPFS_CODE_BY_NETWORK [ litNodeClient . config . litNetwork ] ,
51- } ,
48+
5249 } ) ;
5350
5451 const response = postLitActionValidation ( result ) ;
Original file line number Diff line number Diff line change 1- import { GLOBAL_OVERWRITE_IPFS_CODE_BY_NETWORK } from '@lit-protocol/constants' ;
1+
22import { AccessControlConditions } from '@lit-protocol/types' ;
33
44import { postLitActionValidation } from './utils' ;
@@ -39,10 +39,7 @@ export async function exportPrivateKeyWithLitAction(
3939 dataToEncryptHash,
4040 accessControlConditions,
4141 } ,
42- ipfsOptions : {
43- overwriteCode :
44- GLOBAL_OVERWRITE_IPFS_CODE_BY_NETWORK [ litNodeClient . config . litNetwork ] ,
45- } ,
42+
4643 } ) ;
4744
4845 const decryptedPrivateKey = postLitActionValidation ( result ) ;
Original file line number Diff line number Diff line change 1- import { GLOBAL_OVERWRITE_IPFS_CODE_BY_NETWORK } from '@lit-protocol/constants' ;
1+
22import { AccessControlConditions } from '@lit-protocol/types' ;
33
44import { postLitActionValidation } from './utils' ;
@@ -34,10 +34,7 @@ export async function generateKeyWithLitAction({
3434 pkpAddress,
3535 accessControlConditions,
3636 } ,
37- ipfsOptions : {
38- overwriteCode :
39- GLOBAL_OVERWRITE_IPFS_CODE_BY_NETWORK [ litNodeClient . config . litNetwork ] ,
40- } ,
37+
4138 } ) ;
4239
4340 const response = postLitActionValidation ( result ) ;
Original file line number Diff line number Diff line change 1- import { GLOBAL_OVERWRITE_IPFS_CODE_BY_NETWORK } from '@lit-protocol/constants' ;
1+
22import { AccessControlConditions } from '@lit-protocol/types' ;
33
44import { postLitActionValidation } from './utils' ;
@@ -37,10 +37,7 @@ export async function signMessageWithLitAction(
3737 messageToSign,
3838 accessControlConditions,
3939 } ,
40- ipfsOptions : {
41- overwriteCode :
42- GLOBAL_OVERWRITE_IPFS_CODE_BY_NETWORK [ litNodeClient . config . litNetwork ] ,
43- } ,
40+
4441 } ) ;
4542 return postLitActionValidation ( result ) ;
4643}
Original file line number Diff line number Diff line change 1- import { GLOBAL_OVERWRITE_IPFS_CODE_BY_NETWORK } from '@lit-protocol/constants' ;
1+
22import {
33 AccessControlConditions ,
44 ILitNodeClient ,
@@ -48,10 +48,7 @@ export async function signTransactionWithLitAction({
4848 accessControlConditions,
4949 versionedTransaction,
5050 } ,
51- ipfsOptions : {
52- overwriteCode :
53- GLOBAL_OVERWRITE_IPFS_CODE_BY_NETWORK [ litNodeClient . config . litNetwork ] ,
54- } ,
51+
5552 } ) ;
5653
5754 return postLitActionValidation ( result ) ;
You can’t perform that action at this time.
0 commit comments