forked from ArableProtocol/acrechain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
evm.go
33 lines (28 loc) · 736 Bytes
/
evm.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package types
// ERC20Data represents the ERC20 token details used to map
// the token to a Cosmos Coin
type ERC20Data struct {
Name string
Symbol string
Decimals uint8
}
// ERC20StringResponse defines the string value from the call response
type ERC20StringResponse struct {
Value string
}
// ERC20Uint8Response defines the uint8 value from the call response
type ERC20Uint8Response struct {
Value uint8
}
// ERC20BoolResponse defines the bool value from the call response
type ERC20BoolResponse struct {
Value bool
}
// NewERC20Data creates a new ERC20Data instance
func NewERC20Data(name, symbol string, decimals uint8) ERC20Data {
return ERC20Data{
Name: name,
Symbol: symbol,
Decimals: decimals,
}
}