mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 11:26:44 +01:00
Import & adapt iden/go-iden3-core/eth/client
This commit is contained in:
@@ -4,18 +4,18 @@ import (
|
||||
"encoding/binary"
|
||||
"time"
|
||||
|
||||
eth "github.com/ethereum/go-ethereum/common"
|
||||
ethCommon "github.com/ethereum/go-ethereum/common"
|
||||
)
|
||||
|
||||
// Token is a struct that represents an Ethereum token that is supported in Hermez network
|
||||
type Token struct {
|
||||
TokenID TokenID
|
||||
EthAddr eth.Address
|
||||
EthAddr ethCommon.Address
|
||||
Name string
|
||||
Symbol string
|
||||
Decimals uint64
|
||||
EthTxHash eth.Hash // Ethereum TxHash in which this token was registered
|
||||
EthBlockNum uint64 // Ethereum block number in which this token was registered
|
||||
EthTxHash ethCommon.Hash // Ethereum TxHash in which this token was registered
|
||||
EthBlockNum uint64 // Ethereum block number in which this token was registered
|
||||
}
|
||||
|
||||
// TokenInfo provides the price of the token in USD
|
||||
|
||||
Reference in New Issue
Block a user