Documentation
¶
Overview ¶
Package cmds provides command line tools.
Index ¶
- Variables
- func DefaultImportPS() *ps.PS
- func IsSupportedProposalOperationFactHintFunc() func(hint.Hint) bool
- func LoadHinters(encs *encoder.Encoders) error
- func PAddHinters(pctx context.Context) (context.Context, error)
- func PDigesterFollowUp(ctx context.Context) (context.Context, error)
- func POperationProcessorsMap(pctx context.Context) (context.Context, error)
- func ProcessDigester(ctx context.Context) (context.Context, error)
- func ProcessStartDigester(ctx context.Context) (context.Context, error)
- type ApproveCommand
- type BaseCommand
- type BaseNetworkClientCommand
- type BurnCommand
- type ImportCommand
- type MintCommand
- type NetworkClientCommand
- type NetworkClientSendOperationCommand
- type OperationCommand
- type PointCommand
- type PointSymbolFlag
- type RegisterPointCommand
- type RunCommand
- type Storage
- type TransferCommand
- type TransferFromCommand
- type ValidateBlocksCommand
Constants ¶
This section is empty.
Variables ¶
View Source
var AddedHinters = []encoder.DecodeDetail{ {Hint: types.ApproveBoxHint, Instance: types.ApproveBox{}}, {Hint: types.ApproveInfoHint, Instance: types.ApproveInfo{}}, {Hint: types.PolicyHint, Instance: types.Policy{}}, {Hint: types.DesignHint, Instance: types.Design{}}, {Hint: state.DesignStateValueHint, Instance: state.DesignStateValue{}}, {Hint: state.PointBalanceStateValueHint, Instance: state.PointBalanceStateValue{}}, {Hint: point.RegisterModelHint, Instance: point.RegisterModel{}}, {Hint: point.MintHint, Instance: point.Mint{}}, {Hint: point.BurnHint, Instance: point.Burn{}}, {Hint: point.ApproveHint, Instance: point.Approve{}}, {Hint: point.TransferHint, Instance: point.Transfer{}}, {Hint: point.TransferFromHint, Instance: point.TransferFrom{}}, }
View Source
var AddedSupportedHinters = []encoder.DecodeDetail{ {Hint: point.RegisterModelFactHint, Instance: point.RegisterModelFact{}}, {Hint: point.MintFactHint, Instance: point.MintFact{}}, {Hint: point.BurnFactHint, Instance: point.BurnFact{}}, {Hint: point.ApproveFactHint, Instance: point.ApproveFact{}}, {Hint: point.TransferFactHint, Instance: point.TransferFact{}}, {Hint: point.TransferFromFactHint, Instance: point.TransferFromFact{}}, }
View Source
var Hinters []encoder.DecodeDetail
View Source
var PNameOperationProcessorsMap = ps.Name("mitum-point-operation-processors-map")
View Source
var PNameValidateBlocks = ps.Name("validate-blocks")
View Source
var SupportedProposalOperationFactHinters []encoder.DecodeDetail
Functions ¶
func DefaultImportPS ¶
func LoadHinters ¶
func POperationProcessorsMap ¶
Types ¶
type ApproveCommand ¶
type ApproveCommand struct {
OperationCommand
Approved currencycmds.AddressFlag `arg:"" name:"approved" help:"approved account" required:"true"`
Amount currencycmds.BigFlag `arg:"" name:"amount" help:"amount to approve" required:"true"`
// contains filtered or unexported fields
}
type BaseCommand ¶
type BaseNetworkClientCommand ¶
type BaseNetworkClientCommand struct {
BaseCommand
launchcmd.BaseNetworkClientNodeInfoFlags
Client *isaacnetwork.BaseClient `kong:"-"`
ClientID string `name:"client-id" help:"client id"`
}
type BurnCommand ¶
type BurnCommand struct {
OperationCommand
Target currencycmds.AddressFlag `arg:"" name:"target" help:"target account" required:"true"`
Amount currencycmds.BigFlag `arg:"" name:"amount" help:"amount to burn" required:"true"`
// contains filtered or unexported fields
}
type ImportCommand ¶
type ImportCommand struct {
// revive:disable:line-length-limit
launch.DesignFlag
Source string `arg:"" name:"source directory" help:"block data directory to import" type:"existingdir"`
HeightRange launch.RangeFlag `name:"range" help:"<from>-<to>" default:""`
launch.PrivatekeyFlags
Do bool `name:"do" help:"really do import"`
CacheDirectory string `name:"cache-directory" help:"directory for remote block item file"`
launch.DevFlags `embed:"" prefix:"dev."`
// contains filtered or unexported fields
}
type MintCommand ¶
type MintCommand struct {
OperationCommand
Receiver currencycmds.AddressFlag `arg:"" name:"receiver" help:"point receiver" required:"true"`
Amount currencycmds.BigFlag `arg:"" name:"amount" help:"amount to mint" required:"true"`
// contains filtered or unexported fields
}
type NetworkClientCommand ¶
type NetworkClientCommand struct {
//revive:disable:line-length-limit
//revive:disable:nested-structs
NodeInfo launchcmd.NetworkClientNodeInfoCommand `cmd:"" name:"node-info" help:"remote node info"`
SendOperation NetworkClientSendOperationCommand `cmd:"" name:"send-operation" help:"send operation"`
State launchcmd.NetworkClientStateCommand `cmd:"" name:"state" help:"get state"`
LastBlockMap launchcmd.NetworkClientLastBlockMapCommand `cmd:"" name:"last-blockmap" help:"get last blockmap"`
Design struct {
Read launchcmd.NetworkClientReadNodeCommand `cmd:"" name:"read" help:"read design value"`
Write launchcmd.NetworkClientWriteNodeCommand `cmd:"" name:"write" help:"write design value"`
} `cmd:"" name:"design" help:""`
Event launchcmd.NetworkClientEventLoggingCommand `cmd:"" name:"event" help:"event log"`
}
type NetworkClientSendOperationCommand ¶
type NetworkClientSendOperationCommand struct {
BaseNetworkClientCommand
Input string `arg:"" name:"input" help:"input; default is stdin" default:"-"`
IsString bool `name:"input.is-string" help:"input is string, not file"`
}
type OperationCommand ¶
type OperationCommand struct {
BaseCommand
currencycmds.OperationFlags
Sender currencycmds.AddressFlag `arg:"" name:"sender" help:"sender address" required:"true"`
Contract currencycmds.AddressFlag `arg:"" name:"contract" help:"contract address to register token" required:"true"`
Currency currencycmds.CurrencyIDFlag `arg:"" name:"currency" help:"currency id" required:"true"`
// contains filtered or unexported fields
}
type PointCommand ¶
type PointCommand struct {
RegisterPoint RegisterPointCommand `cmd:"" name:"register-point" help:"register point to contract account"`
Mint MintCommand `cmd:"" name:"mint" help:"mint point to receiver"`
Burn BurnCommand `cmd:"" name:"burn" help:"burn point of target"`
Approve ApproveCommand `cmd:"" name:"approve" help:"approve point to approved account"`
Transfer TransferCommand `cmd:"" name:"transfer" help:"transfer point to receiver"`
}
type PointSymbolFlag ¶
type PointSymbolFlag struct {
Symbol types.PointSymbol
}
func (*PointSymbolFlag) String ¶
func (v *PointSymbolFlag) String() string
func (*PointSymbolFlag) UnmarshalText ¶
func (v *PointSymbolFlag) UnmarshalText(b []byte) error
type RegisterPointCommand ¶
type RegisterPointCommand struct {
OperationCommand
Symbol PointSymbolFlag `arg:"" name:"symbol" help:"point symbol" required:"true"`
Name string `arg:"" name:"name" help:"point name" required:"true"`
Decimal currencycmds.BigFlag `arg:"" name:"decimal" help:"decimal of point" required:"true"`
InitialSupply currencycmds.BigFlag `arg:"" name:"initial-supply" help:"initial supply of point" required:"true"`
}
type RunCommand ¶
type RunCommand struct {
//revive:disable:line-length-limit
launch.DesignFlag
launch.DevFlags `embed:"" prefix:"dev."`
launch.PrivatekeyFlags
Discovery []launch.ConnInfoFlag `help:"member discovery" placeholder:"ConnInfo"`
Hold launch.HeightFlag `help:"hold consensus states"`
HTTPState string `name:"http-state" help:"runtime statistics thru https" placeholder:"bind address"`
launch.ACLFlags
// contains filtered or unexported fields
}
type Storage ¶
type Storage struct {
Import ImportCommand `cmd:"" help:"import block data files"`
Clean launchcmd.CleanCommand `cmd:"" help:"clean storage"`
ValidateBlocks ValidateBlocksCommand `cmd:"" help:"validate blocks in storage"`
Status launchcmd.StorageStatusCommand `cmd:"" help:"storage status"`
Database launchcmd.DatabaseCommand `cmd:"" help:""`
}
type TransferCommand ¶
type TransferCommand struct {
OperationCommand
Receiver currencycmds.AddressFlag `arg:"" name:"receiver" help:"point receiver" required:"true"`
Amount currencycmds.BigFlag `arg:"" name:"amount" help:"amount to transfer" required:"true"`
// contains filtered or unexported fields
}
type TransferFromCommand ¶
type TransferFromCommand struct {
OperationCommand
Receiver currencycmds.AddressFlag `arg:"" name:"receiver" help:"point receiver" required:"true"`
Target currencycmds.AddressFlag `arg:"" name:"target" help:"target approving" required:"true"`
Amount currencycmds.BigFlag `arg:"" name:"amount" help:"amount to transfer" required:"true"`
// contains filtered or unexported fields
}
type ValidateBlocksCommand ¶
type ValidateBlocksCommand struct {
launch.DesignFlag
launch.PrivatekeyFlags
HeightRange launch.RangeFlag `name:"range" help:"<from>-<to>" default:""`
launch.DevFlags `embed:"" prefix:"dev."`
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.