@taquito/contracts-library 10.2.0-beta-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.
package/LICENSE ADDED
@@ -0,0 +1,7 @@
1
+ Copyright 2019 ECAD Labs Inc
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,30 @@
1
+ # Taquito Contracts Library package
2
+
3
+ `@taquito/contracts-library` allows developers to specify static data related to contracts (i.e., script and entrypoints) avoiding Taquito to fetch them from the network. The `contracts-library` module provide a `ContractsLibrary` class that can be injected as an extension to a TezosToolkit instance in order to increase dApps performance.
4
+
5
+ ```ts
6
+ import { ContractsLibrary } from '@taquito/contracts-library';
7
+
8
+ const contractsLibrary = new ContractsLibrary();
9
+ contractsLibrary.addContract({
10
+ 'contractAddress1': {
11
+ script: script1, // obtained from Tezos.rpc.getScript('contractAddress1')
12
+ entrypoints: entrypoints1 // obtained from Tezos.rpc.getEntrypoints('contractAddress1')
13
+ },
14
+ 'contractAddress2': {
15
+ script: script2,
16
+ entrypoints: entrypoints2
17
+ }
18
+ })
19
+ Tezos.addExtension(contractsLibrary);
20
+ ```
21
+
22
+ See the top-level [https://github.com/ecadlabs/taquito](https://github.com/ecadlabs/taquito) file for details on reporting issues, contributing and versioning.
23
+
24
+ ## API Documentation
25
+
26
+ TypeDoc style documentation is available on-line [here](https://tezostaquito.io/typedoc/modules/_taquito_http_utils.html)
27
+
28
+ ## Disclaimer
29
+
30
+ THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.InvalidScriptFormatError = exports.InvalidAddressError = void 0;
19
+ var InvalidAddressError = /** @class */ (function (_super) {
20
+ __extends(InvalidAddressError, _super);
21
+ function InvalidAddressError(message) {
22
+ var _this = _super.call(this, message) || this;
23
+ Object.setPrototypeOf(_this, InvalidAddressError.prototype);
24
+ return _this;
25
+ }
26
+ return InvalidAddressError;
27
+ }(Error));
28
+ exports.InvalidAddressError = InvalidAddressError;
29
+ var InvalidScriptFormatError = /** @class */ (function (_super) {
30
+ __extends(InvalidScriptFormatError, _super);
31
+ function InvalidScriptFormatError(message) {
32
+ var _this = _super.call(this, message) || this;
33
+ Object.setPrototypeOf(_this, InvalidScriptFormatError.prototype);
34
+ return _this;
35
+ }
36
+ return InvalidScriptFormatError;
37
+ }(Error));
38
+ exports.InvalidScriptFormatError = InvalidScriptFormatError;
39
+ //# sourceMappingURL=errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;IAAyC,uCAAK;IAC1C,6BAAY,OAAe;QAA3B,YACI,kBAAM,OAAO,CAAC,SAEjB;QADG,MAAM,CAAC,cAAc,CAAC,KAAI,EAAE,mBAAmB,CAAC,SAAS,CAAC,CAAA;;IAC9D,CAAC;IACL,0BAAC;AAAD,CAAC,AALD,CAAyC,KAAK,GAK7C;AALY,kDAAmB;AAOhC;IAA8C,4CAAK;IAC/C,kCAAY,OAAe;QAA3B,YACI,kBAAM,OAAO,CAAC,SAEjB;QADG,MAAM,CAAC,cAAc,CAAC,KAAI,EAAE,wBAAwB,CAAC,SAAS,CAAC,CAAA;;IACnE,CAAC;IACL,+BAAC;AAAD,CAAC,AALD,CAA8C,KAAK,GAKlD;AALY,4DAAwB"}
@@ -0,0 +1,354 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (_) try {
18
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.RpcWrapperContractsLibrary = void 0;
40
+ var rpc_1 = require("@taquito/rpc");
41
+ var RpcWrapperContractsLibrary = /** @class */ (function () {
42
+ function RpcWrapperContractsLibrary(rpc, contractslibrary) {
43
+ this.rpc = rpc;
44
+ this.contractslibrary = contractslibrary;
45
+ }
46
+ RpcWrapperContractsLibrary.prototype.getScript = function (address, _a) {
47
+ var _b = _a === void 0 ? rpc_1.defaultRPCOptions : _a, block = _b.block;
48
+ return __awaiter(this, void 0, void 0, function () {
49
+ var contractData;
50
+ return __generator(this, function (_c) {
51
+ contractData = this.contractslibrary.getContract(address);
52
+ if (contractData) {
53
+ return [2 /*return*/, contractData.script];
54
+ }
55
+ else {
56
+ return [2 /*return*/, this.rpc.getScript(address, { block: block })];
57
+ }
58
+ return [2 /*return*/];
59
+ });
60
+ });
61
+ };
62
+ RpcWrapperContractsLibrary.prototype.getEntrypoints = function (contract, _a) {
63
+ var _b = _a === void 0 ? rpc_1.defaultRPCOptions : _a, block = _b.block;
64
+ return __awaiter(this, void 0, void 0, function () {
65
+ var contractData;
66
+ return __generator(this, function (_c) {
67
+ contractData = this.contractslibrary.getContract(contract);
68
+ if (contractData) {
69
+ return [2 /*return*/, contractData.entrypoints];
70
+ }
71
+ else {
72
+ return [2 /*return*/, this.rpc.getEntrypoints(contract, { block: block })];
73
+ }
74
+ return [2 /*return*/];
75
+ });
76
+ });
77
+ };
78
+ RpcWrapperContractsLibrary.prototype.getBalance = function (address, _a) {
79
+ var _b = _a === void 0 ? rpc_1.defaultRPCOptions : _a, block = _b.block;
80
+ return __awaiter(this, void 0, void 0, function () {
81
+ return __generator(this, function (_c) {
82
+ return [2 /*return*/, this.rpc.getBalance(address, { block: block })];
83
+ });
84
+ });
85
+ };
86
+ RpcWrapperContractsLibrary.prototype.getBlockHash = function (_a) {
87
+ var _b = _a === void 0 ? rpc_1.defaultRPCOptions : _a, block = _b.block;
88
+ return __awaiter(this, void 0, void 0, function () {
89
+ return __generator(this, function (_c) {
90
+ return [2 /*return*/, this.rpc.getBlockHash({ block: block })];
91
+ });
92
+ });
93
+ };
94
+ RpcWrapperContractsLibrary.prototype.getLiveBlocks = function (_a) {
95
+ var _b = _a === void 0 ? rpc_1.defaultRPCOptions : _a, block = _b.block;
96
+ return __awaiter(this, void 0, void 0, function () {
97
+ return __generator(this, function (_c) {
98
+ return [2 /*return*/, this.rpc.getLiveBlocks({ block: block })];
99
+ });
100
+ });
101
+ };
102
+ RpcWrapperContractsLibrary.prototype.getStorage = function (address, _a) {
103
+ var _b = _a === void 0 ? rpc_1.defaultRPCOptions : _a, block = _b.block;
104
+ return __awaiter(this, void 0, void 0, function () {
105
+ return __generator(this, function (_c) {
106
+ return [2 /*return*/, this.rpc.getStorage(address, { block: block })];
107
+ });
108
+ });
109
+ };
110
+ RpcWrapperContractsLibrary.prototype.getContract = function (address, _a) {
111
+ var _b = _a === void 0 ? rpc_1.defaultRPCOptions : _a, block = _b.block;
112
+ return __awaiter(this, void 0, void 0, function () {
113
+ return __generator(this, function (_c) {
114
+ return [2 /*return*/, this.rpc.getContract(address, { block: block })];
115
+ });
116
+ });
117
+ };
118
+ RpcWrapperContractsLibrary.prototype.getManagerKey = function (address, _a) {
119
+ var _b = _a === void 0 ? rpc_1.defaultRPCOptions : _a, block = _b.block;
120
+ return __awaiter(this, void 0, void 0, function () {
121
+ return __generator(this, function (_c) {
122
+ return [2 /*return*/, this.rpc.getManagerKey(address, { block: block })];
123
+ });
124
+ });
125
+ };
126
+ RpcWrapperContractsLibrary.prototype.getDelegate = function (address, _a) {
127
+ var _b = _a === void 0 ? rpc_1.defaultRPCOptions : _a, block = _b.block;
128
+ return __awaiter(this, void 0, void 0, function () {
129
+ return __generator(this, function (_c) {
130
+ return [2 /*return*/, this.rpc.getDelegate(address, { block: block })];
131
+ });
132
+ });
133
+ };
134
+ RpcWrapperContractsLibrary.prototype.getBigMapKey = function (address, key, _a) {
135
+ var _b = _a === void 0 ? rpc_1.defaultRPCOptions : _a, block = _b.block;
136
+ return __awaiter(this, void 0, void 0, function () {
137
+ return __generator(this, function (_c) {
138
+ return [2 /*return*/, this.rpc.getBigMapKey(address, key, { block: block })];
139
+ });
140
+ });
141
+ };
142
+ RpcWrapperContractsLibrary.prototype.getBigMapExpr = function (id, expr, _a) {
143
+ var _b = _a === void 0 ? rpc_1.defaultRPCOptions : _a, block = _b.block;
144
+ return __awaiter(this, void 0, void 0, function () {
145
+ return __generator(this, function (_c) {
146
+ return [2 /*return*/, this.rpc.getBigMapExpr(id, expr, { block: block })];
147
+ });
148
+ });
149
+ };
150
+ RpcWrapperContractsLibrary.prototype.getDelegates = function (address, _a) {
151
+ var _b = _a === void 0 ? rpc_1.defaultRPCOptions : _a, block = _b.block;
152
+ return __awaiter(this, void 0, void 0, function () {
153
+ return __generator(this, function (_c) {
154
+ return [2 /*return*/, this.rpc.getDelegates(address, { block: block })];
155
+ });
156
+ });
157
+ };
158
+ RpcWrapperContractsLibrary.prototype.getConstants = function (_a) {
159
+ var _b = _a === void 0 ? rpc_1.defaultRPCOptions : _a, block = _b.block;
160
+ return __awaiter(this, void 0, void 0, function () {
161
+ return __generator(this, function (_c) {
162
+ return [2 /*return*/, this.rpc.getConstants({ block: block })];
163
+ });
164
+ });
165
+ };
166
+ RpcWrapperContractsLibrary.prototype.getBlock = function (_a) {
167
+ var _b = _a === void 0 ? rpc_1.defaultRPCOptions : _a, block = _b.block;
168
+ return __awaiter(this, void 0, void 0, function () {
169
+ return __generator(this, function (_c) {
170
+ return [2 /*return*/, this.rpc.getBlock({ block: block })];
171
+ });
172
+ });
173
+ };
174
+ RpcWrapperContractsLibrary.prototype.getBlockHeader = function (_a) {
175
+ var _b = _a === void 0 ? rpc_1.defaultRPCOptions : _a, block = _b.block;
176
+ return __awaiter(this, void 0, void 0, function () {
177
+ return __generator(this, function (_c) {
178
+ return [2 /*return*/, this.rpc.getBlockHeader({ block: block })];
179
+ });
180
+ });
181
+ };
182
+ RpcWrapperContractsLibrary.prototype.getBlockMetadata = function (_a) {
183
+ var _b = _a === void 0 ? rpc_1.defaultRPCOptions : _a, block = _b.block;
184
+ return __awaiter(this, void 0, void 0, function () {
185
+ return __generator(this, function (_c) {
186
+ return [2 /*return*/, this.rpc.getBlockMetadata({ block: block })];
187
+ });
188
+ });
189
+ };
190
+ RpcWrapperContractsLibrary.prototype.getBakingRights = function (args, _a) {
191
+ var _b = _a === void 0 ? rpc_1.defaultRPCOptions : _a, block = _b.block;
192
+ return __awaiter(this, void 0, void 0, function () {
193
+ return __generator(this, function (_c) {
194
+ return [2 /*return*/, this.rpc.getBakingRights(args, { block: block })];
195
+ });
196
+ });
197
+ };
198
+ RpcWrapperContractsLibrary.prototype.getEndorsingRights = function (args, _a) {
199
+ var _b = _a === void 0 ? rpc_1.defaultRPCOptions : _a, block = _b.block;
200
+ return __awaiter(this, void 0, void 0, function () {
201
+ return __generator(this, function (_c) {
202
+ return [2 /*return*/, this.rpc.getEndorsingRights(args, { block: block })];
203
+ });
204
+ });
205
+ };
206
+ RpcWrapperContractsLibrary.prototype.getBallotList = function (_a) {
207
+ var _b = _a === void 0 ? rpc_1.defaultRPCOptions : _a, block = _b.block;
208
+ return __awaiter(this, void 0, void 0, function () {
209
+ return __generator(this, function (_c) {
210
+ return [2 /*return*/, this.rpc.getBallotList({ block: block })];
211
+ });
212
+ });
213
+ };
214
+ RpcWrapperContractsLibrary.prototype.getBallots = function (_a) {
215
+ var _b = _a === void 0 ? rpc_1.defaultRPCOptions : _a, block = _b.block;
216
+ return __awaiter(this, void 0, void 0, function () {
217
+ return __generator(this, function (_c) {
218
+ return [2 /*return*/, this.rpc.getBallots({ block: block })];
219
+ });
220
+ });
221
+ };
222
+ RpcWrapperContractsLibrary.prototype.getCurrentPeriodKind = function (_a) {
223
+ var _b = _a === void 0 ? rpc_1.defaultRPCOptions : _a, block = _b.block;
224
+ return __awaiter(this, void 0, void 0, function () {
225
+ return __generator(this, function (_c) {
226
+ return [2 /*return*/, this.rpc.getCurrentPeriodKind({ block: block })];
227
+ });
228
+ });
229
+ };
230
+ RpcWrapperContractsLibrary.prototype.getCurrentProposal = function (_a) {
231
+ var _b = _a === void 0 ? rpc_1.defaultRPCOptions : _a, block = _b.block;
232
+ return __awaiter(this, void 0, void 0, function () {
233
+ return __generator(this, function (_c) {
234
+ return [2 /*return*/, this.rpc.getCurrentProposal({ block: block })];
235
+ });
236
+ });
237
+ };
238
+ RpcWrapperContractsLibrary.prototype.getCurrentQuorum = function (_a) {
239
+ var _b = _a === void 0 ? rpc_1.defaultRPCOptions : _a, block = _b.block;
240
+ return __awaiter(this, void 0, void 0, function () {
241
+ return __generator(this, function (_c) {
242
+ return [2 /*return*/, this.rpc.getCurrentQuorum({ block: block })];
243
+ });
244
+ });
245
+ };
246
+ RpcWrapperContractsLibrary.prototype.getVotesListings = function (_a) {
247
+ var _b = _a === void 0 ? rpc_1.defaultRPCOptions : _a, block = _b.block;
248
+ return __awaiter(this, void 0, void 0, function () {
249
+ return __generator(this, function (_c) {
250
+ return [2 /*return*/, this.rpc.getVotesListings({ block: block })];
251
+ });
252
+ });
253
+ };
254
+ RpcWrapperContractsLibrary.prototype.getProposals = function (_a) {
255
+ var _b = _a === void 0 ? rpc_1.defaultRPCOptions : _a, block = _b.block;
256
+ return __awaiter(this, void 0, void 0, function () {
257
+ return __generator(this, function (_c) {
258
+ return [2 /*return*/, this.rpc.getProposals({ block: block })];
259
+ });
260
+ });
261
+ };
262
+ RpcWrapperContractsLibrary.prototype.forgeOperations = function (data, _a) {
263
+ var _b = _a === void 0 ? rpc_1.defaultRPCOptions : _a, block = _b.block;
264
+ return __awaiter(this, void 0, void 0, function () {
265
+ return __generator(this, function (_c) {
266
+ return [2 /*return*/, this.rpc.forgeOperations(data, { block: block })];
267
+ });
268
+ });
269
+ };
270
+ RpcWrapperContractsLibrary.prototype.injectOperation = function (signedOpBytes) {
271
+ return __awaiter(this, void 0, void 0, function () {
272
+ return __generator(this, function (_a) {
273
+ return [2 /*return*/, this.rpc.injectOperation(signedOpBytes)];
274
+ });
275
+ });
276
+ };
277
+ RpcWrapperContractsLibrary.prototype.packData = function (data, _a) {
278
+ var _b = _a === void 0 ? rpc_1.defaultRPCOptions : _a, block = _b.block;
279
+ return __awaiter(this, void 0, void 0, function () {
280
+ return __generator(this, function (_c) {
281
+ return [2 /*return*/, this.rpc.packData(data, { block: block })];
282
+ });
283
+ });
284
+ };
285
+ RpcWrapperContractsLibrary.prototype.preapplyOperations = function (ops, _a) {
286
+ var _b = _a === void 0 ? rpc_1.defaultRPCOptions : _a, block = _b.block;
287
+ return __awaiter(this, void 0, void 0, function () {
288
+ return __generator(this, function (_c) {
289
+ return [2 /*return*/, this.rpc.preapplyOperations(ops, { block: block })];
290
+ });
291
+ });
292
+ };
293
+ RpcWrapperContractsLibrary.prototype.runOperation = function (op, _a) {
294
+ var _b = _a === void 0 ? rpc_1.defaultRPCOptions : _a, block = _b.block;
295
+ return __awaiter(this, void 0, void 0, function () {
296
+ return __generator(this, function (_c) {
297
+ return [2 /*return*/, this.rpc.runOperation(op, { block: block })];
298
+ });
299
+ });
300
+ };
301
+ RpcWrapperContractsLibrary.prototype.runCode = function (code, _a) {
302
+ var _b = _a === void 0 ? rpc_1.defaultRPCOptions : _a, block = _b.block;
303
+ return __awaiter(this, void 0, void 0, function () {
304
+ return __generator(this, function (_c) {
305
+ return [2 /*return*/, this.rpc.runCode(code, { block: block })];
306
+ });
307
+ });
308
+ };
309
+ RpcWrapperContractsLibrary.prototype.getChainId = function () {
310
+ return __awaiter(this, void 0, void 0, function () {
311
+ return __generator(this, function (_a) {
312
+ return [2 /*return*/, this.rpc.getChainId()];
313
+ });
314
+ });
315
+ };
316
+ RpcWrapperContractsLibrary.prototype.getRpcUrl = function () {
317
+ return this.rpc.getRpcUrl();
318
+ };
319
+ RpcWrapperContractsLibrary.prototype.getCurrentPeriod = function (_a) {
320
+ var _b = _a === void 0 ? rpc_1.defaultRPCOptions : _a, block = _b.block;
321
+ return __awaiter(this, void 0, void 0, function () {
322
+ return __generator(this, function (_c) {
323
+ return [2 /*return*/, this.rpc.getCurrentPeriod({ block: block })];
324
+ });
325
+ });
326
+ };
327
+ RpcWrapperContractsLibrary.prototype.getSuccessorPeriod = function (_a) {
328
+ var _b = _a === void 0 ? rpc_1.defaultRPCOptions : _a, block = _b.block;
329
+ return __awaiter(this, void 0, void 0, function () {
330
+ return __generator(this, function (_c) {
331
+ return [2 /*return*/, this.rpc.getSuccessorPeriod({ block: block })];
332
+ });
333
+ });
334
+ };
335
+ RpcWrapperContractsLibrary.prototype.getSaplingDiffById = function (id, _a) {
336
+ var _b = _a === void 0 ? rpc_1.defaultRPCOptions : _a, block = _b.block;
337
+ return __awaiter(this, void 0, void 0, function () {
338
+ return __generator(this, function (_c) {
339
+ return [2 /*return*/, this.rpc.getSaplingDiffById(id, { block: block })];
340
+ });
341
+ });
342
+ };
343
+ RpcWrapperContractsLibrary.prototype.getSaplingDiffByContract = function (contract, _a) {
344
+ var _b = _a === void 0 ? rpc_1.defaultRPCOptions : _a, block = _b.block;
345
+ return __awaiter(this, void 0, void 0, function () {
346
+ return __generator(this, function (_c) {
347
+ return [2 /*return*/, this.rpc.getSaplingDiffByContract(contract, { block: block })];
348
+ });
349
+ });
350
+ };
351
+ return RpcWrapperContractsLibrary;
352
+ }());
353
+ exports.RpcWrapperContractsLibrary = RpcWrapperContractsLibrary;
354
+ //# sourceMappingURL=rpc-wrapper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rpc-wrapper.js","sourceRoot":"","sources":["../../src/rpc-wrapper.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,oCAqCsB;AAGtB;IACI,oCAAoB,GAAuB,EAAU,g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AC,EAAC;;;KACjE;IACL,iCAAC;AAAD,CAAC,AA9HD,IA8HC;AA9HY,gEAA0B"}
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+ /**
3
+ * @packageDocumentation
4
+ * @module @taquito/contracts-library
5
+ */
6
+ var __assign = (this && this.__assign) || function () {
7
+ __assign = Object.assign || function(t) {
8
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
9
+ s = arguments[i];
10
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
+ t[p] = s[p];
12
+ }
13
+ return t;
14
+ };
15
+ return __assign.apply(this, arguments);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.ContractsLibrary = void 0;
19
+ var utils_1 = require("@taquito/utils");
20
+ var errors_1 = require("./errors");
21
+ var rpc_wrapper_1 = require("./rpc-wrapper");
22
+ /**
23
+ * @description Allows to specify static data related to contracts (i.e., script and entrypoints) avoiding Taquito to fetch them from the network.
24
+ *
25
+ * @example
26
+ * ```
27
+ * import { ContractsLibrary } from '@taquito/contracts-library';
28
+ * import { TezosToolkit } from '@taquito/taquito';
29
+ *
30
+ * const Tezos = new TezosToolkit('rpcUrl');
31
+ * const contractsLibrary = new ContractsLibrary();
32
+ *
33
+ * contractsLibrary.addContract({
34
+ * ['contractAddress1']: {
35
+ * script: script1, // obtained from Tezos.rpc.getScript('contractAddress1')
36
+ * entrypoints: entrypoints1 // obtained from Tezos.rpc.getEntrypoints('contractAddress1')
37
+ * },
38
+ * // load more contracts
39
+ * });
40
+ *
41
+ * Tezos.addExtension(contractsLibrary);
42
+ * ```
43
+ *
44
+ */
45
+ var ContractsLibrary = /** @class */ (function () {
46
+ function ContractsLibrary() {
47
+ this._contractsLibrary = {};
48
+ }
49
+ /**
50
+ * @description Saves one of several contract in the library
51
+ *
52
+ * @param contract is an object where the key is a contract address and the value is an object having a script and an entrypoints properties.
53
+ * Note: the expected format for the script and entrypoints properties are the same as the one respectivlely returned by
54
+ * `TezosToolkit.rpc.getScript` and `TezosToolkit.rpc.getEntrypoints`
55
+ *
56
+ */
57
+ ContractsLibrary.prototype.addContract = function (contract) {
58
+ var _a;
59
+ for (var contractAddress in contract) {
60
+ this.validateContractAddress(contractAddress);
61
+ this.validateContractScriptFormat(contract[contractAddress].script, contractAddress);
62
+ Object.assign(this._contractsLibrary, (_a = {}, _a[contractAddress] = __assign({}, contract[contractAddress]), _a));
63
+ }
64
+ };
65
+ ContractsLibrary.prototype.getContract = function (contractAddress) {
66
+ return this._contractsLibrary[contractAddress];
67
+ };
68
+ ContractsLibrary.prototype.configureContext = function (context) {
69
+ var _this = this;
70
+ context.registerProviderDecorator(function (context) {
71
+ context.rpc = new rpc_wrapper_1.RpcWrapperContractsLibrary(context.rpc, _this);
72
+ return context;
73
+ });
74
+ };
75
+ ContractsLibrary.prototype.validateContractAddress = function (address) {
76
+ if ((0, utils_1.validateAddress)(address) !== utils_1.ValidationResult.VALID) {
77
+ throw new errors_1.InvalidAddressError("Address is invalid: " + address);
78
+ }
79
+ };
80
+ ContractsLibrary.prototype.validateContractScriptFormat = function (script, address) {
81
+ if (!script.code) {
82
+ throw new errors_1.InvalidScriptFormatError("An invalid script property has been provided for " + address + ". The script property can be retrieved from TezosToolkit.rpc.getScript(" + address + "). Invalid script: " + script);
83
+ }
84
+ };
85
+ return ContractsLibrary;
86
+ }());
87
+ exports.ContractsLibrary = ContractsLibrary;
88
+ //# sourceMappingURL=taquito-contracts-library.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taquito-contracts-library.js","sourceRoot":"","sources":["../../src/taquito-contracts-library.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;AAIH,wCAAmE;AACnE,mCAAyE;AACzE,6CAA2D;AAM3D;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH;IAAA;QACS,sBAAiB,GAAkB,EAAE,CAAC;IAwC/C,CAAC;IAtCA;;;;;;;OAOM;IACN,sCAAW,GAAX,UAAY,QAAuB;;QAClC,KAAK,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OT MANUALLY EDIT OR CHECKIN!
5
+ /* tslint:disable */
6
+ exports.VERSION = {
7
+ "commitHash": "f22bf79e27753d49f20eb84cc1b05f7478767f05",
8
+ "version": "10.2.0-beta-RC.0"
9
+ };
10
+ /* tslint:enable */
11
+ //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";;;AACA,2EAA2E;AAC3E,oBAAoB;AACP,QAAA,OAAO,GAAG;IACnB,YAAY,EAAE,0CAA0C;IACxD,SAAS,EAAE,kBAAkB;CAChC,CAAC;AACF,mBAAmB"}