@taquito/local-forging 23.0.2 → 23.1.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.
- package/dist/lib/taquito-local-forging.js +7 -29
- package/dist/lib/version.js +2 -2
- package/dist/taquito-local-forging.es6.js +315 -1736
- package/dist/taquito-local-forging.es6.js.map +1 -1
- package/dist/taquito-local-forging.umd.js +389 -1810
- package/dist/taquito-local-forging.umd.js.map +1 -1
- package/dist/types/taquito-local-forging.d.ts +2 -3
- package/package.json +8 -7
- package/dist/lib/codec-proto022.js +0 -563
- package/dist/lib/constants-proto022.js +0 -286
- package/dist/lib/decoder-proto022.js +0 -63
- package/dist/lib/encoder-proto022.js +0 -62
- package/dist/lib/michelson/codec-proto022.js +0 -283
- package/dist/lib/schema/operation-proto022.js +0 -238
- package/dist/lib/validator-proto022.js +0 -56
- package/dist/types/codec-proto022.d.ts +0 -79
- package/dist/types/constants-proto022.d.ts +0 -74
- package/dist/types/decoder-proto022.d.ts +0 -5
- package/dist/types/encoder-proto022.d.ts +0 -4
- package/dist/types/michelson/codec-proto022.d.ts +0 -49
- package/dist/types/schema/operation-proto022.d.ts +0 -188
- package/dist/types/validator-proto022.d.ts +0 -13
|
@@ -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");
|
|
@@ -52,33 +50,13 @@ var protocols_2 = require("./protocols");
|
|
|
52
50
|
Object.defineProperty(exports, "ProtocolsHash", { enumerable: true, get: function () { return protocols_2.ProtocolsHash; } });
|
|
53
51
|
const PROTOCOL_CURRENT = protocols_1.ProtocolsHash.PtSeouLou;
|
|
54
52
|
function getCodec(codec, _proto) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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) {
|
package/dist/lib/version.js
CHANGED
|
@@ -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": "
|
|
7
|
-
"version": "23.0
|
|
6
|
+
"commitHash": "c77fe4b0989665d8b5cfd15a7cc977499021f6fd",
|
|
7
|
+
"version": "23.1.0"
|
|
8
8
|
};
|