@taquito/michelson-encoder 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.
@@ -66,7 +66,7 @@ class AddressToken extends token_1.ComparableToken {
66
66
  if (!val.bytes) {
67
67
  throw new AddressValidationError(val, this, `cannot be missing both string and bytes: ${JSON.stringify(val)}`);
68
68
  }
69
- return (0, utils_1.encodePubKey)(val.bytes);
69
+ return (0, utils_1.encodeAddress)(val.bytes);
70
70
  }
71
71
  /**
72
72
  * @deprecated ExtractSchema has been deprecated in favor of generateSchema
@@ -91,7 +91,7 @@ class AddressToken extends token_1.ComparableToken {
91
91
  if (!bytes) {
92
92
  throw new AddressValidationError({ bytes, string }, this, `cannot be missing both string and bytes ${JSON.stringify({ string, bytes })}`);
93
93
  }
94
- return (0, utils_1.encodePubKey)(bytes);
94
+ return (0, utils_1.encodeAddress)(bytes);
95
95
  }
96
96
  compare(address1, address2) {
97
97
  const isImplicit = (address) => {
@@ -43,7 +43,7 @@ class ContractToken extends token_1.Token {
43
43
  if (!val.bytes) {
44
44
  throw new ContractValidationError(val, this, `Value ${JSON.stringify(val)} is not a valid contract address. must contain bytes or string.`);
45
45
  }
46
- return (0, utils_1.encodePubKey)(val.bytes);
46
+ return (0, utils_1.encodeAddress)(val.bytes);
47
47
  }
48
48
  /**
49
49
  * @throws {@link ContractValidationError}
@@ -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 stringify from 'fast-json-stable-stringify';
2
2
  import { TaquitoError, InvalidViewParameterError } from '@taquito/core';
3
3
  import BigNumber from 'bignumber.js';
4
- import { b58decode, validateAddress, ValidationResult, encodePubKey, stripHexPrefix, encodeKey, validatePublicKey, Prefix, b58cdecode, prefix, encodeKeyHash, validateKeyHash, validateSignature, validateChain } from '@taquito/utils';
4
+ import { b58decode, validateAddress, ValidationResult, encodeAddress, stripHexPrefix, encodeKey, validatePublicKey, Prefix, b58cdecode, prefix, encodeKeyHash, validateKeyHash, validateSignature, validateChain } from '@taquito/utils';
5
5
 
6
6
  var _a$1;
7
7
  /**
@@ -1115,7 +1115,7 @@ class AddressToken extends ComparableToken {
1115
1115
  if (!val.bytes) {
1116
1116
  throw new AddressValidationError(val, this, `cannot be missing both string and bytes: ${JSON.stringify(val)}`);
1117
1117
  }
1118
- return encodePubKey(val.bytes);
1118
+ return encodeAddress(val.bytes);
1119
1119
  }
1120
1120
  /**
1121
1121
  * @deprecated ExtractSchema has been deprecated in favor of generateSchema
@@ -1140,7 +1140,7 @@ class AddressToken extends ComparableToken {
1140
1140
  if (!bytes) {
1141
1141
  throw new AddressValidationError({ bytes, string }, this, `cannot be missing both string and bytes ${JSON.stringify({ string, bytes })}`);
1142
1142
  }
1143
- return encodePubKey(bytes);
1143
+ return encodeAddress(bytes);
1144
1144
  }
1145
1145
  compare(address1, address2) {
1146
1146
  const isImplicit = (address) => {
@@ -1384,7 +1384,7 @@ class ContractToken extends Token {
1384
1384
  if (!val.bytes) {
1385
1385
  throw new ContractValidationError(val, this, `Value ${JSON.stringify(val)} is not a valid contract address. must contain bytes or string.`);
1386
1386
  }
1387
- return encodePubKey(val.bytes);
1387
+ return encodeAddress(val.bytes);
1388
1388
  }
1389
1389
  /**
1390
1390
  * @throws {@link ContractValidationError}
@@ -4205,8 +4205,8 @@ class EventSchema {
4205
4205
 
4206
4206
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
4207
4207
  const VERSION = {
4208
- "commitHash": "13a12ab7cf442043526745db2bbf4ef3b089c34a",
4209
- "version": "19.0.2"
4208
+ "commitHash": "1aa9945ea2318318f16f494216a1c09801fa4bf8",
4209
+ "version": "19.1.0-RC.2"
4210
4210
  };
4211
4211
 
4212
4212
  /**
@@ -1116,7 +1116,7 @@
1116
1116
  if (!val.bytes) {
1117
1117
  throw new AddressValidationError(val, this, `cannot be missing both string and bytes: ${JSON.stringify(val)}`);
1118
1118
  }
1119
- return utils.encodePubKey(val.bytes);
1119
+ return utils.encodeAddress(val.bytes);
1120
1120
  }
1121
1121
  /**
1122
1122
  * @deprecated ExtractSchema has been deprecated in favor of generateSchema
@@ -1141,7 +1141,7 @@
1141
1141
  if (!bytes) {
1142
1142
  throw new AddressValidationError({ bytes, string }, this, `cannot be missing both string and bytes ${JSON.stringify({ string, bytes })}`);
1143
1143
  }
1144
- return utils.encodePubKey(bytes);
1144
+ return utils.encodeAddress(bytes);
1145
1145
  }
1146
1146
  compare(address1, address2) {
1147
1147
  const isImplicit = (address) => {
@@ -1385,7 +1385,7 @@
1385
1385
  if (!val.bytes) {
1386
1386
  throw new ContractValidationError(val, this, `Value ${JSON.stringify(val)} is not a valid contract address. must contain bytes or string.`);
1387
1387
  }
1388
- return utils.encodePubKey(val.bytes);
1388
+ return utils.encodeAddress(val.bytes);
1389
1389
  }
1390
1390
  /**
1391
1391
  * @throws {@link ContractValidationError}
@@ -4206,8 +4206,8 @@
4206
4206
 
4207
4207
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
4208
4208
  const VERSION = {
4209
- "commitHash": "13a12ab7cf442043526745db2bbf4ef3b089c34a",
4210
- "version": "19.0.2"
4209
+ "commitHash": "1aa9945ea2318318f16f494216a1c09801fa4bf8",
4210
+ "version": "19.1.0-RC.2"
4211
4211
  };
4212
4212
 
4213
4213
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taquito/michelson-encoder",
3
- "version": "19.0.2",
3
+ "version": "19.1.0-RC.2",
4
4
  "description": "converts michelson data and types into convenient JS/TS objects",
5
5
  "keywords": [
6
6
  "tezos",
@@ -67,9 +67,9 @@
67
67
  ]
68
68
  },
69
69
  "dependencies": {
70
- "@taquito/core": "^19.0.2",
71
- "@taquito/rpc": "^19.0.2",
72
- "@taquito/utils": "^19.0.2",
70
+ "@taquito/core": "^19.1.0-RC.2",
71
+ "@taquito/rpc": "^19.1.0-RC.2",
72
+ "@taquito/utils": "^19.1.0-RC.2",
73
73
  "bignumber.js": "^9.1.2",
74
74
  "fast-json-stable-stringify": "^2.1.0"
75
75
  },
@@ -100,5 +100,5 @@
100
100
  "ts-toolbelt": "^9.6.0",
101
101
  "typescript": "~5.2.2"
102
102
  },
103
- "gitHead": "ede4790173abf0f153b87fec23a36e1b2b8114e2"
103
+ "gitHead": "72feb924392ac02aa06f08a9c4f535a876ac57d8"
104
104
  }