Version: v1.65.3 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2021 License: BSD-3-Clause Imports: 23 Imported by: 0




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 ...


This section is empty.


func AddAllowance4LP

func AddAllowance4LP(cmd *cobra.Command, args []string)

func AddAllowance4LPCmd

func AddAllowance4LPCmd() *cobra.Command

func AddAllowance4LPFlags

func AddAllowance4LPFlags(cmd *cobra.Command)

func AddAllowance4LPHandle

func AddAllowance4LPHandle(lp string, spender, key string, amount int64) (err error)

func AddPool2Farm

func AddPool2Farm(cmd *cobra.Command, args []string)

func AddPool2FarmHandle

func AddPool2FarmHandle(masterChefAddrStr, key string, allocPoint int64, lpToken string, withUpdate bool, gasLimit uint64) (err error)

func AddPoolCmd

func AddPoolCmd() *cobra.Command

func AddSetFeeToFlags

func AddSetFeeToFlags(cmd *cobra.Command)

func AddUpdateCakePerBlockFlags

func AddUpdateCakePerBlockFlags(cmd *cobra.Command)

func CakeCmd

func CakeCmd() *cobra.Command

Cmd x2ethereum client command

func CheckAllowance4LP

func CheckAllowance4LP(cmd *cobra.Command, args []string)

func CheckAllowance4LPCmd

func CheckAllowance4LPCmd() *cobra.Command

func CheckAllowance4LPFlags

func CheckAllowance4LPFlags(cmd *cobra.Command)

func CheckAllowance4LPHandle

func CheckAllowance4LPHandle(lp string, spender, key string) (err error)

func DeployContracts

func DeployContracts(cmd *cobra.Command, args []string)

func DeployContractsCake

func DeployContractsCake(cmd *cobra.Command, args []string)

func DeployERC20Flags

func DeployERC20Flags(cmd *cobra.Command)

func DeployFarm

func DeployFarm(key string) error

func DeployFarmCmd

func DeployFarmCmd() *cobra.Command

func DeployPancake

func DeployPancake(key string) error

func DeployPancakeCmd

func DeployPancakeCmd() *cobra.Command

func Erc20Cmd

func Erc20Cmd() *cobra.Command

func EthCmd

func EthCmd() *cobra.Command

func FarmCmd

func FarmCmd() *cobra.Command

func GetBalance

func GetBalance(tokenAddr, owner string) (string, error)

func GetBalanceCmd

func GetBalanceCmd() *cobra.Command

GetBalanceCmd ...

func GetBalanceFlags

func GetBalanceFlags(cmd *cobra.Command)

GetBalanceFlags ...

func GetCakeBalance

func GetCakeBalance(owner string, pid int64) (string, error)

func PrepareAuth

func PrepareAuth(privateKey *ecdsa.PrivateKey, transactor common.Address) (*bind.TransactOpts, error)

PrepareAuth ...

func SetupWebsocketEthClient

func SetupWebsocketEthClient(ethURL string) (*ethclient.Client, error)

SetupWebsocketEthClient : returns boolean indicating if a URL is valid websocket ethclient

func ShowBalance

func ShowBalance(cmd *cobra.Command, args []string)

GetBalance ...

func ShowBalanceFlags

func ShowBalanceFlags(cmd *cobra.Command)

GetBalanceFlags ...

func ShowCackeBalanceCmd

func ShowCackeBalanceCmd() *cobra.Command

func ShowCakeBalance

func ShowCakeBalance(cmd *cobra.Command, args []string)

GetBalance ...

func ShowPoolInfoFlags

func ShowPoolInfoFlags(cmd *cobra.Command)

func ShowPoolInfosCmd

func ShowPoolInfosCmd() *cobra.Command

func TransferOwnerShip

func TransferOwnerShip(cmd *cobra.Command, args []string)

func TransferOwnerShipCmd

func TransferOwnerShipCmd() *cobra.Command

func TransferOwnerShipFlags

func TransferOwnerShipFlags(cmd *cobra.Command)

func TransferOwnerShipHandle

func TransferOwnerShipHandle(newOwner, contract, key string) (err error)

func UpdateAllocPoint

func UpdateAllocPoint(cmd *cobra.Command, args []string)

func UpdateAllocPointCmd

func UpdateAllocPointCmd() *cobra.Command

func UpdateAllocPointHandle

func UpdateAllocPointHandle(masterChefAddrStr, key string, pid, allocPoint int64, withUpdate bool) (err error)

func UpdateCakePerBlock

func UpdateCakePerBlock(cmd *cobra.Command, args []string)

func UpdateCakePerBlockCmd

func UpdateCakePerBlockCmd() *cobra.Command


This section is empty.


Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL