-
Notifications
You must be signed in to change notification settings - Fork 0
/
seal.go
33 lines (30 loc) · 2.13 KB
/
seal.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package cmds
import currencycmds "github.com/spikeekips/mitum-currency/cmds"
type SealCommand struct {
Send SendCommand `cmd:"" name:"send" help:"send seal to remote mitum node"`
CreateAccount currencycmds.CreateAccountCommand `cmd:"" name:"create-account" help:"create new account"`
CreateDocument CreateDocumentCommand `cmd:"" name:"create-document" help:"create new document"`
SignDocument SignDocumentCommand `cmd:"" name:"sign-document" help:"sign document"`
Transfer currencycmds.TransferCommand `cmd:"" name:"transfer" help:"transfer big"`
TransferDocument TransferDocumentCommand `cmd:"" name:"transfer-document" help:"transfer document"`
KeyUpdater currencycmds.KeyUpdaterCommand `cmd:"" name:"key-updater" help:"update keys"`
CurrencyRegister currencycmds.CurrencyRegisterCommand `cmd:"" name:"currency-register" help:"register new currency"`
CurrencyPolicyUpdater currencycmds.CurrencyPolicyUpdaterCommand `cmd:"" name:"currency-policy-updater" help:"update currency policy"` // revive:disable-line:line-length-limit
Sign currencycmds.SignSealCommand `cmd:"" name:"sign" help:"sign seal"`
SignFact currencycmds.SignFactCommand `cmd:"" name:"sign-fact" help:"sign facts of operation seal"`
}
func NewSealCommand() SealCommand {
return SealCommand{
Send: NewSendCommand(),
CreateAccount: currencycmds.NewCreateAccountCommand(),
CreateDocument: NewCreateDocumentCommand(),
SignDocument: NewSignDocumentCommand(),
Transfer: currencycmds.NewTransferCommand(),
TransferDocument: NewTransferDocumentCommand(),
KeyUpdater: currencycmds.NewKeyUpdaterCommand(),
CurrencyRegister: currencycmds.NewCurrencyRegisterCommand(),
CurrencyPolicyUpdater: currencycmds.NewCurrencyPolicyUpdaterCommand(),
Sign: currencycmds.NewSignSealCommand(),
SignFact: currencycmds.NewSignFactCommand(),
}
}