-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathassets_typings.go
129 lines (116 loc) · 4.99 KB
/
assets_typings.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
package atomicmarket
// GetAssets response
type AssetsProps struct {
Success bool `json:"success"`
Data []AssetsDataProps `json:"data,omitempty"` // if error from api, this is omitted
QueryTime int64 `json:"query_time"`
Message string `json:"message,omitempty"` // error message will be here
}
// GetAssetID response
type AssetIDProps struct {
Success bool `json:"success"`
Data AssetsDataProps `json:"data,omitempty"` // if error from api, this is omitted
QueryTime int64 `json:"query_time"`
Message string `json:"message,omitempty"` // error message will be here
}
// GetAssetIDStats response
type AssetIDStatsProps struct {
Success bool `json:"success"`
Data AssetIDStatsDataProps `json:"data,omitempty"` // if error from api, this is omitted
QueryTime int64 `json:"query_time"`
Message string `json:"message,omitempty"` // error message will be here
}
// GetAssetIDLogs response
type AssetIDLogsProps struct {
Success bool `json:"success"`
Data []AssetLogDataProps `json:"data,omitempty"` // if error from api, this is omitted
QueryTime int64 `json:"query_time"`
Message string `json:"message,omitempty"` // error message will be here
}
// GetAssetIDSales response
type AssetIDSalesProps struct {
Success bool `json:"success"`
Data []AssetSaleDataProps `json:"data,omitempty"` // if error from api, this is omitted
QueryTime int64 `json:"query_time"`
Message string `json:"message,omitempty"` // error message will be here
}
type AssetSaleDataProps struct {
SaleID string `json:"sale_id"`
AuctionID string `json:"auction_id"`
BuyofferID string `json:"buyoffer_id"`
Price string `json:"price"`
TokenSymbol string `json:"token_symbol"`
TokenPrecision int64 `json:"token_precision"`
TokenContract string `json:"token_contract"`
Seller string `json:"seller"`
Buyer string `json:"buyer"`
BlockTime string `json:"block_time"`
}
type AssetLogDataProps struct {
LogID string `json:"log_id"`
Name string `json:"name"`
Data Data `json:"data"`
TXID string `json:"txid"`
CreatedAtBlock string `json:"created_at_block"`
CreatedAtTime string `json:"created_at_time"`
}
type AssetIDStatsDataProps struct {
TemplateMint int64 `json:"template_mint"`
}
type AssetsDataProps struct {
Contract string `json:"contract"`
AssetID string `json:"asset_id"`
Owner string `json:"owner"`
IsTransferable bool `json:"is_transferable"`
IsBurnable bool `json:"is_burnable"`
Collection Collection `json:"collection"`
Schema Schema `json:"schema"`
Template Template `json:"template"`
MutableData Data `json:"mutable_data"`
ImmutableData Data `json:"immutable_data"`
TemplateMint string `json:"template_mint"`
BackedTokens []interface{} `json:"backed_tokens"`
BurnedByAccount interface{} `json:"burned_by_account"`
BurnedAtBlock interface{} `json:"burned_at_block"`
BurnedAtTime interface{} `json:"burned_at_time"`
UpdatedAtBlock string `json:"updated_at_block"`
UpdatedAtTime string `json:"updated_at_time"`
TransferredAtBlock string `json:"transferred_at_block"`
TransferredAtTime string `json:"transferred_at_time"`
MintedAtBlock string `json:"minted_at_block"`
MintedAtTime string `json:"minted_at_time"`
Data Data `json:"data"`
Name string `json:"name"`
}
type Collection struct {
CollectionName string `json:"collection_name"`
Name string `json:"name"`
Img string `json:"img"`
Author string `json:"author"`
AllowNotify bool `json:"allow_notify"`
AuthorizedAccounts []string `json:"authorized_accounts"`
NotifyAccounts []interface{} `json:"notify_accounts"`
MarketFee float64 `json:"market_fee"`
CreatedAtBlock string `json:"created_at_block"`
CreatedAtTime string `json:"created_at_time"`
}
type Schema struct {
SchemaName string `json:"schema_name"`
Format []Format `json:"format"`
CreatedAtBlock string `json:"created_at_block"`
CreatedAtTime string `json:"created_at_time"`
}
type Format struct {
Name string `json:"name"`
Type string `json:"type"`
}
type Template struct {
TemplateID string `json:"template_id"`
MaxSupply string `json:"max_supply"`
IsTransferable bool `json:"is_transferable"`
IsBurnable bool `json:"is_burnable"`
IssuedSupply string `json:"issued_supply"`
ImmutableData Data `json:"immutable_data"`
CreatedAtTime string `json:"created_at_time"`
CreatedAtBlock string `json:"created_at_block"`
}