Documentation ¶
Index ¶
- Constants
- Variables
- func BroadcastTx(tx authtypes.StdTx) (*http.Response, []byte, error)
- func BroadcastTxBytes(txBytes []byte) error
- func BuildAndSignTx(token, chainId, memo string, msg sdktypes.Msg, fee, gas int64, ...) (*authtypes.StdTx, error)
- func BuildCreateIndexingNodeMsg(networkID, token, moniker string, pubKey []byte, stakeAmount int64, ...) sdktypes.Msg
- func BuildCreateResourceNodeMsg(networkID, token, moniker, nodeType string, pubKey []byte, stakeAmount int64, ...) sdktypes.Msg
- func BuildFileUploadMsg(fileHash string, from, reporterAddress, uploaderAddress []byte) sdktypes.Msg
- func BuildIndexingNodeRegistrationVoteMsg(...) sdktypes.Msg
- func BuildPrepayMsg(token string, amount int64, senderAddress []byte) sdktypes.Msg
- func BuildRemoveIndexingNodeMsg(nodeAddress, ownerAddress utiltypes.Address) sdktypes.Msg
- func BuildRemoveResourceNodeMsg(nodeAddress, ownerAddress utiltypes.Address) sdktypes.Msg
- func BuildTxBytes(token, chainId, memo, mode string, msg sdktypes.Msg, fee, gas int64, ...) ([]byte, error)
- func BuildUpdateIndexingNodeStakeMsg(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, error)
- func DialWebsocket(addr string) (*tmhttp.HTTP, error)
- func FetchAccountInfo(address string) (uint64, uint64, error)
- func QueryResourceNodeState(networkId string) (int, error)
- type SignatureKey
- type Traffic
Constants ¶
View Source
const ( SignatureSecp256k1 = iota SignatureEd25519 )
Variables ¶
View Source
var Cdc *codec.Codec
View Source
var Url string
Functions ¶
func BroadcastTxBytes ¶
func BuildAndSignTx ¶
func BuildCreateResourceNodeMsg ¶
func BuildCreateResourceNodeMsg(networkID, token, moniker, nodeType string, pubKey []byte, stakeAmount int64, ownerAddress utiltypes.Address) sdktypes.Msg
Stratos-chain 'register' module
func BuildFileUploadMsg ¶
func BuildFileUploadMsg(fileHash string, from, reporterAddress, uploaderAddress []byte) sdktypes.Msg
Stratos-chain 'sds' module
func BuildPrepayMsg ¶
func BuildTxBytes ¶
func BuildUpdateIndexingNodeStakeMsg ¶ added in v0.5.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, blsTxData, blsSignature []byte, blsPubKeys [][]byte) (sdktypes.Msg, error)
Stratos-chain 'pot' module
func QueryResourceNodeState ¶ added in v0.5.0
Types ¶
type SignatureKey ¶
Click to show internal directories.
Click to hide internal directories.