Documentation ¶
Index ¶
- Constants
- Variables
- func Bytes(v interface{}) []byte
- func GetETHAddressFromTopic(content string) (string, error)
- func Hex2Uint64(v string) (uint64, error)
- func Init(path string, level int)
- func NowDay() uint64
- func NowMs() uint64
- func Panic(msg string)
- func PanicError(err error)
- func PrintErrorIfExist(err error)
- func RemoveHexPrefix(content string) string
- func Uint642Hex(v uint64) string
- type Chain
- type ConfigApp
- type ConfigMysql
- type ConfigRedisSingle
- type DTO
- type Dex
- type Result
Constants ¶
View Source
const ( ERC20TransferHash = "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef" //crypto.Keccak256Hash([]byte("Transfer(address,address,uint256)")) ERC721TransferHash = "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef" //crypto.Keccak256Hash([]byte("Transfer(address,address,uint256)")) ERC1155TransferSingleHash = "0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62" //crypto.Keccak256Hash([]byte("TransferSingle(address,address,address,uint256,uint256)")) ERC1155TransferBatchHash = "0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb" //crypto.Keccak256Hash([]byte("TransferBatch(address,address,address,uint256[],uint256[])")) Zero24 = "000000000000000000000000" HexPrefix = "0x" )
Variables ¶
View Source
var ( Request *log.Logger //request Persistence *log.Logger //persistence Node *log.Logger //Node Dispatch *log.Logger //dispatch Param *log.Logger //param Trace *log.Logger //0 Debug *log.Logger //2 Info *log.Logger //4 Warn *log.Logger //6 Error *log.Logger //8 )
View Source
var LocalTime *time.Location
Functions ¶
func GetETHAddressFromTopic ¶
func Hex2Uint64 ¶
func PanicError ¶
func PanicError(err error)
func PrintErrorIfExist ¶
func PrintErrorIfExist(err error)
func RemoveHexPrefix ¶
func Uint642Hex ¶
Types ¶
type ConfigMysql ¶
type ConfigRedisSingle ¶
Click to show internal directories.
Click to hide internal directories.