@ssv-labs/ssv-sdk 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +674 -0
- package/README.html +102 -0
- package/README.md +136 -0
- package/README.pdf +0 -0
- package/dist/abi/holesky/v4/getter.d.ts +824 -0
- package/dist/abi/holesky/v4/setter.d.ts +1662 -0
- package/dist/abi/mainnet/v4/getter.d.ts +824 -0
- package/dist/abi/mainnet/v4/setter.d.ts +1677 -0
- package/dist/abi/token.d.ts +292 -0
- package/dist/api/ssv-api/index.d.ts +16 -0
- package/dist/api/subgraph/index.d.ts +101 -0
- package/dist/config/chains.d.ts +94 -0
- package/dist/config/create.d.ts +45 -0
- package/dist/config/globals.d.ts +33 -0
- package/dist/config/index.d.ts +3 -0
- package/dist/config-DPI30L0i.js +5159 -0
- package/dist/config-DlwfpwZd.mjs +5161 -0
- package/dist/contract-interactions/create.d.ts +3 -0
- package/dist/contract-interactions/index.d.ts +1 -0
- package/dist/contract-interactions/types.d.ts +93 -0
- package/dist/graphql/graphql.d.ts +3249 -0
- package/dist/libs/api/index.d.ts +81 -0
- package/dist/libs/cluster/index.d.ts +5636 -0
- package/dist/libs/cluster/methods/deposit.d.ts +286 -0
- package/dist/libs/cluster/methods/exit-validators.d.ts +283 -0
- package/dist/libs/cluster/methods/index.d.ts +8 -0
- package/dist/libs/cluster/methods/liquidate-cluster.d.ts +281 -0
- package/dist/libs/cluster/methods/reactivate-cluster.d.ts +282 -0
- package/dist/libs/cluster/methods/register-validators.d.ts +3652 -0
- package/dist/libs/cluster/methods/remove-validators.d.ts +283 -0
- package/dist/libs/cluster/methods/set-fee-recipient.d.ts +282 -0
- package/dist/libs/cluster/methods/withdraw.d.ts +282 -0
- package/dist/libs/operator/index.d.ts +4005 -0
- package/dist/libs/operator/methods.d.ts +844 -0
- package/dist/libs/utils/index.d.ts +32 -0
- package/dist/libs/utils/methods/get-cluster-balance.d.ts +9 -0
- package/dist/libs/utils/methods/index.d.ts +4 -0
- package/dist/libs/utils/methods/keyshares.d.ts +21 -0
- package/dist/libs/utils/methods/keystores.d.ts +13 -0
- package/dist/libs/utils/methods/methods.d.ts +2 -0
- package/dist/main.d.ts +8 -0
- package/dist/main.js +36437 -0
- package/dist/main.mjs +36437 -0
- package/dist/mock/api.d.ts +3 -0
- package/dist/mock/config.d.ts +6 -0
- package/dist/mock/index.d.ts +8 -0
- package/dist/sdk.d.ts +14 -0
- package/dist/types/contract-interactions.d.ts +21 -0
- package/dist/types/methods.d.ts +3 -0
- package/dist/types/operator.d.ts +9 -0
- package/dist/types/utils.d.ts +3 -0
- package/dist/utils/bigint.d.ts +29 -0
- package/dist/utils/cluster.d.ts +8 -0
- package/dist/utils/contract.d.ts +3 -0
- package/dist/utils/index.d.ts +9 -0
- package/dist/utils/keyshares.d.ts +21 -0
- package/dist/utils/number.d.ts +21 -0
- package/dist/utils/operator.d.ts +5 -0
- package/dist/utils/try-catch.d.ts +1 -0
- package/dist/utils/url-join.d.ts +1 -0
- package/dist/utils/zod/config.d.ts +9 -0
- package/dist/utils.js +43 -0
- package/dist/utils.mjs +43 -0
- package/package.json +136 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ConfigReturnType, ContractAddresses } from '../config';
|
|
2
|
+
type MockConfigArgs = Pick<ConfigReturnType, 'publicClient' | 'walletClient' | 'chain'> & {
|
|
3
|
+
addresses: ContractAddresses;
|
|
4
|
+
};
|
|
5
|
+
export declare const createMockConfig: (args: MockConfigArgs) => ConfigReturnType;
|
|
6
|
+
export {};
|
package/dist/sdk.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createClusterManager } from './libs/cluster';
|
|
2
|
+
import { createOperatorManager } from './libs/operator';
|
|
3
|
+
import { createUtils } from './libs/utils';
|
|
4
|
+
import { ConfigReturnType } from './config/create';
|
|
5
|
+
import { ConfigArgs } from './utils/zod/config';
|
|
6
|
+
export declare class SSVSDK {
|
|
7
|
+
readonly config: ConfigReturnType;
|
|
8
|
+
readonly clusters: ReturnType<typeof createClusterManager>;
|
|
9
|
+
readonly operators: ReturnType<typeof createOperatorManager>;
|
|
10
|
+
readonly api: ConfigReturnType['api'];
|
|
11
|
+
readonly contract: ConfigReturnType['contract'];
|
|
12
|
+
readonly utils: ReturnType<typeof createUtils>;
|
|
13
|
+
constructor(props: ConfigArgs | ConfigReturnType);
|
|
14
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AbiType, AbiTypeToPrimitiveType, ExtractAbiFunction } from 'abitype';
|
|
2
|
+
import { AbiFunction, AbiParameter, AbiParameterToPrimitiveType, DecodeEventLogReturnType } from 'viem';
|
|
3
|
+
import { MainnetV4SetterABI } from '../abi/mainnet/v4/setter';
|
|
4
|
+
import { TokenABI } from '../abi/token';
|
|
5
|
+
export type MainnetEvent = DecodeEventLogReturnType<typeof MainnetV4SetterABI>;
|
|
6
|
+
export type TokenEvent = DecodeEventLogReturnType<typeof TokenABI>;
|
|
7
|
+
export type ValidatorAddedEvent = Extract<MainnetEvent, {
|
|
8
|
+
eventName: 'ValidatorAdded';
|
|
9
|
+
}>;
|
|
10
|
+
type DepositFN = ExtractAbiFunction<typeof MainnetV4SetterABI, 'deposit'>;
|
|
11
|
+
export type ClusterSnapshot = AbiParameterToPrimitiveType<Extract<DepositFN['inputs'][number], {
|
|
12
|
+
internalType: 'struct ISSVNetworkCore.Cluster';
|
|
13
|
+
}>>;
|
|
14
|
+
export type AbiInputsToParams<T extends readonly AbiParameter[]> = {
|
|
15
|
+
[K in T[number] as K['name'] extends string ? K['name'] : never]: AbiParameterToPrimitiveType<K>;
|
|
16
|
+
};
|
|
17
|
+
export declare const paramsToArray: <Fn extends AbiFunction, Params extends Record<string, AbiTypeToPrimitiveType<AbiType>>>({ params, abiFunction, }: {
|
|
18
|
+
params: Params;
|
|
19
|
+
abiFunction: Fn;
|
|
20
|
+
}) => (Fn["inputs"] extends infer T_2 extends readonly AbiParameter[] ? { [key_1 in keyof T_2]: AbiParameterToPrimitiveType<Fn["inputs"][key_1], import('abitype').AbiParameterKind>; } : never) extends infer T ? { [key in keyof T]: (Fn["inputs"] extends infer T_1 extends readonly AbiParameter[] ? { [key_1 in keyof T_1]: AbiParameterToPrimitiveType<Fn["inputs"][key_1], import('abitype').AbiParameterKind>; } : never)[key]; } : never;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Prettify } from 'viem';
|
|
2
|
+
export type RemoveConfigArg<T extends (...args: any[]) => any> = (props: Prettify<Omit<Parameters<T>[1], 'config'>>) => ReturnType<T>;
|
|
3
|
+
export type RemoveClientArg<T extends (...args: any[]) => any> = (props: Prettify<Omit<Parameters<T>[1], 'client'>>) => ReturnType<T>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const bigintMax: (...args: bigint[]) => bigint;
|
|
2
|
+
export declare const bigintMin: (...args: bigint[]) => bigint;
|
|
3
|
+
export declare const bigintRound: (value: bigint, precision: bigint) => bigint;
|
|
4
|
+
export declare const bigintFloor: (value: bigint, precision?: bigint) => bigint;
|
|
5
|
+
export declare const bigintAbs: (n: bigint) => bigint;
|
|
6
|
+
/**
|
|
7
|
+
* Checks if the difference between two bigints exceeds a specified tolerance.
|
|
8
|
+
*
|
|
9
|
+
* @param {bigint} a - The first bigint value.
|
|
10
|
+
* @param {bigint} b - The second bigint value.
|
|
11
|
+
* @param {bigint} [tolerance] - default is `parseUnits("0.0001", 18)`.
|
|
12
|
+
*/
|
|
13
|
+
export declare const isBigIntChanged: (a: bigint, b: bigint, tolerance?: bigint) => boolean;
|
|
14
|
+
export declare const roundOperatorFee: (fee: bigint, precision?: bigint) => bigint;
|
|
15
|
+
type NoBigints<T> = {
|
|
16
|
+
[K in keyof T]: T[K] extends bigint ? string : T[K] extends bigint ? NoBigints<T[K]> : T[K];
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Converts bigints to strings in an object or array.
|
|
20
|
+
* @param anything - The object or array to convert.
|
|
21
|
+
* @returns A new object or array with bigints converted to strings.
|
|
22
|
+
* @example
|
|
23
|
+
* stringifyBigints(1n) → "1"
|
|
24
|
+
* stringifyBigints([1n]) → ["1"]
|
|
25
|
+
* stringifyBigints({a: 1n, b: { c: 1n }}) → {a: "1", b: {c: "1"}}
|
|
26
|
+
*/
|
|
27
|
+
export declare const stringifyBigints: <T>(anything: T) => NoBigints<T>;
|
|
28
|
+
export declare const bigintifyNumbers: (numbers: readonly number[] | number[]) => bigint[];
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GetClusterQuery } from '../graphql/graphql';
|
|
2
|
+
import { ClusterSnapshot } from '../types/contract-interactions';
|
|
3
|
+
import { Hex } from 'viem';
|
|
4
|
+
export declare const createClusterId: (ownerAddress: string, operatorIds: number[]) => string;
|
|
5
|
+
export declare const isClusterId: (clusterId: string) => boolean;
|
|
6
|
+
export declare const getClusterSnapshot: (cluster: NonNullable<GetClusterQuery['cluster']>) => ClusterSnapshot;
|
|
7
|
+
export declare const createEmptyCluster: (cluster?: Partial<ClusterSnapshot>) => ClusterSnapshot;
|
|
8
|
+
export declare const add0x: (value: string | Hex) => Hex;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './bigint';
|
|
2
|
+
export * from './cluster';
|
|
3
|
+
export * from './contract';
|
|
4
|
+
export * from './keyshares';
|
|
5
|
+
export * from './number';
|
|
6
|
+
export * from './operator';
|
|
7
|
+
export * from './try-catch';
|
|
8
|
+
export * from './url-join';
|
|
9
|
+
export * from './zod/config';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Operator } from '../types/operator';
|
|
2
|
+
import { KeySharesItem } from 'ssv-keys';
|
|
3
|
+
export declare const isKeySharesItem: (item: unknown) => item is KeySharesItem;
|
|
4
|
+
export declare enum KeysharesValidationErrors {
|
|
5
|
+
OperatorDoesNotExist = 0,
|
|
6
|
+
OperatorMismatch = 1,
|
|
7
|
+
ValidatorAlreadyExists = 2,
|
|
8
|
+
ClusterMismatch = 3,
|
|
9
|
+
DuplicateValidatorKeys = 4,
|
|
10
|
+
InconsistentOperatorPublicKeys = 5,
|
|
11
|
+
InconsistentOperators = 6
|
|
12
|
+
}
|
|
13
|
+
export declare const KeysharesValidationErrorsMessages: Record<KeysharesValidationErrors, string>;
|
|
14
|
+
export declare class KeysharesValidationError extends Error {
|
|
15
|
+
code: KeysharesValidationErrors;
|
|
16
|
+
constructor(code: KeysharesValidationErrors);
|
|
17
|
+
}
|
|
18
|
+
export declare const validateConsistentOperatorIds: (keyshares: KeySharesItem[]) => number[];
|
|
19
|
+
export declare const ensureValidatorsUniqueness: (keyshares: KeySharesItem[]) => boolean;
|
|
20
|
+
export declare const validateConsistentOperatorPublicKeys: (keyshares: KeySharesItem[], operators: Pick<Operator, 'id' | 'publicKey'>[]) => true;
|
|
21
|
+
export declare const ensureNoKeysharesErrors: (keyshares: KeySharesItem[]) => boolean;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const numberFormatter: Intl.NumberFormat;
|
|
2
|
+
export declare const _percentageFormatter: Intl.NumberFormat;
|
|
3
|
+
export declare const percentageFormatter: {
|
|
4
|
+
format: (value?: number) => string;
|
|
5
|
+
};
|
|
6
|
+
export declare const bigintFormatter: Intl.NumberFormat;
|
|
7
|
+
export declare const ethFormatter: Intl.NumberFormat;
|
|
8
|
+
export declare const formatSSV: (num: bigint, decimals?: number) => string;
|
|
9
|
+
export declare const formatBigintInput: (num: bigint, decimals?: number) => string;
|
|
10
|
+
declare const units: {
|
|
11
|
+
readonly seconds: 1000;
|
|
12
|
+
readonly minutes: 60000;
|
|
13
|
+
readonly hours: 3600000;
|
|
14
|
+
readonly days: 86400000;
|
|
15
|
+
readonly weeks: 604800000;
|
|
16
|
+
readonly months: 2629746000;
|
|
17
|
+
readonly years: 31556952000;
|
|
18
|
+
};
|
|
19
|
+
export declare const ms: (value: number, unit: keyof typeof units) => number;
|
|
20
|
+
export declare const sortNumbers: <T extends number | bigint>(numbers: T[]) => T[];
|
|
21
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const tryCatch: <T>(fn: () => T) => [T | null, Error | null];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function urlJoin(...args: string[]): string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PublicClient, WalletClient } from 'viem';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
type ZodConfigArgs = {
|
|
4
|
+
walletClient: z.ZodType<WalletClient>;
|
|
5
|
+
publicClient: z.ZodType<PublicClient>;
|
|
6
|
+
};
|
|
7
|
+
export declare const configArgsSchema: z.ZodObject<ZodConfigArgs>;
|
|
8
|
+
export type ConfigArgs = z.infer<z.ZodObject<ZodConfigArgs>>;
|
|
9
|
+
export {};
|
package/dist/utils.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const config = require("./config-DPI30L0i.js");
|
|
4
|
+
const waitForTransaction = async (config2, fn) => {
|
|
5
|
+
const hash = await fn;
|
|
6
|
+
return config2.publicClient.waitForTransactionReceipt({ hash });
|
|
7
|
+
};
|
|
8
|
+
exports.KeysharesValidationError = config.KeysharesValidationError;
|
|
9
|
+
exports.KeysharesValidationErrors = config.KeysharesValidationErrors;
|
|
10
|
+
exports.KeysharesValidationErrorsMessages = config.KeysharesValidationErrorsMessages;
|
|
11
|
+
exports._percentageFormatter = config._percentageFormatter;
|
|
12
|
+
exports.add0x = config.add0x;
|
|
13
|
+
exports.bigintAbs = config.bigintAbs;
|
|
14
|
+
exports.bigintFloor = config.bigintFloor;
|
|
15
|
+
exports.bigintFormatter = config.bigintFormatter;
|
|
16
|
+
exports.bigintMax = config.bigintMax;
|
|
17
|
+
exports.bigintMin = config.bigintMin;
|
|
18
|
+
exports.bigintRound = config.bigintRound;
|
|
19
|
+
exports.bigintifyNumbers = config.bigintifyNumbers;
|
|
20
|
+
exports.configArgsSchema = config.configArgsSchema;
|
|
21
|
+
exports.createClusterId = config.createClusterId;
|
|
22
|
+
exports.createEmptyCluster = config.createEmptyCluster;
|
|
23
|
+
exports.decodeOperatorPublicKey = config.decodeOperatorPublicKey;
|
|
24
|
+
exports.ensureNoKeysharesErrors = config.ensureNoKeysharesErrors;
|
|
25
|
+
exports.ensureValidatorsUniqueness = config.ensureValidatorsUniqueness;
|
|
26
|
+
exports.ethFormatter = config.ethFormatter;
|
|
27
|
+
exports.formatBigintInput = config.formatBigintInput;
|
|
28
|
+
exports.formatSSV = config.formatSSV;
|
|
29
|
+
exports.getClusterSnapshot = config.getClusterSnapshot;
|
|
30
|
+
exports.getOperatorIds = config.getOperatorIds;
|
|
31
|
+
exports.isBigIntChanged = config.isBigIntChanged;
|
|
32
|
+
exports.isClusterId = config.isClusterId;
|
|
33
|
+
exports.isKeySharesItem = config.isKeySharesItem;
|
|
34
|
+
exports.ms = config.ms;
|
|
35
|
+
exports.numberFormatter = config.numberFormatter;
|
|
36
|
+
exports.percentageFormatter = config.percentageFormatter;
|
|
37
|
+
exports.roundOperatorFee = config.roundOperatorFee;
|
|
38
|
+
exports.sortNumbers = config.sortNumbers;
|
|
39
|
+
exports.stringifyBigints = config.stringifyBigints;
|
|
40
|
+
exports.tryCatch = config.tryCatch;
|
|
41
|
+
exports.validateConsistentOperatorIds = config.validateConsistentOperatorIds;
|
|
42
|
+
exports.validateConsistentOperatorPublicKeys = config.validateConsistentOperatorPublicKeys;
|
|
43
|
+
exports.waitForTransaction = waitForTransaction;
|
package/dist/utils.mjs
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { K, y, H, _, G, C, B, L, p, z, A, E, k, n, o, d, q, u, N, P, O, l, R, D, F, m, Q, I, J, r, x, s, t, w, v } from "./config-DlwfpwZd.mjs";
|
|
2
|
+
const waitForTransaction = async (config, fn) => {
|
|
3
|
+
const hash = await fn;
|
|
4
|
+
return config.publicClient.waitForTransactionReceipt({ hash });
|
|
5
|
+
};
|
|
6
|
+
export {
|
|
7
|
+
K as KeysharesValidationError,
|
|
8
|
+
y as KeysharesValidationErrors,
|
|
9
|
+
H as KeysharesValidationErrorsMessages,
|
|
10
|
+
_ as _percentageFormatter,
|
|
11
|
+
G as add0x,
|
|
12
|
+
C as bigintAbs,
|
|
13
|
+
B as bigintFloor,
|
|
14
|
+
L as bigintFormatter,
|
|
15
|
+
p as bigintMax,
|
|
16
|
+
z as bigintMin,
|
|
17
|
+
A as bigintRound,
|
|
18
|
+
E as bigintifyNumbers,
|
|
19
|
+
k as configArgsSchema,
|
|
20
|
+
n as createClusterId,
|
|
21
|
+
o as createEmptyCluster,
|
|
22
|
+
d as decodeOperatorPublicKey,
|
|
23
|
+
q as ensureNoKeysharesErrors,
|
|
24
|
+
u as ensureValidatorsUniqueness,
|
|
25
|
+
N as ethFormatter,
|
|
26
|
+
P as formatBigintInput,
|
|
27
|
+
O as formatSSV,
|
|
28
|
+
l as getClusterSnapshot,
|
|
29
|
+
R as getOperatorIds,
|
|
30
|
+
D as isBigIntChanged,
|
|
31
|
+
F as isClusterId,
|
|
32
|
+
m as isKeySharesItem,
|
|
33
|
+
Q as ms,
|
|
34
|
+
I as numberFormatter,
|
|
35
|
+
J as percentageFormatter,
|
|
36
|
+
r as roundOperatorFee,
|
|
37
|
+
x as sortNumbers,
|
|
38
|
+
s as stringifyBigints,
|
|
39
|
+
t as tryCatch,
|
|
40
|
+
w as validateConsistentOperatorIds,
|
|
41
|
+
v as validateConsistentOperatorPublicKeys,
|
|
42
|
+
waitForTransaction
|
|
43
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ssv-labs/ssv-sdk",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"author": "SSV.Labs",
|
|
5
|
+
"description": "ssv labs sdk",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"ssv",
|
|
8
|
+
"sdk"
|
|
9
|
+
],
|
|
10
|
+
"repository": "https://github.com/ssvlabs/ssv-sdk",
|
|
11
|
+
"files": [
|
|
12
|
+
"dist"
|
|
13
|
+
],
|
|
14
|
+
"main": "./dist/main.js",
|
|
15
|
+
"module": "./dist/main.js",
|
|
16
|
+
"types": "./dist/main.d.ts",
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"import": "./dist/main.js",
|
|
20
|
+
"require": "./dist/main.cjs",
|
|
21
|
+
"types": "./dist/main.d.ts"
|
|
22
|
+
},
|
|
23
|
+
"./utils": {
|
|
24
|
+
"import": "./dist/utils.js",
|
|
25
|
+
"require": "./dist/utils.cjs",
|
|
26
|
+
"types": "./dist/utils/index.d.ts"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"scripts": {
|
|
30
|
+
"lint": "eslint . --ext .ts --fix",
|
|
31
|
+
"watch": "rollup -w -c rollup.config.ts --configPlugin typescript --environment BUILD:development",
|
|
32
|
+
"build": "vite build",
|
|
33
|
+
"codegen": "graphql-codegen",
|
|
34
|
+
"test": "vitest",
|
|
35
|
+
"test:coverage": "vitest run --coverage",
|
|
36
|
+
"v-pub-tarball": "npm publish --dry-run",
|
|
37
|
+
"type-check": "tsc -b",
|
|
38
|
+
"type:perf": "tsc --extendedDiagnostics",
|
|
39
|
+
"release": "release-it",
|
|
40
|
+
"commit": "git-cz",
|
|
41
|
+
"lint-staged": "pnpm run type-check && pnpm vitest run && lint-staged",
|
|
42
|
+
"prepare": "husky && pnpm run build"
|
|
43
|
+
},
|
|
44
|
+
"lint-staged": {
|
|
45
|
+
"src/**/*.{ts,tsx,js,json}": [
|
|
46
|
+
"prettier --write --log-level silent",
|
|
47
|
+
"eslint --fix",
|
|
48
|
+
"git add"
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@0no-co/graphqlsp": "^1.12.16",
|
|
53
|
+
"@commitlint/cli": "^19.2.2",
|
|
54
|
+
"@commitlint/config-conventional": "^19.2.2",
|
|
55
|
+
"@graphql-codegen/cli": "^5.0.3",
|
|
56
|
+
"@graphql-codegen/schema-ast": "^4.1.0",
|
|
57
|
+
"@graphql-codegen/typed-document-node": "^5.0.10",
|
|
58
|
+
"@graphql-codegen/typescript": "^4.1.0",
|
|
59
|
+
"@graphql-codegen/typescript-graphql-request": "^6.2.0",
|
|
60
|
+
"@graphql-codegen/typescript-operations": "^4.3.0",
|
|
61
|
+
"@nomicfoundation/hardhat-toolbox": "^5.0.0",
|
|
62
|
+
"@nomicfoundation/hardhat-viem": "^2.0.6",
|
|
63
|
+
"@openzeppelin/contracts": "^4.9.6",
|
|
64
|
+
"@openzeppelin/contracts-upgradeable": "^4.9.6",
|
|
65
|
+
"@openzeppelin/hardhat-upgrades": "^3.0.5",
|
|
66
|
+
"@parcel/watcher": "^2.4.1",
|
|
67
|
+
"@release-it/conventional-changelog": "^8.0.1",
|
|
68
|
+
"@rollup/plugin-alias": "^5.1.1",
|
|
69
|
+
"@rollup/plugin-commonjs": "^28.0.1",
|
|
70
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
71
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
72
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
73
|
+
"@rollup/plugin-typescript": "^11.1.6",
|
|
74
|
+
"@rollup/rollup-darwin-x64": "^4.30.1",
|
|
75
|
+
"@types/eslint-plugin-prettier": "^3.1.3",
|
|
76
|
+
"@types/lodash-es": "^4.17.12",
|
|
77
|
+
"@types/node": "^20.12.7",
|
|
78
|
+
"@typescript-eslint/eslint-plugin": "^7.7.0",
|
|
79
|
+
"@typescript-eslint/parser": "^7.7.0",
|
|
80
|
+
"@vitest/coverage-v8": "^1.5.0",
|
|
81
|
+
"@vitest/ui": "^1.5.0",
|
|
82
|
+
"commitizen": "^4.3.0",
|
|
83
|
+
"concurrently": "^9.0.1",
|
|
84
|
+
"cz-git": "^1.9.1",
|
|
85
|
+
"eslint": "^8.57.0",
|
|
86
|
+
"eslint-config-prettier": "^9.1.0",
|
|
87
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
88
|
+
"eslint-plugin-unused-imports": "^4.1.4",
|
|
89
|
+
"hardhat": "^2.22.17",
|
|
90
|
+
"husky": "^9.0.11",
|
|
91
|
+
"lint-staged": "^15.2.2",
|
|
92
|
+
"prettier": "^3.2.5",
|
|
93
|
+
"release-it": "^17.2.0",
|
|
94
|
+
"rollup": "^4.14.3",
|
|
95
|
+
"rollup-plugin-delete": "^2.0.0",
|
|
96
|
+
"rollup-plugin-dts": "^6.1.1",
|
|
97
|
+
"rollup-plugin-tsconfig-paths": "^1.5.2",
|
|
98
|
+
"rollup-plugin-typescript2": "^0.36.0",
|
|
99
|
+
"semantic-release": "^23.0.8",
|
|
100
|
+
"typescript": "^5.4.5",
|
|
101
|
+
"vite": "^5.4.10",
|
|
102
|
+
"vite-plugin-dts": "^4.3.0",
|
|
103
|
+
"vite-plugin-glob": "^0.3.2",
|
|
104
|
+
"vite-plugin-node-polyfills": "^0.22.0",
|
|
105
|
+
"vitest": "^1.5.0"
|
|
106
|
+
},
|
|
107
|
+
"config": {
|
|
108
|
+
"commitizen": {
|
|
109
|
+
"path": "node_modules/cz-git"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"engines": {
|
|
113
|
+
"node": ">=18.0.0"
|
|
114
|
+
},
|
|
115
|
+
"dependencies": {
|
|
116
|
+
"@chainsafe/bls": "^8.1.0",
|
|
117
|
+
"@chainsafe/bls-keygen": "^0.4.0",
|
|
118
|
+
"@chainsafe/bls-keystore": "^3.1.0",
|
|
119
|
+
"@chainsafe/blst": "^2.2.0",
|
|
120
|
+
"@chainsafe/ssz": "^0.18.0",
|
|
121
|
+
"@graphql-typed-document-node/core": "^3.2.0",
|
|
122
|
+
"@lodestar/config": "^1.22.0",
|
|
123
|
+
"@lodestar/params": "^1.22.0",
|
|
124
|
+
"@lodestar/state-transition": "^1.22.0",
|
|
125
|
+
"@lodestar/types": "^1.22.0",
|
|
126
|
+
"@safe-global/protocol-kit": "^5.0.3",
|
|
127
|
+
"abitype": "^1.0.6",
|
|
128
|
+
"dotenv": "^16.4.5",
|
|
129
|
+
"graphql-request": "^7.1.0",
|
|
130
|
+
"lodash-es": "^4.17.21",
|
|
131
|
+
"ssv-keys": "^1.2.1",
|
|
132
|
+
"viem": "^2.21.30",
|
|
133
|
+
"zod": "^3.23.8"
|
|
134
|
+
},
|
|
135
|
+
"license": "SEE LICENSE IN LICENCE FILE"
|
|
136
|
+
}
|