-
Notifications
You must be signed in to change notification settings - Fork 104
Expand file tree
/
Copy pathasset_params.go
More file actions
66 lines (51 loc) · 2.66 KB
/
asset_params.go
File metadata and controls
66 lines (51 loc) · 2.66 KB
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
package models
// AssetParams assetParams specifies the parameters for an asset.
// (apar) when part of an AssetConfig transaction.
// Definition:
// data/transactions/asset.go : AssetParams
type AssetParams struct {
// Clawback address of account used to clawback holdings of this asset. If empty,
// clawback is not permitted.
Clawback string `json:"clawback,omitempty"`
// Creator the address that created this asset. This is the address where the
// parameters for this asset can be found, and also the address where unwanted
// asset units can be sent in the worst case.
Creator string `json:"creator"`
// Decimals the number of digits to use after the decimal point when displaying
// this asset. If 0, the asset is not divisible. If 1, the base unit of the asset
// is in tenths. If 2, the base unit of the asset is in hundredths, and so on. This
// value must be between 0 and 19 (inclusive).
Decimals uint64 `json:"decimals"`
// DefaultFrozen whether holdings of this asset are frozen by default.
DefaultFrozen bool `json:"default-frozen,omitempty"`
// Freeze address of account used to freeze holdings of this asset. If empty,
// freezing is not permitted.
Freeze string `json:"freeze,omitempty"`
// Manager address of account used to manage the keys of this asset and to destroy
// it.
Manager string `json:"manager,omitempty"`
// MetadataHash a commitment to some unspecified asset metadata. The format of this
// metadata is up to the application.
MetadataHash []byte `json:"metadata-hash,omitempty"`
// Name name of this asset, as supplied by the creator. Included only when the
// asset name is composed of printable utf-8 characters.
Name string `json:"name,omitempty"`
// NameB64 base64 encoded name of this asset, as supplied by the creator.
NameB64 []byte `json:"name-b64,omitempty"`
// Reserve address of account holding reserve (non-minted) units of this asset.
Reserve string `json:"reserve,omitempty"`
// Total the total number of units of this asset.
Total uint64 `json:"total"`
// UnitName name of a unit of this asset, as supplied by the creator. Included only
// when the name of a unit of this asset is composed of printable utf-8 characters.
UnitName string `json:"unit-name,omitempty"`
// UnitNameB64 base64 encoded name of a unit of this asset, as supplied by the
// creator.
UnitNameB64 []byte `json:"unit-name-b64,omitempty"`
// Url uRL where more information about the asset can be retrieved. Included only
// when the URL is composed of printable utf-8 characters.
Url string `json:"url,omitempty"`
// UrlB64 base64 encoded URL where more information about the asset can be
// retrieved.
UrlB64 []byte `json:"url-b64,omitempty"`
}