-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update sdk docs to include validateClusterLock * revert some changes
- Loading branch information
1 parent
38bc231
commit 41f31a2
Showing
23 changed files
with
305 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
Permitted `chainId`s for the [Client](../classes/Client.md) `config` constructor parameter. | ||
Permitted ChainID's | ||
|
||
## Enumeration Members | ||
|
||
| Enumeration Member | Value | Description | | ||
| :------ | :------ | :------ | | ||
| `0x00000000` | `1` | Mainnet. | | ||
| `0x00000064` | `100` | Gnosis Chain. | | ||
| `0x00001020` | `5` | Goerli/Prater. | | ||
| `0x00000064` | `100` | Gnosis Chain. | | ||
| `0x01017000` | `17000` | Holesky. | |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
> **validateClusterLock**(`lock`): `Promise`< `boolean` \> | ||
Verifies Cluster Lock's validity. | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| :------ | :------ | :------ | | ||
| `lock` | [`ClusterLock`](../type-aliases/ClusterLock.md) | cluster lock | | ||
|
||
## Returns | ||
|
||
`Promise`< `boolean` \> | ||
|
||
boolean result to indicate if lock is valid | ||
|
||
## Throws | ||
|
||
on missing keys or values. | ||
|
||
An example of how to use validateClusterLock: | ||
[validateClusterLock](https://github.com/ObolNetwork/obol-sdk-examples/blob/main/TS-Example/index.ts) | ||
|
||
## Source | ||
|
||
services.ts:13 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
Cluster Definition | ||
Cluster definition data needed for dkg | ||
|
||
## Extends | ||
|
||
- [`ClusterPayload`](ClusterPayload.md) | ||
- [`ClusterPayload`](../type-aliases/ClusterPayload.md) | ||
|
||
## Properties | ||
|
||
| Property | Type | Description | Inherited from | | ||
| :------ | :------ | :------ | :------ | | ||
| `config_hash` | `string` | The cluster configuration hash. | - | | ||
| `name` | `string` | The cluster name. | `ClusterPayload.name` | | ||
| `operators` | [`ClusterOperator`](../type-aliases/ClusterOperator.md)[] | The cluster nodes operators addresses. | `ClusterPayload.operators` | | ||
| `validators` | [`ClusterValidator`](../type-aliases/ClusterValidator.md)[] | The clusters validators information. | `ClusterPayload.validators` | | ||
| `creator` | [`ClusterCreator`](../type-aliases/ClusterCreator.md) | The creator of the cluster. | - | | ||
| `definition_hash?` | `string` | The hash of the cluster definition. | - | | ||
| `version` | `string` | The cluster configuration version. | - | | ||
| `dkg_algorithm` | `string` | The cluster dkg algorithm. | - | | ||
| `fork_version` | `string` | The cluster fork version. | - | | ||
| `name` | `string` | The cluster name. | [`ClusterPayload`](ClusterPayload.md).`name` | | ||
| `num_validators` | `number` | The number of distributed validators in the cluster. | - | | ||
| `operators` | [`ClusterOperator`](../type-aliases/ClusterOperator.md)[] | The cluster nodes operators addresses. | [`ClusterPayload`](ClusterPayload.md).`operators` | | ||
| `threshold` | `number` | The distributed validator threshold. | - | | ||
| `timestamp` | `string` | The cluster creation timestamp. | - | | ||
| `uuid` | `string` | The cluster uuid. | - | | ||
| `validators` | [`ClusterValidator`](../type-aliases/ClusterValidator.md)[] | The clusters validators information. | [`ClusterPayload`](ClusterPayload.md).`validators` | | ||
| `version` | `string` | The cluster configuration version. | - | | ||
| `timestamp` | `string` | The cluster creation timestamp. | - | | ||
| `config_hash` | `string` | The cluster configuration hash. | - | | ||
| `threshold` | `number` | The distributed validator threshold. | - | | ||
| `num_validators` | `number` | The number of distributed validators in the cluster. | - | | ||
| `definition_hash?` | `string` | The hash of the cluster definition. | - | |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.