client

package
v0.0.0-...-8377674 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2020 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllianceSDK

type AllianceSDK struct {
	// contains filtered or unexported fields
}

func NewAllianceSDK

func NewAllianceSDK(c *conf.Config) *AllianceSDK

func (*AllianceSDK) GetBlockByHeight

func (client *AllianceSDK) GetBlockByHeight(height uint32) (*types.Block, error)

func (*AllianceSDK) GetCurrentBlockHeight

func (client *AllianceSDK) GetCurrentBlockHeight() (uint32, error)

func (*AllianceSDK) GetSmartContractEventByBlock

func (client *AllianceSDK) GetSmartContractEventByBlock(height uint32) ([]*sdkcom.SmartContactEvent, error)

type CosmosClient

type CosmosClient struct {
	// contains filtered or unexported fields
}

func NewCosmosClient

func NewCosmosClient(c *conf.Config) (client *CosmosClient)

func (*CosmosClient) Block

func (client *CosmosClient) Block(height *int64) (*ctypes.ResultBlock, error)

func (*CosmosClient) Status

func (client *CosmosClient) Status() (*ctypes.ResultStatus, error)

func (*CosmosClient) TxSearch

func (client *CosmosClient) TxSearch(query string, prove bool, page, perPage int, orderBy string) (*ctypes.ResultTxSearch, error)

type EthereumClient

type EthereumClient struct {
	Client *ethclient.Client
	// contains filtered or unexported fields
}

func NewEthereumClient

func NewEthereumClient(c *conf.Config) (client *EthereumClient)

func (*EthereumClient) Close

func (ec *EthereumClient) Close()

Close client

func (*EthereumClient) GetCurrentBlockHeight

func (ec *EthereumClient) GetCurrentBlockHeight(ctx *ctx.Context) (height int64, _ error)

GetCurrentBlockHeight returns current block height

func (*EthereumClient) GetHeaderByNumber

func (ec *EthereumClient) GetHeaderByNumber(ctx *ctx.Context, number int64) (header *types.Header, err error)

GetHeaderByNumber returns the given header

func (*EthereumClient) GetTransactionByHash

func (ec *EthereumClient) GetTransactionByHash(ctx *ctx.Context, hash common.Hash) (*types.Transaction, error)

func (*EthereumClient) GetTransactionReceipt

func (ec *EthereumClient) GetTransactionReceipt(ctx *ctx.Context, hash common.Hash) (*types.Receipt, error)

type NeoClient

type NeoClient struct {
	// contains filtered or unexported fields
}

func NewNeoClient

func NewNeoClient(c *conf.Config) (client *NeoClient)

func (*NeoClient) GetApplicationLog

func (client *NeoClient) GetApplicationLog(txId string) rpc.GetApplicationLogResponse

func (*NeoClient) GetBlockByIndex

func (client *NeoClient) GetBlockByIndex(index uint32) rpc.GetBlockResponse

func (*NeoClient) GetBlockCount

func (client *NeoClient) GetBlockCount() rpc.GetBlockCountResponse

type OntologySDK

type OntologySDK struct {
	// contains filtered or unexported fields
}

func NewOntologySDK

func NewOntologySDK(c *conf.Config) *OntologySDK

func (*OntologySDK) GetBlockByHeight

func (client *OntologySDK) GetBlockByHeight(height uint32) (*types.Block, error)

func (*OntologySDK) GetCurrentBlockHeight

func (client *OntologySDK) GetCurrentBlockHeight() (uint32, error)

func (*OntologySDK) GetSmartContractEventByBlock

func (client *OntologySDK) GetSmartContractEventByBlock(height uint32) ([]*sdkcom.SmartContactEvent, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL