Documentation
¶
Index ¶
- type Common
- type HealthCheck
- type Hive
- type JWTClaim
- type JWTInfoCommon
- type JWTInfoCreateWallet
- type JWTInfoHiveUploadAndSign
- type JWTInfoNodeRpc
- type JWTInfoRequestELA
- type JWTInfoSidechainEthDeploy
- type JWTInfoSidechainEthWatch
- type JWTInfoVerifyAndShow
- type JWTInfoViewWallet
- type NodeRpc
- func (n *NodeRpc) Close()
- func (n *NodeRpc) GetArbitratorGroup(apiKey, did, network, height string) map[string]interface{}
- func (n *NodeRpc) GetBlockConfirm(apiKey, did, network, height string) map[string]interface{}
- func (n *NodeRpc) GetBlockInfo(apiKey, did, network, chain, height string) map[string]interface{}
- func (n *NodeRpc) GetCurrentArbitratorGroup(apiKey, did, network string) map[string]interface{}
- func (n *NodeRpc) GetCurrentArbitratorsInfo(apiKey, did, network string) map[string]interface{}
- func (n *NodeRpc) GetCurrentBalance(apiKey, did, network, chain, address string) interface{}
- func (n *NodeRpc) GetCurrentBlockConfirm(apiKey, did, network string) map[string]interface{}
- func (n *NodeRpc) GetCurrentBlockInfo(apiKey, did, network, chain string) map[string]interface{}
- func (n *NodeRpc) GetCurrentCrcCandidates(apiKey, did, network string) map[string]interface{}
- func (n *NodeRpc) GetCurrentCrcCouncil(apiKey, did, network string) map[string]interface{}
- func (n *NodeRpc) GetCurrentDposSupernodes(apiKey, did, network string) map[string]interface{}
- func (n *NodeRpc) GetCurrentHeight(apiKey, did, network, chain string) string
- func (n *NodeRpc) GetCurrentMiningInfo(apiKey, did, network string) map[string]interface{}
- func (n *NodeRpc) GetCurrentNodeState(apiKey, did, network, chain string) map[string]interface{}
- func (n *NodeRpc) RpcMethod(apiKey, did, network, chain, method string, params interface{}) interface{}
- type Response
- type ResponseData
- type SidechainEth
- type SolidityListener
- type Wallet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Common ¶
type Common struct {
Connection *grpc.ClientConn
}
func (*Common) GenerateAPIRequest ¶
type HealthCheck ¶
type HealthCheck struct {
Connection *grpc.ClientConn
}
func NewHealthCheck ¶
func NewHealthCheck(host string, port int, production bool) *HealthCheck
func (*HealthCheck) Check ¶
func (hc *HealthCheck) Check() *health_check.HealthCheckResponse
func (*HealthCheck) Close ¶
func (hc *HealthCheck) Close()
type Hive ¶
type Hive struct {
Connection *grpc.ClientConn
}
func (*Hive) UploadAndSign ¶
func (*Hive) VerifyAndShow ¶
func (h *Hive) VerifyAndShow(apiKey, did, network, privateKey, msg, pub, sig, hash string) ResponseData
type JWTInfoCommon ¶
type JWTInfoCommon struct {
jwt.StandardClaims
}
type JWTInfoCreateWallet ¶
type JWTInfoCreateWallet struct {
Network string `json:"network"`
}
type JWTInfoNodeRpc ¶
type JWTInfoRequestELA ¶
type JWTInfoVerifyAndShow ¶
type JWTInfoViewWallet ¶
type NodeRpc ¶
type NodeRpc struct {
Connection *grpc.ClientConn
}
func (*NodeRpc) GetArbitratorGroup ¶
Common method for mainchain only
func (*NodeRpc) GetBlockConfirm ¶
Common method for mainchain only
func (*NodeRpc) GetBlockInfo ¶
Common method for mainchain, did sidechain, token and eth sidechain
func (*NodeRpc) GetCurrentArbitratorGroup ¶
Common method for mainchain only
func (*NodeRpc) GetCurrentArbitratorsInfo ¶
Common method for mainchain only
func (*NodeRpc) GetCurrentBalance ¶
Common method for mainchain, did sidechain, token and eth sidechain
func (*NodeRpc) GetCurrentBlockConfirm ¶
Common method for mainchain only
func (*NodeRpc) GetCurrentBlockInfo ¶
Common method for mainchain, did sidechain, token and eth sidechain
func (*NodeRpc) GetCurrentCrcCandidates ¶
Common method for mainchain only
func (*NodeRpc) GetCurrentCrcCouncil ¶
Common method for mainchain only
func (*NodeRpc) GetCurrentDposSupernodes ¶
Common method for mainchain only
func (*NodeRpc) GetCurrentHeight ¶
Common method for mainchain, did sidechain, token and eth sidechain
func (*NodeRpc) GetCurrentMiningInfo ¶
Common method for mainchain only
func (*NodeRpc) GetCurrentNodeState ¶
Common method for mainchain, did sidechain and token sidechain
type ResponseData ¶
type SidechainEth ¶
type SidechainEth struct {
Connection *grpc.ClientConn
}
func NewSidechainEth ¶
func NewSidechainEth(host string, port int, production bool) *SidechainEth
func (*SidechainEth) Close ¶
func (e *SidechainEth) Close()
func (*SidechainEth) DeployEthContract ¶
func (e *SidechainEth) DeployEthContract(apiKey, did, network, address, privateKey string, gas int, fileName string) Response
func (*SidechainEth) WatchEthContract ¶
func (e *SidechainEth) WatchEthContract(apiKey, did, network, contractAddress, contractName, contractCodeHash string) Response
type SolidityListener ¶
type SolidityListener struct { *parser.BaseSolidityListener ContractName string }
func (*SolidityListener) EnterContractDefinition ¶
func (s *SolidityListener) EnterContractDefinition(ctx *parser.ContractDefinitionContext)
type Wallet ¶
type Wallet struct {
Connection *grpc.ClientConn
}