Documentation ¶
Index ¶
Constants ¶
View Source
const ( UriQueryAccount = "/auth/accounts/%s" UriQueryContractLogs = "/vm/logs/%s" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountBody ¶
type AccountBody struct { Height string `json:"height"` Result AccountResult `json:"result"` }
type AccountResult ¶
type AccountResult struct { Type string `json:"type"` Value AccountValue `json:"value"` }
type AccountValue ¶
type ContractLog ¶
type LcdClient ¶
type LcdClient interface { QueryAccount(address string) (AccountBody, error) QueryContractLog(txId []byte) (ContractLog, error) }
func NewClient ¶
func NewClient(c basic.HttpClient) LcdClient
type VMLog ¶
type VMLog struct { Address string `json:"address"` Topics []string `json:"topics"` Data string `json:"data"` BlockNumber string `json:"blockNumber"` TransactionHash string `json:"transactionHash"` TransactionIndex string `json:"transactionIndex"` BlockHash string `json:"blockHash"` LogIndex string `json:"logIndex"` Removed bool `json:"removed"` }
Click to show internal directories.
Click to hide internal directories.