@obolnetwork/obol-sdk 2.12.6 → 2.13.0

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isValidClusterLock
3
- } from "../chunk-GLSVKGK3.js";
3
+ } from "../chunk-EITEAAK3.js";
4
4
  import {
5
5
  ClusterLockValidationTimeoutError
6
6
  } from "../chunk-BJWBUH75.js";
@@ -69,7 +69,7 @@ export declare const signEnrPayload: (payload: {
69
69
  enr: string;
70
70
  }, chainId: number) => TypedMessage<typeof ENRTypedMessage>;
71
71
  export declare const DKG_ALGORITHM = "default";
72
- export declare const CONFIG_VERSION = "v1.10.0";
72
+ export declare const CONFIG_VERSION = "v1.11.0";
73
73
  export declare const SDK_VERSION: string;
74
74
  export declare const DOMAIN_APPLICATION_BUILDER = "00000001";
75
75
  export declare const DOMAIN_DEPOSIT = "03000000";
@@ -284,7 +284,7 @@ export declare class Client extends Base {
284
284
  * @example
285
285
  * ```typescript
286
286
  * const updatedDef = await client.acceptClusterDefinition(
287
- * { enr: "enr:-LK4Q...", version: "v1.10.0" },
287
+ * { enr: "enr:-LK4Q...", version: "v1.11.0" },
288
288
  * configHash,
289
289
  * );
290
290
  * ```
@@ -1,4 +1,4 @@
1
- import { ByteListType, ByteVectorType, ContainerType, UintNumberType } from '@chainsafe/ssz';
1
+ import { ByteListType, ByteVectorType, ContainerType, ListCompositeType, UintNumberType } from '@chainsafe/ssz';
2
2
  export declare const operatorAddressWrapperType: ContainerType<{
3
3
  address: ByteVectorType;
4
4
  }>;
@@ -11,16 +11,29 @@ export declare const operatorContainerType: ContainerType<{
11
11
  config_signature: ByteVectorType;
12
12
  enr_signature: ByteVectorType;
13
13
  }>;
14
+ export declare const k1SignatureListType: ListCompositeType<ByteVectorType>;
15
+ export declare const operatorContainerTypeV1X11: ContainerType<{
16
+ address: ByteVectorType;
17
+ enr: ByteListType;
18
+ config_signature: ListCompositeType<ByteVectorType>;
19
+ enr_signature: ListCompositeType<ByteVectorType>;
20
+ }>;
14
21
  export declare const creatorContainerType: ContainerType<{
15
22
  address: ByteVectorType;
16
23
  config_signature: ByteVectorType;
17
24
  }>;
25
+ export declare const creatorContainerTypeV1X11: ContainerType<{
26
+ address: ByteVectorType;
27
+ config_signature: ListCompositeType<ByteVectorType>;
28
+ }>;
18
29
  export declare const validatorsContainerType: ContainerType<{
19
30
  fee_recipient_address: ByteVectorType;
20
31
  withdrawal_address: ByteVectorType;
21
32
  }>;
22
33
  export declare const newCreatorContainerType: (configOnly: boolean) => ContainerType<any>;
34
+ export declare const newCreatorContainerTypeV1X11: (configOnly: boolean) => ContainerType<any>;
23
35
  export declare const newOperatorContainerType: (configOnly: boolean) => ContainerType<any>;
36
+ export declare const newOperatorContainerTypeV1X11: (configOnly: boolean) => ContainerType<any>;
24
37
  export declare const depositDataContainer: ContainerType<{
25
38
  pubkey: ByteVectorType;
26
39
  withdrawal_credentials: ByteVectorType;
@@ -0,0 +1,29 @@
1
+ import { UintNumberType } from '@chainsafe/ssz/lib/type/uint.js';
2
+ import { type operatorAddressWrapperType, type operatorContainerTypeV1X11, type creatorAddressWrapperType, type creatorContainerTypeV1X11, validatorsContainerType } from './sszTypes.js';
3
+ import { ByteListType, ByteVectorType, ContainerType, ListBasicType, ListCompositeType, BooleanType } from '@chainsafe/ssz';
4
+ import { type ValueOfFields } from '@chainsafe/ssz/lib/view/container.js';
5
+ import { type ClusterDefinition, type ClusterLock } from '../types.js';
6
+ type DefinitionFieldsV1X11 = {
7
+ uuid: ByteListType;
8
+ name: ByteListType;
9
+ version: ByteListType;
10
+ timestamp: ByteListType;
11
+ num_validators: UintNumberType;
12
+ threshold: UintNumberType;
13
+ dkg_algorithm: ByteListType;
14
+ fork_version: ByteVectorType;
15
+ operators: ListCompositeType<typeof operatorContainerTypeV1X11 | typeof operatorAddressWrapperType>;
16
+ creator: typeof creatorContainerTypeV1X11 | typeof creatorAddressWrapperType;
17
+ validators: ListCompositeType<typeof validatorsContainerType>;
18
+ deposit_amounts: ListBasicType<UintNumberType>;
19
+ consensus_protocol: ByteListType;
20
+ target_gas_limit: UintNumberType;
21
+ compounding: BooleanType;
22
+ config_hash?: ByteVectorType;
23
+ };
24
+ type DefinitionContainerTypeV1X11 = ContainerType<DefinitionFieldsV1X11>;
25
+ export declare const clusterDefinitionContainerTypeV1X11: (configOnly: boolean) => DefinitionContainerTypeV1X11;
26
+ export declare const hashClusterDefinitionV1X11: (cluster: ClusterDefinition, configOnly: boolean) => ValueOfFields<DefinitionFieldsV1X11>;
27
+ export declare const hashClusterLockV1X11: (cluster: ClusterLock) => string;
28
+ export declare const verifyDVV1X11: (clusterLock: ClusterLock) => Promise<boolean>;
29
+ export {};
@@ -1 +1 @@
1
- {"root":["../../tsup.config.ts","../../src/ajv.ts","../../src/base.ts","../../src/blsUtils.ts","../../src/bytecodes.ts","../../src/constants.ts","../../src/errors.ts","../../src/index.ts","../../src/schema.ts","../../src/services.ts","../../src/types.ts","../../src/utils.ts","../../src/abi/BatchDeposit.ts","../../src/abi/MerkleDistributorWithDeadline.ts","../../src/abi/Multicall3.ts","../../src/abi/OVM.ts","../../src/abi/OWR.ts","../../src/abi/SplitMain.ts","../../src/abi/splitV2FactoryAbi.ts","../../src/eoa/eoa.ts","../../src/eoa/eoaHelpers.ts","../../src/exits/ethUtils.ts","../../src/exits/exit.ts","../../src/exits/verificationHelpers.ts","../../src/incentives/incentiveHelpers.ts","../../src/incentives/incentives.ts","../../src/splits/splitHelpers.ts","../../src/splits/splits.ts","../../src/verification/clusterLockValidationWorker.ts","../../src/verification/common.ts","../../src/verification/lockWorker.ts","../../src/verification/parallelPool.ts","../../src/verification/signature-validator.ts","../../src/verification/sszTypes.ts","../../src/verification/v1.10.0.ts","../../src/verification/v1.6.0.ts","../../src/verification/v1.7.0.ts","../../src/verification/v1.8.0.ts","../../src/verification/validationConcurrency.ts"],"version":"5.9.3"}
1
+ {"root":["../../tsup.config.ts","../../src/ajv.ts","../../src/base.ts","../../src/blsUtils.ts","../../src/bytecodes.ts","../../src/constants.ts","../../src/errors.ts","../../src/index.ts","../../src/schema.ts","../../src/services.ts","../../src/types.ts","../../src/utils.ts","../../src/abi/BatchDeposit.ts","../../src/abi/MerkleDistributorWithDeadline.ts","../../src/abi/Multicall3.ts","../../src/abi/OVM.ts","../../src/abi/OWR.ts","../../src/abi/SplitMain.ts","../../src/abi/splitV2FactoryAbi.ts","../../src/eoa/eoa.ts","../../src/eoa/eoaHelpers.ts","../../src/exits/ethUtils.ts","../../src/exits/exit.ts","../../src/exits/verificationHelpers.ts","../../src/incentives/incentiveHelpers.ts","../../src/incentives/incentives.ts","../../src/splits/splitHelpers.ts","../../src/splits/splits.ts","../../src/verification/clusterLockValidationWorker.ts","../../src/verification/common.ts","../../src/verification/lockWorker.ts","../../src/verification/parallelPool.ts","../../src/verification/signature-validator.ts","../../src/verification/sszTypes.ts","../../src/verification/v1.10.0.ts","../../src/verification/v1.11.0.ts","../../src/verification/v1.6.0.ts","../../src/verification/v1.7.0.ts","../../src/verification/v1.8.0.ts","../../src/verification/validationConcurrency.ts"],"version":"5.9.3"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@obolnetwork/obol-sdk",
3
- "version": "2.12.6",
3
+ "version": "2.13.0",
4
4
  "description": "A package for creating Distributed Validators using the Obol API.",
5
5
  "bugs": {
6
6
  "url": "https://github.com/obolnetwork/obol-sdk/issues"