Skip to content

Commit 8303606

Browse files
committed
fmt
1 parent 846670b commit 8303606

File tree

12 files changed

+10318
-3609
lines changed

12 files changed

+10318
-3609
lines changed

packages/auth-helpers/src/lib/siwe/siwe-helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export function sanitizeSiweMessage(message: string): string {
3636
*/
3737
export const createCapacityCreditsResourceData = (
3838
params: CapacityDelegationFields
39-
): z.infer<(typeof LitResourceAbilityRequestSchema)['shape']['data']> => {
39+
): z.infer<typeof LitResourceAbilityRequestSchema['shape']['data']> => {
4040
return {
4141
...(params.delegateeAddresses
4242
? {

packages/auth-services/src/auth-server/src/routes/payment.express.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const SUPPORTED_NETWORKS = [
4545
'naga-local',
4646
] as const;
4747

48-
type SupportedNetwork = (typeof SUPPORTED_NETWORKS)[number];
48+
type SupportedNetwork = typeof SUPPORTED_NETWORKS[number];
4949

5050
const isSupportedNetwork = (value: string): value is SupportedNetwork =>
5151
SUPPORTED_NETWORKS.includes(value as SupportedNetwork);

packages/auth-services/src/queue-manager/src/jobRegistry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { handlePkpMintTask } from './handlers'; // This imports from ./handlers/
22

33
export const JOBS = ['pkpMint'] as const;
44

5-
export type JobName = (typeof JOBS)[number];
5+
export type JobName = typeof JOBS[number];
66

77
/**
88
* Registry of job names to their handler functions.

packages/auth/src/lib/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export const AuthMethodTypeStringMap = ObjectMapFromArray(authMethodTypeKeys);
5959
* 'EthWallet' | 'LitAction' | 'WebAuthn' | 'Discord' | 'Google' | 'GoogleJwt' | 'AppleJwt'
6060
* ```
6161
*/
62-
export type AuthMethodType = (typeof authMethodTypeKeys)[number];
62+
export type AuthMethodType = typeof authMethodTypeKeys[number];
6363

6464
export const LitAuthDataSchema = z.object({
6565
sessionKey: z.object({

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ export const LIT_COSMOS_CHAINS_KEYS = [
133133
'juno',
134134
] as const;
135135

136-
export type LitEVMChainKeys = (typeof LIT_CHAINS_KEYS)[number];
137-
export type LITSVMChainKeys = (typeof LIT_SVM_CHAINS_KEYS)[number];
138-
export type LitCosmosChainKeys = (typeof LIT_COSMOS_CHAINS_KEYS)[number];
136+
export type LitEVMChainKeys = typeof LIT_CHAINS_KEYS[number];
137+
export type LITSVMChainKeys = typeof LIT_SVM_CHAINS_KEYS[number];
138+
export type LitCosmosChainKeys = typeof LIT_COSMOS_CHAINS_KEYS[number];
139139

140140
/**
141141
* EVM Chains supported by the LIT protocol. Each chain includes an optional pre-deployed token contract that you may use for minting LITs. These are ERC1155 contracts that let you mint any quantity of a given token. Use the chain name as a key in this object.

packages/contracts/src/config/networks.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ export type ProdNetworkName = keyof typeof PROD_PATH_BY_NETWORK;
2929
export type DevNetworkName = keyof typeof DEV_PATH_BY_NETWORK;
3030
export type NetworkName = ProdNetworkName | DevNetworkName;
3131
export type NetworkPath =
32-
| (typeof PROD_PATH_BY_NETWORK)[ProdNetworkName]
33-
| (typeof DEV_PATH_BY_NETWORK)[DevNetworkName];
32+
| typeof PROD_PATH_BY_NETWORK[ProdNetworkName]
33+
| typeof DEV_PATH_BY_NETWORK[DevNetworkName];
3434

3535
/**
3636
* Network path configuration for GitHub API requests

packages/lit-client/src/lib/LitClient/createLitClient.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -750,15 +750,15 @@ export const _createNagaLitClient = async (
750750
account: ExpectedAccountOrWalletClient;
751751
}) => Promise<GenericTxRes<LitTxRes<PKPData>, PKPData>>,
752752
mintWithAuth: (async (
753-
params: Parameters<(typeof networkModule)['chainApi']['mintWithAuth']>[0]
753+
params: Parameters<typeof networkModule['chainApi']['mintWithAuth']>[0]
754754
) => {
755755
_logger.info(`mintWithAuth called`);
756756
const result = await networkModule.chainApi.mintWithAuth(params);
757757
_logger.info({ result }, `mintWithAuth result`);
758758
return result;
759759
}) as (
760-
params: Parameters<(typeof networkModule)['chainApi']['mintWithAuth']>[0]
761-
) => ReturnType<(typeof networkModule)['chainApi']['mintWithAuth']>,
760+
params: Parameters<typeof networkModule['chainApi']['mintWithAuth']>[0]
761+
) => ReturnType<typeof networkModule['chainApi']['mintWithAuth']>,
762762
mintWithCustomAuth: async (params: MintWithCustomAuthRequest) => {
763763
const validatedParams = MintWithCustomAuthSchema.parse(params);
764764

@@ -882,7 +882,7 @@ export const _createNagaLitClient = async (
882882
},
883883
authService: {
884884
mintWithAuth: async (
885-
params: Parameters<(typeof networkModule)['authService']['pkpMint']>[0]
885+
params: Parameters<typeof networkModule['authService']['pkpMint']>[0]
886886
) => {
887887
_logger.info(`authService.mintWithAuth called`);
888888
const result = await networkModule.authService.pkpMint(params);
@@ -891,7 +891,7 @@ export const _createNagaLitClient = async (
891891
},
892892
registerPayer: async (
893893
params: Parameters<
894-
(typeof networkModule)['authService']['registerPayer']
894+
typeof networkModule['authService']['registerPayer']
895895
>[0]
896896
) => {
897897
_logger.info(`authService.registerPayer called`);
@@ -901,7 +901,7 @@ export const _createNagaLitClient = async (
901901
},
902902
delegateUsers: async (
903903
params: Parameters<
904-
(typeof networkModule)['authService']['delegateUsers']
904+
typeof networkModule['authService']['delegateUsers']
905905
>[0]
906906
) => {
907907
_logger.info(`authService.delegateUsers called`);

packages/networks/src/networks/vNaga/shared/managers/endpoints-manager/endpoints.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const LIT_ENDPOINT_VERSION = {
77
// Define the type for an individual endpoint
88
export type EndpointDefinition = {
99
path: string;
10-
version: (typeof LIT_ENDPOINT_VERSION)[keyof typeof LIT_ENDPOINT_VERSION];
10+
version: typeof LIT_ENDPOINT_VERSION[keyof typeof LIT_ENDPOINT_VERSION];
1111
};
1212

1313
// Define the type for the collection of Naga endpoints

packages/schemas/src/lib/auth/ScopeSchema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ export const SCOPE_VALUES = [
1111
'sign-anything',
1212
'personal-sign',
1313
] as const;
14-
export type ScopeString = (typeof SCOPE_VALUES)[number];
14+
export type ScopeString = typeof SCOPE_VALUES[number];
1515

1616
// Mapping from string scopes to their bigint representation
1717
export const SCOPE_MAPPING = {
1818
'no-permissions': 0n,
1919
'sign-anything': 1n,
2020
'personal-sign': 2n,
2121
} as const;
22-
export type ScopeBigInt = (typeof SCOPE_MAPPING)[ScopeString];
22+
export type ScopeBigInt = typeof SCOPE_MAPPING[ScopeString];
2323

2424
// Schema for string values (used in high-level APIs)
2525
export const ScopeStringSchema = z.enum(SCOPE_VALUES);

packages/types/src/lib/v2types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export interface RequestItem<T> {
2525
// Definition for a single endpoint
2626
export type EndpointDefinition = {
2727
path: string;
28-
version: (typeof LIT_ENDPOINT_VERSION)[keyof typeof LIT_ENDPOINT_VERSION];
28+
version: typeof LIT_ENDPOINT_VERSION[keyof typeof LIT_ENDPOINT_VERSION];
2929
};
3030

3131
// Collection of known endpoints

0 commit comments

Comments
 (0)