Documentation
¶
Overview ¶
Dedicated to my love, Lexi.
Index ¶
- func GetStorageInfo(events []abci.Event) (int64, std.Coin, bool)
- func NewMakeAddPkgCmd(rootCfg *client.MakeTxCfg, io commands.IO) *commands.Command
- func NewMakeCallCmd(rootCfg *client.MakeTxCfg, io commands.IO) *commands.Command
- func NewMakeRunCmd(rootCfg *client.MakeTxCfg, cmdio commands.IO) *commands.Command
- func NewMakeTxCmd(rootCfg *client.BaseCfg, io commands.IO) *commands.Command
- func NewRootCmd(io commands.IO, base client.BaseOptions) *commands.Command
- func PrintTxInfo(tx std.Tx, res *ctypes.ResultBroadcastTxCommit, io commands.IO)
- type MakeAddPkgCfg
- type MakeCallCfg
- type MakeRunCfg
- type MakeTxCfg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStorageInfo ¶
GetStorageInfo searches events for StorageDepositEvent or StorageUnlockEvent and returns the bytes delta and fee. If this is "unlock", then bytes delta and fee are negative. The third return is true if found, else false.
func NewMakeAddPkgCmd ¶
func NewMakeCallCmd ¶
func NewMakeRunCmd ¶
func NewRootCmd ¶
func PrintTxInfo ¶
PrintTxInfo prints the transaction result to io. If the events has storage deposit info then also print it with the total transaction cost.
Types ¶
type MakeAddPkgCfg ¶
type MakeAddPkgCfg struct { RootCfg *client.MakeTxCfg PkgPath string PkgDir string Send string MaxDeposit string }
func (*MakeAddPkgCfg) RegisterFlags ¶
func (c *MakeAddPkgCfg) RegisterFlags(fs *flag.FlagSet)
type MakeCallCfg ¶
type MakeCallCfg struct { RootCfg *client.MakeTxCfg Send string MaxDeposit string PkgPath string FuncName string Args commands.StringArr }
func (*MakeCallCfg) RegisterFlags ¶
func (c *MakeCallCfg) RegisterFlags(fs *flag.FlagSet)
type MakeRunCfg ¶
func (*MakeRunCfg) RegisterFlags ¶
func (c *MakeRunCfg) RegisterFlags(fs *flag.FlagSet)
Click to show internal directories.
Click to hide internal directories.