Skip to content

Commit

Permalink
why do u keep changing
Browse files Browse the repository at this point in the history
  • Loading branch information
ebatsell committed Oct 30, 2024
1 parent 8ea1184 commit 15fb3b2
Showing 1 changed file with 254 additions and 6 deletions.
260 changes: 254 additions & 6 deletions docs/_tools/00_cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ Initialize, get, and set the config struct

* `initialize` — Initialize the config
* `get` — Get the config
* `set-admin` — Set the config admin



Expand All @@ -75,6 +76,18 @@ Get the config



## `jito-restaking-cli restaking config set-admin`

Set the config admin

**Usage:** `jito-restaking-cli restaking config set-admin <NEW_ADMIN>`

###### **Arguments:**

* `<NEW_ADMIN>` — The new admin's pubkey



## `jito-restaking-cli restaking ncn`

**Usage:** `jito-restaking-cli restaking ncn <COMMAND>`
Expand Down Expand Up @@ -122,6 +135,8 @@ List all NCNs
###### **Subcommands:**

* `initialize` — Initialize Operator
* `initialize-operator-vault-ticket` — Initialize Operator Vault Ticket
* `warmup-operator-vault-ticket` — Warmup Operator Vault Ticket
* `get` — Get operator
* `list` — List all operators

Expand All @@ -131,7 +146,37 @@ List all NCNs

Initialize Operator

**Usage:** `jito-restaking-cli restaking operator initialize`
**Usage:** `jito-restaking-cli restaking operator initialize <OPERATOR_FEE_BPS>`

###### **Arguments:**

* `<OPERATOR_FEE_BPS>`



## `jito-restaking-cli restaking operator initialize-operator-vault-ticket`

Initialize Operator Vault Ticket

**Usage:** `jito-restaking-cli restaking operator initialize-operator-vault-ticket <OPERATOR> <VAULT>`

###### **Arguments:**

* `<OPERATOR>`
* `<VAULT>`



## `jito-restaking-cli restaking operator warmup-operator-vault-ticket`

Warmup Operator Vault Ticket

**Usage:** `jito-restaking-cli restaking operator warmup-operator-vault-ticket <OPERATOR> <VAULT>`

###### **Arguments:**

* `<OPERATOR>`
* `<VAULT>`



Expand Down Expand Up @@ -174,23 +219,45 @@ Vault program commands

###### **Subcommands:**

* `initialize`
* `get`
* `initialize` — Creates global config (can only be done once)
* `get` — Fetches global config
* `set-admin` — Set the config admin



## `jito-restaking-cli vault config initialize`

**Usage:** `jito-restaking-cli vault config initialize`
Creates global config (can only be done once)

**Usage:** `jito-restaking-cli vault config initialize <PROGRAM_FEE_BPS> <PROGRAM_FEE_WALLET>`

###### **Arguments:**

* `<PROGRAM_FEE_BPS>` — The program fee in basis points
* `<PROGRAM_FEE_WALLET>` — The program fee wallet pubkey



## `jito-restaking-cli vault config get`

Fetches global config

**Usage:** `jito-restaking-cli vault config get`



## `jito-restaking-cli vault config set-admin`

Set the config admin

**Usage:** `jito-restaking-cli vault config set-admin <NEW_ADMIN>`

###### **Arguments:**

* `<NEW_ADMIN>` — The new admin's pubkey



## `jito-restaking-cli vault vault`

Vault commands
Expand All @@ -199,16 +266,29 @@ Vault commands

###### **Subcommands:**

* `initialize`Initializes the vault
* `initialize`Creates a new vault
* `create-token-metadata` — Creates token metadata for the vault's LRT token
* `initialize-vault-update-state-tracker` — Starts the vault update cycle
* `crank-vault-update-state-tracker` — Cranks the vault update state tracker, needs to be run per operator
* `close-vault-update-state-tracker` — Ends the vault update cycle
* `mint-vrt` — Mints VRT tokens
* `initialize-operator-delegation` — Sets up the delegations for an operator
* `delegate-to-operator` — Delegates tokens to an operator
* `cooldown-operator-delegation` — Cooldown delegation for an operator
* `enqueue-withdrawal` — Starts the withdrawal process
* `burn-withdrawal-ticket` — Burns the withdrawal ticket, ending the withdrawal process
* `get-vault-update-state-tracker` — Gets the update state tracker for a vault
* `get-operator-delegation` — Gets the operator delegation for a vault
* `get-withdrawal-ticket`
* `get` — Gets a vault
* `list` — List all vaults
* `set-capacity` — Sets the deposit capacity in the vault



## `jito-restaking-cli vault vault initialize`

Initializes the vault
Creates a new vault

**Usage:** `jito-restaking-cli vault vault initialize <TOKEN_MINT> <DEPOSIT_FEE_BPS> <WITHDRAWAL_FEE_BPS> <REWARD_FEE_BPS> <DECIMALS>`

