-
Notifications
You must be signed in to change notification settings - Fork 0
/
events.go
33 lines (28 loc) · 984 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 (
"github.com/ethereum/go-ethereum/common"
)
// erc721 events
const (
EventTypeTokenLock = "token_lock"
EventTypeTokenUnlock = "token_unlock"
EventTypeMint = "mint"
EventTypeConvertNFT = "convert_nft"
EventTypeConvertERC721 = "convert_erc721"
EventTypeBurn = "burn"
EventTypeRegisterNFT = "register_nft"
EventTypeRegisterERC721 = "register_erc721"
EventTypeToggleTokenConversion = "toggle_token_conversion" // #nosec
AttributeKeyNFTClass = "nft_class"
AttributeKeyNFTID = "nft_ids"
AttributeKeyERC721Token = "erc721_token" // #nosec
AttributeKeyERC721TokenID = "erc721_token_ids" // #nosec
AttributeKeyReceiver = "receiver"
ERC721EventTransfer = "Transfer"
)
// LogTransfer type for Transfer(address from, address to, string tokenID)
type LogTransfer struct {
From common.Address
To common.Address
TokenID string
}