Documentation ¶
Overview ¶
Package adapter defines SDK interface and contains the implementations of each chain
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SDKAdapter ¶
type SDKAdapter interface { // SubscribeBlock subscribes to the latest block generated by the remote chain SubscribeBlock() (chan common.Blocker, error) // GetChainHeight gets the height of the remote chain GetChainHeight() (uint64, error) // GetBlockByHeight gets the block of a specific height from remote chain GetBlockByHeight(blockHeight uint64) (common.Blocker, error) // GetTransactionByTxKey gets the transaction by transaction id from remote chain GetTransactionByTxKey(txKey string) (common.Transactioner, error) // GetChainConfig gets the config of remote chain GetChainConfig() (*protogo.RemoteConfig, error) // Stop closes connection pool and release resource Stop() error }
SDKAdapter defines SDK interface
Click to show internal directories.
Click to hide internal directories.