Documentation ¶
Index ¶
- Constants
- type AddressTxEvent
- type BalanceTxEvent
- type DBAction
- type DBModelEvent
- type DBModels
- type DBModelsFattened
- type DEvent
- type Deploy
- type Event
- type MetaData
- type Mint
- type Receive
- type Transfer
- type TxResult
- type TxResultHandler
- func (tc *TxResultHandler) BuildAddressTxEvents(e *TxResult) []*AddressTxEvent
- func (tc *TxResultHandler) BuildAddressTxs(e *TxResult) (txs []*model.AddressTxs)
- func (tc *TxResultHandler) BuildBalance(e *TxResult) (txns []*model.BalanceTxn, balances map[DBAction][]*model.Balances)
- func (tc *TxResultHandler) BuildBalanceTxEvents(e *TxResult) []BalanceTxEvent
- func (tc *TxResultHandler) BuildInscription(e *TxResult) map[DBAction]*model.Inscriptions
- func (tc *TxResultHandler) BuildInscriptionStat(e *TxResult) map[DBAction]*model.InscriptionsStats
- func (tc *TxResultHandler) BuildModel(r *TxResult) *DBModelEvent
- func (tc *TxResultHandler) BuildTx(e *TxResult) *model.Transaction
- func (tc *TxResultHandler) UpdateCache(r *TxResult)
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressTxEvent ¶
type BalanceTxEvent ¶
type DBModelEvent ¶
type DBModelEvent struct { Tx *model.Transaction Inscriptions map[DBAction]*model.Inscriptions InscriptionStats map[DBAction]*model.InscriptionsStats Balances map[DBAction][]*model.Balances AddressTxs []*model.AddressTxs BalanceTxs []*model.BalanceTxn }
type DBModels ¶
type DBModels struct { Inscriptions map[DBAction]map[uint32]*model.Inscriptions InscriptionStats map[DBAction]map[uint32]*model.InscriptionsStats Balances map[DBAction]map[uint64]*model.Balances Txs map[string]*model.Transaction AddressTxs []*model.AddressTxs BalanceTxs []*model.BalanceTxn }
type DBModelsFattened ¶
type DBModelsFattened struct { Inscriptions map[DBAction][]*model.Inscriptions InscriptionStats map[DBAction][]*model.InscriptionsStats Balances map[DBAction][]*model.Balances Txs []*model.Transaction AddressTxs []*model.AddressTxs BalanceTxs []*model.BalanceTxn BlockStatus *model.BlockStatus }
func BuildDBUpdateModel ¶
func BuildDBUpdateModel(blocksEvents []*Event) (dmf *DBModelsFattened)
type DEvent ¶
type DEvent struct {
// contains filtered or unexported fields
}
func (*DEvent) WriteDBAsync ¶
type MetaData ¶
type TxResultHandler ¶
type TxResultHandler struct {
// contains filtered or unexported fields
}
func NewTxResultHandler ¶
func NewTxResultHandler(cache *dcache.Manager) *TxResultHandler
func (*TxResultHandler) BuildAddressTxEvents ¶
func (tc *TxResultHandler) BuildAddressTxEvents(e *TxResult) []*AddressTxEvent
func (*TxResultHandler) BuildAddressTxs ¶
func (tc *TxResultHandler) BuildAddressTxs(e *TxResult) (txs []*model.AddressTxs)
func (*TxResultHandler) BuildBalance ¶
func (tc *TxResultHandler) BuildBalance(e *TxResult) (txns []*model.BalanceTxn, balances map[DBAction][]*model.Balances)
func (*TxResultHandler) BuildBalanceTxEvents ¶
func (tc *TxResultHandler) BuildBalanceTxEvents(e *TxResult) []BalanceTxEvent
func (*TxResultHandler) BuildInscription ¶
func (tc *TxResultHandler) BuildInscription(e *TxResult) map[DBAction]*model.Inscriptions
func (*TxResultHandler) BuildInscriptionStat ¶
func (tc *TxResultHandler) BuildInscriptionStat(e *TxResult) map[DBAction]*model.InscriptionsStats
func (*TxResultHandler) BuildModel ¶
func (tc *TxResultHandler) BuildModel(r *TxResult) *DBModelEvent
func (*TxResultHandler) BuildTx ¶
func (tc *TxResultHandler) BuildTx(e *TxResult) *model.Transaction
func (*TxResultHandler) UpdateCache ¶
func (tc *TxResultHandler) UpdateCache(r *TxResult)
Click to show internal directories.
Click to hide internal directories.