Documentation ¶
Index ¶
- type AllianceSDK
- type CosmosClient
- type EthereumClient
- func (ec *EthereumClient) Close()
- func (ec *EthereumClient) GetCurrentBlockHeight(ctx *ctx.Context) (height int64, _ error)
- func (ec *EthereumClient) GetHeaderByNumber(ctx *ctx.Context, number int64) (header *types.Header, err error)
- func (ec *EthereumClient) GetTransactionByHash(ctx *ctx.Context, hash common.Hash) (*types.Transaction, error)
- func (ec *EthereumClient) GetTransactionReceipt(ctx *ctx.Context, hash common.Hash) (*types.Receipt, error)
- type NeoClient
- type OntologySDK
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 ¶
func NewEthereumClient ¶
func NewEthereumClient(c *conf.Config) (client *EthereumClient)
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 ¶
type NeoClient ¶
type NeoClient struct {
// contains filtered or unexported fields
}
func NewNeoClient ¶
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)
Click to show internal directories.
Click to hide internal directories.