github.com/hyperledger/burrow@v0.34.5-0.20220512172541-77f09336001d/deploy/def/deploy.go (about) 1 package def 2 3 import ( 4 validation "github.com/go-ozzo/ozzo-validation" 5 "github.com/hyperledger/burrow/deploy/def/rule" 6 ) 7 8 const DefaultOutputFile = "deploy.output.json" 9 10 type DeployArgs struct { 11 Chain string `mapstructure:"," json:"," yaml:"," toml:","` 12 KeysService string `mapstructure:"," json:"," yaml:"," toml:","` 13 MempoolSign bool `mapstructure:"," json:"," yaml:"," toml:","` 14 LocalABI bool `mapstructure:"," json:"," yaml:"," toml:","` 15 Wasm bool `mapstructure:"," json:"," yaml:"," toml:","` 16 Timeout int `mapstructure:"," json:"," yaml:"," toml:","` 17 Address string `mapstructure:"," json:"," yaml:"," toml:","` 18 BinPath string `mapstructure:"," json:"," yaml:"," toml:","` 19 CurrentOutput string `mapstructure:"," json:"," yaml:"," toml:","` 20 Debug bool `mapstructure:"," json:"," yaml:"," toml:","` 21 DefaultAmount string `mapstructure:"," json:"," yaml:"," toml:","` 22 DefaultFee string `mapstructure:"," json:"," yaml:"," toml:","` 23 DefaultGas string `mapstructure:"," json:"," yaml:"," toml:","` 24 DefaultOutput string `mapstructure:"," json:"," yaml:"," toml:","` 25 DefaultSets []string `mapstructure:"," json:"," yaml:"," toml:","` 26 Path string `mapstructure:"," json:"," yaml:"," toml:","` 27 Verbose bool `mapstructure:"," json:"," yaml:"," toml:","` 28 Jobs int `mapstructure:"," json:"," yaml:"," toml:","` 29 ProposeVerify bool `mapstructure:"," json:"," yaml:"," toml:","` 30 ProposeVote bool `mapstructure:"," json:"," yaml:"," toml:","` 31 ProposeCreate bool `mapstructure:"," json:"," yaml:"," toml:","` 32 } 33 34 func (args *DeployArgs) Validate() error { 35 return validation.ValidateStruct(args, 36 validation.Field(&args.DefaultAmount, rule.Uint64), 37 validation.Field(&args.DefaultFee, rule.Uint64), 38 validation.Field(&args.DefaultGas, rule.Uint64), 39 ) 40 }