@taquito/local-forging 23.0.3 → 24.0.0-RC.0

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.
@@ -226,6 +226,8 @@ exports.opMapping = {
226
226
  '9c': 'NAT',
227
227
  '9d': 'Ticket',
228
228
  '9e': 'IS_IMPLICIT_ACCOUNT',
229
+ '9f': 'INDEX_ADDRESS',
230
+ 'a0': 'GET_ADDRESS_INDEX',
229
231
  };
230
232
  exports.opMappingReverse = (() => {
231
233
  const result = {};
@@ -26,6 +26,7 @@ var ProtocolsHash;
26
26
  ProtocolsHash["PsQuebecn"] = "PsQuebecnLByd3JwTiGadoG4nGWi3HYiLXUjkibeFV8dCFeVMUg";
27
27
  ProtocolsHash["PsRiotuma"] = "PsRiotumaAMotcRoDWW1bysEhQy2n1M5fy8JgRp8jjRfHGmfeA7";
28
28
  ProtocolsHash["PtSeouLou"] = "PtSeouLouXkxhg39oWzjxDWaCydNfR3RxCUrNe4Q9Ro8BTehcbh";
29
+ ProtocolsHash["PtTALLiNt"] = "PtTALLiNtPec7mE7yY4m3k26J8Qukef3E3ehzhfXgFZKGtDdAXu";
29
30
  ProtocolsHash["ProtoALpha"] = "ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK";
30
31
  })(ProtocolsHash || (exports.ProtocolsHash = ProtocolsHash = {}));
31
32
  const protoLevel = {
@@ -51,7 +52,8 @@ const protoLevel = {
51
52
  PsQuebecnLByd3JwTiGadoG4nGWi3HYiLXUjkibeFV8dCFeVMUg: 21,
52
53
  PsRiotumaAMotcRoDWW1bysEhQy2n1M5fy8JgRp8jjRfHGmfeA7: 22,
53
54
  PtSeouLouXkxhg39oWzjxDWaCydNfR3RxCUrNe4Q9Ro8BTehcbh: 23,
54
- ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK: 23,
55
+ PtTALLiNtPec7mE7yY4m3k26J8Qukef3E3ehzhfXgFZKGtDdAXu: 24,
56
+ ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK: 25,
55
57
  };
56
58
  function ProtoInferiorTo(a, b) {
57
59
  return protoLevel[a] < protoLevel[b];
@@ -29,9 +29,7 @@ if (typeof globalThis.TextDecoder === 'undefined') {
29
29
  }
30
30
  const constants_1 = require("./constants");
31
31
  const decoder_1 = require("./decoder");
32
- const decoder_proto022_1 = require("./decoder-proto022");
33
32
  const encoder_1 = require("./encoder");
34
- const encoder_proto022_1 = require("./encoder-proto022");
35
33
  const uint8array_consumer_1 = require("./uint8array-consumer");
36
34
  const utils_1 = require("@taquito/utils");
37
35
  const errors_1 = require("./errors");
@@ -50,35 +48,15 @@ var version_1 = require("./version");
50
48
  Object.defineProperty(exports, "VERSION", { enumerable: true, get: function () { return version_1.VERSION; } });
51
49
  var protocols_2 = require("./protocols");
52
50
  Object.defineProperty(exports, "ProtocolsHash", { enumerable: true, get: function () { return protocols_2.ProtocolsHash; } });
53
- const PROTOCOL_CURRENT = protocols_1.ProtocolsHash.PtSeouLou;
51
+ const PROTOCOL_CURRENT = protocols_1.ProtocolsHash.PtTALLiNt;
54
52
  function getCodec(codec, _proto) {
55
- // use encodersProto022 & decodersProto022 if it's rio or prior
56
- if (_proto === protocols_1.ProtocolsHash.PsRiotuma || (0, protocols_1.ProtoInferiorTo)(_proto, protocols_1.ProtocolsHash.PsRiotuma)) {
57
- return {
58
- encoder: encoder_proto022_1.encoders[codec],
59
- decoder: (hex) => {
60
- const consumer = uint8array_consumer_1.Uint8ArrayConsumer.fromHexString(hex);
61
- return decoder_proto022_1.decoders[codec](consumer);
62
- },
63
- };
64
- }
65
- else {
66
- return {
67
- encoder: encoder_1.encoders[codec],
68
- decoder: (hex) => {
69
- const consumer = uint8array_consumer_1.Uint8ArrayConsumer.fromHexString(hex);
70
- return decoder_1.decoders[codec](consumer);
71
- },
72
- };
73
- }
74
- // TODO: Remove above if else once mainnet migrated into rio protocol and uncommon the return block below
75
- // return {
76
- // encoder: encoders[codec],
77
- // decoder: (hex: string) => {
78
- // const consumer = Uint8ArrayConsumer.fromHexString(hex);
79
- // return decoders[codec](consumer) as any;
80
- // },
81
- // };
53
+ return {
54
+ encoder: encoder_1.encoders[codec],
55
+ decoder: (hex) => {
56
+ const consumer = uint8array_consumer_1.Uint8ArrayConsumer.fromHexString(hex);
57
+ return decoder_1.decoders[codec](consumer);
58
+ },
59
+ };
82
60
  }
83
61
  class LocalForger {
84
62
  constructor(protocolHash = PROTOCOL_CURRENT) {
@@ -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": "42048d039f6d4345fc59d04b03650bcb8e27bb62",
7
- "version": "23.0.3"
6
+ "commitHash": "0e66f21b0164a7add990b5c0d60698086daece99",
7
+ "version": "24.0.0-RC.0"
8
8
  };