/
events.go
34 lines (28 loc) · 923 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
34
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"
EventTypeToggleTokenRelay = "toggle_token_relay" // #nosec
EventTypeUpdateTokenPairERC20 = "update_token_pair_erc20"
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
}