Versions in this module Expand all Collapse all v0 v0.2.6 Jun 11, 2025 Changes in this version type DB + GetBlocksByNums func(c context.Context, blockNums []uint, columns string) (blocks []*Block) + GetCurrentBlockNum func(c context.Context) (uint64, error) v0.2.5 Apr 29, 2025 Changes in this version type Event + Id uint v0.2.4 Apr 8, 2025 Changes in this version + type Block struct + BlockNum int + BlockTimestamp int + Finalized bool + Hash string + SpecVersion int + Validator string + type DB interface + AddIndex func(model interface{}, indexName string, columns ...string) error + AddUniqueIndex func(model interface{}, indexName string, columns ...string) error + AutoMigration func(model interface{}) error + Create func(record interface{}) error + Delete func(model interface{}, query interface{}) error + FindBy func(record interface{}, query interface{}, option *Option) (int, bool) + GetDbInstance func() any + Update func(model interface{}, query interface{}, attr map[string]interface{}) error + type Dao interface + RPCPool func() *websocket.PoolConn + SetPrefix func(string) + SpecialMetadata func(int) string + type Event struct + BlockNum int + EventId string + EventIdx int + ExtrinsicHash string + ExtrinsicIdx int + ModuleId string + Params []byte + type EventParam struct + Type string + Value interface{} + type Extrinsic struct + AccountId string + CallCode string + CallModule string + CallModuleFunction string + Era string + ExtrinsicHash string + ExtrinsicIndex string + Fee decimal.Decimal + Nonce int + Params []byte + Signature string + Success bool + type ExtrinsicParam struct + Name string + Type string + Value interface{} + type Option struct + Order string + Page int + PageSize int + PluginPrefix string v0.2.3 Oct 12, 2020