Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { Address string `json:"address"` Nonce uint64 `json:"nonce"` Tokens Tokens `json:"tokens"` Confirmed uint64 `json:"confirmed"` }
func ToRpcAccount ¶
type Local ¶
type Local struct { // Node version Version string `json:"version"` // Node network Network string `json:"network"` // Node p2p id Peer string `json:"peer"` // Node p2p address Address string `json:"address"` // Linked node Connections uint32 `json:"connections"` // Pool message Messages uint32 `json:"messages"` // Current block height Height uint64 `json:"height"` // Current effective block height Confirmed uint64 `json:"confirmed"` }
type RpcBlock ¶
type RpcBody ¶
type RpcBody struct {
Messages []*types.RpcMessage `json:"transactions"`
}
type RpcCandidates ¶
type RpcCandidates struct {
Members []*RpcMember `json:"members"`
}
func CandidatesToRpcCandidates ¶
func CandidatesToRpcCandidates(candidates types.ICandidates) *RpcCandidates
func SupersToRpcCandidates ¶
func SupersToRpcCandidates(candidates types.ICandidates) *RpcCandidates
type RpcHeader ¶
type RpcHeader struct { Version uint32 `json:"version"` Hash string `json:"hash"` PreHash string `json:"parenthash"` MsgRoot string `json:"txroot"` ActRoot string `json:"actroot"` TokenRoot string `json:"tokenroot"` DPosRoot string `json:"dposroot"` Height uint64 `json:"height"` Time time.Time `json:"time"` Cycle uint64 `json:"cycle"` Signer string `json:"signer"` Signature *types.RpcSignature `json:"signature"` }
func HeaderToRpcHeader ¶
type RpcToken ¶
type RpcToken struct { Address string `json:"address"` Sender string `json:"sender"` Name string `json:"name"` Shorthand string `json:"shorthand"` IncreaseIssues bool `json:"increaseissues"` Records []*Record `json:"records"` }
func TokenToRpcToken ¶
func TokenToRpcToken(token *types.TokenRecord) *RpcToken
type TokenAccount ¶
type TxPool ¶
type TxPool struct { MsgsCount int `json:"msgs"` ReadyCount int `json:"ready"` CacheCount int `json:"cache"` ReadyMsgs []*fmctypes.RpcMessage `json:"readymsgs"` CacheMsgs []*fmctypes.RpcMessage `json:"cachemsgs"` }
Click to show internal directories.
Click to hide internal directories.