@twin.org/nft-cli 0.0.1-next.4 → 0.0.1-next.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +2 -2
- package/dist/esm/index.mjs +1 -1
- package/dist/locales/en.json +382 -369
- package/docs/changelog.md +1 -1
- package/package.json +2 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -357,11 +357,11 @@ class CLI extends cliCore.CLIBase {
|
|
|
357
357
|
return this.execute({
|
|
358
358
|
title: "TWIN NFT",
|
|
359
359
|
appName: "twin-nft",
|
|
360
|
-
version: "0.0.1-next.
|
|
360
|
+
version: "0.0.1-next.6",
|
|
361
361
|
icon: "🌍",
|
|
362
362
|
supportsEnvFiles: true,
|
|
363
363
|
overrideOutputWidth: options?.overrideOutputWidth
|
|
364
|
-
}, localesDirectory ?? path.join(path.dirname(node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)))), "../locales"), argv);
|
|
364
|
+
}, localesDirectory ?? path.join(path.dirname(node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)))), "../locales"), argv);
|
|
365
365
|
}
|
|
366
366
|
/**
|
|
367
367
|
* Get the commands for the CLI.
|
package/dist/esm/index.mjs
CHANGED
|
@@ -354,7 +354,7 @@ class CLI extends CLIBase {
|
|
|
354
354
|
return this.execute({
|
|
355
355
|
title: "TWIN NFT",
|
|
356
356
|
appName: "twin-nft",
|
|
357
|
-
version: "0.0.1-next.
|
|
357
|
+
version: "0.0.1-next.6",
|
|
358
358
|
icon: "🌍",
|
|
359
359
|
supportsEnvFiles: true,
|
|
360
360
|
overrideOutputWidth: options?.overrideOutputWidth
|
package/dist/locales/en.json
CHANGED
|
@@ -1,278 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"commands": {
|
|
3
|
-
"nft-mint": {
|
|
4
|
-
"summary": "Mint an NFT.",
|
|
5
|
-
"description": "Mint an NFT.",
|
|
6
|
-
"options": {
|
|
7
|
-
"seed": {
|
|
8
|
-
"param": "--seed '<'seed'>'",
|
|
9
|
-
"description": "The seed for the issuer address in hex or base64 used to fund the minting, or start with ! to read environment variable."
|
|
10
|
-
},
|
|
11
|
-
"issuer": {
|
|
12
|
-
"param": "--issuer '<'issuer'>'",
|
|
13
|
-
"description": "The bech32 address of the NFT issuer, or start with ! to read environment variable."
|
|
14
|
-
},
|
|
15
|
-
"tag": {
|
|
16
|
-
"param": "--tag '<'tag'>'",
|
|
17
|
-
"description": "The tag for the NFT."
|
|
18
|
-
},
|
|
19
|
-
"immutable-json": {
|
|
20
|
-
"param": "--immutable-json '<'immutable-json'>'",
|
|
21
|
-
"description": "A JSON file to read which includes the immutable data for the NFT."
|
|
22
|
-
},
|
|
23
|
-
"mutable-json": {
|
|
24
|
-
"param": "--mutable-json '<'mutable-json'>'",
|
|
25
|
-
"description": "A JSON file to read which includes the mutable data for the NFT."
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
"progress": {
|
|
29
|
-
"mintingNft": "Minting NFT"
|
|
30
|
-
},
|
|
31
|
-
"labels": {
|
|
32
|
-
"issuer": "Issuer",
|
|
33
|
-
"tag": "Tag",
|
|
34
|
-
"immutableJsonFilename": "Immutable JSON Filename",
|
|
35
|
-
"mutableJsonFilename": "Mutable JSON Filename",
|
|
36
|
-
"immutableJson": "Immutable JSON",
|
|
37
|
-
"mutableJson": "Mutable JSON",
|
|
38
|
-
"nftId": "NFT Id"
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
"nft-resolve": {
|
|
42
|
-
"summary": "Resolve an NFT.",
|
|
43
|
-
"description": "Resolve an NFT.",
|
|
44
|
-
"options": {
|
|
45
|
-
"id": {
|
|
46
|
-
"param": "--id '<'id'>'",
|
|
47
|
-
"description": "The id for the NFT in urn format."
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
"progress": {
|
|
51
|
-
"resolvingNft": "Resolving NFT"
|
|
52
|
-
},
|
|
53
|
-
"labels": {
|
|
54
|
-
"nft": "NFT",
|
|
55
|
-
"nftId": "NFT Id"
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
"nft-burn": {
|
|
59
|
-
"summary": "Burn an NFT.",
|
|
60
|
-
"description": "Burn an NFT.",
|
|
61
|
-
"options": {
|
|
62
|
-
"seed": {
|
|
63
|
-
"param": "--seed '<'seed'>'",
|
|
64
|
-
"description": "The seed for the issuer address in hex or base64 used to fund the burning, or start with ! to read environment variable."
|
|
65
|
-
},
|
|
66
|
-
"issuer": {
|
|
67
|
-
"param": "--issuer '<'issuer'>'",
|
|
68
|
-
"description": "The bech32 address of the NFT issuer, or start with ! to read environment variable."
|
|
69
|
-
},
|
|
70
|
-
"id": {
|
|
71
|
-
"param": "--id '<'id'>'",
|
|
72
|
-
"description": "The id for the NFT in urn format."
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
"progress": {
|
|
76
|
-
"burningNft": "Burning NFT"
|
|
77
|
-
},
|
|
78
|
-
"labels": {
|
|
79
|
-
"issuer": "Issuer",
|
|
80
|
-
"nftId": "NFT Id"
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
"nft-transfer": {
|
|
84
|
-
"summary": "Transfer an NFT.",
|
|
85
|
-
"description": "Transfer an NFT.",
|
|
86
|
-
"options": {
|
|
87
|
-
"seed": {
|
|
88
|
-
"param": "--seed '<'seed'>'",
|
|
89
|
-
"description": "The seed for the issuer address in hex or base64 used to fund the transfer, or start with ! to read environment variable."
|
|
90
|
-
},
|
|
91
|
-
"id": {
|
|
92
|
-
"param": "--id '<'id'>'",
|
|
93
|
-
"description": "The id for the NFT in urn format."
|
|
94
|
-
},
|
|
95
|
-
"recipient": {
|
|
96
|
-
"param": "--recipient '<'recipient'>'",
|
|
97
|
-
"description": "The bech32 address of the NFT recipient, or start with ! to read environment variable."
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
"progress": {
|
|
101
|
-
"transferringNft": "Transferring NFT"
|
|
102
|
-
},
|
|
103
|
-
"labels": {
|
|
104
|
-
"recipient": "Recipient",
|
|
105
|
-
"nftId": "NFT Id"
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
"common": {
|
|
109
|
-
"options": {
|
|
110
|
-
"node": {
|
|
111
|
-
"param": "--node '<'url'>'",
|
|
112
|
-
"description": "The url for the node endpoint, or an environment variable name containing the url."
|
|
113
|
-
},
|
|
114
|
-
"explorer": {
|
|
115
|
-
"param": "--explorer '<'url'>'",
|
|
116
|
-
"description": "The url for the explorer endpoint, or an environment variable name containing the url."
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
"labels": {
|
|
120
|
-
"did": "DID",
|
|
121
|
-
"node": "Node",
|
|
122
|
-
"explorer": "Explorer",
|
|
123
|
-
"explore": "Explore",
|
|
124
|
-
"address": "Address",
|
|
125
|
-
"balance": "Balance"
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
"mnemonic": {
|
|
129
|
-
"summary": "Create a mnemonic.",
|
|
130
|
-
"description": "Create a mnemonic, will also generate the equivalent seed in hex and base64 format.",
|
|
131
|
-
"options": {
|
|
132
|
-
"strength": {
|
|
133
|
-
"param": "--strength '<'number'>'",
|
|
134
|
-
"description": "The number of words in the mnemonic, defaults to 256 which produces 24 words."
|
|
135
|
-
},
|
|
136
|
-
"seed-format": {
|
|
137
|
-
"param": "--seed-format '<'format'>'",
|
|
138
|
-
"description": "The format to output the seed."
|
|
139
|
-
},
|
|
140
|
-
"no-console": {
|
|
141
|
-
"param": "--no-console",
|
|
142
|
-
"description": "Hides the mnemonic and seed in the console."
|
|
143
|
-
},
|
|
144
|
-
"json": {
|
|
145
|
-
"param": "--json '<'filename'>'",
|
|
146
|
-
"description": "Creates a JSON file containing the mnemonic and seed."
|
|
147
|
-
},
|
|
148
|
-
"env": {
|
|
149
|
-
"param": "--env '<'filename'>'",
|
|
150
|
-
"description": "Creates an env file containing the mnemonic and seed."
|
|
151
|
-
},
|
|
152
|
-
"env-prefix": {
|
|
153
|
-
"param": "--env-prefix '<'prefix'>'",
|
|
154
|
-
"description": "Prefixes the env variables with the value."
|
|
155
|
-
}
|
|
156
|
-
},
|
|
157
|
-
"progress": {
|
|
158
|
-
"writingJsonFile": "Writing JSON file",
|
|
159
|
-
"writingEnvFile": "Writing env file"
|
|
160
|
-
},
|
|
161
|
-
"labels": {
|
|
162
|
-
"mnemonic": "Mnemonic",
|
|
163
|
-
"seed": "Seed",
|
|
164
|
-
"envPrefix": "Env Prefix"
|
|
165
|
-
}
|
|
166
|
-
},
|
|
167
|
-
"address": {
|
|
168
|
-
"summary": "Create bech32 addresses and keys from the seed.",
|
|
169
|
-
"description": "Create a number of bech32 addresses and their associated key pairs from the seed.",
|
|
170
|
-
"options": {
|
|
171
|
-
"seed": {
|
|
172
|
-
"param": "--seed '<'seed'>'",
|
|
173
|
-
"description": "The seed to use for generating the addresses, this can be either hex, base64 or an environment variable name. For an environment variable start the value with a !"
|
|
174
|
-
},
|
|
175
|
-
"start": {
|
|
176
|
-
"param": "--start '<'number'>'",
|
|
177
|
-
"description": "The index of the first address to create."
|
|
178
|
-
},
|
|
179
|
-
"count": {
|
|
180
|
-
"param": "--count '<'number'>'",
|
|
181
|
-
"description": "The number of addresses to create, max 100."
|
|
182
|
-
},
|
|
183
|
-
"account": {
|
|
184
|
-
"param": "--account '<'number'>'",
|
|
185
|
-
"description": "The account used to generate the bech32 addresses."
|
|
186
|
-
},
|
|
187
|
-
"hrp": {
|
|
188
|
-
"param": "--hrp '<'hrp'>'",
|
|
189
|
-
"description": "The human readable part of the bech32 addresses."
|
|
190
|
-
},
|
|
191
|
-
"coin": {
|
|
192
|
-
"param": "--coin '<'coin'>'",
|
|
193
|
-
"description": "The coin type used to generate the bech32 addresses."
|
|
194
|
-
},
|
|
195
|
-
"key-type": {
|
|
196
|
-
"param": "--key-type '<'type'>'",
|
|
197
|
-
"description": "The type of key to generate."
|
|
198
|
-
},
|
|
199
|
-
"key-format": {
|
|
200
|
-
"param": "--key-format '<'format'>'",
|
|
201
|
-
"description": "The format to output the keys."
|
|
202
|
-
}
|
|
203
|
-
},
|
|
204
|
-
"progress": {
|
|
205
|
-
"generatingAddresses": "Generating addresses"
|
|
206
|
-
},
|
|
207
|
-
"labels": {
|
|
208
|
-
"seed": "Seed",
|
|
209
|
-
"start": "Start",
|
|
210
|
-
"count": "Count",
|
|
211
|
-
"account": "Account",
|
|
212
|
-
"hrp": "HRP",
|
|
213
|
-
"coin": "Coin",
|
|
214
|
-
"key-type": "Key Type",
|
|
215
|
-
"key-format": "Key Format",
|
|
216
|
-
"index": "Index",
|
|
217
|
-
"address": "Address",
|
|
218
|
-
"public-key": "Public Key",
|
|
219
|
-
"private-key": "Private Key"
|
|
220
|
-
}
|
|
221
|
-
},
|
|
222
|
-
"faucet": {
|
|
223
|
-
"summary": "Request funds from the faucet.",
|
|
224
|
-
"description": "Request funds from the faucet for the supplied address.",
|
|
225
|
-
"options": {
|
|
226
|
-
"address": {
|
|
227
|
-
"param": "--address '<'address'>'",
|
|
228
|
-
"description": "The address to fill from the faucet either in bech32 format, or start with ! to read environment variable."
|
|
229
|
-
},
|
|
230
|
-
"faucet": {
|
|
231
|
-
"param": "--faucet '<'url'>'",
|
|
232
|
-
"description": "The url for the faucet endpoint, or an environment variable name containing the url."
|
|
233
|
-
}
|
|
234
|
-
},
|
|
235
|
-
"progress": {
|
|
236
|
-
"requestingFunds": "Requesting Funds",
|
|
237
|
-
"requestingBalance": "Requesting Balance"
|
|
238
|
-
},
|
|
239
|
-
"labels": {
|
|
240
|
-
"faucet": "Faucet",
|
|
241
|
-
"fundsAdded": "Funds Added"
|
|
242
|
-
},
|
|
243
|
-
"messages": {
|
|
244
|
-
"noFundsAdded": "No funds were added to the address."
|
|
245
|
-
}
|
|
246
|
-
},
|
|
247
|
-
"transfer": {
|
|
248
|
-
"summary": "Transfer funds from one address to another.",
|
|
249
|
-
"description": "Transfer funds from one address to another.",
|
|
250
|
-
"options": {
|
|
251
|
-
"address": {
|
|
252
|
-
"param": "--address '<'address'>'",
|
|
253
|
-
"description": "The address to send the funds from either in bech32 format, or start with ! to read environment variable."
|
|
254
|
-
},
|
|
255
|
-
"dest-address": {
|
|
256
|
-
"param": "--dest-address '<'address'>'",
|
|
257
|
-
"description": "The address to send the funds to either in bech32 format, or start with ! to read environment variable."
|
|
258
|
-
},
|
|
259
|
-
"amount": {
|
|
260
|
-
"param": "--amount '<'amount'>'",
|
|
261
|
-
"description": "The amount of funds to send."
|
|
262
|
-
},
|
|
263
|
-
"seed": {
|
|
264
|
-
"param": "--seed '<'seed'>'",
|
|
265
|
-
"description": "The seed for the source address in hex or base64 used to sign the transfer, or start with ! to read environment variable."
|
|
266
|
-
}
|
|
267
|
-
},
|
|
268
|
-
"progress": {
|
|
269
|
-
"transferringFunds": "Transferring"
|
|
270
|
-
},
|
|
271
|
-
"labels": {
|
|
272
|
-
"destAddress": "Destination Address"
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
},
|
|
276
2
|
"error": {
|
|
277
3
|
"validation": {
|
|
278
4
|
"beEmpty": "{fieldName} must be empty",
|
|
@@ -282,6 +8,10 @@
|
|
|
282
8
|
"beTextMinMax": "{fieldName} must be longer than {minLength} and shorter than {maxLength} characters",
|
|
283
9
|
"beTextMin": "{fieldName} must be longer than {minLength} characters",
|
|
284
10
|
"beTextMax": "{fieldName} must be shorter than {maxLength} characters",
|
|
11
|
+
"beTextBase58": "{fieldName} must be text formatted using Base58 characters",
|
|
12
|
+
"beTextBase64": "{fieldName} must be text formatted using Base64 characters",
|
|
13
|
+
"beTextHex": "{fieldName} must be text formatted using Hex characters",
|
|
14
|
+
"beTextRegExp": "{fieldName} must be text formatted using the matching pattern {format}",
|
|
285
15
|
"beNumber": "{fieldName} must be a number",
|
|
286
16
|
"beNumberMinMax": "{fieldName} must be >= {minValue} and <= {maxValue}",
|
|
287
17
|
"beNumberMin": "{fieldName} must be >= {minValue}",
|
|
@@ -318,6 +48,7 @@
|
|
|
318
48
|
"stringEmpty": "Property \"{property}\" must have a value, it is empty",
|
|
319
49
|
"stringBase64": "Property \"{property}\" must be a base64 encoded string, it is \"{value}\"",
|
|
320
50
|
"stringBase64Url": "Property \"{property}\" must be a base64 url encoded string, it is \"{value}\"",
|
|
51
|
+
"stringBase58": "Property \"{property}\" must be a base58 encoded string, it is \"{value}\"",
|
|
321
52
|
"stringHex": "Property \"{property}\" must be a hex string, it is \"{value}\"",
|
|
322
53
|
"stringHexLength": "Property \"{property}\" must be a hex string of length \"{options}\", it is \"{value}\"",
|
|
323
54
|
"number": "Property \"{property}\" must be a number, it is \"{value}\"",
|
|
@@ -357,6 +88,15 @@
|
|
|
357
88
|
"bitString": {
|
|
358
89
|
"outOfRange": "The index should be >= 0 and less than the length of the bit string"
|
|
359
90
|
},
|
|
91
|
+
"base32": {
|
|
92
|
+
"invalidCharacter": "Data contains a character \"{invalidCharacter}\" which is not in the charset"
|
|
93
|
+
},
|
|
94
|
+
"base64": {
|
|
95
|
+
"length4Multiple": "Invalid length should be a multiple of 4, it is \"{value}\""
|
|
96
|
+
},
|
|
97
|
+
"base58": {
|
|
98
|
+
"invalidCharacter": "Data contains a character \"{invalidCharacter}\" which is not in the charset"
|
|
99
|
+
},
|
|
360
100
|
"bip39": {
|
|
361
101
|
"missingMnemonicWord": "The mnemonic contains a word not in the wordlist, \"{value}\"",
|
|
362
102
|
"checksumMismatch": "The checksum does not match \"{newChecksum}\" != \"{checksumBits}\""
|
|
@@ -382,18 +122,15 @@
|
|
|
382
122
|
"sha256": {
|
|
383
123
|
"bitSize": "Only 224 or 256 bits are supported, it is \"{bitSize}\""
|
|
384
124
|
},
|
|
125
|
+
"sha3": {
|
|
126
|
+
"bitSize": "Only 224, 256, 384 or 512 bits are supported, it is \"{bitSize}\""
|
|
127
|
+
},
|
|
385
128
|
"hmacSha256": {
|
|
386
129
|
"bitSize": "Only 224 or 256 bits are supported, it is \"{bitSize}\""
|
|
387
130
|
},
|
|
388
131
|
"hmacSha512": {
|
|
389
132
|
"bitSize": "Only 224, 256, 384 or 512 bits are supported, it is \"{bitSize}\""
|
|
390
133
|
},
|
|
391
|
-
"base32": {
|
|
392
|
-
"invalidCharacter": "Data contains a character \"{invalidCharacter}\" which is not in the charset"
|
|
393
|
-
},
|
|
394
|
-
"base64": {
|
|
395
|
-
"length4Multiple": "Invalid length should be a multiple of 4, it is \"{value}\""
|
|
396
|
-
},
|
|
397
134
|
"bech32": {
|
|
398
135
|
"decodeFailed": "The address contains decoding failed for address \"{bech32}\"",
|
|
399
136
|
"invalidChecksum": "The address contains an invalid checksum in address, \"{bech32}\"",
|
|
@@ -434,105 +171,381 @@
|
|
|
434
171
|
"seedInvalidFormat": "The seed does not appear to be hex, base64 or an environment variable. \"{seed}\""
|
|
435
172
|
}
|
|
436
173
|
},
|
|
437
|
-
"entitySchemaHelper": {
|
|
438
|
-
"noIsPrimary": "Property \"entitySchema.properties\" must contain a value with isPrimary set",
|
|
439
|
-
"multipleIsPrimary": "Property \"entitySchema.properties\" contains more than one property with isPrimary set"
|
|
440
|
-
},
|
|
441
|
-
"iotaNftConnector": {
|
|
442
|
-
"inclusionFailed": "The transaction generated for the NFT was not included in a reasonable amount of time",
|
|
443
|
-
"mintingFailed": "Minting the NFT failed",
|
|
444
|
-
"resolvingFailed": "Resolving the NFT failed",
|
|
445
|
-
"burningFailed": "Burning the NFT failed",
|
|
446
|
-
"transferFailed": "Transferring the NFT failed",
|
|
447
|
-
"updateFailed": "Updating the NFT failed",
|
|
448
|
-
"namespaceMismatch": "The namespace in the urn \"{id}\" does not match the namespace of the IOTA NFT connector \"{namespace}\"",
|
|
449
|
-
"insufficientFunds": "There were insufficient funds to complete the operation",
|
|
450
|
-
"walletConnectorMissing": "The wallet connector must be available to perform this operation"
|
|
451
|
-
},
|
|
452
|
-
"iota": {
|
|
453
|
-
"inclusionFailed": "The transaction generated was not included in a reasonable amount of time",
|
|
454
|
-
"insufficientFunds": "There were insufficient funds to complete the operation"
|
|
455
|
-
},
|
|
456
|
-
"fetchHelper": {
|
|
457
|
-
"decodingJSON": "Decoding JSON failed for route \"{route}\"",
|
|
458
|
-
"failureStatusText": "The request to the API failed: \"{statusText}\"",
|
|
459
|
-
"connectivity": "The request failed, the API could be offline, or there are other connectivity issues",
|
|
460
|
-
"timeout": "The request timed out",
|
|
461
|
-
"general": "A general failure occurred during the request"
|
|
462
|
-
},
|
|
463
|
-
"jwt": {
|
|
464
|
-
"noKeyOrSigner": "No key or signer was provided for JWT creation",
|
|
465
|
-
"noKeyOrVerifier": "No key or verifier was provided for JWT creation"
|
|
174
|
+
"entitySchemaHelper": {
|
|
175
|
+
"noIsPrimary": "Property \"entitySchema.properties\" must contain a value with isPrimary set",
|
|
176
|
+
"multipleIsPrimary": "Property \"entitySchema.properties\" contains more than one property with isPrimary set"
|
|
177
|
+
},
|
|
178
|
+
"iotaNftConnector": {
|
|
179
|
+
"inclusionFailed": "The transaction generated for the NFT was not included in a reasonable amount of time",
|
|
180
|
+
"mintingFailed": "Minting the NFT failed",
|
|
181
|
+
"resolvingFailed": "Resolving the NFT failed",
|
|
182
|
+
"burningFailed": "Burning the NFT failed",
|
|
183
|
+
"transferFailed": "Transferring the NFT failed",
|
|
184
|
+
"updateFailed": "Updating the NFT failed",
|
|
185
|
+
"namespaceMismatch": "The namespace in the urn \"{id}\" does not match the namespace of the IOTA NFT connector \"{namespace}\"",
|
|
186
|
+
"insufficientFunds": "There were insufficient funds to complete the operation",
|
|
187
|
+
"walletConnectorMissing": "The wallet connector must be available to perform this operation"
|
|
188
|
+
},
|
|
189
|
+
"iota": {
|
|
190
|
+
"inclusionFailed": "The transaction generated was not included in a reasonable amount of time",
|
|
191
|
+
"insufficientFunds": "There were insufficient funds to complete the operation"
|
|
192
|
+
},
|
|
193
|
+
"fetchHelper": {
|
|
194
|
+
"decodingJSON": "Decoding JSON failed for route \"{route}\"",
|
|
195
|
+
"failureStatusText": "The request to the API failed: \"{statusText}\"",
|
|
196
|
+
"connectivity": "The request failed, the API could be offline, or there are other connectivity issues",
|
|
197
|
+
"timeout": "The request timed out",
|
|
198
|
+
"general": "A general failure occurred during the request"
|
|
199
|
+
},
|
|
200
|
+
"jwt": {
|
|
201
|
+
"noKeyOrSigner": "No key or signer was provided for JWT creation",
|
|
202
|
+
"noKeyOrVerifier": "No key or verifier was provided for JWT creation"
|
|
203
|
+
},
|
|
204
|
+
"entityStorageVaultConnector": {
|
|
205
|
+
"keyAlreadyExists": "The key \"{existingId}\" already exists in the vault",
|
|
206
|
+
"keyNotFound": "The key \"{notFoundId}\" was not found in the vault",
|
|
207
|
+
"secretNotFound": "The secret \"{notFoundId}\" was not found in the vault",
|
|
208
|
+
"unsupportedKeyType": "The key type \"{keyType}\" is not supported",
|
|
209
|
+
"keyTypeMismatch": "The key type \"{keyType}\" does not match the requested encryption method \"{encryptionType}\""
|
|
210
|
+
},
|
|
211
|
+
"iotaWalletConnector": {
|
|
212
|
+
"transferFailed": "The wallet transfer failed.",
|
|
213
|
+
"inclusionFailed": "The transaction generated was not included in a reasonable amount of time",
|
|
214
|
+
"insufficientFunds": "There were insufficient funds to complete the operation"
|
|
215
|
+
},
|
|
216
|
+
"iotaFaucetConnector": {
|
|
217
|
+
"fundingFailed": "Fund the address from faucet failed",
|
|
218
|
+
"insufficientFunds": "There were insufficient funds to complete the operation"
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"errorNames": {
|
|
222
|
+
"error": "Error",
|
|
223
|
+
"generalError": "General",
|
|
224
|
+
"guardError": "Guard",
|
|
225
|
+
"conflictError": "Conflict",
|
|
226
|
+
"notFoundError": "Not Found",
|
|
227
|
+
"notSupportedError": "Not Supported",
|
|
228
|
+
"alreadyExistsError": "Already Exists",
|
|
229
|
+
"notImplementedError": "Not Implemented",
|
|
230
|
+
"validationError": "Validation",
|
|
231
|
+
"unprocessableError": "Unprocessable"
|
|
232
|
+
},
|
|
233
|
+
"validation": {
|
|
234
|
+
"defaultFieldName": "The field"
|
|
235
|
+
},
|
|
236
|
+
"cli": {
|
|
237
|
+
"progress": {
|
|
238
|
+
"done": "Done.",
|
|
239
|
+
"error": "Error",
|
|
240
|
+
"loadingEnvFiles": "Loading env files",
|
|
241
|
+
"pleaseWait": "Please wait...",
|
|
242
|
+
"writingJsonFile": "Writing JSON file",
|
|
243
|
+
"writingEnvFile": "Writing env file",
|
|
244
|
+
"readingJsonFile": "Reading JSON file",
|
|
245
|
+
"readingEnvFile": "Reading env file"
|
|
246
|
+
},
|
|
247
|
+
"options": {
|
|
248
|
+
"lang": {
|
|
249
|
+
"param": "--lang '<'lang'>'",
|
|
250
|
+
"description": "The language to display the output in."
|
|
251
|
+
},
|
|
252
|
+
"load-env": {
|
|
253
|
+
"param": "--load-env [env...]",
|
|
254
|
+
"description": "Load the env files to initialise any environment variables."
|
|
255
|
+
},
|
|
256
|
+
"no-console": {
|
|
257
|
+
"param": "--no-console",
|
|
258
|
+
"description": "Hides the output in the console."
|
|
259
|
+
},
|
|
260
|
+
"json": {
|
|
261
|
+
"param": "--json '<'filename'>'",
|
|
262
|
+
"description": "Creates a JSON file containing the output."
|
|
263
|
+
},
|
|
264
|
+
"env": {
|
|
265
|
+
"param": "--env '<'filename'>'",
|
|
266
|
+
"description": "Creates an env file containing the output."
|
|
267
|
+
},
|
|
268
|
+
"merge-json": {
|
|
269
|
+
"param": "--merge-json",
|
|
270
|
+
"description": "If the JSON file already exists merge the data instead of overwriting."
|
|
271
|
+
},
|
|
272
|
+
"merge-env": {
|
|
273
|
+
"param": "--merge-env",
|
|
274
|
+
"description": "If the env file already exists merge the data instead of overwriting."
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
"commands": {
|
|
279
|
+
"mnemonic": {
|
|
280
|
+
"summary": "Create a mnemonic.",
|
|
281
|
+
"description": "Create a mnemonic, will also generate the equivalent seed in hex and base64 format.",
|
|
282
|
+
"options": {
|
|
283
|
+
"strength": {
|
|
284
|
+
"param": "--strength '<'number'>'",
|
|
285
|
+
"description": "The number of words in the mnemonic, defaults to 256 which produces 24 words."
|
|
286
|
+
},
|
|
287
|
+
"seed-format": {
|
|
288
|
+
"param": "--seed-format '<'format'>'",
|
|
289
|
+
"description": "The format to output the seed."
|
|
290
|
+
},
|
|
291
|
+
"no-console": {
|
|
292
|
+
"param": "--no-console",
|
|
293
|
+
"description": "Hides the mnemonic and seed in the console."
|
|
294
|
+
},
|
|
295
|
+
"json": {
|
|
296
|
+
"param": "--json '<'filename'>'",
|
|
297
|
+
"description": "Creates a JSON file containing the mnemonic and seed."
|
|
298
|
+
},
|
|
299
|
+
"env": {
|
|
300
|
+
"param": "--env '<'filename'>'",
|
|
301
|
+
"description": "Creates an env file containing the mnemonic and seed."
|
|
302
|
+
},
|
|
303
|
+
"env-prefix": {
|
|
304
|
+
"param": "--env-prefix '<'prefix'>'",
|
|
305
|
+
"description": "Prefixes the env variables with the value."
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
"progress": {
|
|
309
|
+
"writingJsonFile": "Writing JSON file",
|
|
310
|
+
"writingEnvFile": "Writing env file"
|
|
311
|
+
},
|
|
312
|
+
"labels": {
|
|
313
|
+
"mnemonic": "Mnemonic",
|
|
314
|
+
"seed": "Seed",
|
|
315
|
+
"envPrefix": "Env Prefix"
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
"address": {
|
|
319
|
+
"summary": "Create bech32 addresses and keys from the seed.",
|
|
320
|
+
"description": "Create a number of bech32 addresses and their associated key pairs from the seed.",
|
|
321
|
+
"options": {
|
|
322
|
+
"seed": {
|
|
323
|
+
"param": "--seed '<'seed'>'",
|
|
324
|
+
"description": "The seed to use for generating the addresses, this can be either hex, base64 or an environment variable name. For an environment variable start the value with a !"
|
|
325
|
+
},
|
|
326
|
+
"start": {
|
|
327
|
+
"param": "--start '<'number'>'",
|
|
328
|
+
"description": "The index of the first address to create."
|
|
329
|
+
},
|
|
330
|
+
"count": {
|
|
331
|
+
"param": "--count '<'number'>'",
|
|
332
|
+
"description": "The number of addresses to create, max 100."
|
|
333
|
+
},
|
|
334
|
+
"account": {
|
|
335
|
+
"param": "--account '<'number'>'",
|
|
336
|
+
"description": "The account used to generate the bech32 addresses."
|
|
337
|
+
},
|
|
338
|
+
"hrp": {
|
|
339
|
+
"param": "--hrp '<'hrp'>'",
|
|
340
|
+
"description": "The human readable part of the bech32 addresses."
|
|
341
|
+
},
|
|
342
|
+
"coin": {
|
|
343
|
+
"param": "--coin '<'coin'>'",
|
|
344
|
+
"description": "The coin type used to generate the bech32 addresses."
|
|
345
|
+
},
|
|
346
|
+
"key-type": {
|
|
347
|
+
"param": "--key-type '<'type'>'",
|
|
348
|
+
"description": "The type of key to generate."
|
|
349
|
+
},
|
|
350
|
+
"key-format": {
|
|
351
|
+
"param": "--key-format '<'format'>'",
|
|
352
|
+
"description": "The format to output the keys."
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
"progress": {
|
|
356
|
+
"generatingAddresses": "Generating addresses"
|
|
357
|
+
},
|
|
358
|
+
"labels": {
|
|
359
|
+
"seed": "Seed",
|
|
360
|
+
"start": "Start",
|
|
361
|
+
"count": "Count",
|
|
362
|
+
"account": "Account",
|
|
363
|
+
"hrp": "HRP",
|
|
364
|
+
"coin": "Coin",
|
|
365
|
+
"key-type": "Key Type",
|
|
366
|
+
"key-format": "Key Format",
|
|
367
|
+
"index": "Index",
|
|
368
|
+
"address": "Address",
|
|
369
|
+
"public-key": "Public Key",
|
|
370
|
+
"private-key": "Private Key"
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
"faucet": {
|
|
374
|
+
"summary": "Request funds from the faucet.",
|
|
375
|
+
"description": "Request funds from the faucet for the supplied address.",
|
|
376
|
+
"options": {
|
|
377
|
+
"address": {
|
|
378
|
+
"param": "--address '<'address'>'",
|
|
379
|
+
"description": "The address to fill from the faucet either in bech32 format, or start with ! to read environment variable."
|
|
380
|
+
},
|
|
381
|
+
"faucet": {
|
|
382
|
+
"param": "--faucet '<'url'>'",
|
|
383
|
+
"description": "The url for the faucet endpoint, or an environment variable name containing the url."
|
|
384
|
+
}
|
|
385
|
+
},
|
|
386
|
+
"progress": {
|
|
387
|
+
"requestingFunds": "Requesting Funds",
|
|
388
|
+
"requestingBalance": "Requesting Balance"
|
|
389
|
+
},
|
|
390
|
+
"labels": {
|
|
391
|
+
"faucet": "Faucet",
|
|
392
|
+
"fundsAdded": "Funds Added"
|
|
393
|
+
},
|
|
394
|
+
"messages": {
|
|
395
|
+
"noFundsAdded": "No funds were added to the address."
|
|
396
|
+
}
|
|
466
397
|
},
|
|
467
|
-
"
|
|
468
|
-
"
|
|
469
|
-
"
|
|
470
|
-
"
|
|
398
|
+
"transfer": {
|
|
399
|
+
"summary": "Transfer funds from one address to another.",
|
|
400
|
+
"description": "Transfer funds from one address to another.",
|
|
401
|
+
"options": {
|
|
402
|
+
"address": {
|
|
403
|
+
"param": "--address '<'address'>'",
|
|
404
|
+
"description": "The address to send the funds from either in bech32 format, or start with ! to read environment variable."
|
|
405
|
+
},
|
|
406
|
+
"dest-address": {
|
|
407
|
+
"param": "--dest-address '<'address'>'",
|
|
408
|
+
"description": "The address to send the funds to either in bech32 format, or start with ! to read environment variable."
|
|
409
|
+
},
|
|
410
|
+
"amount": {
|
|
411
|
+
"param": "--amount '<'amount'>'",
|
|
412
|
+
"description": "The amount of funds to send."
|
|
413
|
+
},
|
|
414
|
+
"seed": {
|
|
415
|
+
"param": "--seed '<'seed'>'",
|
|
416
|
+
"description": "The seed for the source address in hex or base64 used to sign the transfer, or start with ! to read environment variable."
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
"progress": {
|
|
420
|
+
"transferringFunds": "Transferring"
|
|
421
|
+
},
|
|
422
|
+
"labels": {
|
|
423
|
+
"destAddress": "Destination Address"
|
|
424
|
+
}
|
|
471
425
|
},
|
|
472
|
-
"
|
|
473
|
-
"
|
|
474
|
-
|
|
475
|
-
|
|
426
|
+
"common": {
|
|
427
|
+
"options": {
|
|
428
|
+
"node": {
|
|
429
|
+
"param": "--node '<'url'>'",
|
|
430
|
+
"description": "The url for the node endpoint, or an environment variable name containing the url."
|
|
431
|
+
},
|
|
432
|
+
"explorer": {
|
|
433
|
+
"param": "--explorer '<'url'>'",
|
|
434
|
+
"description": "The url for the explorer endpoint, or an environment variable name containing the url."
|
|
435
|
+
}
|
|
436
|
+
},
|
|
437
|
+
"labels": {
|
|
438
|
+
"address": "Address",
|
|
439
|
+
"balance": "Balance",
|
|
440
|
+
"node": "Node",
|
|
441
|
+
"explorer": "Explorer",
|
|
442
|
+
"explore": "Explore",
|
|
443
|
+
"did": "DID"
|
|
444
|
+
}
|
|
476
445
|
},
|
|
477
|
-
"
|
|
478
|
-
"
|
|
479
|
-
"
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
"
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
"
|
|
506
|
-
|
|
446
|
+
"nft-mint": {
|
|
447
|
+
"summary": "Mint an NFT.",
|
|
448
|
+
"description": "Mint an NFT.",
|
|
449
|
+
"options": {
|
|
450
|
+
"seed": {
|
|
451
|
+
"param": "--seed '<'seed'>'",
|
|
452
|
+
"description": "The seed for the issuer address in hex or base64 used to fund the minting, or start with ! to read environment variable."
|
|
453
|
+
},
|
|
454
|
+
"issuer": {
|
|
455
|
+
"param": "--issuer '<'issuer'>'",
|
|
456
|
+
"description": "The bech32 address of the NFT issuer, or start with ! to read environment variable."
|
|
457
|
+
},
|
|
458
|
+
"tag": {
|
|
459
|
+
"param": "--tag '<'tag'>'",
|
|
460
|
+
"description": "The tag for the NFT."
|
|
461
|
+
},
|
|
462
|
+
"immutable-json": {
|
|
463
|
+
"param": "--immutable-json '<'immutable-json'>'",
|
|
464
|
+
"description": "A JSON file to read which includes the immutable data for the NFT."
|
|
465
|
+
},
|
|
466
|
+
"mutable-json": {
|
|
467
|
+
"param": "--mutable-json '<'mutable-json'>'",
|
|
468
|
+
"description": "A JSON file to read which includes the mutable data for the NFT."
|
|
469
|
+
}
|
|
470
|
+
},
|
|
471
|
+
"progress": {
|
|
472
|
+
"mintingNft": "Minting NFT"
|
|
473
|
+
},
|
|
474
|
+
"labels": {
|
|
475
|
+
"issuer": "Issuer",
|
|
476
|
+
"tag": "Tag",
|
|
477
|
+
"immutableJsonFilename": "Immutable JSON Filename",
|
|
478
|
+
"mutableJsonFilename": "Mutable JSON Filename",
|
|
479
|
+
"immutableJson": "Immutable JSON",
|
|
480
|
+
"mutableJson": "Mutable JSON",
|
|
481
|
+
"nftId": "NFT Id"
|
|
482
|
+
}
|
|
507
483
|
},
|
|
508
|
-
"
|
|
509
|
-
"
|
|
510
|
-
|
|
511
|
-
|
|
484
|
+
"nft-resolve": {
|
|
485
|
+
"summary": "Resolve an NFT.",
|
|
486
|
+
"description": "Resolve an NFT.",
|
|
487
|
+
"options": {
|
|
488
|
+
"id": {
|
|
489
|
+
"param": "--id '<'id'>'",
|
|
490
|
+
"description": "The id for the NFT in urn format."
|
|
491
|
+
}
|
|
512
492
|
},
|
|
513
|
-
"
|
|
514
|
-
"
|
|
515
|
-
"description": "Load the env files to initialise any environment variables."
|
|
493
|
+
"progress": {
|
|
494
|
+
"resolvingNft": "Resolving NFT"
|
|
516
495
|
},
|
|
517
|
-
"
|
|
518
|
-
"
|
|
519
|
-
"
|
|
496
|
+
"labels": {
|
|
497
|
+
"nft": "NFT",
|
|
498
|
+
"nftId": "NFT Id"
|
|
499
|
+
}
|
|
500
|
+
},
|
|
501
|
+
"nft-burn": {
|
|
502
|
+
"summary": "Burn an NFT.",
|
|
503
|
+
"description": "Burn an NFT.",
|
|
504
|
+
"options": {
|
|
505
|
+
"seed": {
|
|
506
|
+
"param": "--seed '<'seed'>'",
|
|
507
|
+
"description": "The seed for the issuer address in hex or base64 used to fund the burning, or start with ! to read environment variable."
|
|
508
|
+
},
|
|
509
|
+
"issuer": {
|
|
510
|
+
"param": "--issuer '<'issuer'>'",
|
|
511
|
+
"description": "The bech32 address of the NFT issuer, or start with ! to read environment variable."
|
|
512
|
+
},
|
|
513
|
+
"id": {
|
|
514
|
+
"param": "--id '<'id'>'",
|
|
515
|
+
"description": "The id for the NFT in urn format."
|
|
516
|
+
}
|
|
520
517
|
},
|
|
521
|
-
"
|
|
522
|
-
"
|
|
523
|
-
"description": "Creates a JSON file containing the output."
|
|
518
|
+
"progress": {
|
|
519
|
+
"burningNft": "Burning NFT"
|
|
524
520
|
},
|
|
525
|
-
"
|
|
526
|
-
"
|
|
527
|
-
"
|
|
521
|
+
"labels": {
|
|
522
|
+
"issuer": "Issuer",
|
|
523
|
+
"nftId": "NFT Id"
|
|
524
|
+
}
|
|
525
|
+
},
|
|
526
|
+
"nft-transfer": {
|
|
527
|
+
"summary": "Transfer an NFT.",
|
|
528
|
+
"description": "Transfer an NFT.",
|
|
529
|
+
"options": {
|
|
530
|
+
"seed": {
|
|
531
|
+
"param": "--seed '<'seed'>'",
|
|
532
|
+
"description": "The seed for the issuer address in hex or base64 used to fund the transfer, or start with ! to read environment variable."
|
|
533
|
+
},
|
|
534
|
+
"id": {
|
|
535
|
+
"param": "--id '<'id'>'",
|
|
536
|
+
"description": "The id for the NFT in urn format."
|
|
537
|
+
},
|
|
538
|
+
"recipient": {
|
|
539
|
+
"param": "--recipient '<'recipient'>'",
|
|
540
|
+
"description": "The bech32 address of the NFT recipient, or start with ! to read environment variable."
|
|
541
|
+
}
|
|
528
542
|
},
|
|
529
|
-
"
|
|
530
|
-
"
|
|
531
|
-
"description": "If the JSON file already exists merge the data instead of overwriting."
|
|
543
|
+
"progress": {
|
|
544
|
+
"transferringNft": "Transferring NFT"
|
|
532
545
|
},
|
|
533
|
-
"
|
|
534
|
-
"
|
|
535
|
-
"
|
|
546
|
+
"labels": {
|
|
547
|
+
"recipient": "Recipient",
|
|
548
|
+
"nftId": "NFT Id"
|
|
536
549
|
}
|
|
537
550
|
}
|
|
538
551
|
},
|
package/docs/changelog.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/nft-cli",
|
|
3
|
-
"version": "0.0.1-next.
|
|
3
|
+
"version": "0.0.1-next.6",
|
|
4
4
|
"description": "A command line interface for interacting with the nft connectors",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@twin.org/entity": "next",
|
|
22
22
|
"@twin.org/entity-storage-connector-memory": "next",
|
|
23
23
|
"@twin.org/nameof": "next",
|
|
24
|
-
"@twin.org/nft-connector-iota": "0.0.1-next.
|
|
24
|
+
"@twin.org/nft-connector-iota": "0.0.1-next.6",
|
|
25
25
|
"@twin.org/vault-connector-entity-storage": "next",
|
|
26
26
|
"@twin.org/vault-models": "next",
|
|
27
27
|
"@twin.org/wallet-cli": "next",
|