Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ETHAddr is ethereum address ETHAddr = common.HexToAddress("0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee") // KNCAddr is KNC token address KNCAddr = common.HexToAddress("0xdd974D5C2e2928deA5F71b9825b8b646686BD200") // WETHAddr is wrapped ETH address WETHAddr = common.HexToAddress("0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2") // KCCAddr is Kyber Community Coupon token address KCCAddr = common.HexToAddress("0x09677D0175DEC51E2215426Cddd055a71bf4228d") )
Functions ¶
func IsBurnable ¶
IsBurnable indicate if the burn fee event was emitted when the given token was trade on KyberNetwork
Types ¶
type BlockTimeResolver ¶
type BlockTimeResolver struct {
// contains filtered or unexported fields
}
BlockTimeResolver is a helper to get transaction timestamp from block number. It has a cache for one block.
func NewBlockTimeResolver ¶
func NewBlockTimeResolver(sugar *zap.SugaredLogger, client *ethclient.Client) (*BlockTimeResolver, error)
NewBlockTimeResolver returns BlockTimeResolver instance given a ethereum client.
type BlockTimeResolverInterface ¶
BlockTimeResolverInterface define the functionality
type MockBlockTimeResolve ¶
type MockBlockTimeResolve struct {
// contains filtered or unexported fields
}
MockBlockTimeResolve is the mock implementation of blockTimeResolver for testing
func NewMockBlockTimeResolve ¶
func NewMockBlockTimeResolve(ts time.Time) *MockBlockTimeResolve
NewMockBlockTimeResolve creates new instance of MockBlockTimeResolve
Click to show internal directories.
Click to hide internal directories.