Skip to content
Snippets Groups Projects
client_do.go 2.02 KiB
Newer Older
// Copyright 2017 Monax Industries Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//    http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
	// Persistent flags not reflected in the configuration files
	// only set through command line flags or environment variables
Silas Davis's avatar
Silas Davis committed
	Debug   bool // BURROW_DEBUG
	Verbose bool // BURROW_VERBOSE
Silas Davis's avatar
Silas Davis committed
	// Following parameters are global flags for burrow-client tx
	SignAddrFlag string
	NodeAddrFlag string
	PubkeyFlag   string
	AddrFlag     string
Silas Davis's avatar
Silas Davis committed
	// signFlag      bool // TODO: remove; unsafe signing without monax-keys
	BroadcastFlag bool
	WaitFlag      bool
	// Following parameters are vary for different Transaction subcommands
	// some of these are strings rather than flags because the `core`
	// functions have a pure string interface so they work nicely from http
	AmtFlag      string
	NonceFlag    string
	NameFlag     string
	DataFlag     string
	DataFileFlag string
	ToFlag       string
	FeeFlag      string
	GasFlag      string
	UnbondtoFlag string
	HeightFlag   string
func NewClientDo() *Do {
	clientDo := new(Do)
	clientDo.Debug = false
	clientDo.Verbose = false
	clientDo.SignAddrFlag = ""
	clientDo.NodeAddrFlag = ""
	clientDo.PubkeyFlag = ""
	clientDo.AddrFlag = ""
	// clientDo.signFlag = false
	clientDo.BroadcastFlag = false
	clientDo.WaitFlag = false
	clientDo.AmtFlag = ""
	clientDo.NonceFlag = ""
	clientDo.NameFlag = ""
	clientDo.DataFlag = ""
	clientDo.DataFileFlag = ""
	clientDo.ToFlag = ""
	clientDo.FeeFlag = ""
	clientDo.GasFlag = ""
	clientDo.UnbondtoFlag = ""
	clientDo.HeightFlag = ""