You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/goal/asset.go
+70-1Lines changed: 70 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -37,8 +37,13 @@ var (
37
37
assetURLstring
38
38
assetNamestring
39
39
assetManagerstring
40
+
assetReservestring
40
41
assetClawbackstring
41
42
assetFreezerstring
43
+
assetNoManagerbool
44
+
assetNoReservebool
45
+
assetNoFreezerbool
46
+
assetNoClawbackbool
42
47
43
48
assetNewManagerstring
44
49
assetNewReservestring
@@ -64,6 +69,14 @@ func init() {
64
69
createAssetCmd.Flags().StringVar(&assetName, "name", "", "Name for the entire asset")
65
70
createAssetCmd.Flags().StringVar(&assetURL, "asseturl", "", "URL where user can access more information about the asset (max 32 bytes)")
66
71
createAssetCmd.Flags().StringVar(&assetMetadataHashBase64, "assetmetadatab64", "", "base-64 encoded 32-byte commitment to asset metadata")
72
+
createAssetCmd.Flags().StringVar(&assetManager, "manager", "", "Manager account that can issue transactions to re-configure or destroy the asset")
73
+
createAssetCmd.Flags().StringVar(&assetReserve, "reserve", "", "Reserve account that non-minted assets will reside in")
74
+
createAssetCmd.Flags().StringVar(&assetFreezer, "freezer", "", "Freezer account that can freeze or unfreeze the asset holdings for a specific account")
75
+
createAssetCmd.Flags().StringVar(&assetClawback, "clawback", "", "Clawback account that is allowed to transfer assets from and to any asset holder")
76
+
createAssetCmd.Flags().BoolVar(&assetNoManager, "no-manager", false, "Explicitly declare the lack of manager")
77
+
createAssetCmd.Flags().BoolVar(&assetNoReserve, "no-reserve", false, "Explicitly declare the lack of reserve")
78
+
createAssetCmd.Flags().BoolVar(&assetNoFreezer, "no-freezer", false, "Explicitly declare the lack of freezer")
79
+
createAssetCmd.Flags().BoolVar(&assetNoClawback, "no-clawback", false, "Explicitly declare the lack of clawback")
67
80
createAssetCmd.MarkFlagRequired("total")
68
81
createAssetCmd.MarkFlagRequired("creator")
69
82
@@ -185,10 +198,66 @@ var createAssetCmd = &cobra.Command{
185
198
Run: func(cmd*cobra.Command, _ []string) {
186
199
checkTxValidityPeriodCmdFlags(cmd)
187
200
201
+
ifassetManager!=""&&assetNoManager {
202
+
reportErrorf("The [--manager] flag and the [--no-manager] flag are mutually exclusive, do not provide both flags.")
203
+
}
204
+
205
+
ifassetReserve!=""&&assetNoReserve {
206
+
reportErrorf("The [--reserve] flag and the [--no-reserve] flag are mutually exclusive, do not provide both flags.")
207
+
}
208
+
209
+
ifassetFreezer!=""&&assetNoFreezer {
210
+
reportErrorf("The [--freezer] flag and the [--no-freezer] flag are mutually exclusive, do not provide both flags.")
211
+
}
212
+
213
+
ifassetClawback!=""&&assetNoClawback {
214
+
reportErrorf("The [--clawback] flag and the [--no-clawback] flag are mutually exclusive, do not provide both flags.")
0 commit comments