@taquito/michelson-encoder 17.3.1 → 18.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.
- package/dist/lib/tokens/tokens.js +0 -2
- package/dist/lib/tokens/tokens.js.map +1 -1
- package/dist/lib/version.js +2 -2
- package/dist/lib/version.js.map +1 -1
- package/dist/taquito-michelson-encoder.es6.js +3 -101
- package/dist/taquito-michelson-encoder.es6.js.map +1 -1
- package/dist/taquito-michelson-encoder.umd.js +2 -100
- package/dist/taquito-michelson-encoder.umd.js.map +1 -1
- package/dist/types/schema/types.d.ts +1 -1
- package/dist/types/tokens/tokens.d.ts +1 -2
- package/package.json +5 -4
- package/dist/lib/tokens/comparable/tx_rollup_l2_address.js +0 -104
- package/dist/lib/tokens/comparable/tx_rollup_l2_address.js.map +0 -1
- package/dist/types/tokens/comparable/tx_rollup_l2_address.d.ts +0 -64
|
@@ -8,7 +8,6 @@ const bigmap_1 = require("./bigmap");
|
|
|
8
8
|
const address_1 = require("./comparable/address");
|
|
9
9
|
const map_1 = require("./map");
|
|
10
10
|
const bool_1 = require("./comparable/bool");
|
|
11
|
-
const tx_rollup_l2_address_1 = require("./comparable/tx_rollup_l2_address");
|
|
12
11
|
const or_1 = require("./or");
|
|
13
12
|
const contract_1 = require("./contract");
|
|
14
13
|
const list_1 = require("./list");
|
|
@@ -43,7 +42,6 @@ exports.tokens = [
|
|
|
43
42
|
string_1.StringToken,
|
|
44
43
|
bigmap_1.BigMapToken,
|
|
45
44
|
address_1.AddressToken,
|
|
46
|
-
tx_rollup_l2_address_1.TxRollupL2AddressToken,
|
|
47
45
|
map_1.MapToken,
|
|
48
46
|
bool_1.BoolToken,
|
|
49
47
|
or_1.OrToken,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../../src/tokens/tokens.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AAEnC,0CAA4C;AAE5C,gDAAkD;AAElD,qCAAuC;AAEvC,kDAAoD;AAEpD,+BAAiC;AAEjC,4CAA8C;AAE9C,
|
|
1
|
+
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../../src/tokens/tokens.ts"],"names":[],"mappings":";;;AAAA,iCAAmC;AAEnC,0CAA4C;AAE5C,gDAAkD;AAElD,qCAAuC;AAEvC,kDAAoD;AAEpD,+BAAiC;AAEjC,4CAA8C;AAE9C,6BAA+B;AAE/B,yCAA2C;AAE3C,iCAAmC;AACnC,8CAAgD;AAChD,8CAAgD;AAChD,qCAAuC;AACvC,sDAAwD;AACxD,0CAA4C;AAC5C,iCAAmC;AACnC,+BAAiC;AACjC,oDAAqD;AACrD,2CAA6C;AAC7C,qCAAuC;AACvC,2CAA6C;AAC7C,+BAAiC;AACjC,yCAA0C;AAC1C,qCAAuC;AACvC,2DAA4D;AAC5D,mCAAqC;AACrC,mDAAoD;AACpD,+DAAgE;AAChE,qFAAqF;AACrF,iDAAiD;AACjD,iDAAiD;AACjD,iDAAiD;AACjD,mCAAqC;AACrC,2CAA4C;AAC5C,yCAAiD;AAEpC,QAAA,MAAM,GAAG;IACpB,gBAAS;IACT,cAAQ;IACR,oBAAW;IACX,oBAAW;IACX,sBAAY;IACZ,cAAQ;IACR,gBAAS;IACT,YAAO;IACP,wBAAa;IACb,gBAAS;IACT,kBAAU;IACV,kBAAU;IACV,oBAAW;IACX,0BAAc;IACd,cAAQ;IACR,gBAAS;IACT,cAAQ;IACR,uBAAY;IACZ,0BAAc;IACd,oBAAW;IACX,0BAAc;IACd,cAAQ;IACR,uBAAY;IACZ,oBAAW;IACX,yCAAqB;IACrB,kBAAU;IACV,iCAAiB;IACjB,6CAAuB;IACvB,kEAAiC;IACjC,8BAAe;IACf,8BAAe;IACf,8BAAe;IACf,kBAAU;IACV,yBAAa;IACb,8BAAmB;CACpB,CAAC"}
|
package/dist/lib/version.js
CHANGED
|
@@ -3,7 +3,7 @@ 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": "
|
|
6
|
+
"commitHash": "21f25a09b87809102b0214544d2c5396eeb5872e",
|
|
7
|
+
"version": "18.0.0-RC.0"
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=version.js.map
|
package/dist/lib/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";;;AACA,2EAA2E;AAC9D,QAAA,OAAO,GAAG;IACnB,YAAY,EAAE,0CAA0C;IACxD,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";;;AACA,2EAA2E;AAC9D,QAAA,OAAO,GAAG;IACnB,YAAY,EAAE,0CAA0C;IACxD,SAAS,EAAE,aAAa;CAC3B,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import stringify from 'fast-json-stable-stringify';
|
|
2
2
|
import { TaquitoError, InvalidViewParameterError } from '@taquito/core';
|
|
3
3
|
import BigNumber from 'bignumber.js';
|
|
4
|
-
import { b58decode, validateAddress, ValidationResult, encodePubKey,
|
|
4
|
+
import { b58decode, validateAddress, ValidationResult, encodePubKey, stripHexPrefix, encodeKey, validatePublicKey, Prefix, b58cdecode, prefix, encodeKeyHash, validateKeyHash, validateSignature, validateChain } from '@taquito/utils';
|
|
5
5
|
|
|
6
6
|
var _a$1;
|
|
7
7
|
/**
|
|
@@ -1345,103 +1345,6 @@ class BoolToken extends ComparableToken {
|
|
|
1345
1345
|
}
|
|
1346
1346
|
BoolToken.prim = 'bool';
|
|
1347
1347
|
|
|
1348
|
-
/**
|
|
1349
|
-
* @category Error
|
|
1350
|
-
* @description Error that indicates a failure happening when parsing encoding/executing a Tx Rollup L2 Address
|
|
1351
|
-
*/
|
|
1352
|
-
class TxRollupL2AddressValidationError extends TokenValidationError {
|
|
1353
|
-
constructor(value, token, message) {
|
|
1354
|
-
super(value, token, message);
|
|
1355
|
-
this.value = value;
|
|
1356
|
-
this.token = token;
|
|
1357
|
-
this.name = 'TxRollupL2AddressValidationError';
|
|
1358
|
-
}
|
|
1359
|
-
}
|
|
1360
|
-
class TxRollupL2AddressToken extends ComparableToken {
|
|
1361
|
-
constructor(val, idx, fac) {
|
|
1362
|
-
super(val, idx, fac);
|
|
1363
|
-
this.val = val;
|
|
1364
|
-
this.idx = idx;
|
|
1365
|
-
this.fac = fac;
|
|
1366
|
-
}
|
|
1367
|
-
ToBigMapKey(val) {
|
|
1368
|
-
const decoded = b58decodeL2Address(val);
|
|
1369
|
-
return {
|
|
1370
|
-
key: { bytes: decoded },
|
|
1371
|
-
type: { prim: 'bytes' },
|
|
1372
|
-
};
|
|
1373
|
-
}
|
|
1374
|
-
/**
|
|
1375
|
-
* @throws {@link TxRollupL2AddressValidationError}
|
|
1376
|
-
*/
|
|
1377
|
-
validate(value) {
|
|
1378
|
-
if (validateAddress(value) !== ValidationResult.VALID) {
|
|
1379
|
-
throw new TxRollupL2AddressValidationError(value, this, `tx_rollup_l2_address is not valid: ${JSON.stringify(value)}`);
|
|
1380
|
-
}
|
|
1381
|
-
}
|
|
1382
|
-
/**
|
|
1383
|
-
* @throws {@link TxRollupL2AddressValidationError}
|
|
1384
|
-
*/
|
|
1385
|
-
Encode(args) {
|
|
1386
|
-
const val = args.pop();
|
|
1387
|
-
if (!val) {
|
|
1388
|
-
throw new TxRollupL2AddressValidationError(val, this, `arg missing to encode: this -> "${JSON.stringify(val)}"`);
|
|
1389
|
-
}
|
|
1390
|
-
this.validate(val);
|
|
1391
|
-
return { string: val };
|
|
1392
|
-
}
|
|
1393
|
-
/**
|
|
1394
|
-
* @throws {@link TxRollupL2AddressValidationError}
|
|
1395
|
-
*/
|
|
1396
|
-
EncodeObject(val, semantic) {
|
|
1397
|
-
this.validate(val);
|
|
1398
|
-
if (semantic && semantic[TxRollupL2AddressToken.prim]) {
|
|
1399
|
-
return semantic[TxRollupL2AddressToken.prim](val);
|
|
1400
|
-
}
|
|
1401
|
-
return { string: val };
|
|
1402
|
-
}
|
|
1403
|
-
/**
|
|
1404
|
-
* @throws {@link TxRollupL2AddressValidationError}
|
|
1405
|
-
*/
|
|
1406
|
-
Execute(val) {
|
|
1407
|
-
if (val.string) {
|
|
1408
|
-
return val.string;
|
|
1409
|
-
}
|
|
1410
|
-
if (!val.bytes) {
|
|
1411
|
-
throw new TxRollupL2AddressValidationError(val, this, `value cannot be missing string and byte value. must have one ${JSON.stringify(val)}`);
|
|
1412
|
-
}
|
|
1413
|
-
return encodeL2Address(val.bytes);
|
|
1414
|
-
}
|
|
1415
|
-
ExtractSchema() {
|
|
1416
|
-
return TxRollupL2AddressToken.prim;
|
|
1417
|
-
}
|
|
1418
|
-
generateSchema() {
|
|
1419
|
-
return {
|
|
1420
|
-
__michelsonType: TxRollupL2AddressToken.prim,
|
|
1421
|
-
schema: TxRollupL2AddressToken.prim,
|
|
1422
|
-
};
|
|
1423
|
-
}
|
|
1424
|
-
/**
|
|
1425
|
-
* @throws {@link TxRollupL2AddressValidationError}
|
|
1426
|
-
*/
|
|
1427
|
-
ToKey({ bytes, string }) {
|
|
1428
|
-
if (string) {
|
|
1429
|
-
return string;
|
|
1430
|
-
}
|
|
1431
|
-
if (!bytes) {
|
|
1432
|
-
throw new TxRollupL2AddressValidationError(bytes, this, `value cannot be missing string and byte value. must have one: bytes = ${JSON.stringify(bytes)}`);
|
|
1433
|
-
}
|
|
1434
|
-
return encodeL2Address(bytes);
|
|
1435
|
-
}
|
|
1436
|
-
findAndReturnTokens(tokenToFind, tokens) {
|
|
1437
|
-
if (TxRollupL2AddressToken.prim === tokenToFind) {
|
|
1438
|
-
tokens.push(this);
|
|
1439
|
-
}
|
|
1440
|
-
return tokens;
|
|
1441
|
-
}
|
|
1442
|
-
}
|
|
1443
|
-
TxRollupL2AddressToken.prim = 'tx_rollup_l2_address';
|
|
1444
|
-
|
|
1445
1348
|
/**
|
|
1446
1349
|
* @category Error
|
|
1447
1350
|
* @description Error that indicates a failure happening when parsing encoding/executing a Contract
|
|
@@ -3626,7 +3529,6 @@ const tokens = [
|
|
|
3626
3529
|
StringToken,
|
|
3627
3530
|
BigMapToken,
|
|
3628
3531
|
AddressToken,
|
|
3629
|
-
TxRollupL2AddressToken,
|
|
3630
3532
|
MapToken,
|
|
3631
3533
|
BoolToken,
|
|
3632
3534
|
OrToken,
|
|
@@ -4303,8 +4205,8 @@ class EventSchema {
|
|
|
4303
4205
|
|
|
4304
4206
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
|
|
4305
4207
|
const VERSION = {
|
|
4306
|
-
"commitHash": "
|
|
4307
|
-
"version": "
|
|
4208
|
+
"commitHash": "21f25a09b87809102b0214544d2c5396eeb5872e",
|
|
4209
|
+
"version": "18.0.0-RC.0"
|
|
4308
4210
|
};
|
|
4309
4211
|
|
|
4310
4212
|
/**
|