@taquito/local-forging 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.
Files changed (48) hide show
  1. package/dist/lib/codec.js +77 -78
  2. package/dist/lib/constants.js +2 -3
  3. package/dist/lib/decoder.js +25 -26
  4. package/dist/lib/encoder.js +23 -24
  5. package/dist/lib/errors.js +0 -1
  6. package/dist/lib/interface.js +0 -1
  7. package/dist/lib/michelson/codec.js +43 -44
  8. package/dist/lib/protocols.js +1 -2
  9. package/dist/lib/schema/operation.js +1 -2
  10. package/dist/lib/taquito-local-forging.js +9 -6
  11. package/dist/lib/uint8array-consumer.js +4 -5
  12. package/dist/lib/utils.js +0 -1
  13. package/dist/lib/validator.js +0 -1
  14. package/dist/lib/version.js +2 -3
  15. package/dist/taquito-local-forging.es6.js +1586 -1586
  16. package/dist/taquito-local-forging.es6.js.map +1 -1
  17. package/dist/taquito-local-forging.umd.js +1586 -1592
  18. package/dist/taquito-local-forging.umd.js.map +1 -1
  19. package/dist/types/codec.d.ts +69 -69
  20. package/dist/types/constants.d.ts +74 -74
  21. package/dist/types/decoder.d.ts +5 -5
  22. package/dist/types/encoder.d.ts +4 -4
  23. package/dist/types/errors.d.ts +100 -100
  24. package/dist/types/interface.d.ts +9 -9
  25. package/dist/types/michelson/codec.d.ts +49 -49
  26. package/dist/types/protocols.d.ts +20 -20
  27. package/dist/types/schema/operation.d.ts +190 -190
  28. package/dist/types/taquito-local-forging.d.ts +26 -26
  29. package/dist/types/uint8array-consumer.d.ts +10 -10
  30. package/dist/types/utils.d.ts +3 -3
  31. package/dist/types/validator.d.ts +13 -13
  32. package/dist/types/version.d.ts +4 -4
  33. package/package.json +31 -33
  34. package/signature.json +3 -5
  35. package/dist/lib/codec.js.map +0 -1
  36. package/dist/lib/constants.js.map +0 -1
  37. package/dist/lib/decoder.js.map +0 -1
  38. package/dist/lib/encoder.js.map +0 -1
  39. package/dist/lib/errors.js.map +0 -1
  40. package/dist/lib/interface.js.map +0 -1
  41. package/dist/lib/michelson/codec.js.map +0 -1
  42. package/dist/lib/protocols.js.map +0 -1
  43. package/dist/lib/schema/operation.js.map +0 -1
  44. package/dist/lib/taquito-local-forging.js.map +0 -1
  45. package/dist/lib/uint8array-consumer.js.map +0 -1
  46. package/dist/lib/utils.js.map +0 -1
  47. package/dist/lib/validator.js.map +0 -1
  48. package/dist/lib/version.js.map +0 -1
package/dist/lib/codec.js CHANGED
@@ -12,52 +12,52 @@ const utils_2 = require("./utils");
12
12
  const core_1 = require("@taquito/core");
13
13
  // https://tezos.gitlab.io/shell/p2p_api.html specifies data types and structure for forging
14
14
  const prefixEncoder = (prefix) => (str) => {
15
- return utils_1.buf2hex(Buffer.from(utils_1.b58cdecode(str, utils_1.prefix[prefix])));
15
+ return (0, utils_1.buf2hex)(Buffer.from((0, utils_1.b58cdecode)(str, utils_1.prefix[prefix])));
16
16
  };
17
17
  exports.prefixEncoder = prefixEncoder;
18
18
  const prefixDecoder = (pre) => (str) => {
19
19
  const val = str.consume(utils_1.prefixLength[pre]);
20
- return utils_1.b58cencode(val, utils_1.prefix[pre]);
20
+ return (0, utils_1.b58cencode)(val, utils_1.prefix[pre]);
21
21
  };
22
22
  exports.prefixDecoder = prefixDecoder;
23
- exports.tz1Decoder = exports.prefixDecoder(utils_1.Prefix.TZ1);
24
- exports.branchDecoder = exports.prefixDecoder(utils_1.Prefix.B);
23
+ exports.tz1Decoder = (0, exports.prefixDecoder)(utils_1.Prefix.TZ1);
24
+ exports.branchDecoder = (0, exports.prefixDecoder)(utils_1.Prefix.B);
25
25
  const pkhDecoder = (val) => {
26
26
  const prefix = val.consume(1);
27
27
  if (prefix[0] === 0x00) {
28
- return exports.prefixDecoder(utils_1.Prefix.TZ1)(val);
28
+ return (0, exports.prefixDecoder)(utils_1.Prefix.TZ1)(val);
29
29
  }
30
30
  else if (prefix[0] === 0x01) {
31
- return exports.prefixDecoder(utils_1.Prefix.TZ2)(val);
31
+ return (0, exports.prefixDecoder)(utils_1.Prefix.TZ2)(val);
32
32
  }
33
33
  else if (prefix[0] === 0x02) {
34
- return exports.prefixDecoder(utils_1.Prefix.TZ3)(val);
34
+ return (0, exports.prefixDecoder)(utils_1.Prefix.TZ3)(val);
35
35
  }
36
36
  };
37
37
  exports.pkhDecoder = pkhDecoder;
38
- exports.branchEncoder = exports.prefixEncoder(utils_1.Prefix.B);
39
- exports.tz1Encoder = exports.prefixEncoder(utils_1.Prefix.TZ1);
38
+ exports.branchEncoder = (0, exports.prefixEncoder)(utils_1.Prefix.B);
39
+ exports.tz1Encoder = (0, exports.prefixEncoder)(utils_1.Prefix.TZ1);
40
40
  const boolEncoder = (bool) => (bool ? 'ff' : '00');
41
41
  exports.boolEncoder = boolEncoder;
42
42
  const proposalEncoder = (proposal) => {
43
- return exports.prefixEncoder(utils_1.Prefix.P)(proposal);
43
+ return (0, exports.prefixEncoder)(utils_1.Prefix.P)(proposal);
44
44
  };
45
45
  exports.proposalEncoder = proposalEncoder;
