forked from ArableProtocol/acrechain
/
events.go
33 lines (27 loc) · 878 Bytes
/
events.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
import (
"math/big"
"github.com/ethereum/go-ethereum/common"
)
// erc20 events
const (
EventTypeTokenLock = "token_lock"
EventTypeTokenUnlock = "token_unlock"
EventTypeMint = "mint"
EventTypeConvertCoin = "convert_coin"
EventTypeConvertERC20 = "convert_erc20"
EventTypeBurn = "burn"
EventTypeRegisterCoin = "register_coin"
EventTypeRegisterERC20 = "register_erc20"
EventTypeToggleTokenConversion = "toggle_token_conversion" // #nosec
AttributeKeyCosmosCoin = "cosmos_coin"
AttributeKeyERC20Token = "erc20_token" // #nosec
AttributeKeyReceiver = "receiver"
ERC20EventTransfer = "Transfer"
)
// Event type for Transfer(address from, address to, uint256 value)
type LogTransfer struct {
From common.Address
To common.Address
Tokens *big.Int
}