@taquito/tzip16 17.3.2 → 17.4.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/composer.js +0 -1
- package/dist/lib/errors.js +0 -1
- package/dist/lib/handlers/http-handler.js +0 -1
- package/dist/lib/handlers/ipfs-handler.js +0 -1
- package/dist/lib/handlers/tezos-storage-handler.js +1 -2
- package/dist/lib/metadata-interface.js +1 -2
- package/dist/lib/metadata-provider.js +1 -2
- package/dist/lib/taquito-tzip16.js +5 -2
- package/dist/lib/tzip16-contract-abstraction.js +1 -2
- package/dist/lib/tzip16-extension.js +0 -1
- package/dist/lib/tzip16-utils.js +0 -1
- package/dist/lib/version.js +2 -3
- package/dist/lib/viewKind/interface.js +0 -1
- package/dist/lib/viewKind/michelson-storage-view.js +1 -2
- package/dist/lib/viewKind/viewFactory.js +0 -1
- package/dist/taquito-tzip16.es6.js +620 -618
- package/dist/taquito-tzip16.es6.js.map +1 -1
- package/dist/taquito-tzip16.umd.js +620 -625
- package/dist/taquito-tzip16.umd.js.map +1 -1
- package/dist/types/composer.d.ts +9 -9
- package/dist/types/errors.d.ts +80 -80
- package/dist/types/handlers/http-handler.d.ts +8 -8
- package/dist/types/handlers/ipfs-handler.d.ts +9 -9
- package/dist/types/handlers/tezos-storage-handler.d.ts +15 -15
- package/dist/types/metadata-interface.d.ts +68 -68
- package/dist/types/metadata-provider.d.ts +37 -37
- package/dist/types/taquito-tzip16.d.ts +24 -24
- package/dist/types/tzip16-contract-abstraction.d.ts +42 -42
- package/dist/types/tzip16-extension.d.ts +8 -8
- package/dist/types/tzip16-utils.d.ts +1 -1
- package/dist/types/version.d.ts +4 -4
- package/dist/types/viewKind/interface.d.ts +3 -3
- package/dist/types/viewKind/michelson-storage-view.d.ts +32 -32
- package/dist/types/viewKind/viewFactory.d.ts +9 -9
- package/package.json +33 -35
- package/signature.json +4 -6
- package/dist/lib/composer.js.map +0 -1
- package/dist/lib/errors.js.map +0 -1
- package/dist/lib/handlers/http-handler.js.map +0 -1
- package/dist/lib/handlers/ipfs-handler.js.map +0 -1
- package/dist/lib/handlers/tezos-storage-handler.js.map +0 -1
- package/dist/lib/metadata-interface.js.map +0 -1
- package/dist/lib/metadata-provider.js.map +0 -1
- package/dist/lib/taquito-tzip16.js.map +0 -1
- package/dist/lib/tzip16-contract-abstraction.js.map +0 -1
- package/dist/lib/tzip16-extension.js.map +0 -1
- package/dist/lib/tzip16-utils.js.map +0 -1
- package/dist/lib/version.js.map +0 -1
- package/dist/lib/viewKind/interface.js.map +0 -1
- package/dist/lib/viewKind/michelson-storage-view.js.map +0 -1
- package/dist/lib/viewKind/viewFactory.js.map +0 -1
package/dist/lib/composer.js
CHANGED
package/dist/lib/errors.js
CHANGED
|
@@ -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 utils_1.bytes2Char(bytes);
|
|
43
|
+
return (0, utils_1.bytes2Char)(bytes);
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
@@ -60,4 +60,3 @@ class TezosStorageHandler {
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
exports.TezosStorageHandler = TezosStorageHandler;
|
|
63
|
-
//# sourceMappingURL=tezos-storage-handler.js.map
|
|
@@ -5,5 +5,4 @@ var ViewImplementationType;
|
|
|
5
5
|
(function (ViewImplementationType) {
|
|
6
6
|
ViewImplementationType["MICHELSON_STORAGE"] = "michelsonStorageView";
|
|
7
7
|
ViewImplementationType["REST_API_QUERY"] = "restApiQuery";
|
|
8
|
-
})(ViewImplementationType
|
|
9
|
-
//# sourceMappingURL=metadata-interface.js.map
|
|
8
|
+
})(ViewImplementationType || (exports.ViewImplementationType = ViewImplementationType = {}));
|
|
@@ -38,7 +38,7 @@ class MetadataProvider {
|
|
|
38
38
|
throw new errors_1.ProtocolNotSupportedError(uriInfo.protocol);
|
|
39
39
|
}
|
|
40
40
|
const metadata = yield handler.getMetadata(contractAbstraction, uriInfo, context);
|
|
41
|
-
const sha256Hash = tzip16_utils_1.calculateSHA256Hash(metadata);
|
|
41
|
+
const sha256Hash = (0, tzip16_utils_1.calculateSHA256Hash)(metadata);
|
|
42
42
|
let metadataJSON;
|
|
43
43
|
try {
|
|
44
44
|
metadataJSON = JSON.parse(metadata);
|
|
@@ -66,4 +66,3 @@ class MetadataProvider {
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
exports.MetadataProvider = MetadataProvider;
|
|
69
|
-
//# sourceMappingURL=metadata-provider.js.map
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -38,4 +42,3 @@ Object.defineProperty(exports, "VERSION", { enumerable: true, get: function () {
|
|
|
38
42
|
var utils_1 = require("@taquito/utils");
|
|
39
43
|
Object.defineProperty(exports, "bytes2Char", { enumerable: true, get: function () { return utils_1.bytes2Char; } });
|
|
40
44
|
Object.defineProperty(exports, "char2Bytes", { enumerable: true, get: function () { return utils_1.char2Bytes; } });
|
|
41
|
-
//# sourceMappingURL=taquito-tzip16.js.map
|
|
@@ -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, utils_1.bytes2Char(uri), this.context);
|
|
61
|
+
this._metadataEnvelope = yield this._metadataProvider.provideMetadata(this.constractAbstraction, (0, utils_1.bytes2Char)(uri), this.context);
|
|
62
62
|
}
|
|
63
63
|
return this._metadataEnvelope;
|
|
64
64
|
});
|
|
@@ -172,4 +172,3 @@ class Tzip16ContractAbstraction {
|
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
exports.Tzip16ContractAbstraction = Tzip16ContractAbstraction;
|
|
175
|
-
//# sourceMappingURL=tzip16-contract-abstraction.js.map
|
package/dist/lib/tzip16-utils.js
CHANGED
package/dist/lib/version.js
CHANGED
|
@@ -3,7 +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": "17.
|
|
6
|
+
"commitHash": "a908ab176a8c52c025fd43e7acd452415396f54e",
|
|
7
|
+
"version": "17.4.0"
|
|
8
8
|
};
|
|
9
|
-
//# sourceMappingURL=version.js.map
|
|
@@ -164,7 +164,7 @@ class MichelsonStorageView {
|
|
|
164
164
|
result = yield this.rpc.runCode(viewScript);
|
|
165
165
|
}
|
|
166
166
|
catch (error) {
|
|
167
|
-
const failWith = taquito_2.validateAndExtractFailwith(error);
|
|
167
|
+
const failWith = (0, taquito_2.validateAndExtractFailwith)(error);
|
|
168
168
|
throw failWith
|
|
169
169
|
? new taquito_1.ViewSimulationError(`The simulation of the Michelson view failed with: ${JSON.stringify(failWith)}`, this.viewName, failWith, error)
|
|
170
170
|
: error;
|
|
@@ -175,4 +175,3 @@ class MichelsonStorageView {
|
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
exports.MichelsonStorageView = MichelsonStorageView;
|
|
178
|
-
//# sourceMappingURL=michelson-storage-view.js.map
|