46
46
  const proposalDecoder = (proposal) => {
47
- return exports.prefixDecoder(utils_1.Prefix.P)(proposal);
47
+ return (0, exports.prefixDecoder)(utils_1.Prefix.P)(proposal);
48
48
  };
49
49
  exports.proposalDecoder = proposalDecoder;
50
50
  const proposalsDecoder = (proposal) => {
51
51
  const proposals = [];
52
52
  proposal.consume(4);
53
53
  while (proposal.length() > 0) {
54
- proposals.push(exports.proposalDecoder(proposal));
54
+ proposals.push((0, exports.proposalDecoder)(proposal));
55
55
  }
56
56
  return proposals;
57
57
  };
58
58
  exports.proposalsDecoder = proposalsDecoder;
59
59
  const proposalsEncoder = (proposals) => {
60
- return utils_2.pad(32 * proposals.length) + proposals.map((x) => exports.proposalEncoder(x)).join('');
60
+ return (0, utils_2.pad)(32 * proposals.length) + proposals.map((x) => (0, exports.proposalEncoder)(x)).join('');
61
61
  };
62
62
  exports.proposalsEncoder = proposalsEncoder;
63
63
  const ballotEncoder = (ballot) => {
@@ -112,10 +112,10 @@ const pvmKindDecoder = (pvm) => {
112
112
  exports.pvmKindDecoder = pvmKindDecoder;
113
113
  const delegateEncoder = (val) => {
114
114
  if (val) {
115
- return exports.boolEncoder(true) + exports.pkhEncoder(val);
115
+ return (0, exports.boolEncoder)(true) + (0, exports.pkhEncoder)(val);
116
116
  }
117
117
  else {
118
- return exports.boolEncoder(false);
118
+ return (0, exports.boolEncoder)(false);
119
119
  }
120
120
  };
121
121
  exports.delegateEncoder = delegateEncoder;
@@ -163,9 +163,9 @@ const boolDecoder = (val) => {
163
163
  };
164
164
  exports.boolDecoder = boolDecoder;
165
165
  const delegateDecoder = (val) => {
166
- const hasDelegate = exports.boolDecoder(val);
166
+ const hasDelegate = (0, exports.boolDecoder)(val);
167
167
  if (hasDelegate) {
168
- return exports.pkhDecoder(val);
168
+ return (0, exports.pkhDecoder)(val);
169
169
  }
170
170
  };
171
171
  exports.delegateDecoder = delegateDecoder;
@@ -173,15 +173,15 @@ const pkhEncoder = (val) => {
173
173
  const pubkeyPrefix = val.substring(0, 3);
174
174
  switch (pubkeyPrefix) {
175
175
  case utils_1.Prefix.TZ1:
176
- return '00' + exports.prefixEncoder(utils_1.Prefix.TZ1)(val);
176
+ return '00' + (0, exports.prefixEncoder)(utils_1.Prefix.TZ1)(val);
177
177
  case utils_1.Prefix.TZ2:
178
- return '01' + exports.prefixEncoder(utils_1.Prefix.TZ2)(val);
178
+ return '01' + (0, exports.prefixEncoder)(utils_1.Prefix.TZ2)(val);
179
179
  case utils_1.Prefix.TZ3:
180
- return '02' + exports.prefixEncoder(utils_1.Prefix.TZ3)(val);
180
+ return '02' + (0, exports.prefixEncoder)(utils_1.Prefix.TZ3)(val);
181
181
  case utils_1.Prefix.TZ4:
182
- return '03' + exports.prefixEncoder(utils_1.Prefix.TZ4)(val);
182
+ return '03' + (0, exports.prefixEncoder)(utils_1.Prefix.TZ4)(val);
183
183
  default:
184
- throw new utils_1.InvalidKeyHashError(val, utils_1.invalidDetail(utils_1.ValidationResult.NO_PREFIX_MATCHED) +
184
+ throw new utils_1.InvalidKeyHashError(val, (0, utils_1.invalidDetail)(utils_1.ValidationResult.NO_PREFIX_MATCHED) +
185
185
  ` expecting one for the following "${utils_1.Prefix.TZ1}", "${utils_1.Prefix.TZ2}", "${utils_1.Prefix.TZ3}" or "${utils_1.Prefix.TZ4}".`);
186
186
  }
187
187
  };
@@ -190,13 +190,13 @@ const publicKeyEncoder = (val) => {
190
190
  const pubkeyPrefix = val.substring(0, 4);
191
191
  switch (pubkeyPrefix) {
192
192
  case utils_1.Prefix.EDPK:
193
- return '00' + exports.prefixEncoder(utils_1.Prefix.EDPK)(val);
193
+ return '00' + (0, exports.prefixEncoder)(utils_1.Prefix.EDPK)(val);
194
194
  case utils_1.Prefix.SPPK:
195
- return '01' + exports.prefixEncoder(utils_1.Prefix.SPPK)(val);
195
+ return '01' + (0, exports.prefixEncoder)(utils_1.Prefix.SPPK)(val);
196
196
  case utils_1.Prefix.P2PK:
197
- return '02' + exports.prefixEncoder(utils_1.Prefix.P2PK)(val);
197
+ return '02' + (0, exports.prefixEncoder)(utils_1.Prefix.P2PK)(val);
198
198
  default:
199
- throw new utils_1.InvalidPublicKeyError(val, utils_1.invalidDetail(utils_1.ValidationResult.NO_PREFIX_MATCHED) +
199
+ throw new utils_1.InvalidPublicKeyError(val, (0, utils_1.invalidDetail)(utils_1.ValidationResult.NO_PREFIX_MATCHED) +
200
200
  ` expecting one of the following '${utils_1.Prefix.EDPK}', '${utils_1.Prefix.SPPK}', '${utils_1.Prefix.P2PK}' or '${utils_1.Prefix.BLPK}'.`);
201
201
  }
202
202
  };
@@ -208,59 +208,59 @@ const addressEncoder = (val) => {
208
208
  case utils_1.Prefix.TZ2:
209
209
  case utils_1.Prefix.TZ3:
210
210
  case utils_1.Prefix.TZ4:
211
- return '00' + exports.pkhEncoder(val);
211
+ return '00' + (0, exports.pkhEncoder)(val);
212
212
  case utils_1.Prefix.KT1:
213
- return '01' + exports.prefixEncoder(utils_1.Prefix.KT1)(val) + '00';
213
+ return '01' + (0, exports.prefixEncoder)(utils_1.Prefix.KT1)(val) + '00';
214
214
  default:
215
- throw new core_1.InvalidAddressError(val, utils_1.invalidDetail(utils_1.ValidationResult.NO_PREFIX_MATCHED) +
215
+ throw new core_1.InvalidAddressError(val, (0, utils_1.invalidDetail)(utils_1.ValidationResult.NO_PREFIX_MATCHED) +
216
216
  ` expecting one of the following prefix '${utils_1.Prefix.TZ1}', ${utils_1.Prefix.TZ2}', '${utils_1.Prefix.TZ3}', '${utils_1.Prefix.TZ4}' or '${utils_1.Prefix.KT1}'.`);
217
217
  }
218
218
  };
219
219
  exports.addressEncoder = addressEncoder;
220
220
  const smartRollupAddressEncoder = (val) => {
221
221
  if (val.substring(0, 3) !== utils_1.Prefix.SR1) {
222
- throw new errors_1.InvalidSmartRollupAddressError(val, utils_1.invalidDetail(utils_1.ValidationResult.NO_PREFIX_MATCHED) + ` expecting prefix '${utils_1.Prefix.SR1}'.`);
222
+ throw new errors_1.InvalidSmartRollupAddressError(val, (0, utils_1.invalidDetail)(utils_1.ValidationResult.NO_PREFIX_MATCHED) + ` expecting prefix '${utils_1.Prefix.SR1}'.`);
223
223
  }
224
- return exports.prefixEncoder(utils_1.Prefix.SR1)(val);
224
+ return (0, exports.prefixEncoder)(utils_1.Prefix.SR1)(val);
225
225
  };
226
226
  exports.smartRollupAddressEncoder = smartRollupAddressEncoder;
227
227
  const smartContractAddressEncoder = (val) => {
228
228
  const prefix = val.substring(0, 3);
229
229
  if (prefix === utils_1.Prefix.KT1) {
230
- return '01' + exports.prefixEncoder(utils_1.Prefix.KT1)(val) + '00';
230
+ return '01' + (0, exports.prefixEncoder)(utils_1.Prefix.KT1)(val) + '00';
231
231
  }
232
- throw new core_1.InvalidContractAddressError(val, utils_1.invalidDetail(utils_1.ValidationResult.NO_PREFIX_MATCHED) + ` expecting prefix '${utils_1.Prefix.KT1}'.`);
232
+ throw new core_1.InvalidContractAddressError(val, (0, utils_1.invalidDetail)(utils_1.ValidationResult.NO_PREFIX_MATCHED) + ` expecting prefix '${utils_1.Prefix.KT1}'.`);
233
233
  };
234
234
  exports.smartContractAddressEncoder = smartContractAddressEncoder;
235
235
  const publicKeyDecoder = (val) => {
236
236
  const preamble = val.consume(1);
237
237
  switch (preamble[0]) {
238
238
  case 0x00:
239
- return exports.prefixDecoder(utils_1.Prefix.EDPK)(val);
239
+ return (0, exports.prefixDecoder)(utils_1.Prefix.EDPK)(val);
240
240
  case 0x01:
241
- return exports.prefixDecoder(utils_1.Prefix.SPPK)(val);
241
+ return (0, exports.prefixDecoder)(utils_1.Prefix.SPPK)(val);
242
242
  case 0x02:
243
- return exports.prefixDecoder(utils_1.Prefix.P2PK)(val);
243
+ return (0, exports.prefixDecoder)(utils_1.Prefix.P2PK)(val);
244
244
  default:
245
- throw new utils_1.InvalidPublicKeyError(val.toString(), utils_1.invalidDetail(utils_1.ValidationResult.NO_PREFIX_MATCHED));
245
+ throw new utils_1.InvalidPublicKeyError(val.toString(), (0, utils_1.invalidDetail)(utils_1.ValidationResult.NO_PREFIX_MATCHED));
246
246
  }
247
247
  };
248
248
  exports.publicKeyDecoder = publicKeyDecoder;
249
249
  const smartRollupCommitmentHashEncoder = (val) => {
250
250
  const prefix = val.substring(0, 4);
251
251
  if (prefix === utils_1.Prefix.SRC1) {
252
- return exports.prefixEncoder(utils_1.Prefix.SRC1)(val);
252
+ return (0, exports.prefixEncoder)(utils_1.Prefix.SRC1)(val);
253
253
  }
254
- throw new errors_1.InvalidSmartRollupCommitmentHashError(val, utils_1.invalidDetail(utils_1.ValidationResult.NO_PREFIX_MATCHED) + ` expecting prefix '${utils_1.Prefix.SRC1}'`);
254
+ throw new errors_1.InvalidSmartRollupCommitmentHashError(val, (0, utils_1.invalidDetail)(utils_1.ValidationResult.NO_PREFIX_MATCHED) + ` expecting prefix '${utils_1.Prefix.SRC1}'`);
255
255
  };
256
256
  exports.smartRollupCommitmentHashEncoder = smartRollupCommitmentHashEncoder;
257
257
  const addressDecoder = (val) => {
258
258
  const preamble = val.consume(1);
259
259
  switch (preamble[0]) {
260
260
  case 0x00:
261
- return exports.pkhDecoder(val);
261
+ return (0, exports.pkhDecoder)(val);
262
262
  case 0x01: {
263
- const address = exports.prefixDecoder(utils_1.Prefix.KT1)(val);
263
+ const address = (0, exports.prefixDecoder)(utils_1.Prefix.KT1)(val);
264
264
  val.consume(1);
265
265
  return address;
266
266
  }
@@ -270,9 +270,9 @@ const addressDecoder = (val) => {
270
270
  };
271
271
  exports.addressDecoder = addressDecoder;
272
272
  const smartRollupAddressDecoder = (val) => {
273
- const address = exports.prefixDecoder(utils_1.Prefix.SR1)(val);
273
+ const address = (0, exports.prefixDecoder)(utils_1.Prefix.SR1)(val);
274
274
  if (address.substring(0, 3) !== utils_1.Prefix.SR1) {
275
- throw new errors_1.InvalidSmartRollupAddressError(address, utils_1.invalidDetail(utils_1.ValidationResult.NO_PREFIX_MATCHED) + ` expecting prefix '${utils_1.Prefix.SR1}'.`);
275
+ throw new errors_1.InvalidSmartRollupAddressError(address, (0, utils_1.invalidDetail)(utils_1.ValidationResult.NO_PREFIX_MATCHED) + ` expecting prefix '${utils_1.Prefix.SR1}'.`);
276
276
  }
277
277
  return address;
278
278
  };
@@ -280,17 +280,17 @@ exports.smartRollupAddressDecoder = smartRollupAddressDecoder;
280
280
  const smartContractAddressDecoder = (val) => {
281
281
  const preamble = val.consume(1);
282
282
  if (preamble[0] === 0x01) {
283
- const scAddress = exports.prefixDecoder(utils_1.Prefix.KT1)(val);
283
+ const scAddress = (0, exports.prefixDecoder)(utils_1.Prefix.KT1)(val);
284
284
  val.consume(1);
285
285
  return scAddress;
286
286
  }
287
- throw new core_1.InvalidContractAddressError(val.toString(), utils_1.invalidDetail(utils_1.ValidationResult.NO_PREFIX_MATCHED));
287
+ throw new core_1.InvalidContractAddressError(val.toString(), (0, utils_1.invalidDetail)(utils_1.ValidationResult.NO_PREFIX_MATCHED));
288
288
  };
289
289
  exports.smartContractAddressDecoder = smartContractAddressDecoder;
290
290
  const smartRollupCommitmentHashDecoder = (val) => {
291
- const address = exports.prefixDecoder(utils_1.Prefix.SRC1)(val);
291
+ const address = (0, exports.prefixDecoder)(utils_1.Prefix.SRC1)(val);
292
292
  if (address.substring(0, 4) !== utils_1.Prefix.SRC1) {
293
- throw new errors_1.InvalidSmartRollupCommitmentHashError(address, utils_1.invalidDetail(utils_1.ValidationResult.NO_PREFIX_MATCHED) + ` expecting prefix '${utils_1.Prefix.SRC1}'`);
293
+ throw new errors_1.InvalidSmartRollupCommitmentHashError(address, (0, utils_1.invalidDetail)(utils_1.ValidationResult.NO_PREFIX_MATCHED) + ` expecting prefix '${utils_1.Prefix.SRC1}'`);
294
294
  }
295
295
  return address;
296
296
  };
@@ -336,12 +336,12 @@ const zarithDecoder = (n) => {
336
336
  };
337
337
  exports.zarithDecoder = zarithDecoder;
338
338
  const entrypointDecoder = (value) => {
339
- const preamble = utils_2.pad(value.consume(1)[0], 2);
339
+ const preamble = (0, utils_2.pad)(value.consume(1)[0], 2);
340
340
  if (preamble in constants_1.entrypointMapping) {
341
341
  return constants_1.entrypointMapping[preamble];
342
342
  }
343
343
  else {
344
- const entry = codec_1.extractRequiredLen(value, 1);
344
+ const entry = (0, codec_1.extractRequiredLen)(value, 1);
345
345
  const entrypoint = Buffer.from(entry).toString('utf8');
346
346
  if (entrypoint.length > constants_1.ENTRYPOINT_MAX_LENGTH) {
347
347
  throw new errors_1.OversizedEntryPointError(entrypoint);
@@ -356,9 +356,9 @@ const parametersDecoder = (val) => {
356
356
  return;
357
357
  }
358
358
  else {
359
- const encodedEntrypoint = exports.entrypointDecoder(val);
360
- const params = codec_1.extractRequiredLen(val);
361
- const parameters = codec_1.valueDecoder(new uint8array_consumer_1.Uint8ArrayConsumer(params));
359
+ const encodedEntrypoint = (0, exports.entrypointDecoder)(val);
360
+ const params = (0, codec_1.extractRequiredLen)(val);
361
+ const parameters = (0, codec_1.valueDecoder)(new uint8array_consumer_1.Uint8ArrayConsumer(params));
362
362
  return {
363
363
  entrypoint: encodedEntrypoint,
364
364
  value: parameters,
@@ -375,7 +375,7 @@ const entrypointEncoder = (entrypoint) => {
375
375
  throw new errors_1.OversizedEntryPointError(entrypoint);
376
376
  }
377
377
  const value = { string: entrypoint };
378
- return `ff${codec_1.valueEncoder(value).slice(8)}`;
378
+ return `ff${(0, codec_1.valueEncoder)(value).slice(8)}`;
379
379
  }
380
380
  };
381
381
  exports.entrypointEncoder = entrypointEncoder;
@@ -383,31 +383,31 @@ const parametersEncoder = (val) => {
383
383
  if (!val || (val.entrypoint === 'default' && 'prim' in val.value && val.value.prim === 'Unit')) {
384
384
  return '00';
385
385
  }
386
- const encodedEntrypoint = exports.entrypointEncoder(val.entrypoint);
387
- const parameters = codec_1.valueEncoder(val.value);
386
+ const encodedEntrypoint = (0, exports.entrypointEncoder)(val.entrypoint);
387
+ const parameters = (0, codec_1.valueEncoder)(val.value);
388
388
  const length = (parameters.length / 2).toString(16).padStart(8, '0');
389
389
  return `ff${encodedEntrypoint}${length}${parameters}`;
390
390
  };
391
391
  exports.parametersEncoder = parametersEncoder;
392
392
  const valueParameterEncoder = (value) => {
393
- const valueEncoded = codec_1.valueEncoder(value);
394
- return `${utils_2.pad(valueEncoded.length / 2)}${valueEncoded}`;
393
+ const valueEncoded = (0, codec_1.valueEncoder)(value);
394
+ return `${(0, utils_2.pad)(valueEncoded.length / 2)}${valueEncoded}`;
395
395
  };
396
396
  exports.valueParameterEncoder = valueParameterEncoder;
397
397
  const valueParameterDecoder = (val) => {
398
- const value = codec_1.extractRequiredLen(val);
399
- return codec_1.valueDecoder(new uint8array_consumer_1.Uint8ArrayConsumer(value));
398
+ const value = (0, codec_1.extractRequiredLen)(val);
399
+ return (0, codec_1.valueDecoder)(new uint8array_consumer_1.Uint8ArrayConsumer(value));
400
400
  };
401
401
  exports.valueParameterDecoder = valueParameterDecoder;
402
- exports.blockPayloadHashEncoder = exports.prefixEncoder(utils_1.Prefix.VH);
403
- exports.blockPayloadHashDecoder = exports.prefixDecoder(utils_1.Prefix.VH);
402
+ exports.blockPayloadHashEncoder = (0, exports.prefixEncoder)(utils_1.Prefix.VH);
403
+ exports.blockPayloadHashDecoder = (0, exports.prefixDecoder)(utils_1.Prefix.VH);
404
404
  const entrypointNameEncoder = (entrypoint) => {
405
405
  const value = { string: entrypoint };
406
- return `${codec_1.valueEncoder(value).slice(2)}`;
406
+ return `${(0, codec_1.valueEncoder)(value).slice(2)}`;
407
407
  };
408
408
  exports.entrypointNameEncoder = entrypointNameEncoder;
409
409
  const entrypointNameDecoder = (val) => {
410
- const entry = codec_1.extractRequiredLen(val);
410
+ const entry = (0, codec_1.extractRequiredLen)(val);
411
411
  return Buffer.from(entry).toString('utf8');
412
412
  };
413
413
  exports.entrypointNameDecoder = entrypointNameDecoder;
@@ -419,59 +419,58 @@ const txRollupOriginationParamDecoder = (_val) => {
419
419
  return {};
420
420
  };
421
421
  exports.txRollupOriginationParamDecoder = txRollupOriginationParamDecoder;
422
- exports.txRollupIdEncoder = exports.prefixEncoder(utils_1.Prefix.TXR1);
423
- exports.txRollupIdDecoder = exports.prefixDecoder(utils_1.Prefix.TXR1);
422
+ exports.txRollupIdEncoder = (0, exports.prefixEncoder)(utils_1.Prefix.TXR1);
423
+ exports.txRollupIdDecoder = (0, exports.prefixDecoder)(utils_1.Prefix.TXR1);
424
424
  const txRollupBatchContentEncoder = (value) => {
425
- return `${utils_2.pad(value.length / 2)}${value}`;
425
+ return `${(0, utils_2.pad)(value.length / 2)}${value}`;
426
426
  };
427
427
  exports.txRollupBatchContentEncoder = txRollupBatchContentEncoder;
428
428
  const txRollupBatchContentDecoder = (val) => {
429
- const value = codec_1.extractRequiredLen(val);
429
+ const value = (0, codec_1.extractRequiredLen)(val);
430
430
  return Buffer.from(value).toString('hex');
431
431
  };
432
432
  exports.txRollupBatchContentDecoder = txRollupBatchContentDecoder;
433
433
  const burnLimitEncoder = (val) => {
434
- return !val ? '00' : `ff${exports.zarithEncoder(val)}`;
434
+ return !val ? '00' : `ff${(0, exports.zarithEncoder)(val)}`;
435
435
  };
436
436
  exports.burnLimitEncoder = burnLimitEncoder;
437
437
  const burnLimitDecoder = (value) => {
438
438
  const prefix = value.consume(1);
439
439
  if (Buffer.from(prefix).toString('hex') !== '00') {
440
- return exports.zarithDecoder(value);
440
+ return (0, exports.zarithDecoder)(value);
441
441
  }
442
442
  };
443
443
  exports.burnLimitDecoder = burnLimitDecoder;
444
444
  const depositsLimitEncoder = (val) => {
445
- return !val ? '00' : `ff${exports.zarithEncoder(val)}`;
445
+ return !val ? '00' : `ff${(0, exports.zarithEncoder)(val)}`;
446
446
  };
447
447
  exports.depositsLimitEncoder = depositsLimitEncoder;
448
448
  const depositsLimitDecoder = (value) => {
449
449
  const prefix = value.consume(1);
450
450
  if (Buffer.from(prefix).toString('hex') !== '00') {
451
- return exports.zarithDecoder(value);
451
+ return (0, exports.zarithDecoder)(value);
452
452
  }
453
453
  };
454
454
  exports.depositsLimitDecoder = depositsLimitDecoder;
455
455
  const paddedBytesEncoder = (val, paddingLength = 8) => {
456
- return `${utils_2.pad(val.length / 2, paddingLength)}${val}`;
456
+ return `${(0, utils_2.pad)(val.length / 2, paddingLength)}${val}`;
457
457
  };
458
458
  exports.paddedBytesEncoder = paddedBytesEncoder;
459
459
  const paddedBytesDecoder = (val) => {
460
- const value = codec_1.extractRequiredLen(val);
460
+ const value = (0, codec_1.extractRequiredLen)(val);
461
461
  return Buffer.from(value).toString('hex');
462
462
  };
463
463
  exports.paddedBytesDecoder = paddedBytesDecoder;
464
464
  const smartRollupMessageEncoder = (val) => {
465
465
  const message = val.reduce((prev, curr) => {
466
- return prev + `${utils_2.pad(curr.length / 2)}${curr}`;
466
+ return prev + `${(0, utils_2.pad)(curr.length / 2)}${curr}`;
467
467
  }, '');
468
- return `${utils_2.pad(message.length / 2)}${message}`;
468
+ return `${(0, utils_2.pad)(message.length / 2)}${message}`;
469
469
  };
470
470
  exports.smartRollupMessageEncoder = smartRollupMessageEncoder;
471
471
  const smartRollupMessageDecoder = (val) => {
472
- const valueArray = codec_1.extractRequiredLen(val);
473
- const ret = codec_1.stripLengthPrefixFromBytes(new uint8array_consumer_1.Uint8ArrayConsumer(valueArray));
472
+ const valueArray = (0, codec_1.extractRequiredLen)(val);
473
+ const ret = (0, codec_1.stripLengthPrefixFromBytes)(new uint8array_consumer_1.Uint8ArrayConsumer(valueArray));
474
474
  return ret.map((value) => Buffer.from(value).toString('hex'));
475
475
  };
476
476
  exports.smartRollupMessageDecoder = smartRollupMessageDecoder;
477
- //# sourceMappingURL=codec.js.map
@@ -63,7 +63,7 @@ var CODEC;
63
63
  CODEC["PVM_KIND"] = "pvm_kind";
64
64
  CODEC["OP_SMART_ROLLUP_ADD_MESSAGES"] = "smart_rollup_add_messages";
65
65
  CODEC["OP_SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE"] = "smart_rollup_execute_outbox_message";
66
- })(CODEC = exports.CODEC || (exports.CODEC = {}));
66
+ })(CODEC || (exports.CODEC = CODEC = {}));
67
67
  // See https://tezos.gitlab.io/whitedoc/michelson.html#full-grammar
68
68
  exports.opMapping = {
69
69
  '00': 'parameter',
@@ -259,7 +259,7 @@ exports.kindMappingReverse = (() => {
259
259
  const result = {};
260
260
  Object.keys(exports.kindMapping).forEach((key) => {
261
261
  const keyNum = typeof key === 'string' ? parseInt(key, 10) : key;
262
- result[exports.kindMapping[keyNum]] = utils_1.pad(keyNum, 2);
262
+ result[exports.kindMapping[keyNum]] = (0, utils_1.pad)(keyNum, 2);
263
263
  });
264
264
  return result;
265
265
  })();
@@ -279,4 +279,3 @@ exports.entrypointMappingReverse = (() => {
279
279
  });
280
280
  return result;
281
281
  })();
282
- //# sourceMappingURL=constants.js.map
@@ -7,8 +7,8 @@ const codec_2 = require("./michelson/codec");
7
7
  const operation_1 = require("./schema/operation");
8
8
  const utils_1 = require("./utils");
9
9
  exports.decoders = {
10
- [constants_1.CODEC.SECRET]: (val) => utils_1.toHexString(val.consume(20)),
11
- [constants_1.CODEC.RAW]: (val) => utils_1.toHexString(val.consume(32)),
10
+ [constants_1.CODEC.SECRET]: (val) => (0, utils_1.toHexString)(val.consume(20)),
11
+ [constants_1.CODEC.RAW]: (val) => (0, utils_1.toHexString)(val.consume(32)),
12
12
  [constants_1.CODEC.TZ1]: codec_1.tz1Decoder,
13
13
  [constants_1.CODEC.BRANCH]: codec_1.branchDecoder,
14
14
  [constants_1.CODEC.ZARITH]: codec_1.zarithDecoder,
@@ -38,27 +38,26 @@ exports.decoders = {
38
38
  [constants_1.CODEC.PADDED_BYTES]: codec_1.paddedBytesDecoder,
39
39
  [constants_1.CODEC.SMART_ROLLUP_MESSAGE]: codec_1.smartRollupMessageDecoder,
40
40
  };
41
- exports.decoders[constants_1.CODEC.OPERATION] = operation_1.operationDecoder(exports.decoders);
42
- exports.decoders[constants_1.CODEC.OP_ACTIVATE_ACCOUNT] = (val) => operation_1.schemaDecoder(exports.decoders)(operation_1.ActivationSchema)(val);
43
- exports.decoders[constants_1.CODEC.OP_FAILING_NOOP] = (val) => operation_1.schemaDecoder(exports.decoders)(operation_1.FailingNoopSchema)(val);
44
- exports.decoders[constants_1.CODEC.OP_DELEGATION] = (val) => operation_1.schemaDecoder(exports.decoders)(operation_1.DelegationSchema)(val);
45
- exports.decoders[constants_1.CODEC.OP_TRANSACTION] = (val) => operation_1.schemaDecoder(exports.decoders)(operation_1.TransactionSchema)(val);
46
- exports.decoders[constants_1.CODEC.OP_ORIGINATION] = (val) => operation_1.schemaDecoder(exports.decoders)(operation_1.OriginationSchema)(val);
47
- exports.decoders[constants_1.CODEC.OP_BALLOT] = (val) => operation_1.schemaDecoder(exports.decoders)(operation_1.BallotSchema)(val);
48
- exports.decoders[constants_1.CODEC.OP_ENDORSEMENT] = (val) => operation_1.schemaDecoder(exports.decoders)(operation_1.EndorsementSchema)(val);
49
- exports.decoders[constants_1.CODEC.OP_SEED_NONCE_REVELATION] = (val) => operation_1.schemaDecoder(exports.decoders)(operation_1.SeedNonceRevelationSchema)(val);
50
- exports.decoders[constants_1.CODEC.OP_PROPOSALS] = (val) => operation_1.schemaDecoder(exports.decoders)(operation_1.ProposalsSchema)(val);
51
- exports.decoders[constants_1.CODEC.OP_REVEAL] = (val) => operation_1.schemaDecoder(exports.decoders)(operation_1.RevealSchema)(val);
52
- exports.decoders[constants_1.CODEC.OP_REGISTER_GLOBAL_CONSTANT] = (val) => operation_1.schemaDecoder(exports.decoders)(operation_1.RegisterGlobalConstantSchema)(val);
53
- exports.decoders[constants_1.CODEC.OP_TRANSFER_TICKET] = (val) => operation_1.schemaDecoder(exports.decoders)(operation_1.TransferTicketSchema)(val);
54
- exports.decoders[constants_1.CODEC.OP_TX_ROLLUP_ORIGINATION] = (val) => operation_1.schemaDecoder(exports.decoders)(operation_1.TxRollupOriginationSchema)(val);
55
- exports.decoders[constants_1.CODEC.OP_TX_ROLLUP_SUBMIT_BATCH] = (val) => operation_1.schemaDecoder(exports.decoders)(operation_1.TxRollupSubmitBatchSchema)(val);
56
- exports.decoders[constants_1.CODEC.OP_INCREASE_PAID_STORAGE] = (val) => operation_1.schemaDecoder(exports.decoders)(operation_1.IncreasePaidStorageSchema)(val);
57
- exports.decoders[constants_1.CODEC.OP_UPDATE_CONSENSUS_KEY] = (val) => operation_1.schemaDecoder(exports.decoders)(operation_1.UpdateConsensusKeySchema)(val);
58
- exports.decoders[constants_1.CODEC.OP_DRAIN_DELEGATE] = (val) => operation_1.schemaDecoder(exports.decoders)(operation_1.DrainDelegateSchema)(val);
59
- exports.decoders[constants_1.CODEC.OP_SMART_ROLLUP_ORIGINATE] = (val) => operation_1.schemaDecoder(exports.decoders)(operation_1.SmartRollupOriginateSchema)(val);
60
- exports.decoders[constants_1.CODEC.OP_SMART_ROLLUP_ADD_MESSAGES] = (val) => operation_1.schemaDecoder(exports.decoders)(operation_1.SmartRollupAddMessagesSchema)(val);
61
- exports.decoders[constants_1.CODEC.OP_SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE] = (val) => operation_1.schemaDecoder(exports.decoders)(operation_1.SmartRollupExecuteOutboxMessageSchema)(val);
62
- exports.decoders[constants_1.CODEC.MANAGER] = operation_1.schemaDecoder(exports.decoders)(operation_1.ManagerOperationSchema);
63
- exports.decoders[constants_1.CODEC.OP_SET_DEPOSITS_LIMIT] = (val) => operation_1.schemaDecoder(exports.decoders)(operation_1.SetDepositsLimitSchema)(val);
64
- //# sourceMappingURL=decoder.js.map
41
+ exports.decoders[constants_1.CODEC.OPERATION] = (0, operation_1.operationDecoder)(exports.decoders);
42
+ exports.decoders[constants_1.CODEC.OP_ACTIVATE_ACCOUNT] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.ActivationSchema)(val);
43
+ exports.decoders[constants_1.CODEC.OP_FAILING_NOOP] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.FailingNoopSchema)(val);
44
+ exports.decoders[constants_1.CODEC.OP_DELEGATION] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.DelegationSchema)(val);
45
+ exports.decoders[constants_1.CODEC.OP_TRANSACTION] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.TransactionSchema)(val);
46
+ exports.decoders[constants_1.CODEC.OP_ORIGINATION] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.OriginationSchema)(val);
47
+ exports.decoders[constants_1.CODEC.OP_BALLOT] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.BallotSchema)(val);
48
+ exports.decoders[constants_1.CODEC.OP_ENDORSEMENT] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.EndorsementSchema)(val);
49
+ exports.decoders[constants_1.CODEC.OP_SEED_NONCE_REVELATION] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.SeedNonceRevelationSchema)(val);
50
+ exports.decoders[constants_1.CODEC.OP_PROPOSALS] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.ProposalsSchema)(val);
51
+ exports.decoders[constants_1.CODEC.OP_REVEAL] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.RevealSchema)(val);
52
+ exports.decoders[constants_1.CODEC.OP_REGISTER_GLOBAL_CONSTANT] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.RegisterGlobalConstantSchema)(val);
53
+ exports.decoders[constants_1.CODEC.OP_TRANSFER_TICKET] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.TransferTicketSchema)(val);
54
+ exports.decoders[constants_1.CODEC.OP_TX_ROLLUP_ORIGINATION] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.TxRollupOriginationSchema)(val);
55
+ exports.decoders[constants_1.CODEC.OP_TX_ROLLUP_SUBMIT_BATCH] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.TxRollupSubmitBatchSchema)(val);
56
+ exports.decoders[constants_1.CODEC.OP_INCREASE_PAID_STORAGE] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.IncreasePaidStorageSchema)(val);
57
+ exports.decoders[constants_1.CODEC.OP_UPDATE_CONSENSUS_KEY] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.UpdateConsensusKeySchema)(val);
58
+ exports.decoders[constants_1.CODEC.OP_DRAIN_DELEGATE] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.DrainDelegateSchema)(val);
59
+ exports.decoders[constants_1.CODEC.OP_SMART_ROLLUP_ORIGINATE] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.SmartRollupOriginateSchema)(val);
60
+ exports.decoders[constants_1.CODEC.OP_SMART_ROLLUP_ADD_MESSAGES] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.SmartRollupAddMessagesSchema)(val);
61
+ exports.decoders[constants_1.CODEC.OP_SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.SmartRollupExecuteOutboxMessageSchema)(val);
62
+ exports.decoders[constants_1.CODEC.MANAGER] = (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.ManagerOperationSchema);
63
+ exports.decoders[constants_1.CODEC.OP_SET_DEPOSITS_LIMIT] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.SetDepositsLimitSchema)(val);
@@ -37,27 +37,26 @@ exports.encoders = {
37
37
  [constants_1.CODEC.PADDED_BYTES]: codec_1.paddedBytesEncoder,
38
38
  [constants_1.CODEC.SMART_ROLLUP_MESSAGE]: codec_1.smartRollupMessageEncoder,
39
39
  };
