genlayer 0.38.8 → 0.38.10
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/.eslintignore +2 -0
- package/.github/workflows/cli-docs.yml +124 -0
- package/.github/workflows/publish.yml +55 -0
- package/.github/workflows/smoke.yml +27 -0
- package/.github/workflows/validate-code.yml +51 -0
- package/.prettierignore +19 -0
- package/.prettierrc +12 -0
- package/.release-it.json +66 -0
- package/CHANGELOG.md +545 -0
- package/CLAUDE.md +55 -0
- package/CONTRIBUTING.md +117 -0
- package/dist/index.js +221 -62
- package/docs/api-references/_meta.json +9 -0
- package/docs/api-references/accounts/_meta.json +3 -0
- package/docs/api-references/accounts/account/create.mdx +19 -0
- package/docs/api-references/accounts/account/export.mdx +19 -0
- package/docs/api-references/accounts/account/import.mdx +22 -0
- package/docs/api-references/accounts/account/list.mdx +15 -0
- package/docs/api-references/accounts/account/lock.mdx +16 -0
- package/docs/api-references/accounts/account/remove.mdx +20 -0
- package/docs/api-references/accounts/account/send.mdx +24 -0
- package/docs/api-references/accounts/account/show.mdx +17 -0
- package/docs/api-references/accounts/account/unlock.mdx +17 -0
- package/docs/api-references/accounts/account/use.mdx +19 -0
- package/docs/api-references/accounts/account.mdx +32 -0
- package/docs/api-references/configuration/_meta.json +4 -0
- package/docs/api-references/configuration/config/get.mdx +21 -0
- package/docs/api-references/configuration/config/reset.mdx +21 -0
- package/docs/api-references/configuration/config/set.mdx +21 -0
- package/docs/api-references/configuration/config.mdx +25 -0
- package/docs/api-references/configuration/network/info.mdx +15 -0
- package/docs/api-references/configuration/network/list.mdx +15 -0
- package/docs/api-references/configuration/network/set.mdx +21 -0
- package/docs/api-references/configuration/network.mdx +25 -0
- package/docs/api-references/contracts/_meta.json +7 -0
- package/docs/api-references/contracts/call.mdx +21 -0
- package/docs/api-references/contracts/code.mdx +20 -0
- package/docs/api-references/contracts/deploy.mdx +17 -0
- package/docs/api-references/contracts/schema.mdx +20 -0
- package/docs/api-references/contracts/write.mdx +21 -0
- package/docs/api-references/environment/_meta.json +7 -0
- package/docs/api-references/environment/init.mdx +20 -0
- package/docs/api-references/environment/new.mdx +21 -0
- package/docs/api-references/environment/stop.mdx +15 -0
- package/docs/api-references/environment/up.mdx +20 -0
- package/docs/api-references/environment/update/ollama.mdx +16 -0
- package/docs/api-references/environment/update.mdx +23 -0
- package/docs/api-references/index.mdx +35 -0
- package/docs/api-references/localnet/_meta.json +3 -0
- package/docs/api-references/localnet/localnet/validators/count.mdx +15 -0
- package/docs/api-references/localnet/localnet/validators/create-random.mdx +16 -0
- package/docs/api-references/localnet/localnet/validators/create.mdx +19 -0
- package/docs/api-references/localnet/localnet/validators/delete.mdx +16 -0
- package/docs/api-references/localnet/localnet/validators/get.mdx +16 -0
- package/docs/api-references/localnet/localnet/validators/update.mdx +23 -0
- package/docs/api-references/localnet/localnet/validators.mdx +28 -0
- package/docs/api-references/localnet/localnet.mdx +23 -0
- package/docs/api-references/staking/_meta.json +3 -0
- package/docs/api-references/staking/staking/active-validators.mdx +18 -0
- package/docs/api-references/staking/staking/banned-validators.mdx +18 -0
- package/docs/api-references/staking/staking/delegation-info.mdx +25 -0
- package/docs/api-references/staking/staking/delegator-claim.mdx +26 -0
- package/docs/api-references/staking/staking/delegator-exit.mdx +26 -0
- package/docs/api-references/staking/staking/delegator-join.mdx +26 -0
- package/docs/api-references/staking/staking/epoch-info.mdx +19 -0
- package/docs/api-references/staking/staking/prime-all.mdx +20 -0
- package/docs/api-references/staking/staking/quarantined-validators.mdx +18 -0
- package/docs/api-references/staking/staking/set-identity.mdx +33 -0
- package/docs/api-references/staking/staking/set-operator.mdx +26 -0
- package/docs/api-references/staking/staking/validator-claim.mdx +24 -0
- package/docs/api-references/staking/staking/validator-deposit.mdx +25 -0
- package/docs/api-references/staking/staking/validator-exit.mdx +25 -0
- package/docs/api-references/staking/staking/validator-history.mdx +29 -0
- package/docs/api-references/staking/staking/validator-info.mdx +25 -0
- package/docs/api-references/staking/staking/validator-join.mdx +22 -0
- package/docs/api-references/staking/staking/validator-prime.mdx +25 -0
- package/docs/api-references/staking/staking/validators.mdx +19 -0
- package/docs/api-references/staking/staking/wizard.mdx +20 -0
- package/docs/api-references/staking/staking.mdx +42 -0
- package/docs/api-references/transactions/_meta.json +6 -0
- package/docs/api-references/transactions/appeal-bond.mdx +20 -0
- package/docs/api-references/transactions/appeal.mdx +21 -0
- package/docs/api-references/transactions/receipt.mdx +25 -0
- package/docs/api-references/transactions/trace.mdx +21 -0
- package/docs/delegator-guide.md +203 -0
- package/docs/validator-guide.md +329 -0
- package/esbuild.config.dev.js +17 -0
- package/esbuild.config.js +22 -0
- package/esbuild.config.prod.js +17 -0
- package/eslint.config.js +60 -0
- package/package.json +2 -11
- package/renovate.json +22 -0
- package/scripts/generate-cli-docs.mjs +68 -5
- package/src/commands/account/create.ts +30 -0
- package/src/commands/account/export.ts +106 -0
- package/src/commands/account/import.ts +135 -0
- package/src/commands/account/index.ts +129 -0
- package/src/commands/account/list.ts +34 -0
- package/src/commands/account/lock.ts +39 -0
- package/src/commands/account/remove.ts +30 -0
- package/src/commands/account/send.ts +162 -0
- package/src/commands/account/show.ts +74 -0
- package/src/commands/account/unlock.ts +56 -0
- package/src/commands/account/use.ts +21 -0
- package/src/commands/config/getSetReset.ts +51 -0
- package/src/commands/config/index.ts +30 -0
- package/src/commands/contracts/call.ts +39 -0
- package/src/commands/contracts/code.ts +33 -0
- package/src/commands/contracts/deploy.ts +161 -0
- package/src/commands/contracts/index.ts +150 -0
- package/src/commands/contracts/schema.ts +31 -0
- package/src/commands/contracts/write.ts +49 -0
- package/src/commands/general/index.ts +45 -0
- package/src/commands/general/init.ts +180 -0
- package/src/commands/general/start.ts +128 -0
- package/src/commands/general/stop.ts +26 -0
- package/src/commands/localnet/index.ts +100 -0
- package/src/commands/localnet/validators.ts +269 -0
- package/src/commands/network/index.ts +29 -0
- package/src/commands/network/setNetwork.ts +77 -0
- package/src/commands/scaffold/index.ts +16 -0
- package/src/commands/scaffold/new.ts +34 -0
- package/src/commands/staking/StakingAction.ts +279 -0
- package/src/commands/staking/delegatorClaim.ts +41 -0
- package/src/commands/staking/delegatorExit.ts +56 -0
- package/src/commands/staking/delegatorJoin.ts +44 -0
- package/src/commands/staking/index.ts +357 -0
- package/src/commands/staking/setIdentity.ts +78 -0
- package/src/commands/staking/setOperator.ts +46 -0
- package/src/commands/staking/stakingInfo.ts +584 -0
- package/src/commands/staking/validatorClaim.ts +43 -0
- package/src/commands/staking/validatorDeposit.ts +48 -0
- package/src/commands/staking/validatorExit.ts +63 -0
- package/src/commands/staking/validatorHistory.ts +300 -0
- package/src/commands/staking/validatorJoin.ts +47 -0
- package/src/commands/staking/validatorPrime.ts +73 -0
- package/src/commands/staking/wizard.ts +809 -0
- package/src/commands/transactions/appeal.ts +83 -0
- package/src/commands/transactions/index.ts +60 -0
- package/src/commands/transactions/receipt.ts +90 -0
- package/src/commands/transactions/trace.ts +42 -0
- package/src/commands/update/index.ts +25 -0
- package/src/commands/update/ollama.ts +103 -0
- package/src/lib/actions/BaseAction.ts +301 -0
- package/src/lib/clients/jsonRpcClient.ts +41 -0
- package/src/lib/clients/system.ts +73 -0
- package/src/lib/config/ConfigFileManager.ts +194 -0
- package/src/lib/config/KeychainManager.ts +89 -0
- package/src/lib/config/simulator.ts +68 -0
- package/src/lib/config/text.ts +2 -0
- package/src/lib/errors/missingRequirement.ts +9 -0
- package/src/lib/errors/versionRequired.ts +9 -0
- package/src/lib/interfaces/ISimulatorService.ts +39 -0
- package/src/lib/services/simulator.ts +386 -0
- package/src/types/node-fetch.d.ts +1 -0
- package/tests/actions/appeal.test.ts +141 -0
- package/tests/actions/call.test.ts +94 -0
- package/tests/actions/code.test.ts +87 -0
- package/tests/actions/create.test.ts +65 -0
- package/tests/actions/deploy.test.ts +420 -0
- package/tests/actions/getSetReset.test.ts +88 -0
- package/tests/actions/init.test.ts +483 -0
- package/tests/actions/lock.test.ts +86 -0
- package/tests/actions/new.test.ts +80 -0
- package/tests/actions/ollama.test.ts +193 -0
- package/tests/actions/receipt.test.ts +261 -0
- package/tests/actions/schema.test.ts +94 -0
- package/tests/actions/setNetwork.test.ts +161 -0
- package/tests/actions/staking.test.ts +280 -0
- package/tests/actions/start.test.ts +257 -0
- package/tests/actions/stop.test.ts +77 -0
- package/tests/actions/unlock.test.ts +139 -0
- package/tests/actions/validators.test.ts +750 -0
- package/tests/actions/write.test.ts +102 -0
- package/tests/commands/account.test.ts +146 -0
- package/tests/commands/appeal.test.ts +97 -0
- package/tests/commands/call.test.ts +78 -0
- package/tests/commands/code.test.ts +69 -0
- package/tests/commands/config.test.ts +54 -0
- package/tests/commands/deploy.test.ts +83 -0
- package/tests/commands/init.test.ts +101 -0
- package/tests/commands/localnet.test.ts +131 -0
- package/tests/commands/network.test.ts +60 -0
- package/tests/commands/new.test.ts +68 -0
- package/tests/commands/parseArg.test.ts +156 -0
- package/tests/commands/receipt.test.ts +142 -0
- package/tests/commands/schema.test.ts +67 -0
- package/tests/commands/staking.test.ts +329 -0
- package/tests/commands/stop.test.ts +27 -0
- package/tests/commands/up.test.ts +105 -0
- package/tests/commands/update.test.ts +45 -0
- package/tests/commands/write.test.ts +76 -0
- package/tests/index.test.ts +56 -0
- package/tests/libs/baseAction.test.ts +535 -0
- package/tests/libs/configFileManager.test.ts +118 -0
- package/tests/libs/jsonRpcClient.test.ts +59 -0
- package/tests/libs/keychainManager.test.ts +156 -0
- package/tests/libs/platformCommands.test.ts +78 -0
- package/tests/libs/system.test.ts +148 -0
- package/tests/services/simulator.test.ts +789 -0
- package/tests/smoke.test.ts +134 -0
- package/tests/utils.ts +13 -0
- package/tsconfig.json +120 -0
- package/vitest.config.ts +13 -0
- package/vitest.smoke.config.ts +17 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: localnet validators count
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Count all validators
|
|
6
|
+
|
|
7
|
+
### Usage
|
|
8
|
+
|
|
9
|
+
`$ genlayer localnet validators count [options]`
|
|
10
|
+
|
|
11
|
+
### Options
|
|
12
|
+
|
|
13
|
+
| Short | Long | Description | Required | Default |
|
|
14
|
+
| --- | --- | --- | :---: | --- |
|
|
15
|
+
| -h | --help | display help for command | No | |
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: localnet validators create-random
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Create random validators
|
|
6
|
+
|
|
7
|
+
### Usage
|
|
8
|
+
|
|
9
|
+
`$ genlayer localnet validators create-random [options]`
|
|
10
|
+
|
|
11
|
+
### Options
|
|
12
|
+
|
|
13
|
+
| Short | Long | Description | Required | Default |
|
|
14
|
+
| --- | --- | --- | :---: | --- |
|
|
15
|
+
| | --count <count> | Number of validators to create openai ollama) gpt-4o) | No | `[]` |
|
|
16
|
+
| -h | --help | display help for command | No | |
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: localnet validators create
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Create a new validator
|
|
6
|
+
|
|
7
|
+
### Usage
|
|
8
|
+
|
|
9
|
+
`$ genlayer localnet validators create [options]`
|
|
10
|
+
|
|
11
|
+
### Options
|
|
12
|
+
|
|
13
|
+
| Short | Long | Description | Required | Default |
|
|
14
|
+
| --- | --- | --- | :---: | --- |
|
|
15
|
+
| | --stake <stake> | Stake amount for the validator (default: 1) (default: "1") | No | |
|
|
16
|
+
| | --config <config> | Optional JSON configuration for the validator (e.g., '\{"max_tokens": 500, "temperature": 0.75\}') | No | |
|
|
17
|
+
| | --provider <provider> | Specify the provider for the validator | No | |
|
|
18
|
+
| | --model <model> | Specify the model for the validator | No | |
|
|
19
|
+
| -h | --help | display help for command | No | |
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: localnet validators delete
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Delete a specific validator or all validators
|
|
6
|
+
|
|
7
|
+
### Usage
|
|
8
|
+
|
|
9
|
+
`$ genlayer localnet validators delete [options]`
|
|
10
|
+
|
|
11
|
+
### Options
|
|
12
|
+
|
|
13
|
+
| Short | Long | Description | Required | Default |
|
|
14
|
+
| --- | --- | --- | :---: | --- |
|
|
15
|
+
| | --address <validatorAddress> | The address of the validator to delete (omit to delete all validators) | No | |
|
|
16
|
+
| -h | --help | display help for command | No | |
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: localnet validators get
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Retrieve details of a specific validator or all validators
|
|
6
|
+
|
|
7
|
+
### Usage
|
|
8
|
+
|
|
9
|
+
`$ genlayer localnet validators get [options]`
|
|
10
|
+
|
|
11
|
+
### Options
|
|
12
|
+
|
|
13
|
+
| Short | Long | Description | Required | Default |
|
|
14
|
+
| --- | --- | --- | :---: | --- |
|
|
15
|
+
| | --address <validatorAddress> | The address of the validator to retrieve (omit to retrieve all validators) | No | |
|
|
16
|
+
| -h | --help | display help for command | No | |
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: localnet validators update
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Update a validator's details
|
|
6
|
+
|
|
7
|
+
### Usage
|
|
8
|
+
|
|
9
|
+
`$ genlayer localnet validators update [options] <validatorAddress>`
|
|
10
|
+
|
|
11
|
+
### Arguments
|
|
12
|
+
|
|
13
|
+
- `<validatorAddress>`
|
|
14
|
+
|
|
15
|
+
### Options
|
|
16
|
+
|
|
17
|
+
| Short | Long | Description | Required | Default |
|
|
18
|
+
| --- | --- | --- | :---: | --- |
|
|
19
|
+
| | --stake <stake> | New stake for the validator | No | |
|
|
20
|
+
| | --provider <provider> | New provider for the validator | No | |
|
|
21
|
+
| | --model <model> | New model for the validator | No | |
|
|
22
|
+
| | --config <config> | New JSON config for the validator | No | |
|
|
23
|
+
| -h | --help | display help for command | No | |
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: localnet validators
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Manage localnet validators operations
|
|
6
|
+
|
|
7
|
+
### Usage
|
|
8
|
+
|
|
9
|
+
`$ genlayer localnet validators [options] [command]`
|
|
10
|
+
|
|
11
|
+
### Arguments
|
|
12
|
+
|
|
13
|
+
- `[command]`
|
|
14
|
+
|
|
15
|
+
### Options
|
|
16
|
+
|
|
17
|
+
| Short | Long | Description | Required | Default |
|
|
18
|
+
| --- | --- | --- | :---: | --- |
|
|
19
|
+
| -h | --help | display help for command | No | |
|
|
20
|
+
|
|
21
|
+
### Subcommands
|
|
22
|
+
|
|
23
|
+
- `genlayer get` — Retrieve details of a specific validator
|
|
24
|
+
- `genlayer delete` — Delete a specific validator or all
|
|
25
|
+
- `genlayer count` — Count all validators
|
|
26
|
+
- `genlayer update` — Update a validator's details
|
|
27
|
+
- `genlayer create-random` — Create random validators
|
|
28
|
+
- `genlayer create` — Create a new validator
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: localnet
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Manage localnet operations
|
|
6
|
+
|
|
7
|
+
### Usage
|
|
8
|
+
|
|
9
|
+
`$ genlayer localnet [options] [command]`
|
|
10
|
+
|
|
11
|
+
### Arguments
|
|
12
|
+
|
|
13
|
+
- `[command]`
|
|
14
|
+
|
|
15
|
+
### Options
|
|
16
|
+
|
|
17
|
+
| Short | Long | Description | Required | Default |
|
|
18
|
+
| --- | --- | --- | :---: | --- |
|
|
19
|
+
| -h | --help | display help for command | No | |
|
|
20
|
+
|
|
21
|
+
### Subcommands
|
|
22
|
+
|
|
23
|
+
- `genlayer validators` — Manage localnet validators operations
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: staking active-validators
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
List all active validators
|
|
6
|
+
|
|
7
|
+
### Usage
|
|
8
|
+
|
|
9
|
+
`$ genlayer staking active-validators [options]`
|
|
10
|
+
|
|
11
|
+
### Options
|
|
12
|
+
|
|
13
|
+
| Short | Long | Description | Required | Default |
|
|
14
|
+
| --- | --- | --- | :---: | --- |
|
|
15
|
+
| | --network <network> | Network to use (localnet, testnet-asimov) | No | |
|
|
16
|
+
| | --rpc <rpcUrl> | RPC URL for the network | No | |
|
|
17
|
+
| | --staking-address <address> | Staking contract address (overrides chain config) | No | |
|
|
18
|
+
| -h | --help | display help for command | No | |
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: staking banned-validators
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
List all banned validators
|
|
6
|
+
|
|
7
|
+
### Usage
|
|
8
|
+
|
|
9
|
+
`$ genlayer staking banned-validators [options]`
|
|
10
|
+
|
|
11
|
+
### Options
|
|
12
|
+
|
|
13
|
+
| Short | Long | Description | Required | Default |
|
|
14
|
+
| --- | --- | --- | :---: | --- |
|
|
15
|
+
| | --network <network> | Network to use (localnet, testnet-asimov) | No | |
|
|
16
|
+
| | --rpc <rpcUrl> | RPC URL for the network | No | |
|
|
17
|
+
| | --staking-address <address> | Staking contract address (overrides chain config) | No | |
|
|
18
|
+
| -h | --help | display help for command | No | |
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: staking delegation-info
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Get delegation info for a delegator with a validator
|
|
6
|
+
|
|
7
|
+
### Usage
|
|
8
|
+
|
|
9
|
+
`$ genlayer staking delegation-info [options] [validator]`
|
|
10
|
+
|
|
11
|
+
### Arguments
|
|
12
|
+
|
|
13
|
+
- `[validator]`
|
|
14
|
+
|
|
15
|
+
### Options
|
|
16
|
+
|
|
17
|
+
| Short | Long | Description | Required | Default |
|
|
18
|
+
| --- | --- | --- | :---: | --- |
|
|
19
|
+
| | --validator <address> | Validator address (deprecated, use positional arg) | No | |
|
|
20
|
+
| | --delegator <address> | Delegator address (defaults to signer) | No | |
|
|
21
|
+
| | --account <name> | Account to use (for default delegator address) | No | |
|
|
22
|
+
| | --network <network> | Network to use (localnet, testnet-asimov) | No | |
|
|
23
|
+
| | --rpc <rpcUrl> | RPC URL for the network | No | |
|
|
24
|
+
| | --staking-address <address> | Staking contract address (overrides chain config) | No | |
|
|
25
|
+
| -h | --help | display help for command | No | |
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: staking delegator-claim
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Claim delegator withdrawals after unbonding period
|
|
6
|
+
|
|
7
|
+
### Usage
|
|
8
|
+
|
|
9
|
+
`$ genlayer staking delegator-claim [options] [validator]`
|
|
10
|
+
|
|
11
|
+
### Arguments
|
|
12
|
+
|
|
13
|
+
- `[validator]`
|
|
14
|
+
|
|
15
|
+
### Options
|
|
16
|
+
|
|
17
|
+
| Short | Long | Description | Required | Default |
|
|
18
|
+
| --- | --- | --- | :---: | --- |
|
|
19
|
+
| | --validator <address> | Validator address (deprecated, use positional arg) | No | |
|
|
20
|
+
| | --delegator <address> | Delegator address (defaults to signer) | No | |
|
|
21
|
+
| | --account <name> | Account to use | No | |
|
|
22
|
+
| | --password <password> | Password to unlock account (skips interactive prompt) | No | |
|
|
23
|
+
| | --network <network> | Network to use (localnet, testnet-asimov) | No | |
|
|
24
|
+
| | --rpc <rpcUrl> | RPC URL for the network | No | |
|
|
25
|
+
| | --staking-address <address> | Staking contract address (overrides chain config) | No | |
|
|
26
|
+
| -h | --help | display help for command | No | |
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: staking delegator-exit
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Exit as a delegator by withdrawing shares from a validator
|
|
6
|
+
|
|
7
|
+
### Usage
|
|
8
|
+
|
|
9
|
+
`$ genlayer staking delegator-exit [options] [validator]`
|
|
10
|
+
|
|
11
|
+
### Arguments
|
|
12
|
+
|
|
13
|
+
- `[validator]`
|
|
14
|
+
|
|
15
|
+
### Options
|
|
16
|
+
|
|
17
|
+
| Short | Long | Description | Required | Default |
|
|
18
|
+
| --- | --- | --- | :---: | --- |
|
|
19
|
+
| | --validator <address> | Validator address to exit from (deprecated, use positional arg) | No | |
|
|
20
|
+
| | --shares <shares> | Number of shares to withdraw | No | |
|
|
21
|
+
| | --account <name> | Account to use | No | |
|
|
22
|
+
| | --password <password> | Password to unlock account (skips interactive prompt) | No | |
|
|
23
|
+
| | --network <network> | Network to use (localnet, testnet-asimov) | No | |
|
|
24
|
+
| | --rpc <rpcUrl> | RPC URL for the network | No | |
|
|
25
|
+
| | --staking-address <address> | Staking contract address (overrides chain config) | No | |
|
|
26
|
+
| -h | --help | display help for command | No | |
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: staking delegator-join
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Join as a delegator by staking with a validator
|
|
6
|
+
|
|
7
|
+
### Usage
|
|
8
|
+
|
|
9
|
+
`$ genlayer staking delegator-join [options] [validator]`
|
|
10
|
+
|
|
11
|
+
### Arguments
|
|
12
|
+
|
|
13
|
+
- `[validator]`
|
|
14
|
+
|
|
15
|
+
### Options
|
|
16
|
+
|
|
17
|
+
| Short | Long | Description | Required | Default |
|
|
18
|
+
| --- | --- | --- | :---: | --- |
|
|
19
|
+
| | --validator <address> | Validator address to delegate to (deprecated, use positional arg) | No | |
|
|
20
|
+
| | --amount <amount> | Amount to stake (in wei or with 'eth'/'gen' suffix) | No | |
|
|
21
|
+
| | --account <name> | Account to use | No | |
|
|
22
|
+
| | --password <password> | Password to unlock account (skips interactive prompt) | No | |
|
|
23
|
+
| | --network <network> | Network to use (localnet, testnet-asimov) | No | |
|
|
24
|
+
| | --rpc <rpcUrl> | RPC URL for the network | No | |
|
|
25
|
+
| | --staking-address <address> | Staking contract address (overrides chain config) | No | |
|
|
26
|
+
| -h | --help | display help for command | No | |
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: staking epoch-info
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Get current epoch and staking parameters
|
|
6
|
+
|
|
7
|
+
### Usage
|
|
8
|
+
|
|
9
|
+
`$ genlayer staking epoch-info [options]`
|
|
10
|
+
|
|
11
|
+
### Options
|
|
12
|
+
|
|
13
|
+
| Short | Long | Description | Required | Default |
|
|
14
|
+
| --- | --- | --- | :---: | --- |
|
|
15
|
+
| | --epoch <number> | Show data for specific epoch (current or previous only) | No | |
|
|
16
|
+
| | --network <network> | Network to use (localnet, testnet-asimov) | No | |
|
|
17
|
+
| | --rpc <rpcUrl> | RPC URL for the network | No | |
|
|
18
|
+
| | --staking-address <address> | Staking contract address (overrides chain config) | No | |
|
|
19
|
+
| -h | --help | display help for command | No | |
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: staking prime-all
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Prime all validators that need priming
|
|
6
|
+
|
|
7
|
+
### Usage
|
|
8
|
+
|
|
9
|
+
`$ genlayer staking prime-all [options]`
|
|
10
|
+
|
|
11
|
+
### Options
|
|
12
|
+
|
|
13
|
+
| Short | Long | Description | Required | Default |
|
|
14
|
+
| --- | --- | --- | :---: | --- |
|
|
15
|
+
| | --account <name> | Account to use (pays gas) | No | |
|
|
16
|
+
| | --password <password> | Password to unlock account (skips interactive prompt) | No | |
|
|
17
|
+
| | --network <network> | Network to use (localnet, testnet-asimov) | No | |
|
|
18
|
+
| | --rpc <rpcUrl> | RPC URL for the network | No | |
|
|
19
|
+
| | --staking-address <address> | Staking contract address (overrides chain config) | No | |
|
|
20
|
+
| -h | --help | display help for command | No | |
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: staking quarantined-validators
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
List all quarantined validators
|
|
6
|
+
|
|
7
|
+
### Usage
|
|
8
|
+
|
|
9
|
+
`$ genlayer staking quarantined-validators [options]`
|
|
10
|
+
|
|
11
|
+
### Options
|
|
12
|
+
|
|
13
|
+
| Short | Long | Description | Required | Default |
|
|
14
|
+
| --- | --- | --- | :---: | --- |
|
|
15
|
+
| | --network <network> | Network to use (localnet, testnet-asimov) | No | |
|
|
16
|
+
| | --rpc <rpcUrl> | RPC URL for the network | No | |
|
|
17
|
+
| | --staking-address <address> | Staking contract address (overrides chain config) | No | |
|
|
18
|
+
| -h | --help | display help for command | No | |
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: staking set-identity
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Set validator identity metadata (moniker, website, socials, etc.)
|
|
6
|
+
|
|
7
|
+
### Usage
|
|
8
|
+
|
|
9
|
+
`$ genlayer staking set-identity [options] [validator]`
|
|
10
|
+
|
|
11
|
+
### Arguments
|
|
12
|
+
|
|
13
|
+
- `[validator]`
|
|
14
|
+
|
|
15
|
+
### Options
|
|
16
|
+
|
|
17
|
+
| Short | Long | Description | Required | Default |
|
|
18
|
+
| --- | --- | --- | :---: | --- |
|
|
19
|
+
| | --validator <address> | Validator wallet address (deprecated, use positional arg) | No | |
|
|
20
|
+
| | --moniker <name> | Validator display name | No | |
|
|
21
|
+
| | --logo-uri <uri> | Logo URI | No | |
|
|
22
|
+
| | --website <url> | Website URL | No | |
|
|
23
|
+
| | --description <text> | Description | No | |
|
|
24
|
+
| | --email <email> | Contact email | No | |
|
|
25
|
+
| | --twitter <handle> | Twitter handle | No | |
|
|
26
|
+
| | --telegram <handle> | Telegram handle | No | |
|
|
27
|
+
| | --github <handle> | GitHub handle | No | |
|
|
28
|
+
| | --extra-cid <cid> | Extra data as IPFS CID or hex bytes (0x...) | No | |
|
|
29
|
+
| | --account <name> | Account to use (must be validator operator) | No | |
|
|
30
|
+
| | --password <password> | Password to unlock account (skips interactive prompt) | No | |
|
|
31
|
+
| | --network <network> | Network to use (localnet, testnet-asimov) | No | |
|
|
32
|
+
| | --rpc <rpcUrl> | RPC URL for the network | No | |
|
|
33
|
+
| -h | --help | display help for command | No | |
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: staking set-operator
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Change the operator address for a validator wallet
|
|
6
|
+
|
|
7
|
+
### Usage
|
|
8
|
+
|
|
9
|
+
`$ genlayer staking set-operator [options] [validator] [operator]`
|
|
10
|
+
|
|
11
|
+
### Arguments
|
|
12
|
+
|
|
13
|
+
- `[validator]`
|
|
14
|
+
- `[operator]`
|
|
15
|
+
|
|
16
|
+
### Options
|
|
17
|
+
|
|
18
|
+
| Short | Long | Description | Required | Default |
|
|
19
|
+
| --- | --- | --- | :---: | --- |
|
|
20
|
+
| | --validator <address> | Validator wallet address (deprecated, use positional arg) | No | |
|
|
21
|
+
| | --operator <address> | New operator address (deprecated, use positional arg) | No | |
|
|
22
|
+
| | --account <name> | Account to use (must be validator owner) | No | |
|
|
23
|
+
| | --password <password> | Password to unlock account (skips interactive prompt) | No | |
|
|
24
|
+
| | --network <network> | Network to use (localnet, testnet-asimov) | No | |
|
|
25
|
+
| | --rpc <rpcUrl> | RPC URL for the network | No | |
|
|
26
|
+
| -h | --help | display help for command | No | |
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: staking validator-claim
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Claim validator withdrawals after unbonding period
|
|
6
|
+
|
|
7
|
+
### Usage
|
|
8
|
+
|
|
9
|
+
`$ genlayer staking validator-claim [options] [validator]`
|
|
10
|
+
|
|
11
|
+
### Arguments
|
|
12
|
+
|
|
13
|
+
- `[validator]`
|
|
14
|
+
|
|
15
|
+
### Options
|
|
16
|
+
|
|
17
|
+
| Short | Long | Description | Required | Default |
|
|
18
|
+
| --- | --- | --- | :---: | --- |
|
|
19
|
+
| | --validator <address> | Validator wallet contract address (deprecated, use positional arg) | No | |
|
|
20
|
+
| | --account <name> | Account to use | No | |
|
|
21
|
+
| | --password <password> | Password to unlock account (skips interactive prompt) | No | |
|
|
22
|
+
| | --network <network> | Network to use (localnet, testnet-asimov) | No | |
|
|
23
|
+
| | --rpc <rpcUrl> | RPC URL for the network | No | |
|
|
24
|
+
| -h | --help | display help for command | No | |
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: staking validator-deposit
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Make an additional deposit to a validator wallet
|
|
6
|
+
|
|
7
|
+
### Usage
|
|
8
|
+
|
|
9
|
+
`$ genlayer staking validator-deposit [options] [validator]`
|
|
10
|
+
|
|
11
|
+
### Arguments
|
|
12
|
+
|
|
13
|
+
- `[validator]`
|
|
14
|
+
|
|
15
|
+
### Options
|
|
16
|
+
|
|
17
|
+
| Short | Long | Description | Required | Default |
|
|
18
|
+
| --- | --- | --- | :---: | --- |
|
|
19
|
+
| | --validator <address> | Validator wallet contract address (deprecated, use positional arg) | No | |
|
|
20
|
+
| | --amount <amount> | Amount to deposit (in wei or with 'eth'/'gen' suffix) | No | |
|
|
21
|
+
| | --account <name> | Account to use (must be validator owner) | No | |
|
|
22
|
+
| | --password <password> | Password to unlock account (skips interactive prompt) | No | |
|
|
23
|
+
| | --network <network> | Network to use (localnet, testnet-asimov) | No | |
|
|
24
|
+
| | --rpc <rpcUrl> | RPC URL for the network | No | |
|
|
25
|
+
| -h | --help | display help for command | No | |
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: staking validator-exit
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Exit as a validator by withdrawing shares
|
|
6
|
+
|
|
7
|
+
### Usage
|
|
8
|
+
|
|
9
|
+
`$ genlayer staking validator-exit [options] [validator]`
|
|
10
|
+
|
|
11
|
+
### Arguments
|
|
12
|
+
|
|
13
|
+
- `[validator]`
|
|
14
|
+
|
|
15
|
+
### Options
|
|
16
|
+
|
|
17
|
+
| Short | Long | Description | Required | Default |
|
|
18
|
+
| --- | --- | --- | :---: | --- |
|
|
19
|
+
| | --validator <address> | Validator wallet contract address (deprecated, use positional arg) | No | |
|
|
20
|
+
| | --shares <shares> | Number of shares to withdraw | No | |
|
|
21
|
+
| | --account <name> | Account to use (must be validator owner) | No | |
|
|
22
|
+
| | --password <password> | Password to unlock account (skips interactive prompt) | No | |
|
|
23
|
+
| | --network <network> | Network to use (localnet, testnet-asimov) | No | |
|
|
24
|
+
| | --rpc <rpcUrl> | RPC URL for the network | No | |
|
|
25
|
+
| -h | --help | display help for command | No | |
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: staking validator-history
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Show slash and reward history for a validator (default: last 10 epochs)
|
|
6
|
+
|
|
7
|
+
### Usage
|
|
8
|
+
|
|
9
|
+
`$ genlayer staking validator-history [options] [validator]`
|
|
10
|
+
|
|
11
|
+
### Arguments
|
|
12
|
+
|
|
13
|
+
- `[validator]`
|
|
14
|
+
|
|
15
|
+
### Options
|
|
16
|
+
|
|
17
|
+
| Short | Long | Description | Required | Default |
|
|
18
|
+
| --- | --- | --- | :---: | --- |
|
|
19
|
+
| | --validator <address> | Validator address (deprecated, use positional arg) | No | |
|
|
20
|
+
| | --epochs <count> | Number of recent epochs to fetch | No | `10` |
|
|
21
|
+
| | --from-epoch <epoch> | Start from this epoch number | No | |
|
|
22
|
+
| | --from-block <block> | Start from this block number (advanced) | No | |
|
|
23
|
+
| | --all | Fetch complete history from genesis (slow) | No | |
|
|
24
|
+
| | --limit <count> | Maximum number of events to show | No | `50` |
|
|
25
|
+
| | --account <name> | Account to use (for default validator address) | No | |
|
|
26
|
+
| | --network <network> | Network to use (localnet, testnet-asimov) | No | |
|
|
27
|
+
| | --rpc <rpcUrl> | RPC URL for the network | No | |
|
|
28
|
+
| | --staking-address <address> | Staking contract address (overrides chain config) | No | |
|
|
29
|
+
| -h | --help | display help for command | No | |
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: staking validator-info
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Get information about a validator
|
|
6
|
+
|
|
7
|
+
### Usage
|
|
8
|
+
|
|
9
|
+
`$ genlayer staking validator-info [options] [validator]`
|
|
10
|
+
|
|
11
|
+
### Arguments
|
|
12
|
+
|
|
13
|
+
- `[validator]`
|
|
14
|
+
|
|
15
|
+
### Options
|
|
16
|
+
|
|
17
|
+
| Short | Long | Description | Required | Default |
|
|
18
|
+
| --- | --- | --- | :---: | --- |
|
|
19
|
+
| | --validator <address> | Validator address (deprecated, use positional arg) | No | |
|
|
20
|
+
| | --account <name> | Account to use (for default validator address) | No | |
|
|
21
|
+
| | --network <network> | Network to use (localnet, testnet-asimov) | No | |
|
|
22
|
+
| | --rpc <rpcUrl> | RPC URL for the network | No | |
|
|
23
|
+
| | --staking-address <address> | Staking contract address (overrides chain config) | No | |
|
|
24
|
+
| | --debug | Show raw unfiltered pending deposits/withdrawals | No | |
|
|
25
|
+
| -h | --help | display help for command | No | |
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: staking validator-join
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Join as a validator by staking tokens
|
|
6
|
+
|
|
7
|
+
### Usage
|
|
8
|
+
|
|
9
|
+
`$ genlayer staking validator-join [options]`
|
|
10
|
+
|
|
11
|
+
### Options
|
|
12
|
+
|
|
13
|
+
| Short | Long | Description | Required | Default |
|
|
14
|
+
| --- | --- | --- | :---: | --- |
|
|
15
|
+
| | --amount <amount> | Amount to stake (in wei or with 'eth'/'gen' suffix, e.g., '42000gen') | No | |
|
|
16
|
+
| | --operator <address> | Operator address (defaults to signer) | No | |
|
|
17
|
+
| | --account <name> | Account to use | No | |
|
|
18
|
+
| | --password <password> | Password to unlock account (skips interactive prompt) | No | |
|
|
19
|
+
| | --network <network> | Network to use (localnet, testnet-asimov) | No | |
|
|
20
|
+
| | --rpc <rpcUrl> | RPC URL for the network | No | |
|
|
21
|
+
| | --staking-address <address> | Staking contract address (overrides chain config) | No | |
|
|
22
|
+
| -h | --help | display help for command | No | |
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: staking validator-prime
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Prime a validator to prepare their stake record for the next epoch
|
|
6
|
+
|
|
7
|
+
### Usage
|
|
8
|
+
|
|
9
|
+
`$ genlayer staking validator-prime [options] [validator]`
|
|
10
|
+
|
|
11
|
+
### Arguments
|
|
12
|
+
|
|
13
|
+
- `[validator]`
|
|
14
|
+
|
|
15
|
+
### Options
|
|
16
|
+
|
|
17
|
+
| Short | Long | Description | Required | Default |
|
|
18
|
+
| --- | --- | --- | :---: | --- |
|
|
19
|
+
| | --validator <address> | Validator address to prime (deprecated, use positional arg) | No | |
|
|
20
|
+
| | --account <name> | Account to use | No | |
|
|
21
|
+
| | --password <password> | Password to unlock account (skips interactive prompt) | No | |
|
|
22
|
+
| | --network <network> | Network to use (localnet, testnet-asimov) | No | |
|
|
23
|
+
| | --rpc <rpcUrl> | RPC URL for the network | No | |
|
|
24
|
+
| | --staking-address <address> | Staking contract address (overrides chain config) | No | |
|
|
25
|
+
| -h | --help | display help for command | No | |
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: staking validators
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Show validator set with stake, status, and voting power
|
|
6
|
+
|
|
7
|
+
### Usage
|
|
8
|
+
|
|
9
|
+
`$ genlayer staking validators [options]`
|
|
10
|
+
|
|
11
|
+
### Options
|
|
12
|
+
|
|
13
|
+
| Short | Long | Description | Required | Default |
|
|
14
|
+
| --- | --- | --- | :---: | --- |
|
|
15
|
+
| | --all | Include banned validators | No | |
|
|
16
|
+
| | --network <network> | Network to use (localnet, testnet-asimov) | No | |
|
|
17
|
+
| | --rpc <rpcUrl> | RPC URL for the network | No | |
|
|
18
|
+
| | --staking-address <address> | Staking contract address (overrides chain config) | No | |
|
|
19
|
+
| -h | --help | display help for command | No | |
|