Versions in this module Expand all Collapse all v1 v1.0.1 Oct 12, 2020 Changes in this version + const InternalServerErrCode + const NotFoundCode + var ErrInternalServer = errors.New("internal server error") + var ErrValueNotFound = errors.New("value not found") + type Client struct + Host string + HttpClient *rpchttp.HTTP + func New(host string) (*Client, error) + func (client *Client) BftOraclesByNebula(chainType account.ChainType, nebulaId account.NebulaId) (storage.OraclesMap, error) + func (client *Client) CommitHash(chainType account.ChainType, nebulaId account.NebulaId, height int64, ...) ([]byte, error) + func (client *Client) Consuls() ([]storage.Consul, error) + func (client *Client) ConsulsCandidate() ([]storage.Consul, error) + func (client *Client) LastRoundApproved() (uint64, error) + func (client *Client) NebulaInfo(id account.NebulaId, chainType account.ChainType) (*storage.NebulaInfo, error) + func (client *Client) NebulaOraclesIndex(chainId account.ChainType, nebulaId account.NebulaId) (uint64, error) + func (client *Client) Nebulae() (storage.NebulaMap, error) + func (client *Client) OraclesByNebula(nebulaId account.NebulaId, chainType account.ChainType) (storage.OraclesMap, error) + func (client *Client) OraclesByValidator(pubKey account.ConsulPubKey) (storage.OraclesByTypeMap, error) + func (client *Client) Result(chainType account.ChainType, nebulaId account.NebulaId, height int64, ...) ([]byte, error) + func (client *Client) Results(height uint64, chainType account.ChainType, nebulaId account.NebulaId) ([]string, error) + func (client *Client) Reveal(chainType account.ChainType, oraclePubKey account.OraclesPubKey, ...) ([]byte, error) + func (client *Client) Reveals(chainType account.ChainType, nebulaId account.NebulaId, height int64, ...) ([]string, error) + func (client *Client) RoundHeight(chainType account.ChainType, ledgerHeight uint64) (uint64, error) + func (client *Client) SendTx(transaction *transactions.Transaction) error + func (client *Client) SignNewConsulsByConsul(pubKey account.ConsulPubKey, chainId account.ChainType, roundId int64) ([]byte, error) + func (client *Client) SignNewOraclesByConsul(pubKey account.ConsulPubKey, chainId account.ChainType, ...) ([]byte, error)