40
- exports.encoders[constants_1.CODEC.OPERATION] = operation_1.operationEncoder(exports.encoders);
41
- exports.encoders[constants_1.CODEC.OP_ACTIVATE_ACCOUNT] = (val) => operation_1.schemaEncoder(exports.encoders)(operation_1.ActivationSchema)(val);
42
- exports.encoders[constants_1.CODEC.OP_DELEGATION] = (val) => operation_1.schemaEncoder(exports.encoders)(operation_1.DelegationSchema)(val);
43
- exports.encoders[constants_1.CODEC.OP_TRANSACTION] = (val) => operation_1.schemaEncoder(exports.encoders)(operation_1.TransactionSchema)(val);
44
- exports.encoders[constants_1.CODEC.OP_ORIGINATION] = (val) => operation_1.schemaEncoder(exports.encoders)(operation_1.OriginationSchema)(val);
45
- exports.encoders[constants_1.CODEC.OP_BALLOT] = (val) => operation_1.schemaEncoder(exports.encoders)(operation_1.BallotSchema)(val);
46
- exports.encoders[constants_1.CODEC.OP_ENDORSEMENT] = (val) => operation_1.schemaEncoder(exports.encoders)(operation_1.EndorsementSchema)(val);
47
- exports.encoders[constants_1.CODEC.OP_SEED_NONCE_REVELATION] = (val) => operation_1.schemaEncoder(exports.encoders)(operation_1.SeedNonceRevelationSchema)(val);
48
- exports.encoders[constants_1.CODEC.OP_PROPOSALS] = (val) => operation_1.schemaEncoder(exports.encoders)(operation_1.ProposalsSchema)(val);
49
- exports.encoders[constants_1.CODEC.OP_REVEAL] = (val) => operation_1.schemaEncoder(exports.encoders)(operation_1.RevealSchema)(val);
50
- exports.encoders[constants_1.CODEC.OP_REGISTER_GLOBAL_CONSTANT] = (val) => operation_1.schemaEncoder(exports.encoders)(operation_1.RegisterGlobalConstantSchema)(val);
51
- exports.encoders[constants_1.CODEC.OP_TRANSFER_TICKET] = (val) => operation_1.schemaEncoder(exports.encoders)(operation_1.TransferTicketSchema)(val);
52
- exports.encoders[constants_1.CODEC.OP_TX_ROLLUP_ORIGINATION] = (val) => operation_1.schemaEncoder(exports.encoders)(operation_1.TxRollupOriginationSchema)(val);
53
- exports.encoders[constants_1.CODEC.OP_TX_ROLLUP_SUBMIT_BATCH] = (val) => operation_1.schemaEncoder(exports.encoders)(operation_1.TxRollupSubmitBatchSchema)(val);
54
- exports.encoders[constants_1.CODEC.OP_INCREASE_PAID_STORAGE] = (val) => operation_1.schemaEncoder(exports.encoders)(operation_1.IncreasePaidStorageSchema)(val);
55
- exports.encoders[constants_1.CODEC.OP_UPDATE_CONSENSUS_KEY] = (val) => operation_1.schemaEncoder(exports.encoders)(operation_1.UpdateConsensusKeySchema)(val);
56
- exports.encoders[constants_1.CODEC.OP_DRAIN_DELEGATE] = (val) => operation_1.schemaEncoder(exports.encoders)(operation_1.DrainDelegateSchema)(val);
57
- exports.encoders[constants_1.CODEC.OP_SMART_ROLLUP_ORIGINATE] = (val) => operation_1.schemaEncoder(exports.encoders)(operation_1.SmartRollupOriginateSchema)(val);
58
- exports.encoders[constants_1.CODEC.OP_SMART_ROLLUP_ADD_MESSAGES] = (val) => operation_1.schemaEncoder(exports.encoders)(operation_1.SmartRollupAddMessagesSchema)(val);
59
- exports.encoders[constants_1.CODEC.OP_SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE] = (val) => operation_1.schemaEncoder(exports.encoders)(operation_1.SmartRollupExecuteOutboxMessageSchema)(val);
60
- exports.encoders[constants_1.CODEC.MANAGER] = operation_1.schemaEncoder(exports.encoders)(operation_1.ManagerOperationSchema);
61
- exports.encoders[constants_1.CODEC.OP_SET_DEPOSITS_LIMIT] = (val) => operation_1.schemaEncoder(exports.encoders)(operation_1.SetDepositsLimitSchema)(val);
62
- exports.encoders[constants_1.CODEC.OP_FAILING_NOOP] = (val) => operation_1.schemaEncoder(exports.encoders)(operation_1.FailingNoopSchema)(val);
63
- //# sourceMappingURL=encoder.js.map
40
+ exports.encoders[constants_1.CODEC.OPERATION] = (0, operation_1.operationEncoder)(exports.encoders);
41
+ exports.encoders[constants_1.CODEC.OP_ACTIVATE_ACCOUNT] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.ActivationSchema)(val);
42
+ exports.encoders[constants_1.CODEC.OP_DELEGATION] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.DelegationSchema)(val);
43
+ exports.encoders[constants_1.CODEC.OP_TRANSACTION] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.TransactionSchema)(val);
44
+ exports.encoders[constants_1.CODEC.OP_ORIGINATION] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.OriginationSchema)(val);
45
+ exports.encoders[constants_1.CODEC.OP_BALLOT] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.BallotSchema)(val);
46
+ exports.encoders[constants_1.CODEC.OP_ENDORSEMENT] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.EndorsementSchema)(val);
47
+ exports.encoders[constants_1.CODEC.OP_SEED_NONCE_REVELATION] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.SeedNonceRevelationSchema)(val);
48
+ exports.encoders[constants_1.CODEC.OP_PROPOSALS] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.ProposalsSchema)(val);
49
+ exports.encoders[constants_1.CODEC.OP_REVEAL] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.RevealSchema)(val);
50
+ exports.encoders[constants_1.CODEC.OP_REGISTER_GLOBAL_CONSTANT] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.RegisterGlobalConstantSchema)(val);
51
+ exports.encoders[constants_1.CODEC.OP_TRANSFER_TICKET] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.TransferTicketSchema)(val);
52
+ exports.encoders[constants_1.CODEC.OP_TX_ROLLUP_ORIGINATION] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.TxRollupOriginationSchema)(val);
53
+ exports.encoders[constants_1.CODEC.OP_TX_ROLLUP_SUBMIT_BATCH] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.TxRollupSubmitBatchSchema)(val);
54
+ exports.encoders[constants_1.CODEC.OP_INCREASE_PAID_STORAGE] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.IncreasePaidStorageSchema)(val);
55
+ exports.encoders[constants_1.CODEC.OP_UPDATE_CONSENSUS_KEY] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.UpdateConsensusKeySchema)(val);
56
+ exports.encoders[constants_1.CODEC.OP_DRAIN_DELEGATE] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.DrainDelegateSchema)(val);
57
+ exports.encoders[constants_1.CODEC.OP_SMART_ROLLUP_ORIGINATE] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.SmartRollupOriginateSchema)(val);
58
+ exports.encoders[constants_1.CODEC.OP_SMART_ROLLUP_ADD_MESSAGES] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.SmartRollupAddMessagesSchema)(val);
59
+ exports.encoders[constants_1.CODEC.OP_SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.SmartRollupExecuteOutboxMessageSchema)(val);
60
+ exports.encoders[constants_1.CODEC.MANAGER] = (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.ManagerOperationSchema);
61
+ exports.encoders[constants_1.CODEC.OP_SET_DEPOSITS_LIMIT] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.SetDepositsLimitSchema)(val);
62
+ exports.encoders[constants_1.CODEC.OP_FAILING_NOOP] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.FailingNoopSchema)(val);
@@ -162,4 +162,3 @@ class InvalidSmartRollupCommitmentHashError extends core_1.ParameterValidationEr
162
162
  }
163
163
  }
164
164
  exports.InvalidSmartRollupCommitmentHashError = InvalidSmartRollupCommitmentHashError;
165
- //# sourceMappingURL=errors.js.map
@@ -1,3 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=interface.js.map