Documentation ¶
Index ¶
- Variables
- func BroadcastTxBytes(txBytes []byte) error
- func BuildCreateMetaNodeMsg(token, moniker string, pubKey []byte, stakeAmount int64, ...) (sdktypes.Msg, error)
- func BuildCreateResourceNodeMsg(token, moniker string, nodeType registertypes.NodeType, pubKey []byte, ...) (sdktypes.Msg, error)
- func BuildFileUploadMsg(fileHash string, from, reporterAddress, uploaderAddress []byte) sdktypes.Msg
- func BuildMetaNodeRegistrationVoteMsg(...) sdktypes.Msg
- func BuildPrepayMsg(token string, amount int64, senderAddress []byte) sdktypes.Msg
- func BuildRemoveMetaNodeMsg(nodeAddress, ownerAddress utiltypes.Address) sdktypes.Msg
- func BuildRemoveResourceNodeMsg(nodeAddress, ownerAddress utiltypes.Address) sdktypes.Msg
- func BuildSlashingResourceNodeMsg(spP2pAddress, spWalletAddress []utiltypes.Address, ...) sdktypes.Msg
- func BuildTxBytes(token, chainId, memo, mode string, unsignedMsgs []*relaytypes.UnsignedMsg, ...) ([]byte, error)
- func BuildTxBytesNew(protoConfig client.TxConfig, txBuilder client.TxBuilder, ...) ([]byte, error)
- func BuildUpdateMetaNodeStakeMsg(networkAddr, ownerAddr utiltypes.Address, token string, stakeDelta int64, ...) sdktypes.Msg
- func BuildUpdateResourceNodeStakeMsg(networkAddr, ownerAddr utiltypes.Address, token string, stakeDelta int64, ...) sdktypes.Msg
- func BuildVolumeReportMsg(traffic []*Traffic, reporterAddress, reporterOwnerAddress []byte, epoch uint64, ...) (sdktypes.Msg, []byte, error)
- func DialWebsocket(addr string) (*tmhttp.HTTP, error)
- func FetchAccountInfo(address string) (*authtypes.BaseAccount, error)
- func ParseResponseWithHeight(cdc *codec.LegacyAmino, bz []byte) ([]byte, int64, error)
- type ResourceNodeState
- type Traffic
Constants ¶
This section is empty.
Variables ¶
View Source
var Url string
Functions ¶
func BroadcastTxBytes ¶
func BuildCreateMetaNodeMsg ¶ added in v0.8.0
func BuildCreateResourceNodeMsg ¶
func BuildCreateResourceNodeMsg(token, moniker string, nodeType registertypes.NodeType, pubKey []byte, stakeAmount int64, ownerAddress, p2pAddress utiltypes.Address) (sdktypes.Msg, error)
Stratos-chain 'register' module
func BuildFileUploadMsg ¶
func BuildFileUploadMsg(fileHash string, from, reporterAddress, uploaderAddress []byte) sdktypes.Msg
Stratos-chain 'sds' module
func BuildMetaNodeRegistrationVoteMsg ¶ added in v0.8.0
func BuildPrepayMsg ¶
func BuildRemoveMetaNodeMsg ¶ added in v0.8.0
func BuildSlashingResourceNodeMsg ¶ added in v0.6.0
func BuildTxBytes ¶
func BuildTxBytes(token, chainId, memo, mode string, unsignedMsgs []*relaytypes.UnsignedMsg, fee, gas, height int64) ([]byte, error)
func BuildTxBytesNew ¶ added in v0.8.0
func BuildTxBytesNew(protoConfig client.TxConfig, txBuilder client.TxBuilder, token, chainId, memo, mode string, unsignedMsgs []*relaytypes.UnsignedMsg, fee, gas, height int64) ([]byte, error)
func BuildUpdateMetaNodeStakeMsg ¶ added in v0.8.0
func BuildUpdateResourceNodeStakeMsg ¶ added in v0.5.0
func BuildUpdateResourceNodeStakeMsg(networkAddr, ownerAddr utiltypes.Address, token string, stakeDelta int64, incrStake bool) sdktypes.Msg
Stratos-chain 'register' module
func BuildVolumeReportMsg ¶
func BuildVolumeReportMsg(traffic []*Traffic, reporterAddress, reporterOwnerAddress []byte, epoch uint64, reportReference string, blsTxDataHash, blsSignature []byte, blsPubKeys [][]byte) (sdktypes.Msg, []byte, error)
Stratos-chain 'pot' module
func FetchAccountInfo ¶
func FetchAccountInfo(address string) (*authtypes.BaseAccount, error)
func ParseResponseWithHeight ¶ added in v0.8.0
Types ¶
type ResourceNodeState ¶ added in v0.6.0
func QueryResourceNodeState ¶ added in v0.5.0
func QueryResourceNodeState(p2pAddress string) (state ResourceNodeState, height int64, err error)
Click to show internal directories.
Click to hide internal directories.