Documentation ¶
Index ¶
- Variables
- func CheckLog(log *types.Log) (*types.EventTransferData, error)
- func DecodeBig(num string) *big.Int
- func GetAccountContracts(addresses map[string]common.Address) (map[string]*types.Contract, error)
- func GetAccountErc1155Txs(pager *types.Pager, address common.Address) ([]*types.Erc1155TxResp, uint64, error)
- func GetAccountErc20Txns(pager *types.Pager, address common.Address) ([]*types.Erc20TxResp, uint64, error)
- func GetAccountErc721Txs(pager *types.Pager, address common.Address) ([]*types.Erc721TxResp, uint64, error)
- func GetAccountInfo(address common.Address) (*types.AccountResp, error)
- func GetAccountItxs(pager *types.Pager, address common.Address) ([]*types.InternalTxResp, uint64, error)
- func GetAccountTotal(address common.Address) (map[string]uint64, error)
- func GetAccountTxs(pager *types.Pager, address common.Address) (map[string]interface{}, error)
- func GetAccounts(addresses map[string]common.Address) (map[string]*types.Account, error)
- func GetBlock(blockNum string) (*types.BlockResp, error)
- func GetBlockTxs(blockNum string, pager *types.Pager) ([]*types.ListTransactionResp, uint64, error)
- func GetContractABI(address common.Address) (string, error)
- func GetDateTxs(dateTxs map[string]*field.BigInt) []map[string]string
- func GetHomeMetrics(home *types.Home, dateTxs []map[string]string, totalTxs, t uint64) map[string]interface{}
- func GetMethodNames(methodIDs []string) (methodNames map[string]string, err error)
- func GetTokenType(address common.Address) (interface{}, error)
- func GetTraceTx(hash common.Hash) (*types.TraceTxResp, error)
- func GetTraceTx2(hash common.Hash) (*types.TraceTx2Resp, error)
- func GetTx(tx string) (*types.TxResp, error)
- func GetTxBase(tx string) (*types.TransactionBaseResp, error)
- func GetValidateContract(address common.Address) (*types.ContractVerityInfoResp, error)
- func GetValidateContractStatus(address string) (status *types.ContractStatus, err error)
- func Home() (map[string]interface{}, error)
- func IsNumber(number string) bool
- func ListErc1155Holders(pager *types.Pager, address common.Address) ([]*types.HolderResp, uint64, error)
- func ListErc1155Inventory(pager *types.Pager, address common.Address) ([]*types.InventoryResp, uint64, error)
- func ListErc1155Transfers(pager *types.Pager, address common.Address) ([]*types.Erc1155TxResp, uint64, error)
- func ListErc1155Txs(pager *types.Pager) ([]*types.Erc1155TxResp, uint64, error)
- func ListErc20Holders(pager *types.Pager, address common.Address) ([]*types.HolderResp, uint64, error)
- func ListErc20Transfers(pager *types.Pager, address common.Address) ([]*types.Erc20TxResp, uint64, error)
- func ListErc20Txs(pager *types.Pager) ([]*types.Erc20TxResp, uint64, error)
- func ListErc721Holders(pager *types.Pager, address common.Address) ([]*types.HolderResp, uint64, error)
- func ListErc721Inventory(pager *types.Pager, address common.Address) ([]*types.InventoryResp, uint64, error)
- func ListErc721Transfers(pager *types.Pager, address common.Address) ([]*types.Erc721TxResp, uint64, error)
- func ListErc721Txs(pager *types.Pager) ([]*types.Erc721TxResp, uint64, error)
- func ListFullFieldBlocks(pager *types.Pager) ([]*types.ListBlockResp, uint64, error)
- func ListInventory(typ string, pager *types.Pager, address common.Address) (map[string]interface{}, error)
- func ListTokenHolders(typ string, pager *types.Pager, address common.Address) (map[string]interface{}, error)
- func ListTokenTransfers(address common.Address, typ string, pager *types.Pager) (map[string]interface{}, error)
- func ListTxs(pager *types.Pager) ([]*types.ListTransactionResp, uint64, error)
- func NewStore(st *storage.StorageImpl)
- func ParsePage(num *field.BigInt, offset, limit int64) (*field.BigInt, *field.BigInt)
- func ReadMetaData() (*types.ValidateContractMetadata, error)
- func ReadValidateContractMetadata() (*types.ValidateContractMetadata, error)
- func Search(f *types.SearchFilter) (map[string]interface{}, error)
- func StartContractVerity(body *types.ContractVerityTmp)
- func StartHandleContractVerity()
- func ValidateContract(req *types.ValidateContractReq) (map[string]string, error)
- func WriteMetadata() error
- func WriteValidateContractMetadata(metadata *types.ValidateContractMetadata) error
- type Storage
- type Store
- func (s *Store) GetAccount(address common.Address) (*types.Account, error)
- func (s *Store) GetAccountErc1155Total(address common.Address) (total *field.BigInt, err error)
- func (s *Store) GetAccountErc20Total(address common.Address) (total *field.BigInt, err error)
- func (s *Store) GetAccountErc721Total(address common.Address) (total *field.BigInt, err error)
- func (s *Store) GetAccountITxTotal(address common.Address) (total *field.BigInt, err error)
- func (s *Store) GetAccountTxTotal(address common.Address) (total *field.BigInt, err error)
- func (s *Store) GetBlock(blockNum *field.BigInt) (*types.Block, error)
- func (s *Store) GetBlockTotal() (bk *field.BigInt, err error)
- func (s *Store) GetContract(address common.Address) (*types.Contract, error)
- func (s *Store) GetErc1155ContractTransfer(contract common.Address, offset, limit int64) (data []*types.Erc1155Transfer, total *field.BigInt, err error)
- func (s *Store) GetErc1155HolderCount(address common.Address) (count uint64, err error)
- func (s *Store) GetErc1155InventoryCount(address common.Address) (count uint64, err error)
- func (s *Store) GetErc1155Total() (total *field.BigInt, err error)
- func (s *Store) GetErc20ContractTransfer(contract common.Address, offset, limit int64) (data []*types.Erc20Transfer, total *field.BigInt, err error)
- func (s *Store) GetErc20HolderCount(address common.Address) (count uint64, err error)
- func (s *Store) GetErc20Total() (total *field.BigInt, err error)
- func (s *Store) GetErc721ContractTransfer(contract common.Address, offset, limit int64) (data []*types.Erc721Transfer, total *field.BigInt, err error)
- func (s *Store) GetErc721HolderCount(address common.Address) (count uint64, err error)
- func (s *Store) GetErc721InventoryCount(address common.Address) (count uint64, err error)
- func (s *Store) GetErc721Total() (total *field.BigInt, err error)
- func (s *Store) GetHome() (home *types.Home, err error)
- func (s *Store) GetMethodName(methodID string) (string, error)
- func (s *Store) GetProxyContract(address common.Address) (logic common.Address, err error)
- func (s *Store) GetRt(txhash common.Hash) (data *types.Rt, err error)
- func (s *Store) GetTx(txhash common.Hash) (data *types.Tx, err error)
- func (s *Store) GetTxTotal() (total *field.BigInt, err error)
- func (s *Store) GetValidateContract(address common.Address) (data *types.ContractVerity, err error)
- func (s *Store) GetValidateContractMetadata() (data *types.ValidateContractMetadata, err error)
- func (s *Store) GetValidateContractStatus(address common.Address) (status *types.ContractStatus, err error)
- func (s *Store) ListAccountErc1155Txs(address common.Address, total *field.BigInt, offset, limit int64) ([]*types.Erc1155Transfer, error)
- func (s *Store) ListAccountErc20Txs(address common.Address, total *field.BigInt, offset, limit int64) ([]*types.Erc20Transfer, error)
- func (s *Store) ListAccountErc721Txs(address common.Address, total *field.BigInt, offset, limit int64) ([]*types.Erc721Transfer, error)
- func (s *Store) ListAccountITxs(address common.Address, total *field.BigInt, offset, limit int64) ([]*types.InternalTx, error)
- func (s *Store) ListAccountTxs(address common.Address, total *field.BigInt, offset, limit int64) ([]*types.Tx, error)
- func (s *Store) ListBlockTxs(total, blockNum *field.BigInt, offset, limit int64) ([]*types.Tx, error)
- func (s *Store) ListBlocks(total *field.BigInt, offset, limit int64) ([]*types.Block, error)
- func (s *Store) ListErc1155Holders(address common.Address, offset, limit int64) (holders []*types.Holder, err error)
- func (s *Store) ListErc1155Inventories(address common.Address, offset, limit int64) ([]*field.BigInt, error)
- func (s *Store) ListErc1155Transfers(total *field.BigInt, offset, limit int64) ([]*types.Erc1155Transfer, error)
- func (s *Store) ListErc20Holders(address common.Address, offset, limit int64) (holders []*types.Holder, err error)
- func (s *Store) ListErc20Transfers(total *field.BigInt, offset, limit int64) ([]*types.Erc20Transfer, error)
- func (s *Store) ListErc721Holders(address common.Address, offset, limit int64) (holders []*types.Holder, err error)
- func (s *Store) ListErc721Inventories(address common.Address, offset, limit int64) ([]*types.Inventory, error)
- func (s *Store) ListErc721Transfers(total *field.BigInt, offset, limit int64) ([]*types.Erc721Transfer, error)
- func (s *Store) ListTxs(total *field.BigInt, offset, limit int64) ([]*types.Tx, error)
- func (s *Store) ReadErc1155ContractTotal(contract common.Address) (total *field.BigInt, err error)
- func (s *Store) ReadErc20ContractTotal(contract common.Address) (total *field.BigInt, err error)
- func (s *Store) ReadErc721ContractTotal(contract common.Address) (total *field.BigInt, err error)
- func (s *Store) ReadTraceTx2(address common.Hash) (res *types.TraceTx2, err error)
- func (s *Store) WriteMethodName(id, name string) error
- func (s *Store) WriteValidateContract(address common.Address, data *types.ContractVerity) error
- func (s *Store) WriteValidateContractMetadata(metadata *types.ValidateContractMetadata) error
- func (s *Store) WriteValidateContractStatus(address common.Address, status *types.ContractStatus) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TransferBatchEventTopic = common.HexToHash("0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb") TransferSingleEventTopic = common.HexToHash("0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62") TransferEventTopic = common.HexToHash("0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef") )
View Source
var ContractVerityChain = make(chan *types.ContractVerityTmp, 100)
View Source
var TokenTopics = []string{
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62",
"0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb",
}
Functions ¶
func GetAccountContracts ¶
func GetAccountErc1155Txs ¶
func GetAccountErc20Txns ¶
func GetAccountErc721Txs ¶
func GetAccountInfo ¶
func GetAccountInfo(address common.Address) (*types.AccountResp, error)
func GetAccountItxs ¶
func GetAccountTxs ¶
func GetAccounts ¶
func GetBlockTxs ¶
func GetHomeMetrics ¶
func GetMethodNames ¶
func GetTokenType ¶
func GetTraceTx ¶
func GetTraceTx(hash common.Hash) (*types.TraceTxResp, error)
func GetTraceTx2 ¶
func GetTraceTx2(hash common.Hash) (*types.TraceTx2Resp, error)
func GetValidateContract ¶
func GetValidateContract(address common.Address) (*types.ContractVerityInfoResp, error)
func GetValidateContractStatus ¶
func GetValidateContractStatus(address string) (status *types.ContractStatus, err error)
func ListErc1155Holders ¶
func ListErc1155Inventory ¶
func ListErc1155Transfers ¶
func ListErc1155Txs ¶
func ListErc20Holders ¶
func ListErc20Transfers ¶
func ListErc20Txs ¶
func ListErc721Holders ¶
func ListErc721Inventory ¶
func ListErc721Transfers ¶
func ListErc721Txs ¶
func ListFullFieldBlocks ¶
func ListInventory ¶
func ListTokenHolders ¶
func ListTokenTransfers ¶
func NewStore ¶
func NewStore(st *storage.StorageImpl)
func ReadMetaData ¶
func ReadMetaData() (*types.ValidateContractMetadata, error)
func ReadValidateContractMetadata ¶
func ReadValidateContractMetadata() (*types.ValidateContractMetadata, error)
func StartContractVerity ¶
func StartContractVerity(body *types.ContractVerityTmp)
func StartHandleContractVerity ¶
func StartHandleContractVerity()
func ValidateContract ¶
func ValidateContract(req *types.ValidateContractReq) (map[string]string, error)
func WriteMetadata ¶
func WriteMetadata() error
func WriteValidateContractMetadata ¶
func WriteValidateContractMetadata(metadata *types.ValidateContractMetadata) error
Types ¶
type Storage ¶
type Storage interface { GetBlock(blockNum *field.BigInt) (*types.Block, error) ListBlockTxs(total, blockNum *field.BigInt, offset, limit int64) ([]*types.Tx, error) ListBlocks(total *field.BigInt, offset, limit int64) ([]*types.Block, error) GetBlockTotal() (bk *field.BigInt, err error) GetAccount(address common.Address) (acc *types.Account, err error) GetContract(address common.Address) (*types.Contract, error) GetAccountTxTotal(address common.Address) (total *field.BigInt, err error) GetAccountErc20Total(address common.Address) (total *field.BigInt, err error) GetAccountErc721Total(address common.Address) (total *field.BigInt, err error) GetAccountErc1155Total(address common.Address) (total *field.BigInt, err error) GetAccountITxTotal(address common.Address) (total *field.BigInt, err error) ListAccountTxs(address common.Address, total *field.BigInt, offset, limit int64) ([]*types.Tx, error) ListAccountITxs(address common.Address, total *field.BigInt, offset, limit int64) ([]*types.InternalTx, error) ListAccountErc20Txs(address common.Address, total *field.BigInt, offset, limit int64) ([]*types.Erc20Transfer, error) ListAccountErc721Txs(address common.Address, total *field.BigInt, offset, limit int64) ([]*types.Erc721Transfer, error) ListAccountErc1155Txs(address common.Address, total *field.BigInt, offset, limit int64) ([]*types.Erc1155Transfer, error) GetHome() (home *types.Home, err error) GetTx(txhash common.Hash) (data *types.Tx, err error) GetRt(txhash common.Hash) (data *types.Rt, err error) GetTxTotal() (total *field.BigInt, err error) ListTxs(total *field.BigInt, offset, limit int64) ([]*types.Tx, error) GetErc20Total() (total *field.BigInt, err error) GetErc721Total() (total *field.BigInt, err error) GetErc1155Total() (total *field.BigInt, err error) ListErc20Transfers(total *field.BigInt, offset, limit int64) ([]*types.Erc20Transfer, error) ListErc721Transfers(total *field.BigInt, offset, limit int64) ([]*types.Erc721Transfer, error) ListErc1155Transfers(total *field.BigInt, offset, limit int64) ([]*types.Erc1155Transfer, error) ListErc20Holders(address common.Address, offset, limit int64) (holders []*types.Holder, err error) GetErc20HolderCount(address common.Address) (count uint64, err error) ListErc721Holders(address common.Address, offset, limit int64) (holders []*types.Holder, err error) GetErc721HolderCount(address common.Address) (count uint64, err error) ListErc1155Holders(address common.Address, offset, limit int64) (holders []*types.Holder, err error) GetErc1155HolderCount(address common.Address) (count uint64, err error) GetMethodName(methodID string) (string, error) ListErc721Inventories(address common.Address, offset, limit int64) ([]*types.Inventory, error) GetErc721InventoryCount(address common.Address) (count uint64, err error) ListErc1155Inventories(address common.Address, offset, limit int64) ([]*field.BigInt, error) GetErc1155InventoryCount(address common.Address) (count uint64, err error) WriteValidateContractMetadata(metadata *types.ValidateContractMetadata) error GetValidateContractMetadata() (data *types.ValidateContractMetadata, err error) GetValidateContract(address common.Address) (data *types.ContractVerity, err error) WriteValidateContractStatus(address common.Address, status *types.ContractStatus) error GetValidateContractStatus(address common.Address) (status *types.ContractStatus, err error) WriteMethodName(id, name string) error WriteValidateContract(address common.Address, data *types.ContractVerity) error GetProxyContract(address common.Address) (logic common.Address, err error) GetErc20ContractTransfer(contract common.Address, offset, limit int64) (data []*types.Erc20Transfer, total *field.BigInt, err error) GetErc721ContractTransfer(contract common.Address, offset, limit int64) (data []*types.Erc721Transfer, total *field.BigInt, err error) GetErc1155ContractTransfer(contract common.Address, offset, limit int64) (data []*types.Erc1155Transfer, total *field.BigInt, err error) ReadTraceTx2(address common.Hash) (res *types.TraceTx2, err error) ReadErc20ContractTotal(contract common.Address) (total *field.BigInt, err error) ReadErc721ContractTotal(contract common.Address) (total *field.BigInt, err error) ReadErc1155ContractTotal(contract common.Address) (total *field.BigInt, err error) }
type Store ¶
type Store struct { St *storage.StorageImpl // contains filtered or unexported fields }
func (*Store) GetAccount ¶
func (*Store) GetAccountErc1155Total ¶
func (*Store) GetAccountErc20Total ¶
func (*Store) GetAccountErc721Total ¶
func (*Store) GetAccountITxTotal ¶
func (*Store) GetAccountTxTotal ¶
func (*Store) GetContract ¶
func (*Store) GetErc1155ContractTransfer ¶
func (*Store) GetErc1155HolderCount ¶
func (*Store) GetErc1155InventoryCount ¶
func (*Store) GetErc20ContractTransfer ¶
func (*Store) GetErc20HolderCount ¶
func (*Store) GetErc721ContractTransfer ¶
func (*Store) GetErc721HolderCount ¶
func (*Store) GetErc721InventoryCount ¶
func (*Store) GetProxyContract ¶
func (*Store) GetValidateContract ¶
func (*Store) GetValidateContractMetadata ¶
func (s *Store) GetValidateContractMetadata() (data *types.ValidateContractMetadata, err error)
func (*Store) GetValidateContractStatus ¶
func (*Store) ListAccountErc1155Txs ¶
func (*Store) ListAccountErc20Txs ¶
func (*Store) ListAccountErc721Txs ¶
func (*Store) ListAccountITxs ¶
func (*Store) ListAccountTxs ¶
func (*Store) ListBlockTxs ¶
func (*Store) ListBlocks ¶
func (*Store) ListErc1155Holders ¶
func (*Store) ListErc1155Inventories ¶
func (*Store) ListErc1155Transfers ¶
func (*Store) ListErc20Holders ¶
func (*Store) ListErc20Transfers ¶
func (*Store) ListErc721Holders ¶
func (*Store) ListErc721Inventories ¶
func (*Store) ListErc721Transfers ¶
func (*Store) ReadErc1155ContractTotal ¶
func (*Store) ReadErc20ContractTotal ¶
func (*Store) ReadErc721ContractTotal ¶
func (*Store) ReadTraceTx2 ¶
func (*Store) WriteMethodName ¶
func (*Store) WriteValidateContract ¶
func (*Store) WriteValidateContractMetadata ¶
func (s *Store) WriteValidateContractMetadata(metadata *types.ValidateContractMetadata) error
func (*Store) WriteValidateContractStatus ¶
Click to show internal directories.
Click to hide internal directories.