Documentation ¶
Index ¶
- Constants
- Variables
- func GetCommands(cmds ...*cobra.Command) []*cobra.Command
- func NewCommission(ethClient *mainchain.EthClient, commissionRate *big.Int) (staking.Commission, error)
- func NewEthClientFromConfig() (*mainchain.EthClient, error)
- func NewQueryCLIContext(cdc *codec.Codec) context.CLIContext
- func ParseTransactorAddrs(ts []string) ([]sdk.AccAddress, error)
- func PostCommands(cmds ...*cobra.Command) []*cobra.Command
- func RobustQuery(cliCtx context.CLIContext, route string) ([]byte, error)
- func RobustQueryWithData(cliCtx context.CLIContext, route string, data []byte) ([]byte, error)
- func SetupUserPassword() error
- func UnmarshalSignedSimplexStateBytes(input []byte) (*chain.SignedSimplexState, *entity.SimplexPaymentChannel, error)
- type ParamChange
- type Sig
Constants ¶
View Source
const ( QuotaCoinName = "quota" TokenDec = 1000000000000000000 Bech32MainPrefix = "sgn" // Bech32PrefixAccAddr defines the Bech32 prefix of an account's address Bech32PrefixAccAddr = Bech32MainPrefix // Bech32PrefixAccPub defines the Bech32 prefix of an account's public key Bech32PrefixAccPub = Bech32MainPrefix + sdk.PrefixPublic // Bech32PrefixValAddr defines the Bech32 prefix of a validator's operator address Bech32PrefixValAddr = Bech32MainPrefix + sdk.PrefixValidator + sdk.PrefixOperator // Bech32PrefixValPub defines the Bech32 prefix of a validator's operator public key Bech32PrefixValPub = Bech32MainPrefix + sdk.PrefixValidator + sdk.PrefixOperator + sdk.PrefixPublic // Bech32PrefixConsAddr defines the Bech32 prefix of a consensus node address Bech32PrefixConsAddr = Bech32MainPrefix + sdk.PrefixValidator + sdk.PrefixConsensus // Bech32PrefixConsPub defines the Bech32 prefix of a consensus node public key Bech32PrefixConsPub = Bech32MainPrefix + sdk.PrefixValidator + sdk.PrefixConsensus + sdk.PrefixPublic )
View Source
const ( FlagConfig = "config" FlagCLIHome = "cli-home" FlagEthGateway = "eth.gateway" FlagEthCelrAddress = "eth.contracts.celr_address" FlagEthDPoSAddress = "eth.contracts.dpos_address" FlagEthSGNAddress = "eth.contracts.sgn_address" FlagEthLedgerAddress = "eth.contracts.ledger_address" FlagEthKeystore = "eth.keystore" FlagEthPassphrase = "eth.passphrase" FlagEthPollInterval = "eth.poll_interval" FlagEthBlockDelay = "eth.block_delay" FlagEthChainID = "eth.chain_id" FlagEthCheckInterval = "eth.check_interval" FlagEthMonitorStartBlock = "eth.monitor_start_block" FlagEthMinGasPriceGwei = "eth.min_gas_price_gwei" FlagEthAddGasPriceGwei = "eth.add_gas_price_gwei" FlagSgnValidatorAccount = "sgn.validator_account" FlagSgnTransactors = "sgn.transactors" FlagSgnPassphrase = "sgn.passphrase" FlagSgnPubKey = "sgn.pubkey" FlagSgnChainID = "sgn.chain_id" FlagSgnNodeURI = "sgn.node_uri" FlagSgnBaseGasPrice = "sgn.base_gas_price" FlagSgnTimeoutCommit = "sgn.timeout_commit" FlagSgnKeyringBackend = "sgn.keyring_backend" FlagSgnGasAdjustment = "sgn.gas_adjustment" FlagSgnExecuteSlash = "sgn.execute_slash" FlagSgnCheckIntervalGuardQueue = "sgn.check_interval.guard_queue" FlagSgnCheckIntervalSlashQueue = "sgn.check_interval.slash_queue" FlagLogLevel = "log.level" FlagLogColor = "log.color" )
View Source
const ( DefaultSgnGasAdjustment = 1.5 DefaultSgnGasLimit = 300000 )
Variables ¶
View Source
var (
ErrRecordNotFound = errors.New("record not found")
)
err constants for various errors
Functions ¶
func NewCommission ¶ added in v0.2.0
func NewEthClientFromConfig ¶ added in v0.2.3
func NewQueryCLIContext ¶ added in v0.2.3
func NewQueryCLIContext(cdc *codec.Codec) context.CLIContext
func ParseTransactorAddrs ¶ added in v0.2.3
func ParseTransactorAddrs(ts []string) ([]sdk.AccAddress, error)
func RobustQuery ¶ added in v0.2.0
func RobustQuery(cliCtx context.CLIContext, route string) ([]byte, error)
func RobustQueryWithData ¶ added in v0.2.0
func SetupUserPassword ¶ added in v0.2.3
func SetupUserPassword() error
func UnmarshalSignedSimplexStateBytes ¶ added in v0.2.0
func UnmarshalSignedSimplexStateBytes(input []byte) (*chain.SignedSimplexState, *entity.SimplexPaymentChannel, error)
Types ¶
type ParamChange ¶ added in v0.2.0
func NewParamChange ¶ added in v0.2.0
func NewParamChange(record, newValue sdk.Int) ParamChange
func (ParamChange) String ¶ added in v0.2.0
func (p ParamChange) String() string
implement fmt.Stringer
Click to show internal directories.
Click to hide internal directories.