Expand Down Expand Up @@ -237,6 +317,161 @@ Creates token metadata for the vault's LRT token



## `jito-restaking-cli vault vault initialize-vault-update-state-tracker`

Starts the vault update cycle

**Usage:** `jito-restaking-cli vault vault initialize-vault-update-state-tracker <VAULT>`

###### **Arguments:**

* `<VAULT>` — Vault account



## `jito-restaking-cli vault vault crank-vault-update-state-tracker`

Cranks the vault update state tracker, needs to be run per operator

**Usage:** `jito-restaking-cli vault vault crank-vault-update-state-tracker <VAULT> <OPERATOR>`

###### **Arguments:**

* `<VAULT>` — Vault account
* `<OPERATOR>` — Operator account



## `jito-restaking-cli vault vault close-vault-update-state-tracker`

Ends the vault update cycle

**Usage:** `jito-restaking-cli vault vault close-vault-update-state-tracker <VAULT> [NCN_EPOCH]`

###### **Arguments:**

* `<VAULT>` — Vault account
* `<NCN_EPOCH>` — Optional NCN epoch to close



## `jito-restaking-cli vault vault mint-vrt`

Mints VRT tokens

**Usage:** `jito-restaking-cli vault vault mint-vrt <VAULT> <AMOUNT_IN> <MIN_AMOUNT_OUT>`

###### **Arguments:**

* `<VAULT>` — Vault account
* `<AMOUNT_IN>` — Amount to deposit
* `<MIN_AMOUNT_OUT>` — Minimum amount of VRT to mint



## `jito-restaking-cli vault vault initialize-operator-delegation`

Sets up the delegations for an operator

**Usage:** `jito-restaking-cli vault vault initialize-operator-delegation <VAULT> <OPERATOR>`

###### **Arguments:**

* `<VAULT>` — Vault account
* `<OPERATOR>` — Operator account



## `jito-restaking-cli vault vault delegate-to-operator`

Delegates tokens to an operator

**Usage:** `jito-restaking-cli vault vault delegate-to-operator <VAULT> <OPERATOR> <AMOUNT>`

###### **Arguments:**

* `<VAULT>` — Vault account
* `<OPERATOR>` — Operator account
* `<AMOUNT>` — Amount to delegate



## `jito-restaking-cli vault vault cooldown-operator-delegation`

Cooldown delegation for an operator

**Usage:** `jito-restaking-cli vault vault cooldown-operator-delegation <VAULT> <OPERATOR> <AMOUNT>`

###### **Arguments:**

* `<VAULT>` — Vault account
* `<OPERATOR>` — Operator account
* `<AMOUNT>` — Amount to cooldown



## `jito-restaking-cli vault vault enqueue-withdrawal`

Starts the withdrawal process

**Usage:** `jito-restaking-cli vault vault enqueue-withdrawal <VAULT> <AMOUNT>`

###### **Arguments:**

* `<VAULT>` — Vault account
* `<AMOUNT>` — Amount to withdraw



## `jito-restaking-cli vault vault burn-withdrawal-ticket`

Burns the withdrawal ticket, ending the withdrawal process

**Usage:** `jito-restaking-cli vault vault burn-withdrawal-ticket <VAULT>`

###### **Arguments:**

* `<VAULT>` — Vault account



## `jito-restaking-cli vault vault get-vault-update-state-tracker`

Gets the update state tracker for a vault

**Usage:** `jito-restaking-cli vault vault get-vault-update-state-tracker <VAULT> <NCN_EPOCH>`

###### **Arguments:**

* `<VAULT>` — Vault account
* `<NCN_EPOCH>` — NCN epoch



## `jito-restaking-cli vault vault get-operator-delegation`

Gets the operator delegation for a vault

**Usage:** `jito-restaking-cli vault vault get-operator-delegation <VAULT> <OPERATOR>`

###### **Arguments:**

* `<VAULT>` — Vault account
* `<OPERATOR>` — Operator account



## `jito-restaking-cli vault vault get-withdrawal-ticket`

**Usage:** `jito-restaking-cli vault vault get-withdrawal-ticket <VAULT> [STAKER]`

###### **Arguments:**

* `<VAULT>` — Vault account
* `<STAKER>` — Staker account



## `jito-restaking-cli vault vault get`

Gets a vault
Expand All @@ -257,6 +492,19 @@ List all vaults



## `jito-restaking-cli vault vault set-capacity`

Sets the deposit capacity in the vault

**Usage:** `jito-restaking-cli vault vault set-capacity <VAULT> <AMOUNT>`

###### **Arguments:**

* `<VAULT>` — The vault pubkey
* `<AMOUNT>` — The new capacity



<hr/>

<small><i>
Expand Down

0 comments on commit 15fb3b2

Please sign in to comment.