-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtype.go
35 lines (29 loc) · 870 Bytes
/
type.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
35
package trongrid
type Error struct {
Error string `json:"error"`
}
type Meta struct {
Links *MetaLinks `json:"links"`
Fingerprint string `json:"fingerprint"`
At int64 `json:"at"`
PageSize int32 `json:"page_size"`
}
type MetaLinks struct {
Next string `json:"next"`
}
type Token struct {
Address string `json:"address"`
Name string `json:"name"`
Symbol string `json:"symbol"`
Decimals int32 `json:"decimals"`
}
type Transaction struct {
Token *Token `json:"token_info"`
From string `json:"from"`
ID string `json:"transaction_id"`
To string `json:"to"`
Type TransactionType `json:"type"`
Value string `json:"value"`
BlockTimestamp int64 `json:"block_timestamp"`
}
type TransactionType string