Documentation
¶
Index ¶
- Constants
- Variables
- func Bech32AddrsFromUNCompressedPubKeys(uncompressedPubKeys []string) (bech32Addrs []string)
- func QueryCIPALsParamsFromUNCompressedPubKeys(uncompressedPubKeys []string) (params types.QueryCIPALsParams)
- func QueryServiceNodesParamsFromBech32Addresses(addresses []string) (params ipaltypes.QueryServiceNodesParams)
- type AccountBody
- type AccountResult
- type AccountValue
- type CIPALBody
- type CIPALResult
- type CIPALServiceInfo
- type CIPALsBody
- type ContractLog
- type Endpoint
- type IPALBody
- type IPALListBody
- type IPALResult
- type IPALsBody
- type LiteClient
- type VMLog
- type VMLogs
Constants ¶
View Source
const ( UriQueryAccount = "/auth/accounts/%s" UriQueryCIPAL = "/cipal/query/%s" UriQueryCIPALs = "/cipal/batch_query" UriQueryIPAL = "/ipal/node/%s" UriQueryIPALs = "/ipal/nodes" UriQueryIPALList = "/ipal/list" UriQueryContractLogs = "/vm/logs/%s" )
View Source
const ( EndpointTypeServerChat = "1" EndpointTypeClientChat = "1" EndpointTypeClientGroupChat = "2" )
Variables ¶
View Source
var ClientChatEndpointType2ServerChatEndpointType = map[string]string{ EndpointTypeClientChat: EndpointTypeServerChat, EndpointTypeClientGroupChat: EndpointTypeServerChat, }
Functions ¶
func Bech32AddrsFromUNCompressedPubKeys ¶ added in v1.1.1
func QueryCIPALsParamsFromUNCompressedPubKeys ¶ added in v1.1.1
func QueryCIPALsParamsFromUNCompressedPubKeys(uncompressedPubKeys []string) (params types.QueryCIPALsParams)
func QueryServiceNodesParamsFromBech32Addresses ¶ added in v1.1.1
func QueryServiceNodesParamsFromBech32Addresses(addresses []string) (params ipaltypes.QueryServiceNodesParams)
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 CIPALBody ¶
type CIPALBody struct { Height string `json:"height"` Result CIPALResult `json:"result"` }
type CIPALResult ¶
type CIPALResult struct { UserAddress string `json:"user_address"` ServiceInfos []CIPALServiceInfo `json:"service_infos"` }
type CIPALServiceInfo ¶
type CIPALsBody ¶ added in v1.1.1
type CIPALsBody struct { Height string `json:"height"` Result []CIPALResult `json:"result"` }
type ContractLog ¶ added in v1.1.4
type IPALBody ¶ added in v1.0.9
type IPALBody struct { Height string `json:"height"` Result IPALResult `json:"result"` }
type IPALListBody ¶ added in v1.0.9
type IPALListBody struct { Height string `json:"height"` Result []IPALResult `json:"result"` }
type IPALResult ¶ added in v1.0.9
type IPALsBody ¶ added in v1.1.1
type IPALsBody struct { Height string `json:"height"` Result []IPALResult `json:"result"` }
type LiteClient ¶
type LiteClient interface { QueryAccount(address string) (AccountBody, error) QueryIPALList() (IPALListBody, error) QueryIPALChatServerEndpoints() ([]string, error) QueryIPALEndpointsByType(endpointType string) ([]string, error) QueryIPALByAddress(address string) (IPALBody, error) QueryIPALByUNCompressedPubKey(uncompressedPubKey string) (IPALBody, error) QueryIPALChatServerEndpointByUNCompressedPubKey(uncompressedPubKey string) (string, error) QueryIPALChatServersEndpointByAddresses(addresses []string) (map[string]string, error) QueryIPALsEndpointByAddressesByType(addresses []string, endpointType string) (map[string]string, error) QueryCIPALByAddress(address string) (CIPALBody, error) QueryCIPALByUNCompressedPubKey(uncompressedPubKey string) (CIPALBody, error) QueryCIPALChatServerAddrByUNCompressedPubKey(uncompressedPubKey string) (string, error) QueryCIPALChatServersAddrByUNCompressedPubKeys(uncompressedPubKey []string) (map[string]string, error) QueryCIPALsAddrByUNCompressedPubKeysByType(uncompressedPubKey []string, endpointType string) (map[string]string, error) QueryContractLog(txId []byte) (ContractLog, error) }
func NewClient ¶
func NewClient(c basic.HttpClient) LiteClient
type VMLog ¶ added in v1.1.4
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.