@taquito/tzip16 19.0.2 → 19.1.0-RC.2

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.
@@ -40,7 +40,7 @@ class TezosStorageHandler {
40
40
  if (!/^[0-9a-fA-F]*$/.test(bytes)) {
41
41
  throw new errors_1.InvalidContractMetadataTypeError();
42
42
  }
43
- return (0, utils_1.bytes2Char)(bytes);
43
+ return (0, utils_1.bytesToString)(bytes);
44
44
  });
45
45
  }
46
46
  /**
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.char2Bytes = exports.bytes2Char = exports.VERSION = void 0;
17
+ exports.stringToBytes = exports.bytesToString = exports.VERSION = void 0;
18
18
  /**
19
19
  * @packageDocumentation
20
20
  * @module @taquito/tzip16
@@ -35,10 +35,10 @@ __exportStar(require("./viewKind/viewFactory"), exports);
35
35
  var version_1 = require("./version");
36
36
  Object.defineProperty(exports, "VERSION", { enumerable: true, get: function () { return version_1.VERSION; } });
37
37
  /**
38
- * @deprecated `import { bytes2Char, char2Bytes } from "@taquito/tzip16"` is deprecated in favor of
39
- * `import { bytes2Char, char2Bytes } from "@taquito/utils"`
38
+ * @deprecated `import { bytesToString, stringToBytes } from "@taquito/tzip16"` is deprecated in favor of
39
+ * `import { bytesToString, stringToBytes } from "@taquito/utils"`
40
40
  *
41
41
  */
42
42
  var utils_1 = require("@taquito/utils");
43
- Object.defineProperty(exports, "bytes2Char", { enumerable: true, get: function () { return utils_1.bytes2Char; } });
44
- Object.defineProperty(exports, "char2Bytes", { enumerable: true, get: function () { return utils_1.char2Bytes; } });
43
+ Object.defineProperty(exports, "bytesToString", { enumerable: true, get: function () { return utils_1.bytesToString; } });
44
+ Object.defineProperty(exports, "stringToBytes", { enumerable: true, get: function () { return utils_1.stringToBytes; } });
@@ -58,7 +58,7 @@ class Tzip16ContractAbstraction {
58
58
  }
59
59
  if (!this._metadataEnvelope) {
60
60
  const uri = yield this.getUriOrFail();
61
- this._metadataEnvelope = yield this._metadataProvider.provideMetadata(this.constractAbstraction, (0, utils_1.bytes2Char)(uri), this.context);
61
+ this._metadataEnvelope = yield this._metadataProvider.provideMetadata(this.constractAbstraction, (0, utils_1.bytesToString)(uri), this.context);
62
62
  }
63
63
  return this._metadataEnvelope;
64
64
  });
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
4
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
5
5
  exports.VERSION = {
6
- "commitHash": "13a12ab7cf442043526745db2bbf4ef3b089c34a",
7
- "version": "19.0.2"
6
+ "commitHash": "1aa9945ea2318318f16f494216a1c09801fa4bf8",
7
+ "version": "19.1.0-RC.2"
8
8
  };
@@ -1,7 +1,7 @@
1
1
  import { HttpBackend } from '@taquito/http-utils';
2
2
  import { Schema, ParameterSchema } from '@taquito/michelson-encoder';
3
- import { bytes2Char } from '@taquito/utils';
4
- export { bytes2Char, char2Bytes } from '@taquito/utils';
3
+ import { bytesToString } from '@taquito/utils';
4
+ export { bytesToString, stringToBytes } from '@taquito/utils';
5
5
  import { TaquitoError, ParameterValidationError, TezosToolkitConfigError, InvalidViewParameterError } from '@taquito/core';
6
6
  export { InvalidViewParameterError } from '@taquito/core';
7
7
  import { validateAndExtractFailwith, ViewSimulationError, BigMapAbstraction } from '@taquito/taquito';
@@ -208,7 +208,7 @@ class TezosStorageHandler {
208
208
  if (!/^[0-9a-fA-F]*$/.test(bytes)) {
209
209
  throw new InvalidContractMetadataTypeError();
210
210
  }
211
- return bytes2Char(bytes);
211
+ return bytesToString(bytes);
212
212
  });
213
213
  }
