Documentation
¶
Index ¶
- Constants
- Variables
- func NewCommission(ethClient *mainchain.EthClient, commissionRate *big.Int) (staking.Commission, error)
- func RobustQuery(cliCtx context.CLIContext, route string) ([]byte, error)
- func RobustQueryWithData(cliCtx context.CLIContext, route string, data []byte) ([]byte, error)
- func UnmarshalSignedSimplexStateBytes(input []byte) (*chain.SignedSimplexState, *entity.SimplexPaymentChannel, error)
- type ParamChange
- type Sig
Constants ¶
View Source
const ( QuotaCoinName = "quota" TokenDec = 1000000000000000000 )
View Source
const ( FlagConfig = "config" FlagCLIHome = "cli-home" FlagStartMonitor = "startMonitor" FlagEthGateway = "eth.gateway" FlagEthDPoSAddress = "eth.contracts.dposAddress" FlagEthSGNAddress = "eth.contracts.sgnAddress" FlagEthLedgerAddress = "eth.contracts.ledgerAddress" FlagEthKeystore = "eth.keystore" FlagEthPassphrase = "eth.passphrase" FlagEthPollInterval = "eth.pollInterval" FlagEthBlockDelay = "eth.blockDelay" FlagEthChainID = "eth.chainID" FlagEthCheckInterval = "eth.checkInterval" FlagSgnOperator = "sgn.operator" FlagSgnTransactors = "sgn.transactors" FlagSgnPassphrase = "sgn.passphrase" FlagSgnPubKey = "sgn.pubkey" FlagSgnChainID = "sgn.chainID" FlagSgnNodeURI = "sgn.nodeURI" FlagSgnBaseGasPrice = "sgn.baseGasPrice" FlagSgnTimeoutCommit = "sgn.timeoutCommit" FlagSgnKeyringBackend = "sgn.keyringBackend" FlagLogLevel = "log.level" FlagLogColor = "log.color" )
Variables ¶
View Source
var (
ErrRecordNotFound = errors.New("record not found")
)
err constants for various errors
Functions ¶
func NewCommission ¶ added in v0.2.0
func RobustQuery ¶ added in v0.2.0
func RobustQuery(cliCtx context.CLIContext, route string) ([]byte, error)
func RobustQueryWithData ¶ added in v0.2.0
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.