dexter-deploy
v0.0.1
Published
deploy dexter to persistence
Downloads
1
Readme
dexter-deploy
This CLI is useful for deploying Dexter smart-contracts and interacting with them
Subcommands
code-store
This subcommand can be used to to store code on chain using 2 workflows:
- Direct (recommended now): Directly stores code to chain with relevant configuration as mentioned in the arguments.
- Via proposals (older): Creates proposals for storing code with the relevant configuration as mentioned in arguments.
The workflow is:
- Store code using proposals using
dexter-deploy code-store create-proposals
subcommand - Vote on code store proposals (using command) or externally. Command is:
dexter-deploy code-store vote-on-proposals
- Once proposals are passed, store code-ids in the deployment state output file using
dexter-deploy code-store find-code-ids
subcommand.
- Store code using proposals using
vault
This subcommand is meant for all vault related operations. Currently the operations are:
Instantiate: This can be done in 2 ways. Via proposals or directly. Currently we are recommend direct instantiation but requirement can differ based on permissioned setting. The worflows are:
- Direct: Instantiate using
dexter-deploy vault instantiate
subcommand. - Via proposals: Follow following steps:
- Create instantiation proposal using:
dexter-deploy vault create-instantiation-proposal
- Vote on proposal using
dexter-deploy vault vote-on-instantiation-proposal
in controlled environmments else get voting done externally. - Find and store address in deployment state using
dexter-deploy vault find-address
- Create instantiation proposal using:
- Direct: Instantiate using
Create Pool: This subcommand creates a pool with specified configuration. Use it like
dexter-deploy vault create-pool
Join Pool: This can be used to add liquidity to a pool. Command:
dexter-deploy vault join-pool
config-update
This subcommand is used to update instantiation config of address to allow them to be instantiated by Vault. This is particularly meant for Pool and LP Token contract.
2 subcommands are:
create-instantiation-config-proposal
: Create a proposal to update the instantiation config of a set of contracts.vote-on-instantiation-config-proposal
: Votes on proposal by the specified addresses in the configuration. Meant for localnet and devnet only.
keeper
Allows instantiation of keeper contract by direct method.
Subcommands: dexter-deploy keeper instantiate
multi-staking
Allows instantiation of multi-staking contract by direct method.
Subcommands: dexter-deploy multi-staking instantiate
TODO: Add examples of all above sucommands