Documentation ¶
Index ¶
- Variables
- func GetAndDecode(url string, encodingConfig EncodingConfig, target proto.Message) (int, error)
- type EncodingConfig
- type Indexer
- type RawEvent
- type SyncStatus
- type TxHandler
- type TxHelper
- func (h *TxHelper) GetTxResponse(tx []byte) (*sdktypes.TxResponse, *timestamppb.Timestamp, error)
- func (h *TxHelper) GetTxResult(tx []byte) (*txtypes.GetTxResponse, error)
- func (h *TxHelper) GetTxTimestamp(txResponse *sdktypes.TxResponse) (time.Time, error)
- func (h *TxHelper) WasTxSuccessful(tx []byte) (bool, *timestamppb.Timestamp, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ModuleBasics = module.NewBasicManager( auth.AppModuleBasic{}, authzmodule.AppModuleBasic{}, genutil.AppModuleBasic{}, bank.AppModuleBasic{}, capability.AppModuleBasic{}, staking.AppModuleBasic{}, mint.AppModuleBasic{}, distr.AppModuleBasic{}, params.AppModuleBasic{}, crisis.AppModuleBasic{}, slashing.AppModuleBasic{}, feegrantmodule.AppModuleBasic{}, ibc.AppModuleBasic{}, upgrade.AppModuleBasic{}, evidence.AppModuleBasic{}, transfer.AppModuleBasic{}, vesting.AppModuleBasic{}, ) )
Functions ¶
func GetAndDecode ¶
Types ¶
type EncodingConfig ¶
type EncodingConfig struct { InterfaceRegistry types.InterfaceRegistry Codec codec.Codec TxConfig client.TxConfig }
func MakeEncodingConfig ¶
func MakeEncodingConfig() EncodingConfig
type Indexer ¶
type Indexer struct {
// contains filtered or unexported fields
}
func NewIndexer ¶
func NewIndexer(chain *indexerpb.IndexingChain, encodingConfig EncodingConfig, kafkaBrokers []string, txHandler TxHandler) Indexer
func (*Indexer) StartIndexing ¶
func (i *Indexer) StartIndexing(updateChannel chan SyncStatus, stopChannel chan struct{})
type SyncStatus ¶
type TxHandler ¶
type TxHandler interface {
HandleTxs(txs [][]byte) (*indexerpb.HandleTxsResponse, error)
}
func NewBaseMessageHandler ¶
func NewBaseMessageHandler(chainInfo *indexerpb.IndexingChain, encodingConfig EncodingConfig) TxHandler
func NewCustomMessageHandler ¶
func NewCustomMessageHandler(chainInfo *indexerpb.IndexingChain, encodingConfig EncodingConfig, grpcEndpoint string) TxHandler
type TxHelper ¶
type TxHelper struct {
// contains filtered or unexported fields
}
func NewTxHelper ¶
func NewTxHelper(chainInfo *indexerpb.IndexingChain, encodingConfig EncodingConfig) TxHelper
func (*TxHelper) GetTxResponse ¶
func (h *TxHelper) GetTxResponse(tx []byte) (*sdktypes.TxResponse, *timestamppb.Timestamp, error)
func (*TxHelper) GetTxResult ¶
func (h *TxHelper) GetTxResult(tx []byte) (*txtypes.GetTxResponse, error)
func (*TxHelper) GetTxTimestamp ¶
func (*TxHelper) WasTxSuccessful ¶
Click to show internal directories.
Click to hide internal directories.