Documentation
¶
Index ¶
- type Block
- type Client
- func (cli *Client) DecodeTxAppBatch(tx *types.TxBatch, block *tmtypes.Block, ...) (*database.V3Transaction, []database.V3Payment)
- func (cli *Client) DecodeTxAppEthereum(tx *ethtypes.Transaction, block *tmtypes.Block, ...) (*database.V3Transaction, []database.V3Payment)
- func (cli *Client) DecodeTxAppEvm(tx *types.TxEvm, block *tmtypes.Block, ...) (*database.V3Transaction, []database.V3Payment)
- func (cli *Client) DecodeTxMultisigEvm(tx *types.MultisigEvmTx, block *tmtypes.Block, ...) (*database.V3Transaction, []database.V3Payment)
- func (cli *Client) GetCurrentHeightV3() (int64, error)
- func (cli *Client) GetV3BlockData(height int64) (*V3BlockData, error)
- func (cli *Client) LastBlockHeight() (height int64, err error)
- func (cli Client) SaveV3Data(data *V3BlockData) error
- func (cli *Client) Start()
- type DefaultFetcher
- type Fetcher
- type TokenMgr
- type V3BlockData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(ctx context.Context, tgsBaseURL, chainId string, version int, rpcRemote string, mgr *datamanager.DataManager, startHeight int64) (*Client, error)
func (*Client) DecodeTxAppBatch ¶
func (*Client) DecodeTxAppEthereum ¶
func (cli *Client) DecodeTxAppEthereum(tx *ethtypes.Transaction, block *tmtypes.Block, deliverResult *abcitypes.ResponseDeliverTx, ledger *database.V3Ledger) (*database.V3Transaction, []database.V3Payment)
func (*Client) DecodeTxAppEvm ¶
func (*Client) DecodeTxMultisigEvm ¶
func (cli *Client) DecodeTxMultisigEvm(tx *types.MultisigEvmTx, block *tmtypes.Block, deliverResult *abcitypes.ResponseDeliverTx, ledger *database.V3Ledger) (*database.V3Transaction, []database.V3Payment)
func (*Client) GetCurrentHeightV3 ¶
func (*Client) GetV3BlockData ¶
func (cli *Client) GetV3BlockData(height int64) (*V3BlockData, error)
func (*Client) LastBlockHeight ¶
func (Client) SaveV3Data ¶
func (cli Client) SaveV3Data(data *V3BlockData) error
type DefaultFetcher ¶
type DefaultFetcher struct {
// contains filtered or unexported fields
}
DefaultFetcher Fetcher impl
func NewFetch ¶
func NewFetch(rpcRemote string) *DefaultFetcher
func (*DefaultFetcher) FetchBlockInfo ¶
func (f *DefaultFetcher) FetchBlockInfo(height int64) (*Block, error)
FetchBlockInfo 获取区块信息
func (*DefaultFetcher) FetchBlockResultInfo ¶
func (f *DefaultFetcher) FetchBlockResultInfo(height int64) ([]*abcitypes.ResponseDeliverTx, error)
func (*DefaultFetcher) LastBlockHeight ¶
func (f *DefaultFetcher) LastBlockHeight() (int64, error)
type Fetcher ¶
type Fetcher interface { LastBlockHeight() (int64, error) FetchBlockInfo(height int64) (*Block, error) FetchBlockResultInfo(height int64) ([]*abcitypes.ResponseDeliverTx, error) }
Fetcher
type TokenMgr ¶ added in v1.4.0
type TokenMgr struct {
// contains filtered or unexported fields
}
func NewTokenMgr ¶ added in v1.4.0
type V3BlockData ¶
type V3BlockData struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.