breeze
is a command-line interface (CLI) tool for interacting with chicken pools on the Ethereum blockchain. It allows users to start, join, withdraw, claim rewards, and manage protocol fees for chicken and reward pools.
To install the dependencies, run:
bun install --dev
The CLI tool breeze
provides several commands to interact with the chicken pools. Below are the available commands and their usage.
Start a new chicken or reward pool.
breeze start <option> --token <token> --start <start> --end <end> --reward <reward> --deposit <deposit> --buyin <buyin> --slashing <slashing>
option
: Type of the pool (chicken
or
reward
token
start
end
reward
deposit
buyin
slashing
: Slashing percent
Example:
breeze start reward --token 0xTokenAddress --start 100 --end 200 --reward 10 --deposit 1
breeze start chicken --token 0xTokenAddress --buyin 5 --slashing 10
Join an existing chicken or reward pool.
breeze join <option> <poolId> <deposit> --token <token>
option
: Type of the pool (chicken
or
reward
poolId
deposit
token
: Token address for the pool
Example:
breeze join reward 1 5 --token 0xTokenAddress
breeze join chicken 2 3 --token 0xTokenAddress
Withdraw from an existing chicken or reward pool.
breeze withdraw <option> <poolId> --token <token>
option
: Type of the pool (chicken
or
reward
poolId
token
: Token address for the pool
Example:
breeze withdraw reward 1 --token 0xTokenAddress
breeze withdraw chicken 2 --token 0xTokenAddress
Claim rewards from an existing chicken or reward pool.
breeze claim <option> <poolId> --token <token>
option
: Type of the pool (chicken
or
reward
poolId
token
: Token address for the pool
Example:
breeze claim reward 1 --token 0xTokenAddress
breeze claim chicken 2 --token 0xTokenAddress
Admin withdraw protocol fee from an existing chicken or reward pool.
breeze withdrawProtocolFee <option> <poolId> --token <token>
option
: Type of the pool (chicken
or
reward
poolId
token
: Token address for the pool
Example:
breeze withdrawProtocolFee reward 1 --token 0xTokenAddress
breeze withdrawProtocolFee chicken 2 --token 0xTokenAddress
Check the balance of a token.
breeze balance --token <token>
token
: Token address
Example:
breeze balance --token 0xTokenAddress
Launch a new token.
breeze launch <tokenName> <tokenSymbol> <initialMint> <initialOwner> <supplyCap>
tokenName
tokenSymbol
initialMint
initialOwner
supplyCap
: Supply cap
Example:
breeze launch MyToken MTK 1000000 0xOwnerAddress 1000000000
The following environment variables must be set in a .env
file or in your environment:
PRIVATE_KEY
PUBLIC_KEY
RPC_URL
: RPC URL of the Ethereum node
Example .env
file:
PRIVATE_KEY=your_private_key
PUBLIC_KEY=your_public_key
RPC_URL=https://mainnet.infura.io/v3/your_project_id
This project is licensed under the ISC License.
This `README.md` provides a comprehensive guide to using the `breeze` CLI, including command descriptions and examples.
This `README.md` provides a comprehensive guide to using the `breeze` CLI, including command descriptions and examples.
jac18281828: @workspace Can you add installation instructions?
Workspace: Collecting workspace information
Sure, here are the installation instructions added to the
README.md
:
```markdown
# breeze
## Overview
`breeze` is a command-line interface (CLI) tool for interacting with chicken pools on the Ethereum blockchain. It allows users to start, join, withdraw, claim rewards, and manage protocol fees for chicken and reward pools.
## Installation
To install the dependencies, run:
```sh
bun install --dev
The CLI tool breeze
provides several commands to interact with the chicken pools. Below are the available commands and their usage.
Start a new chicken or reward pool.
breeze start <option> --token <token> --start <start> --end <end> --reward <reward> --deposit <deposit> --buyin <buyin> --slashing <slashing>
option
: Type of the pool (chicken
or
reward
token
start
end
reward
deposit
buyin
slashing
: Slashing percent
Example:
breeze start reward --token 0xTokenAddress --start 100 --end 200 --reward 10 --deposit 1
breeze start chicken --token 0xTokenAddress --buyin 5 --slashing 10
Join an existing chicken or reward pool.
breeze join <option> <poolId> <deposit> --token <token>
option
: Type of the pool (chicken
or
reward
poolId
deposit
token
: Token address for the pool
Example:
breeze join reward 1 5 --token 0xTokenAddress
breeze join chicken 2 3 --token 0xTokenAddress
Withdraw from an existing chicken or reward pool.
breeze withdraw <option> <poolId> --token <token>
option
: Type of the pool (chicken
or
reward
poolId
token
: Token address for the pool
Example:
breeze withdraw reward 1 --token 0xTokenAddress
breeze withdraw chicken 2 --token 0xTokenAddress
Claim rewards from an existing chicken or reward pool.
breeze claim <option> <poolId> --token <token>
option
: Type of the pool (chicken
or
reward
poolId
token
: Token address for the pool
Example:
breeze claim reward 1 --token 0xTokenAddress
breeze claim chicken 2 --token 0xTokenAddress
Admin withdraw protocol fee from an existing chicken or reward pool.
breeze withdrawProtocolFee <option> <poolId> --token <token>
option
: Type of the pool (chicken
or
reward
poolId
token
: Token address for the pool
Example:
breeze withdrawProtocolFee reward 1 --token 0xTokenAddress
breeze withdrawProtocolFee chicken 2 --token 0xTokenAddress
Check the balance of a token.
breeze balance --token <token>
token
: Token address
Example:
breeze balance --token 0xTokenAddress
Launch a new token.
breeze launch <tokenName> <tokenSymbol> <initialMint> <initialOwner> <supplyCap>
tokenName
tokenSymbol
initialMint
initialOwner
supplyCap
: Supply cap
Example:
breeze launch MyToken MTK 1000000 0xOwnerAddress 1000000000
The following environment variables must be set in a .env
file or in your environment:
PRIVATE_KEY
PUBLIC_KEY
RPC_URL
: RPC URL of the Ethereum node
Example .env
file:
PRIVATE_KEY=your_private_key
PUBLIC_KEY=your_public_key
RPC_URL=https://mainnet.infura.io/v3/your_project_id
This project is licensed under the ISC License.