@twin.org/nft-cli 0.0.1-next.20 → 0.0.1-next.22

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.
@@ -228,10 +228,10 @@ async function actionCommandNftMint(opts) {
228
228
  : undefined;
229
229
  const explorerEndpoint = cliCore.CLIParam.url("explorer", opts.explorer);
230
230
  cliCore.CLIDisplay.value(core.I18n.formatMessage("commands.nft-mint.labels.issuer"), issuer);
231
- if (core.Is.number(walletAddressIndex)) {
232
- cliCore.CLIDisplay.value(core.I18n.formatMessage("commands.nft-mint.labels.tag"), tag);
231
+ if (core.Is.integer(walletAddressIndex)) {
232
+ cliCore.CLIDisplay.value(core.I18n.formatMessage("commands.nft-mint.labels.walletAddressIndex"), walletAddressIndex);
233
233
  }
234
- cliCore.CLIDisplay.value(core.I18n.formatMessage("commands.nft-mint.labels.walletAddressIndex"), walletAddressIndex);
234
+ cliCore.CLIDisplay.value(core.I18n.formatMessage("commands.nft-mint.labels.tag"), tag);
235
235
  if (core.Is.stringValue(immutableJson)) {
236
236
  cliCore.CLIDisplay.value(core.I18n.formatMessage("commands.nft-mint.labels.immutableJsonFilename"), immutableJson);
237
237
  }
@@ -467,7 +467,7 @@ class CLI extends cliCore.CLIBase {
467
467
  return this.execute({
468
468
  title: "TWIN NFT",
469
469
  appName: "twin-nft",
470
- version: "0.0.1-next.20",
470
+ version: "0.0.1-next.22",
471
471
  icon: "🌍",
472
472
  supportsEnvFiles: true,
473
473
  overrideOutputWidth: options?.overrideOutputWidth
@@ -225,10 +225,10 @@ async function actionCommandNftMint(opts) {
225
225
  : undefined;
226
226
  const explorerEndpoint = CLIParam.url("explorer", opts.explorer);
227
227
  CLIDisplay.value(I18n.formatMessage("commands.nft-mint.labels.issuer"), issuer);
228
- if (Is.number(walletAddressIndex)) {
229
- CLIDisplay.value(I18n.formatMessage("commands.nft-mint.labels.tag"), tag);
228
+ if (Is.integer(walletAddressIndex)) {
229
+ CLIDisplay.value(I18n.formatMessage("commands.nft-mint.labels.walletAddressIndex"), walletAddressIndex);
230
230
  }
231
- CLIDisplay.value(I18n.formatMessage("commands.nft-mint.labels.walletAddressIndex"), walletAddressIndex);
231
+ CLIDisplay.value(I18n.formatMessage("commands.nft-mint.labels.tag"), tag);
232
232
  if (Is.stringValue(immutableJson)) {
233
233
  CLIDisplay.value(I18n.formatMessage("commands.nft-mint.labels.immutableJsonFilename"), immutableJson);
234
234
  }
@@ -464,7 +464,7 @@ class CLI extends CLIBase {
464
464
  return this.execute({
465
465
  title: "TWIN NFT",
466
466
  appName: "twin-nft",
467
- version: "0.0.1-next.20",
467
+ version: "0.0.1-next.22",
468
468
  icon: "🌍",
469
469
  supportsEnvFiles: true,
470
470
  overrideOutputWidth: options?.overrideOutputWidth
@@ -190,7 +190,9 @@
190
190
  "nftOwnerNftFound": "The owner for NFT \"{nftId}\" was not found",
191
191
  "startFailed": "Failed to start the IOTA NFT connector",
192
192
  "deployTransactionFailed": "Deploying the contract failed with error: \"{error}\"",
193
- "connectorNotStarted": "Please call start() before using this connector. Package ID: \"{packageId}\" is missing."
193
+ "connectorNotStarted": "Please call start() before using this connector. Package ID: \"{packageId}\" is missing.",
194
+ "invalidImmutableMetadata": "The immutable metadata for NFT \"{nftId}\" is invalid",
195
+ "invalidMetadata": "The metadata for NFT \"{nftId}\" is invalid"
194
196
  },
195
197
  "iotaNftUtils": {
196
198
  "invalidNftIdFormat": "The NFT ID \"{id}\" has an invalid format"
@@ -202,6 +204,9 @@
202
204
  "nftTransactionFailed": "The NFT transaction failed",
203
205
  "addressNotFound": "The address is missing could not be found from the seed \"{address}\""
204
206
  },
207
+ "vaultConnectorHelper": {
208
+ "invalidSignature": "The JSON Web token signature could not be verified"
209
+ },
205
210
  "fetchHelper": {
206
211
  "decodingJSON": "Decoding JSON failed for route \"{route}\"",
207
212
  "failureStatusText": "The request to the API failed: \"{statusText}\"",
@@ -211,7 +216,17 @@
211
216
  },
212
217
  "jwt": {
213
218
  "noKeyOrSigner": "No key or signer was provided for JWT creation",
214
- "noKeyOrVerifier": "No key or verifier was provided for JWT creation"
219
+ "noKeyOrVerifier": "No key or verifier was provided for JWT creation",
220
+ "verifyFailed": "Failed to verify JWT",
221
+ "invalidTokenParts": "The JSON Web Token could not be parsed, it should contain three parts separated by dots",
222
+ "invalidSigningBytes": "The signing bytes are invalid, it should contain two parts separated by a dot"
223
+ },
224
+ "jwk": {
225
+ "jwkImportFailed": "Failed to import JWK"
226
+ },
227
+ "jws": {
228
+ "createFailed": "Failed to create JWS",
229
+ "verifyFailed": "Failed to verify JWS"
215
230
  },
216
231
  "iotaStardustNftConnector": {
217
232
  "inclusionFailed": "The transaction generated for the NFT was not included in a reasonable amount of time",
package/docs/changelog.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # @twin.org/nft-cli - Changelog
2
2
 
3
- ## v0.0.1-next.20
3
+ ## v0.0.1-next.22
4
4
 
5
5
  - Initial Release
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/nft-cli",
3
- "version": "0.0.1-next.20",
3
+ "version": "0.0.1-next.22",
4
4
  "description": "A command line interface for interacting with the nft connectors",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,8 +21,8 @@
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.20",
25
- "@twin.org/nft-connector-iota-stardust": "0.0.1-next.20",
24
+ "@twin.org/nft-connector-iota": "0.0.1-next.22",
25
+ "@twin.org/nft-connector-iota-stardust": "0.0.1-next.22",
26
26
  "@twin.org/vault-connector-entity-storage": "next",
27
27
  "@twin.org/vault-models": "next",
28
28
  "@twin.org/wallet-cli": "next",