214
214
  /**
@@ -477,7 +477,7 @@ class Tzip16ContractAbstraction {
477
477
  }
478
478
  if (!this._metadataEnvelope) {
479
479
  const uri = yield this.getUriOrFail();
480
- this._metadataEnvelope = yield this._metadataProvider.provideMetadata(this.constractAbstraction, bytes2Char(uri), this.context);
480
+ this._metadataEnvelope = yield this._metadataProvider.provideMetadata(this.constractAbstraction, bytesToString(uri), this.context);
481
481
  }
482
482
  return this._metadataEnvelope;
483
483
  });
@@ -680,8 +680,8 @@ class Tzip16Module {
680
680
 
681
681
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
682
682
  const VERSION = {
683
- "commitHash": "13a12ab7cf442043526745db2bbf4ef3b089c34a",
684
- "version": "19.0.2"
683
+ "commitHash": "1aa9945ea2318318f16f494216a1c09801fa4bf8",
684
+ "version": "19.1.0-RC.2"
685
685
  };
686
686
 
687
687
  export { BigMapContractMetadataNotFoundError, ContractMetadataNotFoundError, DEFAULT_HANDLERS, ForbiddenInstructionInViewCodeError, HttpHandler, InvalidContractMetadataError, InvalidContractMetadataTypeError, InvalidUriError, IpfsHttpHandler, MetadataProvider, MichelsonStorageView, NoParameterExpectedError, ProtocolNotSupportedError, TezosStorageHandler, Tzip16ContractAbstraction, Tzip16Module, UnconfiguredContractMetadataProviderError, UriNotFoundError, VERSION, ViewFactory, ViewImplementationType, calculateSHA256Hash, tzip16 };
@@ -204,7 +204,7 @@
204
204
  if (!/^[0-9a-fA-F]*$/.test(bytes)) {
205
205
  throw new InvalidContractMetadataTypeError();
206
206
  }
207
- return utils.bytes2Char(bytes);
207
+ return utils.bytesToString(bytes);
208
208
  });
209
209
  }
210
210
  /**
@@ -473,7 +473,7 @@
473
473
  }
474
474
  if (!this._metadataEnvelope) {
475
475
  const uri = yield this.getUriOrFail();
476
- this._metadataEnvelope = yield this._metadataProvider.provideMetadata(this.constractAbstraction, utils.bytes2Char(uri), this.context);
476
+ this._metadataEnvelope = yield this._metadataProvider.provideMetadata(this.constractAbstraction, utils.bytesToString(uri), this.context);
477
477
  }
478
478
  return this._metadataEnvelope;
479
479
  });
@@ -676,17 +676,17 @@
676
676
 
677
677
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
678
678
  const VERSION = {
679
- "commitHash": "13a12ab7cf442043526745db2bbf4ef3b089c34a",
680
- "version": "19.0.2"
679
+ "commitHash": "1aa9945ea2318318f16f494216a1c09801fa4bf8",
680
+ "version": "19.1.0-RC.2"
681
681
  };
682
682
 
683
- Object.defineProperty(exports, "bytes2Char", {
683
+ Object.defineProperty(exports, "bytesToString", {
684
684
  enumerable: true,
685
- get: function () { return utils.bytes2Char; }
685
+ get: function () { return utils.bytesToString; }
686
686
  });
687
- Object.defineProperty(exports, "char2Bytes", {
687
+ Object.defineProperty(exports, "stringToBytes", {
688
688
  enumerable: true,
689
- get: function () { return utils.char2Bytes; }
689
+ get: function () { return utils.stringToBytes; }
690
690
  });
691
691
  Object.defineProperty(exports, "InvalidViewParameterError", {
692
692
  enumerable: true,
@@ -17,8 +17,8 @@ export * from './viewKind/michelson-storage-view';
17
17
  export * from './viewKind/viewFactory';
18
18
  export { VERSION } from './version';
19
19
  /**
20
- * @deprecated `import { bytes2Char, char2Bytes } from "@taquito/tzip16"` is deprecated in favor of
21
- * `import { bytes2Char, char2Bytes } from "@taquito/utils"`
20
+ * @deprecated `import { bytesToString, stringToBytes } from "@taquito/tzip16"` is deprecated in favor of
21
+ * `import { bytesToString, stringToBytes } from "@taquito/utils"`
22
22
  *
23
23
  */
24
- export { bytes2Char, char2Bytes } from '@taquito/utils';
24
+ export { bytesToString, stringToBytes } from '@taquito/utils';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taquito/tzip16",
3
- "version": "19.0.2",
3
+ "version": "19.1.0-RC.2",
4
4
  "description": "Tzip16",
5
5
  "keywords": [
6
6
  "tezos",
@@ -61,12 +61,12 @@
61
61
  ]
62
62
  },
63
63
  "dependencies": {
64
- "@taquito/core": "^19.0.2",
65
- "@taquito/http-utils": "^19.0.2",
66
- "@taquito/michelson-encoder": "^19.0.2",
67
- "@taquito/rpc": "^19.0.2",
68
- "@taquito/taquito": "^19.0.2",
69
- "@taquito/utils": "^19.0.2",
64
+ "@taquito/core": "^19.1.0-RC.2",
65
+ "@taquito/http-utils": "^19.1.0-RC.2",
66
+ "@taquito/michelson-encoder": "^19.1.0-RC.2",
67
+ "@taquito/rpc": "^19.1.0-RC.2",
68
+ "@taquito/taquito": "^19.1.0-RC.2",
69
+ "@taquito/utils": "^19.1.0-RC.2",
70
70
  "bignumber.js": "^9.1.2",
71
71
  "crypto-js": "^4.2.0"
72
72
  },
@@ -99,5 +99,5 @@
99
99
  "ts-toolbelt": "^9.6.0",
100
100
  "typescript": "~5.2.2"
101
101
  },
102
- "gitHead": "ede4790173abf0f153b87fec23a36e1b2b8114e2"
102
+ "gitHead": "72feb924392ac02aa06f08a9c4f535a876ac57d8"
103
103
  }