Socket
Socket
Sign inDemoInstall

@taquito/michelson-encoder

Package Overview
Dependencies
Maintainers
2
Versions
199
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@taquito/michelson-encoder - npm Package Compare versions

Comparing version 5.0.1-beta.2 to 5.1.0-beta.1

4

dist/lib/schema/parameter.js

@@ -43,4 +43,4 @@ "use strict";

});
ParameterSchema.prototype.Execute = function (val) {
return this.root.Execute(val);
ParameterSchema.prototype.Execute = function (val, semantics) {
return this.root.Execute(val, semantics);
};

@@ -47,0 +47,0 @@ ParameterSchema.prototype.Encode = function () {

@@ -22,3 +22,6 @@ "use strict";

this.root = createToken_1.createToken(val, 0);
if (this.isExpressionExtended(val) && val.prim === 'pair') {
if (this.root instanceof bigmap_1.BigMapToken) {
this.bigMap = this.root;
}
else if (this.isExpressionExtended(val) && val.prim === 'pair') {
var exp = val.args[0];

@@ -49,7 +52,7 @@ if (this.isExpressionExtended(exp) && exp.prim === 'big_map') {

};
Schema.prototype.Execute = function (val) {
var storage = this.root.Execute(val);
Schema.prototype.Execute = function (val, semantics) {
var storage = this.root.Execute(val, semantics);
return this.removeTopLevelAnnotation(storage);
};
Schema.prototype.ExecuteOnBigMapDiff = function (diff) {
Schema.prototype.ExecuteOnBigMapDiff = function (diff, semantics) {
if (!this.bigMap) {

@@ -65,9 +68,9 @@ throw new Error('No big map schema');

});
return this.bigMap.Execute(eltFormat);
return this.bigMap.Execute(eltFormat, semantics);
};
Schema.prototype.ExecuteOnBigMapValue = function (key) {
Schema.prototype.ExecuteOnBigMapValue = function (key, semantics) {
if (!this.bigMap) {
throw new Error('No big map schema');
}
return this.bigMap.ValueSchema.Execute(key);
return this.bigMap.ValueSchema.Execute(key, semantics);
};

@@ -78,3 +81,8 @@ Schema.prototype.EncodeBigMapKey = function (key) {

}
return this.bigMap.KeySchema.ToBigMapKey(key);
try {
return this.bigMap.KeySchema.ToBigMapKey(key);
}
catch (ex) {
throw new Error('Unable to encode big map key: ' + ex);
}
};

@@ -92,2 +100,5 @@ Schema.prototype.Encode = function (_value) {

};
/**
* @deprecated
*/
Schema.prototype.ComputeState = function (tx, state) {

@@ -94,0 +105,0 @@ var _a;

@@ -77,4 +77,7 @@ "use strict";

};
BigMapToken.prototype.Execute = function (val) {
BigMapToken.prototype.Execute = function (val, semantic) {
var _this = this;
if (semantic && semantic[BigMapToken.prim]) {
return semantic[BigMapToken.prim](val, this.val);
}
if (Array.isArray(val)) {

@@ -81,0 +84,0 @@ // Athens is returning an empty array for big map in storage

@@ -43,6 +43,6 @@ "use strict";

};
ListToken.prototype.Execute = function (val) {
ListToken.prototype.Execute = function (val, semantics) {
var schema = this.createToken(this.val.args[0], 0);
return val.reduce(function (prev, current) {
return __spreadArrays(prev, [schema.Execute(current)]);
return __spreadArrays(prev, [schema.Execute(current, semantics)]);
}, []);

@@ -49,0 +49,0 @@ };

@@ -51,7 +51,7 @@ "use strict";

});
MapToken.prototype.Execute = function (val) {
MapToken.prototype.Execute = function (val, semantics) {
var _this = this;
return val.reduce(function (prev, current) {
var _a;
return __assign(__assign({}, prev), (_a = {}, _a[_this.KeySchema.ToKey(current.args[0])] = _this.ValueSchema.Execute(current.args[1]), _a));
return __assign(__assign({}, prev), (_a = {}, _a[_this.KeySchema.ToKey(current.args[0])] = _this.ValueSchema.Execute(current.args[1], semantics), _a));
}, {});

@@ -58,0 +58,0 @@ };

@@ -52,3 +52,3 @@ "use strict";

};
OptionToken.prototype.Execute = function (val) {
OptionToken.prototype.Execute = function (val, semantics) {
if (val.prim === 'None') {

@@ -58,3 +58,3 @@ return null;

var schema = this.createToken(this.val.args[0], 0);
return schema.Execute(val.args[0]);
return schema.Execute(val.args[0], semantics);
};

@@ -61,0 +61,0 @@ OptionToken.prototype.ExtractSchema = function () {

@@ -97,3 +97,3 @@ "use strict";

};
OrToken.prototype.Execute = function (val) {
OrToken.prototype.Execute = function (val, semantics) {
var _a;

@@ -107,7 +107,7 @@ var leftToken = this.createToken(this.val.args[0], this.idx);

if (val.prim === 'Right') {
return rightToken.Execute(val.args[0]);
return rightToken.Execute(val.args[0], semantics);
}
else if (val.prim === 'Left') {
return _a = {},
_a[leftToken.annot()] = leftToken.Execute(val.args[0]),
_a[leftToken.annot()] = leftToken.Execute(val.args[0], semantics),
_a;

@@ -114,0 +114,0 @@ }

@@ -98,4 +98,4 @@ "use strict";

};
PairToken.prototype.Execute = function (val) {
return this.traversal(function (leftToken) { return leftToken.Execute(val.args[0]); }, function (rightToken) { return rightToken.Execute(val.args[1]); });
PairToken.prototype.Execute = function (val, semantics) {
return this.traversal(function (leftToken) { return leftToken.Execute(val.args[0], semantics); }, function (rightToken) { return rightToken.Execute(val.args[1], semantics); });
};

@@ -102,0 +102,0 @@ PairToken.prototype.ExtractSchema = function () {

@@ -43,6 +43,6 @@ "use strict";

};
SetToken.prototype.Execute = function (val) {
SetToken.prototype.Execute = function (val, semantics) {
var schema = this.createToken(this.val.args[0], 0);
return val.reduce(function (prev, current) {
return __spreadArrays(prev, [schema.Execute(current)]);
return __spreadArrays(prev, [schema.Execute(current, semantics)]);
}, []);

@@ -49,0 +49,0 @@ };

@@ -28,6 +28,6 @@ "use strict";

args.pop();
return '';
return { prim: 'Unit' };
};
UnitToken.prototype.EncodeObject = function (_val) {
return '';
return { prim: 'Unit' };
};

@@ -34,0 +34,0 @@ UnitToken.prototype.Execute = function () {

@@ -117,4 +117,7 @@ import BigNumber from 'bignumber.js';

};
BigMapToken.prototype.Execute = function (val) {
BigMapToken.prototype.Execute = function (val, semantic) {
var _this = this;
if (semantic && semantic[BigMapToken.prim]) {
return semantic[BigMapToken.prim](val, this.val);
}
if (Array.isArray(val)) {

@@ -211,4 +214,4 @@ // Athens is returning an empty array for big map in storage

};
PairToken.prototype.Execute = function (val) {
return this.traversal(function (leftToken) { return leftToken.Execute(val.args[0]); }, function (rightToken) { return rightToken.Execute(val.args[1]); });
PairToken.prototype.Execute = function (val, semantics) {
return this.traversal(function (leftToken) { return leftToken.Execute(val.args[0], semantics); }, function (rightToken) { return rightToken.Execute(val.args[1], semantics); });
};

@@ -363,7 +366,7 @@ PairToken.prototype.ExtractSchema = function () {

});
MapToken.prototype.Execute = function (val) {
MapToken.prototype.Execute = function (val, semantics) {
var _this = this;
return val.reduce(function (prev, current) {
var _a;
return __assign(__assign({}, prev), (_a = {}, _a[_this.KeySchema.ToKey(current.args[0])] = _this.ValueSchema.Execute(current.args[1]), _a));
return __assign(__assign({}, prev), (_a = {}, _a[_this.KeySchema.ToKey(current.args[0])] = _this.ValueSchema.Execute(current.args[1], semantics), _a));
}, {});

@@ -496,3 +499,3 @@ };

};
OrToken.prototype.Execute = function (val) {
OrToken.prototype.Execute = function (val, semantics) {
var _a;

@@ -506,7 +509,7 @@ var leftToken = this.createToken(this.val.args[0], this.idx);

if (val.prim === 'Right') {
return rightToken.Execute(val.args[0]);
return rightToken.Execute(val.args[0], semantics);
}
else if (val.prim === 'Left') {
return _a = {},
_a[leftToken.annot()] = leftToken.Execute(val.args[0]),
_a[leftToken.annot()] = leftToken.Execute(val.args[0], semantics),
_a;

@@ -596,6 +599,6 @@ }

};
ListToken.prototype.Execute = function (val) {
ListToken.prototype.Execute = function (val, semantics) {
var schema = this.createToken(this.val.args[0], 0);
return val.reduce(function (prev, current) {
return __spreadArrays(prev, [schema.Execute(current)]);
return __spreadArrays(prev, [schema.Execute(current, semantics)]);
}, []);

@@ -727,3 +730,3 @@ };

};
OptionToken.prototype.Execute = function (val) {
OptionToken.prototype.Execute = function (val, semantics) {
if (val.prim === 'None') {

@@ -733,3 +736,3 @@ return null;

var schema = this.createToken(this.val.args[0], 0);
return schema.Execute(val.args[0]);
return schema.Execute(val.args[0], semantics);
};

@@ -833,6 +836,6 @@ OptionToken.prototype.ExtractSchema = function () {

args.pop();
return '';
return { prim: 'Unit' };
};
UnitToken.prototype.EncodeObject = function (_val) {
return '';
return { prim: 'Unit' };
};

@@ -1030,6 +1033,6 @@ UnitToken.prototype.Execute = function () {

};
SetToken.prototype.Execute = function (val) {
SetToken.prototype.Execute = function (val, semantics) {
var schema = this.createToken(this.val.args[0], 0);
return val.reduce(function (prev, current) {
return __spreadArrays(prev, [schema.Execute(current)]);
return __spreadArrays(prev, [schema.Execute(current, semantics)]);
}, []);

@@ -1127,3 +1130,6 @@ };

this.root = createToken(val, 0);
if (this.isExpressionExtended(val) && val.prim === 'pair') {
if (this.root instanceof BigMapToken) {
this.bigMap = this.root;
}
else if (this.isExpressionExtended(val) && val.prim === 'pair') {
var exp = val.args[0];

@@ -1154,7 +1160,7 @@ if (this.isExpressionExtended(exp) && exp.prim === 'big_map') {

};
Schema.prototype.Execute = function (val) {
var storage = this.root.Execute(val);
Schema.prototype.Execute = function (val, semantics) {
var storage = this.root.Execute(val, semantics);
return this.removeTopLevelAnnotation(storage);
};
Schema.prototype.ExecuteOnBigMapDiff = function (diff) {
Schema.prototype.ExecuteOnBigMapDiff = function (diff, semantics) {
if (!this.bigMap) {

@@ -1170,9 +1176,9 @@ throw new Error('No big map schema');

});
return this.bigMap.Execute(eltFormat);
return this.bigMap.Execute(eltFormat, semantics);
};
Schema.prototype.ExecuteOnBigMapValue = function (key) {
Schema.prototype.ExecuteOnBigMapValue = function (key, semantics) {
if (!this.bigMap) {
throw new Error('No big map schema');
}
return this.bigMap.ValueSchema.Execute(key);
return this.bigMap.ValueSchema.Execute(key, semantics);
};

@@ -1183,3 +1189,8 @@ Schema.prototype.EncodeBigMapKey = function (key) {

}
return this.bigMap.KeySchema.ToBigMapKey(key);
try {
return this.bigMap.KeySchema.ToBigMapKey(key);
}
catch (ex) {
throw new Error('Unable to encode big map key: ' + ex);
}
};

@@ -1197,2 +1208,5 @@ Schema.prototype.Encode = function (_value) {

};
/**
* @deprecated
*/
Schema.prototype.ComputeState = function (tx, state) {

@@ -1249,4 +1263,4 @@ var _a;

});
ParameterSchema.prototype.Execute = function (val) {
return this.root.Execute(val);
ParameterSchema.prototype.Execute = function (val, semantics) {
return this.root.Execute(val, semantics);
};

@@ -1253,0 +1267,0 @@ ParameterSchema.prototype.Encode = function () {

@@ -5,3 +5,3 @@ (function (global, factory) {

(global = global || self, factory(global.taquitoMichelsonEncoder = {}, global.BigNumber, global.utils));
}(this, function (exports, BigNumber, utils) { 'use strict';
}(this, (function (exports, BigNumber, utils) { 'use strict';

@@ -123,4 +123,7 @@ BigNumber = BigNumber && BigNumber.hasOwnProperty('default') ? BigNumber['default'] : BigNumber;

};
BigMapToken.prototype.Execute = function (val) {
BigMapToken.prototype.Execute = function (val, semantic) {
var _this = this;
if (semantic && semantic[BigMapToken.prim]) {
return semantic[BigMapToken.prim](val, this.val);
}
if (Array.isArray(val)) {

@@ -217,4 +220,4 @@ // Athens is returning an empty array for big map in storage

};
PairToken.prototype.Execute = function (val) {
return this.traversal(function (leftToken) { return leftToken.Execute(val.args[0]); }, function (rightToken) { return rightToken.Execute(val.args[1]); });
PairToken.prototype.Execute = function (val, semantics) {
return this.traversal(function (leftToken) { return leftToken.Execute(val.args[0], semantics); }, function (rightToken) { return rightToken.Execute(val.args[1], semantics); });
};

@@ -369,7 +372,7 @@ PairToken.prototype.ExtractSchema = function () {

});
MapToken.prototype.Execute = function (val) {
MapToken.prototype.Execute = function (val, semantics) {
var _this = this;
return val.reduce(function (prev, current) {
var _a;
return __assign(__assign({}, prev), (_a = {}, _a[_this.KeySchema.ToKey(current.args[0])] = _this.ValueSchema.Execute(current.args[1]), _a));
return __assign(__assign({}, prev), (_a = {}, _a[_this.KeySchema.ToKey(current.args[0])] = _this.ValueSchema.Execute(current.args[1], semantics), _a));
}, {});

@@ -502,3 +505,3 @@ };

};
OrToken.prototype.Execute = function (val) {
OrToken.prototype.Execute = function (val, semantics) {
var _a;

@@ -512,7 +515,7 @@ var leftToken = this.createToken(this.val.args[0], this.idx);

if (val.prim === 'Right') {
return rightToken.Execute(val.args[0]);
return rightToken.Execute(val.args[0], semantics);
}
else if (val.prim === 'Left') {
return _a = {},
_a[leftToken.annot()] = leftToken.Execute(val.args[0]),
_a[leftToken.annot()] = leftToken.Execute(val.args[0], semantics),
_a;

@@ -602,6 +605,6 @@ }

};
ListToken.prototype.Execute = function (val) {
ListToken.prototype.Execute = function (val, semantics) {
var schema = this.createToken(this.val.args[0], 0);
return val.reduce(function (prev, current) {
return __spreadArrays(prev, [schema.Execute(current)]);
return __spreadArrays(prev, [schema.Execute(current, semantics)]);
}, []);

@@ -733,3 +736,3 @@ };

};
OptionToken.prototype.Execute = function (val) {
OptionToken.prototype.Execute = function (val, semantics) {
if (val.prim === 'None') {

@@ -739,3 +742,3 @@ return null;

var schema = this.createToken(this.val.args[0], 0);
return schema.Execute(val.args[0]);
return schema.Execute(val.args[0], semantics);
};

@@ -839,6 +842,6 @@ OptionToken.prototype.ExtractSchema = function () {

args.pop();
return '';
return { prim: 'Unit' };
};
UnitToken.prototype.EncodeObject = function (_val) {
return '';
return { prim: 'Unit' };
};

@@ -1036,6 +1039,6 @@ UnitToken.prototype.Execute = function () {

};
SetToken.prototype.Execute = function (val) {
SetToken.prototype.Execute = function (val, semantics) {
var schema = this.createToken(this.val.args[0], 0);
return val.reduce(function (prev, current) {
return __spreadArrays(prev, [schema.Execute(current)]);
return __spreadArrays(prev, [schema.Execute(current, semantics)]);
}, []);

@@ -1133,3 +1136,6 @@ };

this.root = createToken(val, 0);
if (this.isExpressionExtended(val) && val.prim === 'pair') {
if (this.root instanceof BigMapToken) {
this.bigMap = this.root;
}
else if (this.isExpressionExtended(val) && val.prim === 'pair') {
var exp = val.args[0];

@@ -1160,7 +1166,7 @@ if (this.isExpressionExtended(exp) && exp.prim === 'big_map') {

};
Schema.prototype.Execute = function (val) {
var storage = this.root.Execute(val);
Schema.prototype.Execute = function (val, semantics) {
var storage = this.root.Execute(val, semantics);
return this.removeTopLevelAnnotation(storage);
};
Schema.prototype.ExecuteOnBigMapDiff = function (diff) {
Schema.prototype.ExecuteOnBigMapDiff = function (diff, semantics) {
if (!this.bigMap) {

@@ -1176,9 +1182,9 @@ throw new Error('No big map schema');

});
return this.bigMap.Execute(eltFormat);
return this.bigMap.Execute(eltFormat, semantics);
};
Schema.prototype.ExecuteOnBigMapValue = function (key) {
Schema.prototype.ExecuteOnBigMapValue = function (key, semantics) {
if (!this.bigMap) {
throw new Error('No big map schema');
}
return this.bigMap.ValueSchema.Execute(key);
return this.bigMap.ValueSchema.Execute(key, semantics);
};

@@ -1189,3 +1195,8 @@ Schema.prototype.EncodeBigMapKey = function (key) {

}
return this.bigMap.KeySchema.ToBigMapKey(key);
try {
return this.bigMap.KeySchema.ToBigMapKey(key);
}
catch (ex) {
throw new Error('Unable to encode big map key: ' + ex);
}
};

@@ -1203,2 +1214,5 @@ Schema.prototype.Encode = function (_value) {

};
/**
* @deprecated
*/
Schema.prototype.ComputeState = function (tx, state) {

@@ -1255,4 +1269,4 @@ var _a;

});
ParameterSchema.prototype.Execute = function (val) {
return this.root.Execute(val);
ParameterSchema.prototype.Execute = function (val, semantics) {
return this.root.Execute(val, semantics);
};

@@ -1277,3 +1291,3 @@ ParameterSchema.prototype.Encode = function () {

}));
})));
//# sourceMappingURL=taquito-michelson-encoder.umd.js.map

@@ -0,1 +1,2 @@

import { Semantic } from '../tokens/token';
import { ScriptResponse, MichelsonV1Expression } from '@taquito/rpc';

@@ -13,5 +14,5 @@ /**

constructor(val: MichelsonV1Expression);
Execute(val: any): any;
Execute(val: any, semantics?: Semantic): any;
Encode(...args: any[]): any;
ExtractSchema(): any;
}

@@ -0,1 +1,2 @@

import { Semantic } from '../tokens/token';
import { RpcTransaction } from './model';

@@ -15,5 +16,5 @@ import { ScriptResponse, MichelsonV1Expression } from '@taquito/rpc';

private removeTopLevelAnnotation;
Execute(val: any): any;
ExecuteOnBigMapDiff(diff: any[]): any;
ExecuteOnBigMapValue(key: any): any;
Execute(val: any, semantics?: Semantic): any;
ExecuteOnBigMapDiff(diff: any[], semantics?: Semantic): any;
ExecuteOnBigMapValue(key: any, semantics?: Semantic): any;
EncodeBigMapKey(key: string): {

@@ -29,3 +30,6 @@ key: {

ExtractSchema(): any;
/**
* @deprecated
*/
ComputeState(tx: RpcTransaction[], state: any): any;
}
export * from './schema/storage';
export * from './schema/parameter';
export { Semantic } from './tokens/token';

@@ -1,2 +0,2 @@

import { Token, TokenFactory, ComparableToken } from './token';
import { Token, TokenFactory, ComparableToken, Semantic } from './token';
export declare class BigMapToken extends Token {

@@ -25,3 +25,3 @@ protected val: {

int: string;
}): any;
}, semantic?: Semantic): any;
}

@@ -1,2 +0,2 @@

import { Token, TokenFactory } from './token';
import { Token, TokenFactory, Semantic } from './token';
export declare class ListToken extends Token {

@@ -17,5 +17,5 @@ protected val: {

Encode(args: any[]): any;
Execute(val: any): any;
Execute(val: any, semantics?: Semantic): any;
EncodeObject(args: any): any;
ExtractSchema(): string;
}

@@ -1,2 +0,2 @@

import { Token, TokenFactory } from './token';
import { Token, TokenFactory, Semantic } from './token';
export declare class MapToken extends Token {

@@ -20,3 +20,3 @@ protected val: {

};
Execute(val: any[]): {
Execute(val: any[], semantics?: Semantic): {
[key: string]: any;

@@ -23,0 +23,0 @@ };

@@ -1,2 +0,2 @@

import { Token, TokenFactory } from './token';
import { Token, TokenFactory, Semantic } from './token';
export declare class OptionToken extends Token {

@@ -20,4 +20,4 @@ protected val: {

EncodeObject(args: any): any;
Execute(val: any): any;
Execute(val: any, semantics?: Semantic): any;
ExtractSchema(): any;
}

@@ -1,2 +0,2 @@

import { Token, TokenFactory } from './token';
import { Token, TokenFactory, Semantic } from './token';
export declare class OrToken extends Token {

@@ -18,5 +18,5 @@ protected val: {

EncodeObject(args: any): any;
Execute(val: any): any;
Execute(val: any, semantics?: Semantic): any;
private traversal;
ExtractSchema(): any;
}

@@ -1,2 +0,2 @@

import { Token, TokenFactory } from './token';
import { Token, TokenFactory, Semantic } from './token';
export declare class PairToken extends Token {

@@ -19,3 +19,3 @@ protected val: {

private traversal;
Execute(val: any): {
Execute(val: any, semantics?: Semantic): {
[key: string]: any;

@@ -22,0 +22,0 @@ };

@@ -1,2 +0,2 @@

import { Token, TokenFactory } from './token';
import { Token, TokenFactory, Semantic } from './token';
export declare class SetToken extends Token {

@@ -17,5 +17,5 @@ protected val: {

Encode(args: any[]): any;
Execute(val: any): any;
Execute(val: any, semantics?: Semantic): any;
EncodeObject(args: any): any;
ExtractSchema(): string;
}

@@ -0,2 +1,6 @@

import { MichelsonV1Expression } from '@taquito/rpc';
export declare type TokenFactory = (val: any, idx: number) => Token;
export interface Semantic {
[key: string]: (value: MichelsonV1Expression, schema: MichelsonV1Expression) => any;
}
export interface ComparableToken extends Token {

@@ -30,5 +34,5 @@ ToBigMapKey(val: string): {

abstract ExtractSchema(): any;
abstract Execute(val: any): any;
abstract Execute(val: any, semantics?: Semantic): any;
abstract Encode(_args: any[]): any;
abstract EncodeObject(args: any): any;
}
{
"name": "@taquito/michelson-encoder",
"version": "5.0.1-beta.2",
"version": "5.1.0-beta.1",
"description": "converts michelson data and types into convenient JS/TS objects",

@@ -70,7 +70,7 @@ "keywords": [

"dependencies": {
"@taquito/utils": "^5.0.1-beta.2",
"@taquito/utils": "^5.1.0-beta.1",
"bignumber.js": "^9.0.0"
},
"devDependencies": {
"@taquito/rpc": "^5.0.1-beta.2",
"@taquito/rpc": "^5.1.0-beta.1",
"@types/jest": "^23.3.2",

@@ -102,3 +102,3 @@ "@types/node": "^10.14.13",

},
"gitHead": "e09eb813afa12fae51ae3a43e0dc04641c457979"
"gitHead": "eacdf7b79577ed401c726286a782c579ec52c3d2"
}

@@ -13,3 +13,3 @@ {

"path": "dist/lib/tokens/bigmap.js",
"sha512": "cafd4e169f43255302beb80570fd9361e3c06f22461e6d18aa437855767672599e19caba97993d756c9922b977661d662a47fb9fdf2578b49fd4bce11b15a9f7"
"sha512": "ea5988af682b42748d246ac8884f28773f438d79f17f9344c5b8192b968a8dbc12a81dec56b4577b016fd75a9190ce977941e2ba840caadc144da2e5a4b80ff1"
},

@@ -54,7 +54,7 @@ {

"path": "dist/lib/tokens/list.js",
"sha512": "620d1224320e03ddc1bc79bcc5eaaad89cf0b2dd3029945db4303ffa32eda7f6c3cc4e6f71ec0406c6964e34da371ffac2d9ef2034d33ddf72e7c3634a4c4ce2"
"sha512": "063d0d1b4e0a3f20d5b280e0474ea26b1f76db2782d604498b0d371066573024ea1c18e12c7ffad42f8d640ce649bcc0f82d311a9dfee6c3c3fa42695bd20fce"
},
{
"path": "dist/lib/tokens/map.js",
"sha512": "b6226f1fcb4a0303810f1472272251e2fad2f6e6f76c740171aac244aeb927b06321cf36980d8955d3943fb973079e8b730db0b7899a204ec1cddd87544fcef3"
"sha512": "724e46cd9dc3ded42ef8f7ea347f30dd9030aeaffc7094ab658810b4010ea96c8ca2c457e5eb9d90f64832b546138479944b9aa3a63a497cbdcc0d36fe01c7f7"
},

@@ -79,19 +79,19 @@ {

"path": "dist/lib/tokens/option.js",
"sha512": "1162e352e636bcc596883cc6fa6acd8d27a502ddd4e824593fdc4436c0a02725476546e705da427659e4fc1f20d23719b2419a40436474fb16f3aa813d6eda44"
"sha512": "6df25e4cb31cdcf5a0d6ac1ac76c9d0518fd7e70cf7009b4c51059c8300d83d10d5899ee82f6f970f16a4712df1cf0c4fc5b295dc5b870b15fa429bdaffea5a7"
},
{
"path": "dist/lib/tokens/or.js",
"sha512": "0c283939b51f819ee648c94d6c0db88292fb2803401ce6b8390f659b331e73010b1996d403a3ca34d0e4d6b4b58570fc35cd41b6855859a295cdc85b1f9afaa7"
"sha512": "fa4758e178b7f26bd0c64014991985fe9e6344004eb3e83512c005b747581d65274f65f8718b7a727d3f24fa5c243aabd3ca0f7547405cd5679ce3c67b2cdf5c"
},
{
"path": "dist/lib/tokens/pair.js",
"sha512": "0221fdc67adaa9becb1c8a3ce02333c0bb2f41f7f4a124064622a47eda4421c46e0ef352e4a753345f18700c03f408f53f353ed132fd57cc65ced14f71ff2740"
"sha512": "243f4a81fb2d2dad59f0ca991620c3dbc68f43a788c28e120eb431570e88246de2b1593f3a32bcd10334b463929424964baa800fef5e7b856a6e773f0f2ddf04"
},
{
"path": "dist/lib/schema/parameter.js",
"sha512": "80c573a403cac45eed978e9e3d4b9edf51b095bc54d5e9869688c3da0161e699e4c1e26a50d52667a08f7d27689f6e6f981602adf6a666ea5edca797bed65d6d"
"sha512": "35c504eb58f8024d3708a7097333b4b7bc68f02e1a0df88b765e01af08a73e3560ae95b09040e0c00a40a99e0260b7bd6e3dfd159743deac8cd185cd8aa87ce1"
},
{
"path": "dist/lib/tokens/set.js",
"sha512": "76b1a4448a50da891bd299f4ebeb7c4b64cfd9b6a1f9383c2aa6b6aeb8333eaf0ea78117138f1ca0eedbaacdfbf7554e84ce556eb9d7ab1e85d49acb4bf0df87"
"sha512": "79f9eaf8e7db25dcc0c6d1e7caed188b9a76967c9d2e2cfe8a8217b749b50cce1937799b36ec1c58bf820a9624a178a99199542a493f31bf21dd836d805e82e2"
},

@@ -104,3 +104,3 @@ {

"path": "dist/lib/schema/storage.js",
"sha512": "98b8d4c6b105c80f57f6cf140f9c591817602c5f5f3bdf74acfc9d5b5f5959704350ae0330ac2e86d540a210417455a36f6de5e301beb1aeadc6c5be02fc913f"
"sha512": "1325713e5ec5ebb0db36d0248d6404030ade0849feb0c7b99e213e41cef07c00502723541273b8a5dfa1405efdc9bfc12fcd621988c4eadb527cc33e4e52559a"
},

@@ -113,3 +113,3 @@ {

"path": "dist/taquito-michelson-encoder.es5.js",
"sha512": "0b9a4535e134cd1265ac21da645a77457476deef08fc18622ec90aaf236ba51f82b952ab5d60d45eb678448184bc198f25b829e1f66c0a1ca7f631ea88e055c6"
"sha512": "4a50dfbfef2c089e2b3ae83db993eaf12966efcab6b4868f164d77b2f8bf74d0307333367c1aa2b1317c7fa6113273ef8be5a67b6b52a37d86dadb7d8f5344bf"
},

@@ -122,3 +122,3 @@ {

"path": "dist/taquito-michelson-encoder.umd.js",
"sha512": "e3bd2af13a2b6b8c49fe0dedd0c26518ce4397a40f3dafb89bcaa47025fa09289475725c3a1a069056e217d76cd87602c6649fa4b6be0b7801220b729f79be35"
"sha512": "1b0c0e3785725f27590103f786e7bdb4aa1084ac74af727366e5c5abb1512e108cbb5306ae76c6e25d75a8f0af8ec7678fc386ddcfd47c66d217f257082a876c"
},

@@ -143,3 +143,3 @@ {

"path": "dist/lib/tokens/unit.js",
"sha512": "9c01cf7038b25c306930858f7d47f944b1672fa2f5aa9094172c942107af0ca5e5699c6e134e848018b6f53de63080e12faa043d71cb1edcad68ae4457887cb5"
"sha512": "d2b89103bdcf2c16c6faf276eca1cc346bf07756cc930626a1c3da12b8a1e3c1bda77c1bdc5fb4ab8777a35b0ef6c8ff8e5551ce42800cfc388dbe21d6906b6a"
},

@@ -152,3 +152,3 @@ {

"path": "dist/lib/tokens/bigmap.js.map",
"sha512": "b5cd5ca28a081446adf3ce876bc8cc38611d5ac54da02dc74e697bfed753efb4266d3d1363afb4f1f75bcee396953ea1c09a873a3d10859f95de8264adfcda98"
"sha512": "7bf6458bbbde316d13554bc9fff0e6d3fe0a66ed52809d20b11ddecf74e630904ea9246e647eee0b5e37d601c19bf7955272e722165d03b215b86288747e7cd7"
},

@@ -193,7 +193,7 @@ {

"path": "dist/lib/tokens/list.js.map",
"sha512": "c50c1a54f2e61a59f37fcfd58fbbc0d95c027fe61ff9ad7641e4fd1e410e7ba5c392d992b0dd70e77e7aa59b5f91b77b39176c412525f3f704b58aae16b89cb1"
"sha512": "6d67f5bd1e51749422aee8cd15b19f3f171c53117e0ade323e43713d6cb87692239f3c8d557a9c89f769b24a1104b5a724841f39897a874ca5a38af8a6efa8fa"
},
{
"path": "dist/lib/tokens/map.js.map",
"sha512": "bf8951af061990456c4707c12f9c7cb5dccbf87cb20ca5b44b579764c1c702baad07ea114fedca6bc400e4e916f5e78775f81411d5a0ed3a2e97d8009fd6d85e"
"sha512": "1c96d390fe89f599dd1ab1eccb513c664be6d91d434896fa1819e7a76817eaef927b4d748a3c4224e2b090112bb492d5c8531d08e4e704b21e5affe94d5b53d3"
},

@@ -218,19 +218,19 @@ {

"path": "dist/lib/tokens/option.js.map",
"sha512": "c5be0155b18afbee820c1a3c2d0e7892f20b6619cb316dd703201a862a00d637af749efa7f643a1c850dcc44f169c4912a11b956529b9a4425cf99a28c2a4932"
"sha512": "52e33301bb9d1b8c5478188e828c9a3d7a8a5c72f33fdf9186206ac99c97e556c8cd94c9d401e5a17be46e9742109032ae7d6f92e4e7df09e7da7f7f246b72a7"
},
{
"path": "dist/lib/tokens/or.js.map",
"sha512": "1f640d55cba1faefb39059a931a50c829f8ba1b682c2d3fa221c513cd966d5830da34247bbda1cfad12157f14e16a9758f7bf11cc5ce837271aa06b91fae88d2"
"sha512": "9ef4b0822c57b6984c44a76ef84f94e894834a36986be3ed68e71c5f5415a1c32f2a5a2da40a2b618203223c30a9df27ff3f5c9112e5e48515ebad09d8771b0a"
},
{
"path": "dist/lib/tokens/pair.js.map",
"sha512": "d5e8ce27cf42ce6e45197fead8f298e7eea4e4bbc9de9a989a0e98e49a54554aefed3f94622898d7acfd9dac1095e0b78efcf5a3856bcab6ec86f879839ddae5"
"sha512": "48d18d6f354365d1fc7f0e4c1b9f513625c32ede8a01725ac1e9a39d05ca830165450710e888b95aed7df982ef50b9d5e09507a61beb8bbe1d8df1143efd6e58"
},
{
"path": "dist/lib/schema/parameter.js.map",
"sha512": "85badf8128909bde6eae1440f7a34d02c399b80008e6f95e2245dba7a8c6e1f029e47a9551b82e569bb1c52b1cc18b98f05cbaec05db74a315c86aeb4725c7aa"
"sha512": "71737b74c352438d71790b369d424fdeeadcf959253108453a45196143c8249ceda0d1853420e46043426820fa6ea0793843b70f4f012fe7e004ad43ea23aa4a"
},
{
"path": "dist/lib/tokens/set.js.map",
"sha512": "120f6c8c82c70669b0b16908f950cd77c4ef1de199bae89403bbd8d18d50f64a04fbede293f5c9e200b1620c762b046b308c73ad3c6eaea2b27ade2749943843"
"sha512": "da2d856be4717c6f710f419773e38d94f12f61711ca22086769206417cc374f7b396d9f2c7ef47a330296655e0c7c640beb7396eac652bc29643daa2fbc4d023"
},

@@ -243,3 +243,3 @@ {

"path": "dist/lib/schema/storage.js.map",
"sha512": "d8d7eebc789b1606cbd852c32fdb407f8366a1bcdda275419e1901b6313edb8d49897a3844d072977c350ce90794957be203bfdf76c56ce3793fa1a12783be94"
"sha512": "30caecd0c920d70bf7faccf253f9c83df1618cb40b5b10cb72f9c3cbf335a4da21544bc0bec73f7829b4e1b5c3aa9ac17ecaedf2d5eb5bb475f3c279bc659fa6"
},

@@ -252,3 +252,3 @@ {

"path": "dist/taquito-michelson-encoder.es5.js.map",
"sha512": "5959fcb00a5c0e965cd0435aebd1c84557ae52dd26fd0913b022b91761cf3eff6eb388768c584ccf02c1e85d0be5bc6314b3b69a6a4e723c51fee5b3fdfc9912"
"sha512": "505c725bf85261763cf677dc82698194b4c33a30ecb15c92fe6374fc47933e8291e6509ca5df5a6e08a60c962dfca062fbf4ab228f5a60987203e7eeb2c81ddf"
},

@@ -261,3 +261,3 @@ {

"path": "dist/taquito-michelson-encoder.umd.js.map",
"sha512": "1fa8890af2cb30ab5d3657e1c414fb14b31a0458d4344388f2791283def98ecd18eeda5df29e44f3a55432323cd11e90a70e6055abe94cf85cb1ec2c797f6221"
"sha512": "395341dafc9bfcc9b7732358b0a0ae15ddd50c28ded78b0ccef59cc7f800677a0f80e57459920190a25843df8043de8c4cc9ea4757bc1434b1d8971523d78cf8"
},

@@ -270,3 +270,3 @@ {

"path": "dist/lib/tokens/token.js.map",
"sha512": "3f1e44df7804a14f9036a1b7e4acb0ccb587cd8dd4890d0a77f248b6953cfdc6275e203e72c2861871230ad17c71b2a6f5a036a1a992569173d17d9deb9f08dc"
"sha512": "501844b21d4f7a275fcffc9c28ea4958936540aaa4f3696bad15832f78bd888fe90f02c310f5354a7d85b29e1c253467111df180a977b1b5ffe17165a463a05d"
},

@@ -283,3 +283,3 @@ {

"path": "dist/lib/tokens/unit.js.map",
"sha512": "3d3d0fde22be4ac6ac3116707717487e15addf21117f9c50b9f2f9e482cc34882dcccaef77e962d537c604f71f8d8b01ae8dcf3ef41b38dbe76d2750a61a971f"
"sha512": "f69553e35ae670dbec848a99ab942cbba2014f7d9df7fa904d2a1d10d3e221649dd2331a2b4a0c96a81a87cea79bb2e1aa35ba2ab2ef628e6126a5a703f1a12b"
},

@@ -296,3 +296,3 @@ {

"path": "dist/types/tokens/bigmap.d.ts",
"sha512": "9fa2a09be5e2b5b9a20bf85aed20e3343301777c39445e19530f004dd2c048c78afd78a091bf15be7d33a8f007da08e5b403618555cf65c04583f4d996d22fe3"
"sha512": "69a4ff5bd7ca9e9879c8c2880df215b7adf5330445cade1a6b4079c46a6ecb546cda0a719b0383a03d38101905e6a9517a7ae4661d95466f411cc6a6627af1db"
},

@@ -337,7 +337,7 @@ {

"path": "dist/types/tokens/list.d.ts",
"sha512": "8fb52ce052073160d5c731e4c5a07f9404534cfd63bb05195d46ce9b25a28348e96daa4f1b3cd08d369804588159cec5ef174fcecade3c9b4da268bebcc99811"
"sha512": "cb69f5643750b6605662067bd8725746b96a8afa7e712464782bb7c367b603765abe67a7bb4c9c7900f59be1d94e0c41f82604be1fde22b441563acd6eb6ff9b"
},
{
"path": "dist/types/tokens/map.d.ts",
"sha512": "260c89a40dfbdb8cc633e5316308ca6ee2a609fe11e2d708365817a163c0ff91c6978af98af40048f446c2a09fa1361a42074300493f6098496421ab19d12fc0"
"sha512": "44e3cb5f66d078252bf32f27aa4c9aabfd04f921e36a58023ce9b0d53ca8eec19c46d96d73e5aa02b0d53e5227edda6ef82e122a02e71e95a76f1785c6eb8de1"
},

@@ -362,19 +362,19 @@ {

"path": "dist/types/tokens/option.d.ts",
"sha512": "100f14b9fd8bfc960c032fcbdda3d098e33d38c69fb7d441f9fbca728922c0ce7f85e155e33ae23855901a0dd2eeabea05e228bf5e9373d595630a4a25e81746"
"sha512": "6c1b065757cbf918b830ed7921c11d353de8795973af8e65d65a1f74ccfa90a92dbbae19d4cfd9332e05b8bc3171ba2aec1572c8c17d9aa1cde65bb2ef67da6f"
},
{
"path": "dist/types/tokens/or.d.ts",
"sha512": "29c1ff612c40e1df279ea29ef7b6edeab09f80f8f9937176df66ae98f79dad959d9464f8dbdf85bb2d352182360736ac1d564a7a9b5e5b8463b251b5327e1991"
"sha512": "c52d159389a306f576f3451da1c9ca5b8f55a114bc010c0d8fbb59857d72a6207c6f97e75848e7ba667d513945245e8dc578d925eea0439c5e6822817c252df2"
},
{
"path": "dist/types/tokens/pair.d.ts",
"sha512": "88a4fa538e7b13d4853072cbea6c8b8555e1aa75cceb50a198b347ea109e6696b0b87ac767669586557f2cf05c017f26a09a0d48b75790b46b18a3cd1bfe283a"
"sha512": "27c2df6b78a66dfae2b8b449802ed12515a9b7deb1805e36f4b54f1540adf759145e630399507c4d4c73baa2110b3c6759e49b8d7ea406f15a658f8be4337e3f"
},
{
"path": "dist/types/schema/parameter.d.ts",
"sha512": "81d671821e4f73dc997fdb4b8acba74569c56d597f9f9773166652c59438bb3e520a5753b110e62f5b83bfbbd27dfeffaf7d4fb916ec0a0ed317c387b2b8d76b"
"sha512": "50edb28a9a33e524e2c6d4eda1bebc1669e02d7691428e201852050150afb9754c904d277b70bf994c7373b0e01f0652176dd16356baaa918d44d652cf180e91"
},
{
"path": "dist/types/tokens/set.d.ts",
"sha512": "9b277a698ccdb22dba33967119ac91a562930428f9e3306ca9b8835dcc44bddd1ad6504d0d1f79404bb5c8aa3ac21d3c1d45d3bb78c60afd441001a888e2c075"
"sha512": "b94ef17d12ccf4eff63378c5d8c292f9e3d42a96292c571f870c0c40e7fc53d637f3f69754d3c5ca2dbcfe0332c61155f2a86f5cf08084d6f06ef992b7860d50"
},

@@ -387,3 +387,3 @@ {

"path": "dist/types/schema/storage.d.ts",
"sha512": "a7b23511bdbbc1e46c2bcdc327214b092e981d92c9cfe5bce486fae36e61a6c5f536e35185e6d03ce2f13fdfd95a2818536c3e5b86eb473b0a3813b466d2181f"
"sha512": "132a794cf85eacb67aa1fbeb0e1e25fc54038ca95f4da60a9002d8cbfc2e82490d3dcf4f62879ec95770823ca962ececaccfe80c402d92f0322dfbbac762350b"
},

@@ -396,3 +396,3 @@ {

"path": "dist/types/taquito-michelson-encoder.d.ts",
"sha512": "800d1c7b54b7ad4fc2e13d82b6a8e5c922cc8c943b414db4eaf9d6a449c2f53dd9a6666749af269505ed1762332e8b6d1ab5e5b50291fbece448042cc375be2b"
"sha512": "2e33ac587308853ab6718b4d8e3341bfabc6fb7a68552c8ebe7297c6d37f0f094bcc765453b5be9843d2fb2b89a65b7f4cad0b102c86a4240423d7d0a48490f4"
},

@@ -405,3 +405,3 @@ {

"path": "dist/types/tokens/token.d.ts",
"sha512": "ad45ed4fda2b1115e8b5a3093613e2838df09e67f0e63fd29fd4c1fb9e9deca62c61aa5a89c64763fb4e42694b2593fa3fca88ab5837b09e52fe11b38d16c747"
"sha512": "4b88f1573d115c55ec5c097fe8e740e7cb6981eacb801fc7d1199fba1460e22a01827cf2eb32156054630001f4d6fb39c6b755537f18db1a7256b935ed41995e"
},

@@ -454,3 +454,3 @@ {

],
"sha512": "c2b0fa1e8d70d29a9a15cda49a274f9bb8371a631b05207ffb470589d0baf6ea558ac490d7c4f6ac4cb97df5cb6ac3f0b4f50a854be44d51158c0fb611cd59bc"
"sha512": "64873ab3d78e6f09ca623b31259bc1e3fc26f956f114e7535b45e965a4dadc2cb4c7ad306268ca2a723d53d180e1ade93379358dcf68560adbb06fd68ce5af67"
}

@@ -463,3 +463,3 @@ },

"name": "@taquito/michelson-encoder",
"version": "5.0.1-beta.2",
"version": "5.1.0-beta.1",
"description": "converts michelson data and types into convenient JS/TS objects",

@@ -531,7 +531,7 @@ "keywords": [

"dependencies": {
"@taquito/utils": "^5.0.1-beta.2",
"@taquito/utils": "^5.1.0-beta.1",
"bignumber.js": "^9.0.0"
},
"devDependencies": {
"@taquito/rpc": "^5.0.1-beta.2",
"@taquito/rpc": "^5.1.0-beta.1",
"@types/jest": "^23.3.2",

@@ -567,3 +567,3 @@ "@types/node": "^10.14.13",

],
"signature": "-----BEGIN PGP SIGNATURE-----\n\nwsFcBAABCAAQBQJdphLeCRAD9Qy5GYHsngAAgbAQAAa46JGIjGtMBWGOBDjFTSbz\nAEuUji56/fu4WPKGc3enuCT7JrV8GGVCyfNkKDIQeW43haYBRY+zAPhfuxmFLegK\nDexsv4hdX4LcLsoSl11u5WU/5NGwEWxPtq74G5UgPSun+GESqJoKO7nFKb71k5dc\nR0af80J4iV6UUsxIUJYKNcPWt4h8EBTE4sFh+HLHRitf90bRWrfc3Jd3e64bAmaN\nYHLBAZMzFXdPpoE1MgqHjlFoSHB1sWv9Ph+YqBRGqrB9kddQl7nQS8v7y7eubyHO\ndPg4h8AmOomO42LB/gIJ+LX+5Vuv5JdQJByuyZmYZlZFrC6fk0RCIBKfOxQZR+Kx\nmT6rfxi54xAmQsIelIxTMyzOoBt7jf8aMyp4pSntzsIYEmU/06/gu37hFFLhXoBU\n3dXEggA1FmX3cEN9NgNWwh+wFotDRJ0oUvzfHcYuCTsA3weyEv654ravDJjC+z8I\nH9X2UQO/PY8FuCBMYQGYJnblm9VVawaacSIZvb5N06PZ41AviHx2WBHdhYaLFMr8\nICGyRNN0SMvNZBzD4wJRYO2yqhFLEDgNbphh9qA2qUnJ3fcgyap+kPrHP3izwU6n\n41bbT02tNgUSa3pWOHns83mty0i30KV7ndSFCuZ/vKAenbkr+qxFz91UZjm/W0IT\nxNnHXuJKLiY3E+hoJwhN\n=VtKe\n-----END PGP SIGNATURE-----\n"
"signature": "-----BEGIN PGP SIGNATURE-----\n\nwsFcBAABCAAQBQJdsz2dCRAD9Qy5GYHsngAA+b8QAJ2SIGBWy8edIK515ZAVB7Yw\nDC3WLDLN5UT9p8sZSuvI+bRz+NXZSk6oaHP09lAcxf6z6GGx3+76xvoLYSPSozJS\nw1z04y69nUfF04uen+lP86SN1Br351mHIzRwLVRBBD+99D3ok++VNuleY8uboL4U\nix4Q3yBWZakZVzlmpRFFuj0aJCPRLxDej3Wg/VQcVCeFbMDsDmJkrm5aTxNw5zuD\nqU/cEyGLsfbeqB24rGZRy4QB+Jv7cDqGKDhKfQ3pqYQLEGMxEL2LenD3hu7QZzzt\nvdvupsh127eGHQZPZx1UABXrX8xEPmM36IN3u7L9ehB4a3ODo2jfbPXgelsaXlfK\nUKdxk9khjlGggtetyjis88vAlteV/STXvti3Bk/XBUkEG0vkxFI4YA5akTcgIeIM\nmzi/38M/HJNyaBHTELO+vIm50qExKkPxpcB6I7pnh99fzOKIlfw6+hJJDbkkuoix\njaqjVEGB6FCyT1LieaCOqUfhU8282NQKUmb04b/VVMFuIanQVN3hchO5ftt1fTs7\nhLI/3QYGLSy5ble7QCNMCm//6YZsi1zRLYIKFGIy18DWiT5VoW4ooLnjp5whmoKe\n5TXwnTvcvL6cIW24n2muz9DrdMwQU8nZi2veD7o9jHKTn6XTriZzHEPIW7h4lgIl\nCYIY1de8q2DqtgT7xyLu\n=nXMP\n-----END PGP SIGNATURE-----\n"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc