@taquito/michelson-encoder 17.2.0 → 17.3.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 +199 -4
- package/dist/lib/errors.js +2 -2
- package/dist/lib/errors.js.map +1 -1
- package/dist/lib/tokens/or.js +30 -15
- package/dist/lib/tokens/or.js.map +1 -1
- package/dist/lib/tokens/pair.js +3 -3
- package/dist/lib/tokens/pair.js.map +1 -1
- package/dist/lib/version.js +2 -2
- package/dist/taquito-michelson-encoder.es6.js +34 -18
- package/dist/taquito-michelson-encoder.es6.js.map +1 -1
- package/dist/taquito-michelson-encoder.umd.js +34 -18
- package/dist/taquito-michelson-encoder.umd.js.map +1 -1
- package/dist/types/errors.d.ts +1 -1
- package/dist/types/michelson-map.d.ts +1 -1
- package/dist/types/tokens/or.d.ts +14 -7
- package/package.json +4 -4
package/dist/types/errors.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { MapValidationError } from './tokens/map';
|
|
|
3
3
|
export { SetValidationError } from './tokens/set';
|
|
4
4
|
export { BigMapValidationError } from './tokens/bigmap';
|
|
5
5
|
export { TokenArgumentValidationError, TokenComparisonError } from './tokens/pair';
|
|
6
|
-
export {
|
|
6
|
+
export { OrValidationError } from './tokens/or';
|
|
7
7
|
export { ChainIDValidationError } from './tokens/chain-id';
|
|
8
8
|
export { KeyValidationError } from './tokens/key';
|
|
9
9
|
export { ContractValidationError } from './tokens/contract';
|
|
@@ -10,7 +10,7 @@ export declare class InvalidMapTypeError extends TaquitoError {
|
|
|
10
10
|
constructor(mapType: any, reason: string);
|
|
11
11
|
}
|
|
12
12
|
declare const michelsonMapTypeSymbol: unique symbol;
|
|
13
|
-
export declare type MichelsonMapKey = Array<any> | object | string | boolean | number;
|
|
13
|
+
export declare type MichelsonMapKey = Array<any> | object | string | boolean | number | null;
|
|
14
14
|
/**
|
|
15
15
|
* @category Error
|
|
16
16
|
* @description Error that indicates a map type mismatch, where an attempt to set a key or value in a Map doesn't match the defined type of the Map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { TaquitoError } from '@taquito/core';
|
|
2
1
|
import { OrTokenSchema } from '../schema/types';
|
|
3
|
-
import { Token, TokenFactory, Semantic, ComparableToken, SemanticEncoding } from './token';
|
|
2
|
+
import { Token, TokenFactory, Semantic, ComparableToken, SemanticEncoding, TokenValidationError } from './token';
|
|
4
3
|
/**
|
|
5
4
|
* @category Error
|
|
6
|
-
* @description Error that indicates a failure when
|
|
5
|
+
* @description Error that indicates a failure happening when parsing encoding/executing an OrToken
|
|
7
6
|
*/
|
|
8
|
-
export declare class
|
|
9
|
-
|
|
7
|
+
export declare class OrValidationError extends TokenValidationError {
|
|
8
|
+
value: any;
|
|
9
|
+
token: OrToken;
|
|
10
10
|
name: string;
|
|
11
|
-
constructor(message: string);
|
|
11
|
+
constructor(value: any, token: OrToken, message: string);
|
|
12
12
|
}
|
|
13
13
|
export declare class OrToken extends ComparableToken {
|
|
14
14
|
protected val: {
|
|
@@ -26,9 +26,16 @@ export declare class OrToken extends ComparableToken {
|
|
|
26
26
|
}, idx: number, fac: TokenFactory);
|
|
27
27
|
Encode(args: any[]): any;
|
|
28
28
|
ExtractSignature(): any;
|
|
29
|
+
/**
|
|
30
|
+
* @throws {@link OrValidationError}
|
|
31
|
+
*/
|
|
29
32
|
EncodeObject(args: any, semantic?: SemanticEncoding): any;
|
|
30
33
|
/**
|
|
31
|
-
* @throws {@link
|
|
34
|
+
* @throws {@link OrValidationError}
|
|
35
|
+
*/
|
|
36
|
+
private validateJavascriptObject;
|
|
37
|
+
/**
|
|
38
|
+
* @throws {@link OrValidationError}
|
|
32
39
|
*/
|
|
33
40
|
Execute(val: any, semantics?: Semantic): any;
|
|
34
41
|
private traversal;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taquito/michelson-encoder",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.3.0",
|
|
4
4
|
"description": "converts michelson data and types into convenient JS/TS objects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tezos",
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
]
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@taquito/rpc": "^17.
|
|
72
|
-
"@taquito/utils": "^17.
|
|
71
|
+
"@taquito/rpc": "^17.3.0",
|
|
72
|
+
"@taquito/utils": "^17.3.0",
|
|
73
73
|
"bignumber.js": "^9.1.0",
|
|
74
74
|
"fast-json-stable-stringify": "^2.1.0"
|
|
75
75
|
},
|
|
@@ -101,5 +101,5 @@
|
|
|
101
101
|
"ts-toolbelt": "^9.6.0",
|
|
102
102
|
"typescript": "~4.1.5"
|
|
103
103
|
},
|
|
104
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "b7520a1c1de248e8cc1d01b4e0422bb546723563"
|
|
105
105
|
}
|