Documentation ¶
Index ¶
- Constants
- func AddAllowance4LP(cmd *cobra.Command, args []string)
- func AddAllowance4LPCmd() *cobra.Command
- func AddAllowance4LPFlags(cmd *cobra.Command)
- func AddAllowance4LPHandle(lp string, spender, key string, amount int64) (err error)
- func AddPool2Farm(cmd *cobra.Command, args []string)
- func AddPool2FarmHandle(masterChefAddrStr, key string, allocPoint int64, lpToken string, ...) (err error)
- func AddPoolCmd() *cobra.Command
- func AddSetFeeToFlags(cmd *cobra.Command)
- func AddUpdateCakePerBlockFlags(cmd *cobra.Command)
- func CakeCmd() *cobra.Command
- func CheckAllowance4LP(cmd *cobra.Command, args []string)
- func CheckAllowance4LPCmd() *cobra.Command
- func CheckAllowance4LPFlags(cmd *cobra.Command)
- func CheckAllowance4LPHandle(lp string, spender, key string) (err error)
- func DeployContracts(cmd *cobra.Command, args []string)
- func DeployContractsCake(cmd *cobra.Command, args []string)
- func DeployERC20Flags(cmd *cobra.Command)
- func DeployFarm(key string) error
- func DeployFarmCmd() *cobra.Command
- func DeployPancake(key string) error
- func DeployPancakeCmd() *cobra.Command
- func Erc20Cmd() *cobra.Command
- func EthCmd() *cobra.Command
- func FarmCmd() *cobra.Command
- func GetBalance(tokenAddr, owner string) (string, error)
- func GetBalanceCmd() *cobra.Command
- func GetBalanceFlags(cmd *cobra.Command)
- func GetCakeBalance(owner string, pid int64) (string, error)
- func PrepareAuth(privateKey *ecdsa.PrivateKey, transactor common.Address) (*bind.TransactOpts, error)
- func SetupWebsocketEthClient(ethURL string) (*ethclient.Client, error)
- func ShowBalance(cmd *cobra.Command, args []string)
- func ShowBalanceFlags(cmd *cobra.Command)
- func ShowCackeBalanceCmd() *cobra.Command
- func ShowCakeBalance(cmd *cobra.Command, args []string)
- func ShowPoolInfoFlags(cmd *cobra.Command)
- func ShowPoolInfosCmd() *cobra.Command
- func TransferOwnerShip(cmd *cobra.Command, args []string)
- func TransferOwnerShipCmd() *cobra.Command
- func TransferOwnerShipFlags(cmd *cobra.Command)
- func TransferOwnerShipHandle(newOwner, contract, key string) (err error)
- func UpdateAllocPoint(cmd *cobra.Command, args []string)
- func UpdateAllocPointCmd() *cobra.Command
- func UpdateAllocPointHandle(masterChefAddrStr, key string, pid, allocPoint int64, withUpdate bool) (err error)
- func UpdateCakePerBlock(cmd *cobra.Command, args []string)
- func UpdateCakePerBlockCmd() *cobra.Command
Constants ¶
View Source
const ( // GasLimit : the gas limit in Gwei used for transactions sent with TransactOpts GasLimit = uint64(100 * 10000) GasLimit4Deploy = uint64(0) //此处需要设置为0,让交易自行估计,否则将会导致部署失败,TODO:其他解决途径后续调研解决 )
const ...
Variables ¶
This section is empty.
Functions ¶
func AddAllowance4LP ¶
func AddAllowance4LPCmd ¶
func AddAllowance4LPFlags ¶
func AddAllowance4LPHandle ¶
func AddPool2Farm ¶
func AddPool2FarmHandle ¶
func AddPoolCmd ¶
func AddSetFeeToFlags ¶
func CheckAllowance4LP ¶
func CheckAllowance4LPCmd ¶
func CheckAllowance4LPFlags ¶
func CheckAllowance4LPHandle ¶
func DeployContracts ¶
func DeployContractsCake ¶
func DeployERC20Flags ¶
func DeployFarm ¶
func DeployFarmCmd ¶
func DeployPancake ¶
func DeployPancakeCmd ¶
func GetBalance ¶
func PrepareAuth ¶
func PrepareAuth(privateKey *ecdsa.PrivateKey, transactor common.Address) (*bind.TransactOpts, error)
PrepareAuth ...
func SetupWebsocketEthClient ¶
SetupWebsocketEthClient : returns boolean indicating if a URL is valid websocket ethclient
func ShowCackeBalanceCmd ¶
func ShowPoolInfoFlags ¶
func ShowPoolInfosCmd ¶
func TransferOwnerShip ¶
func TransferOwnerShipCmd ¶
func TransferOwnerShipFlags ¶
func TransferOwnerShipHandle ¶
func UpdateAllocPoint ¶
func UpdateAllocPointCmd ¶
func UpdateAllocPointHandle ¶
func UpdateCakePerBlock ¶
func UpdateCakePerBlockCmd ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.