Documentation
¶
Index ¶
- Variables
- func CombineCountTables(countTables []map[string]map[string]int) map[string]map[string]int
- func CountMessageTypeBySender(root Root, height string) (countTable map[string]map[string]int)
- func GetBlockHeight(url string) (height, network string, err error)
- func Txs()
- type Message
- type Root
- type Status
- type Tx
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CombineCountTables ¶
CombineCountTables will combine multiple count tables into a single count table
func CountMessageTypeBySender ¶
CountMessageTypeBySender will return a map of sender addresses to a map of message types to counts
func GetBlockHeight ¶
GetBlockHeight will retrieve the height from the /status endpoint
Types ¶
type Message ¶
type Message struct {
Type string `json:"@type"`
Sender string `json:"sender"`
Voter string `json:"voter"`
Delegator string `json:"delegator_address"`
Grantee string `json:"grantee"`
FromAddress string `json:"from_address"`
Signer string `json:"signer"`
Creator string `json:"creator"`
ValidatorAddress string `json:"validator_address"`
CosmosReceiver string `json:"cosmos_receiver"`
From string `json:"from"`
Requester string `json:"requester"`
Initiator string `json:"initiator"`
Depositor string `json:"depositor"`
Orchestrator string `json:"orchestrator"`
Trader string `json:"trader"`
}
Message is a combination of the various message types we're interested in since each message might have different fields for the sender, we add them all and just concatenate them together in CountMessageTypeBySender
Click to show internal directories.
Click to hide internal directories.
