Skip to content

Commit

Permalink
remove elastic subnets docs (#1918)
Browse files Browse the repository at this point in the history
Co-authored-by: owenwahlgren <[email protected]>
  • Loading branch information
0xstt and owenwahlgren authored Nov 13, 2024
1 parent d2ee6a3 commit 4cd05f1
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 282 deletions.
10 changes: 0 additions & 10 deletions app/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -246,16 +246,6 @@
<lastmod>2024-09-25T14:51:47+00:00</lastmod>
<priority>0.64</priority>
</url>
<url>
<loc>https://docs.avax.network/avalanche-l1s/elastic-avalanche-l1s/make-avalanche-l1-permissionless</loc>
<lastmod>2024-09-25T14:51:47+00:00</lastmod>
<priority>0.64</priority>
</url>
<url>
<loc>https://docs.avax.network/avalanche-l1s/elastic-avalanche-l1s/parameters</loc>
<lastmod>2024-09-25T14:51:47+00:00</lastmod>
<priority>0.64</priority>
</url>
<url>
<loc>https://docs.avax.network/avalanche-l1s/maintain/view-avalanche-l1s</loc>
<lastmod>2024-09-25T14:51:47+00:00</lastmod>
Expand Down
90 changes: 1 addition & 89 deletions content/docs/avalanche-l1s/avalanche-cli-avalanche-l1s.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ avalanche blockchain removeValidator [blockchainName] [flags]
--ledger-addrs strings use the given ledger addresses
--local remove validator in existing local deployment
--mainnet remove validator in existing mainnet deployment
--nodeID string node id of node to be added as validator in elastic Avalanche L1
--nodeID string set the NodeID of the validator to remove
--output-tx-path string file path of the removeValidator tx
--subnet-auth-keys strings control keys that will be used to authenticate removeValidator tx
--testnet remove validator in existing testnet deployment (alias for `fuji`)
Expand Down Expand Up @@ -446,94 +446,6 @@ The `blockchain vmid` command prints the virtual machine ID (VMID) for the given
avalanche blockchain vmid [blockchainName]
```
Elastic Avalanche L1[​](#elastic-avalanche-l1 "Direct link to heading")
-----------------------------------------------------------
### Transforms permissioned Avalanche L1 into Elastic Avalanche L1[​](#transforms-permissioned-avalanche-l1-into-elastic-avalanche-l1 "Direct link to heading")
This command transforms your permissioned Avalanche L1 into an Elastic Avalanche L1 (NOTE: this action is irreversible).
**Usage**:
```bash
avalanche blockchain elastic [blockchainName] [flags]
```
**Flags**:
```bash
--default If true, use default elastic Avalanche L1 config values
--denonimation int specify the token denomination (for Fuji and Mainnet only)
--force If true, override transform into elastic Avalanche L1 warning
--fuji elastic Avalanche L1 transform existing fuji deployment (alias for `testnet`)
-k, --key string select the key to use [fuji only]
-g, --ledger use ledger instead of key (always true on mainnet, defaults to false on fuji)
--ledger-addrs strings use the given ledger addresses
--local elastic Avalanche L1 transform existing local deployment
--mainnet elastic Avalanche L1 transform existing mainnet deployment
--output-tx-path string file path of the transformSubnet tx
--stake-amount int amount of tokens to stake on validator
--staking-period string how long validator validates for after start time
--start-time string when validator starts validating (format as "2006-01-02 15:00:00")
--subnet-auth-keys strings control keys that will be used to authenticate transformSubnet tx
--testnet elastic Avalanche L1 transform existing testnet deployment (alias for `fuji`)
--tokenName string specify the token name
--tokenSymbol string specify the token symbol
--transform-validators If true, transform validators to permissionless validators after elastic transform
```
### Add Permissionless Validator in an Elastic Avalanche L1[​](#add-permissionless-validator-in-an-elastic-avalanche-l1 "Direct link to heading")
This command adds a node as a permissionless validator in an Elastic Avalanche L1.
**Usage**:
```bash
avalanche blockchain join [blockchainName] --elastic [flags]
```
**Flags**:
```bash
--fuji add permissionless validator in existing fuji deployment (alias for `testnet`)
-k, --key string select the key to use [fuji only]
-g, --ledger use ledger instead of key (always true on mainnet, defaults to false on fuji)
--ledger-addrs strings use the given ledger addresses
--local add permissionless validator in existing local deployment
--mainnet add permissionless validator in existing mainnet deployment
--nodeID string node id of node to be added as validator in elastic Avalanche L1
--stake-amount int amount of tokens to stake on validator
--staking-period string how long validator validates for after start time
--start-time string when validator starts validating (format as "2006-01-02 15:00:00")
--testnet add permissionless validator in existing testnet deployment (alias for `fuji`)
```
### Add Permissionless Delegator in an Elastic Avalanche L1[​](#add-permissionless-delegator-in-an-elastic-avalanche-l1 "Direct link to heading")
This command delegates stake to a permissionless validator in an Elastic Avalanche L1.
**Usage**:
```bash
avalanche blockchain addPermissionlessDelegator [blockchainName] [flags]
```
**Flags**:
```bash
--fuji add permissionless delegator in existing fuji deployment (alias for `testnet`)
-k, --key string select the key to use [fuji only]
-g, --ledger use ledger instead of key (always true on mainnet, defaults to false on fuji)
--ledger-addrs strings use the given ledger addresses
--local add permissionless delegator in existing local deployment
--mainnet add permissionless delegator in existing mainnet deployment
--nodeID string node id of node to be added as validator in elastic Avalanche L1
--stake-amount int amount of tokens to delegate to validator
--staking-period string how long to delegate for after start time
--start-time string when to starts delegating (format as "2006-01-02 15:00:00")
--testnet add permissionless delegator in existing testnet deployment (alias for `fuji`)
```
Avalanche L1 Upgrade[​](#avalanche-l1-upgrade "Direct link to heading")
-----------------------------------------------------------
Expand Down
90 changes: 1 addition & 89 deletions content/docs/tooling/avalanche-cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ avalanche blockchain removeValidator [blockchainName] [flags]
--ledger-addrs strings use the given ledger addresses
--local remove validator in existing local deployment
--mainnet remove validator in existing mainnet deployment
--nodeID string node id of node to be added as validator in elastic subnet
--nodeID string set the NodeID of the validator to remove
--output-tx-path string file path of the removeValidator tx
--subnet-auth-keys strings control keys that will be used to authenticate removeValidator tx
--testnet remove validator in existing testnet deployment (alias for `fuji`)
Expand Down Expand Up @@ -449,94 +449,6 @@ The `blockchain vmid` command prints the virtual machine ID (VMID) for the given
avalanche blockchain vmid [blockchainName]
```
### Elastic[​](#elastic-avalanche-l1 "Direct link to heading")
-----------------------------------------------------------
#### Transforms permissioned L1 into Elastic L1
This command transforms your permissioned Avalanche L1 into an Elastic Avalanche L1 (NOTE: this action is irreversible).
**Usage**:
```bash
avalanche blockchain elastic [blockchainName] [flags]
```
**Flags**:
```bash
--default If true, use default elastic subnet config values
--denonimation int specify the token denomination (for Fuji and Mainnet only)
--force If true, override transform into elastic subnet warning
--fuji elastic subnet transform existing fuji deployment (alias for `testnet`)
-k, --key string select the key to use [fuji only]
-g, --ledger use ledger instead of key (always true on mainnet, defaults to false on fuji)
--ledger-addrs strings use the given ledger addresses
--local elastic subnet transform existing local deployment
--mainnet elastic subnet transform existing mainnet deployment
--output-tx-path string file path of the transformSubnet tx
--stake-amount int amount of tokens to stake on validator
--staking-period string how long validator validates for after start time
--start-time string when validator starts validating (format as "2006-01-02 15:00:00")
--subnet-auth-keys strings control keys that will be used to authenticate transformSubnet tx
--testnet elastic subnet transform existing testnet deployment (alias for `fuji`)
--tokenName string specify the token name
--tokenSymbol string specify the token symbol
--transform-validators If true, transform validators to permissionless validators after elastic transform
```
#### Add Permissionless Validator in an Elastic L1
This command adds a node as a permissionless validator in an Elastic Avalanche L1.
**Usage**:
```bash
avalanche blockchain join [blockchainName] --elastic [flags]
```
**Flags**:
```bash
--fuji add permissionless validator in existing fuji deployment (alias for `testnet`)
-k, --key string select the key to use [fuji only]
-g, --ledger use ledger instead of key (always true on mainnet, defaults to false on fuji)
--ledger-addrs strings use the given ledger addresses
--local add permissionless validator in existing local deployment
--mainnet add permissionless validator in existing mainnet deployment
--nodeID string node id of node to be added as validator in elastic subnet
--stake-amount int amount of tokens to stake on validator
--staking-period string how long validator validates for after start time
--start-time string when validator starts validating (format as "2006-01-02 15:00:00")
--testnet add permissionless validator in existing testnet deployment (alias for `fuji`)
```
#### Add Permissionless Delegator in an Elastic L1
This command delegates stake to a permissionless validator in an Elastic Avalanche L1.
**Usage**:
```bash
avalanche blockchain addPermissionlessDelegator [blockchainName] [flags]
```
**Flags**:
```bash
--fuji add permissionless delegator in existing fuji deployment (alias for `testnet`)
-k, --key string select the key to use [fuji only]
-g, --ledger use ledger instead of key (always true on mainnet, defaults to false on fuji)
--ledger-addrs strings use the given ledger addresses
--local add permissionless delegator in existing local deployment
--mainnet add permissionless delegator in existing mainnet deployment
--nodeID string node id of node to be added as validator in elastic subnet
--stake-amount int amount of tokens to delegate to validator
--staking-period string how long to delegate for after start time
--start-time string when to starts delegating (format as "2006-01-02 15:00:00")
--testnet add permissionless delegator in existing testnet deployment (alias for `fuji`)
```
Blockchain Upgrade[​](#avalanche-blockchain-upgrade "Direct link to heading")
-----------------------------------------------------------
Expand Down
84 changes: 0 additions & 84 deletions content/docs/tooling/avalanche-network-runner/anr-commands.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -97,68 +97,6 @@ curl --location 'http://localhost:8081/v1/control/addnode' \
}'
```

### `add-permissionless-delegator`[](#add-permissionless-delegator "Direct link to heading")

Delegates to a permissionless validator in an Elastic Avalanche L1.

```bash
avalanche-network-runner control add-permissionless-delegator permissionlessValidatorSpecs [options] [flags]
```

#### Example[](#example-3 "Direct link to heading")

```bash
avalanche-network-runner control add-permissionless-delegator '{"validatorSpec":[{"subnet_id":"p433wpuXyJiDhyazPYyZMJeaoPSW76CBZ2x7wrVPLgvokotXz","node_name":"node5","asset_id":"U8iRqJoiJm8xZHAacmvYyZVwqQx6uDNtQeP3CQ6fcgQk3JqnK","staked_token_amount":2000,"start_time":"2023-09-25 21:00:00","stake_duration":336}]}'
```

```bash
curl --location 'http://localhost:8081/v1/control/addpermissionlessdelegator' \
--header 'Content-Type: application/json' \
--data '{
"validatorSpec": [
{
"subnet_id": "p433wpuXyJiDhyazPYyZMJeaoPSW76CBZ2x7wrVPLgvokotXz",
"node_name": "node5",
"asset_id": "U8iRqJoiJm8xZHAacmvYyZVwqQx6uDNtQeP3CQ6fcgQk3JqnK",
"staked_token_amount": 2000,
"start_time": "2023-09-25 21:00:00",
"stake_duration": 336
}
]
}'
```

### `add-permissionless-validator`[](#add-permissionless-validator "Direct link to heading")

Adds a permissionless validator to Elastic Avalanche L1s.

```bash
avalanche-network-runner control add-permissionless-validator permissionlessValidatorSpecs [options] [flags]
```

#### Example[](#example-4 "Direct link to heading")

```bash
avalanche-network-runner control add-permissionless-validator '[{"subnet_id":"p433wpuXyJiDhyazPYyZMJeaoPSW76CBZ2x7wrVPLgvokotXz","node_name":"node5","staked_token_amount":2000,"asset_id":"U8iRqJoiJm8xZHAacmvYyZVwqQx6uDNtQeP3CQ6fcgQk3JqnK","start_time":"2023-09-25 21:00:00","stake_duration":336}]'
```

```bash
curl --location 'http://localhost:8081/v1/control/addpermissionlessvalidator' \
--header 'Content-Type: application/json' \
--data '{
"validatorSpec": [
{
"subnetId":"p433wpuXyJiDhyazPYyZMJeaoPSW76CBZ2x7wrVPLgvokotXz",
"nodeName":"node1",
"stakedTokenAmount": 2000,
"assetId": "U8iRqJoiJm8xZHAacmvYyZVwqQx6uDNtQeP3CQ6fcgQk3JqnK",
"startTime": "2023-05-25 21:00:00",
"stakeDuration": 336
}
]}'
```

### `add-subnet-validators`[](#add-avalanche-l1-validators "Direct link to heading")

Adds Avalanche L1 validators.
Expand Down Expand Up @@ -258,28 +196,6 @@ curl --location 'http://localhost:8081/v1/control/createsubnets' \
}'
```

