Skip to content

Commit 5fdd978

Browse files
committed
feat: properly organize constants, schemas and types (in that order) to define leveraging the previous ones
1 parent deaf97d commit 5fdd978

File tree

9 files changed

+396
-303
lines changed

9 files changed

+396
-303
lines changed

packages/constants/src/lib/constants/constants.spec.ts

Lines changed: 44 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @ts-nocheck
21
import {
32
LIT_CHAINS,
43
LIT_COSMOS_CHAINS,
@@ -14,14 +13,12 @@ describe('constants', () => {
1413
'xdai',
1514
'bsc',
1615
'arbitrum',
16+
'arbitrumSepolia',
1717
'avalanche',
1818
'fuji',
1919
'harmony',
20-
'kovan',
2120
'mumbai',
2221
'goerli',
23-
'ropsten',
24-
'rinkeby',
2522
'cronos',
2623
'optimism',
2724
'celo',
@@ -33,6 +30,46 @@ describe('constants', () => {
3330
'evmosTestnet',
3431
'bscTestnet',
3532
'baseGoerli',
33+
'baseSepolia',
34+
'moonbeam',
35+
'moonriver',
36+
'moonbaseAlpha',
37+
'filecoin',
38+
'hyperspace',
39+
'sepolia',
40+
'scrollAlphaTestnet',
41+
'scroll',
42+
'zksync',
43+
'base',
44+
'lukso',
45+
'luksoTestnet',
46+
'zora',
47+
'zoraGoerli',
48+
'zksyncTestnet',
49+
'lineaGoerli',
50+
'yellowstone',
51+
'chiado',
52+
'zkEvm',
53+
'mantleTestnet',
54+
'mantle',
55+
'klaytn',
56+
'publicGoodsNetwork',
57+
'optimismGoerli',
58+
'waevEclipseTestnet',
59+
'waevEclipseDevnet',
60+
'verifyTestnet',
61+
'fuse',
62+
'campNetwork',
63+
'vanar',
64+
'lisk',
65+
'chilizMainnet',
66+
'chilizTestnet',
67+
'skaleTestnet',
68+
'skale',
69+
'fhenixHelium',
70+
'hederaTestnet',
71+
'bitTorrentTestnet',
72+
'kintoTestnet',
3673
];
3774

3875
const MUST_HAVE_SOL_CHAINS = ['solana', 'solanaDevnet', 'solanaTestnet'];
@@ -41,6 +78,9 @@ describe('constants', () => {
4178
'kyve',
4279
'evmosCosmos',
4380
'evmosCosmosTestnet',
81+
'cheqdMainnet',
82+
'cheqdTestnet',
83+
'juno',
4484
];
4585

4686
const networkPubKey =

packages/contracts-sdk/src/lib/contracts-sdk.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
/* eslint-disable import/order */
21
import { isBrowser, isNode } from '@lit-protocol/misc';
2+
import {
3+
LitNetworkKeysSchema,
4+
LitContractContextSchema,
5+
LitContractResolverContextSchema,
6+
} from '@lit-protocol/schemas';
37
import {
48
ContractName,
59
CreateCustomAuthMethodRequest,
610
EpochInfo,
711
GasLimitParam,
812
LIT_NETWORKS_KEYS,
9-
LitNetworkKeysSchema,
1013
LitContractContext,
11-
LitContractContextSchema,
1214
LitContractResolverContext,
13-
LitContractResolverContextSchema,
1415
MintCapacityCreditsContext,
1516
MintCapacityCreditsRes,
1617
MintNextAndAddAuthMethods,

packages/misc/src/lib/helper/session-sigs-validator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { fromError, isZodErrorLike } from 'zod-validation-error';
2+
import { ParsedSessionMessageSchema } from '@lit-protocol/schemas';
23
import {
34
AuthSig,
45
Capability,
56
ParsedSessionMessage,
67
ParsedSignedMessage,
7-
ParsedSessionMessageSchema,
88
SessionSigsMap,
99
} from '@lit-protocol/types';
1010

packages/schemas/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{
1+
{
22
"name": "@lit-protocol/schemas",
33
"license": "MIT",
44
"homepage": "https://github.com/Lit-Protocol/js-sdk",

0 commit comments

Comments
 (0)