Versions in this module Expand all Collapse all v1 v1.0.0 Jun 3, 2021 Changes in this version + const TokenContract + const TokenDeploy + const TokenERC20 + const TokenETH + const TypeAccountContract + const TypeAccountNormal + var ContractTypeERC20 = 1 + var ContractTypeERC721 = 2 + var ContractTypeUnknown = 0 + type AccountMap map[string]*Accounts + type Accounts struct + AccountType int64 + Address string + Balance decimal.Decimal + BalanceInput decimal.Decimal + BalanceOutput decimal.Decimal + Contract string + ContractExist int + Id int64 + TransactionCount int64 + func (a *Accounts) TableName() string + type Block struct + BlockAward decimal.Decimal + BlockHash string + BlockNumber uint64 + BlockSize uint64 + BlockTime uint64 + Miner string + ParentHash string + Timestamp time.Time + TxCount int + Txs []string + func (a *Block) MarshalJSON() ([]byte, error) + func (a *Block) String() string + func (a Block) TableName() string + type Contract struct + AccountNum int + Address string + BlockNumber uint64 + BlockTime uint64 + Creator string + Icon string + Introduction string + IsShow bool + Name string + Symbol string + Timestamp time.Time + TokenCirculation decimal.Decimal + TokenTxNum int64 + Total decimal.Decimal + TxHash string + TxNum int64 + Type int + UnitLength int64 + WebSite string + func (a *Contract) MarshalJSON() ([]byte, error) + func (a Contract) TableName() string + func (c *Contract) Bytes() ([]byte, error) + type ContractMap map[string]*Contract + type ContractMapSet struct + func NewContractMapSet() *ContractMapSet + func (s *ContractMapSet) Clear() + func (s *ContractMapSet) Get(item string) (*Contract, bool) + func (s *ContractMapSet) IsEmpty() bool + func (s *ContractMapSet) Len() int + func (s *ContractMapSet) List() ContractMap + func (s *ContractMapSet) Remove(items ...string) + func (s *ContractMapSet) SortList() []string + func (s *ContractMapSet) Update(items ...*Contract) + type ListenAddress struct + Address string + Remark string + func (a *ListenAddress) String() string + func (a ListenAddress) TableName() string + type MapSet struct + func NewMapSet() *MapSet + func (s *MapSet) Clear() + func (s *MapSet) Get(item string, contract string) (*Accounts, bool) + func (s *MapSet) IsEmpty() bool + func (s *MapSet) Len() int + func (s *MapSet) List() AccountMap + func (s *MapSet) Remove(items ...string) + func (s *MapSet) SortList() []string + func (s *MapSet) Update(items ...*Accounts) + type Transaction struct + BlockNumber decimal.Decimal + BlockTime uint64 + Contract string + Fee decimal.Decimal + From string + GasLimit uint64 + GasPrice decimal.Decimal + GasUsed decimal.Decimal + Input string + Nonce decimal.Decimal + Status bool + Timestamp time.Time + To string + TransactionIndex uint64 + TxHash string + TxType int + Value decimal.Decimal + func (a *Transaction) MarshalJSON() ([]byte, error) + func (a Transaction) TableName() string