### `elastic-subnets`[](#elastic-avalanche-l1s "Direct link to heading")

Transforms Avalanche L1s to Elastic Avalanche L1s.

```bash
avalanche-network-runner control elastic-subnets elastic_subnets_specs [options] [flags]
```

#### Example[](#example-9 "Direct link to heading")

```bash
avalanche-network-runner control elastic-subnets '[{"subnet_id":"p433wpuXyJiDhyazPYyZMJeaoPSW76CBZ2x7wrVPLgvokotXz", "asset_name":"Avalanche",
"asset_symbol":"AVAX", "initial_supply": 240000000, "max_supply": 720000000, "min_consumption_rate": 100000,
"max_consumption_rate": 120000, "min_validator_stake": 2000, "max_validator_stake": 3000000, "min_stake_duration": 336,
"max_stake_duration": 8760, "min_delegation_fee": 20000, "min_delegator_stake": 25, "max_validator_weight_factor": 5,
"uptime_requirement": 800000}]'
```

```bash
curl -X POST -k http://localhost:8081/v1/control/transformelasticsubnets -d '{"elasticSubnetSpec": [{"subnetId":"p433wpuXyJiDhyazPYyZMJeaoPSW76CBZ2x7wrVPLgvokotXz","assetName":"Avalanche", "assetSymbol":"AVAX", "initialSupply": 240000000, "maxSupply": 720000000, "minConsumption_rate": 100000, "maxConsumption_rate": 120000, "minValidatorStake": 2000, "maxValidatorStake": 3000000, "minStakeDuration": 336, "maxStakeDuration": 8760, "minDelegationFee": 20000, "minDelegatorStake": 25, "maxValidatorWeightFactor": 5, "uptimeRequirement": 800000}]}'
```

### `get-snapshot-names`[](#get-snapshot-names "Direct link to heading")

Lists available snapshots.
Expand Down
10 changes: 0 additions & 10 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -775,16 +775,6 @@ const config = {
destination: '/avalanche-l1s/upgrade/customize-avalanche-l1',
permanent: true,
},
{
source: '/subnets/elastic-subnets/make-subnet-permissionless',
destination: '/avalanche-l1s/elastic-avalanche-l1s/make-avalanche-l1-permissionless',
permanent: true,
},
{
source: '/subnets/elastic-subnets/parameters',
destination: '/avalanche-l1s/elastic-avalanche-l1s/parameters',
permanent: true,
},
{
source: '/subnets/deploy-a-subnet/avalanche-mainnet',
destination: '/avalanche-l1s/deploy-a-avalanche-l1/avalanche-mainnet',
Expand Down

0 comments on commit 4cd05f1

Please sign in to comment.