forked from fbsobreira/gotron-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
model.go
36 lines (33 loc) · 1.26 KB
/
model.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
36
package account
import (
"github.com/crypee-ecoinomy/gotron-sdk/pkg/proto/core"
)
// FrozenResource by account
type FrozenResource struct {
Type core.ResourceCode
Amount int64
DelegateTo string
Expire int64
}
// Account detailed view
type Account struct {
Address string `json:"address"`
Type string `json:"type"`
Name string `json:"name"`
ID string `json:"id"`
Balance int64 `json:"balance"`
Allowance int64 `json:"allowance"`
LastWithdraw int64 `json:"lastWithdraw"`
IsWitness bool `json:"isWitness"`
IsElected bool `json:"isElected"`
Assets map[string]int64 `json:"assetList"`
TronPower int64 `json:"tronPower"`
TronPowerUsed int64 `json:"tronPowerUsed"`
FrozenBalance int64 `json:"frozenBalance"`
FrozenResources []FrozenResource `json:"frozenList"`
Votes map[string]int64 `json:"voteList"`
BWTotal int64 `json:"bandwidthTotal"`
BWUsed int64 `json:"bandwidthUsed"`
EnergyTotal int64 `json:"energyTotal"`
EnergyUsed int64 `json:"energyUsed"`
}