@tezos-x/octez.js-michel-codec 0.9.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/README.md +174 -0
- package/dist/lib/base58.js +255 -0
- package/dist/lib/binary.js +1272 -0
- package/dist/lib/errors.js +90 -0
- package/dist/lib/formatters.js +60 -0
- package/dist/lib/global-constants.js +12 -0
- package/dist/lib/macros.js +548 -0
- package/dist/lib/micheline-emitter.js +132 -0
- package/dist/lib/micheline-parser.js +403 -0
- package/dist/lib/micheline.js +5 -0
- package/dist/lib/michelson-contract.js +93 -0
- package/dist/lib/michelson-typecheck.js +1752 -0
- package/dist/lib/michelson-types.js +83 -0
- package/dist/lib/michelson-validator.js +835 -0
- package/dist/lib/octez.js-michel-codec.js +38 -0
- package/dist/lib/scan.js +128 -0
- package/dist/lib/utils.js +321 -0
- package/dist/lib/version.js +8 -0
- package/dist/octez.js-michel-codec.es6.js +5790 -0
- package/dist/octez.js-michel-codec.es6.js.map +1 -0
- package/dist/octez.js-michel-codec.umd.js +5854 -0
- package/dist/octez.js-michel-codec.umd.js.map +1 -0
- package/dist/types/base58.d.ts +13 -0
- package/dist/types/binary.d.ts +127 -0
- package/dist/types/errors.d.ts +57 -0
- package/dist/types/formatters.d.ts +6 -0
- package/dist/types/global-constants.d.ts +3 -0
- package/dist/types/macros.d.ts +13 -0
- package/dist/types/micheline-emitter.d.ts +17 -0
- package/dist/types/micheline-parser.d.ts +130 -0
- package/dist/types/micheline.d.ts +44 -0
- package/dist/types/michelson-contract.d.ts +24 -0
- package/dist/types/michelson-typecheck.d.ts +38 -0
- package/dist/types/michelson-types.d.ts +147 -0
- package/dist/types/michelson-validator.d.ts +66 -0
- package/dist/types/octez.js-michel-codec.d.ts +16 -0
- package/dist/types/scan.d.ts +26 -0
- package/dist/types/utils.d.ts +77 -0
- package/dist/types/version.d.ts +4 -0
- package/package.json +94 -0
- package/signature.json +315 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Prim, Expr, StringLiteral } from './micheline';
|
|
2
|
+
import { MichelsonError } from './utils';
|
|
3
|
+
import { MichelsonCode, MichelsonType, MichelsonData, MichelsonContract, MichelsonInstruction, InstructionList } from './michelson-types';
|
|
4
|
+
export declare const instructionIDs: Record<MichelsonInstruction['prim'], true>;
|
|
5
|
+
export declare class MichelsonValidationError extends MichelsonError {
|
|
6
|
+
readonly val: Expr;
|
|
7
|
+
readonly message: string;
|
|
8
|
+
/**
|
|
9
|
+
* @param val Value of a node caused the error
|
|
10
|
+
* @param message An error message
|
|
11
|
+
*/
|
|
12
|
+
constructor(val: Expr, message: string);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Checks if the node is a valid Michelson code (sequence of instructions).
|
|
16
|
+
* This is a type guard function which either returns true of throws an exception.
|
|
17
|
+
* @param ex An AST node
|
|
18
|
+
*/
|
|
19
|
+
export declare function assertMichelsonInstruction(ex: Expr): ex is MichelsonCode;
|
|
20
|
+
export declare function assertMichelsonComparableType(ex: Expr): ex is MichelsonType;
|
|
21
|
+
export declare function assertMichelsonPackableType(ex: Expr): ex is MichelsonType;
|
|
22
|
+
export declare function assertMichelsonPushableType(ex: Expr): ex is MichelsonType;
|
|
23
|
+
export declare function assertMichelsonStorableType(ex: Expr): ex is MichelsonType;
|
|
24
|
+
export declare function assertMichelsonPassableType(ex: Expr): ex is MichelsonType;
|
|
25
|
+
export declare function assertMichelsonBigMapStorableType(ex: Expr): ex is MichelsonType;
|
|
26
|
+
export declare function assertViewNameValid(name: StringLiteral): void;
|
|
27
|
+
/**
|
|
28
|
+
* Checks if the node is a valid Michelson type expression.
|
|
29
|
+
* This is a type guard function which either returns true of throws an exception.
|
|
30
|
+
* @param ex An AST node
|
|
31
|
+
*/
|
|
32
|
+
export declare function assertMichelsonType(ex: Expr): ex is MichelsonType;
|
|
33
|
+
/**
|
|
34
|
+
* Checks if the node is a valid Michelson data literal such as `(Pair {Elt "0" 0} 0)`.
|
|
35
|
+
* This is a type guard function which either returns true of throws an exception.
|
|
36
|
+
* @param ex An AST node
|
|
37
|
+
*/
|
|
38
|
+
export declare function assertMichelsonData(ex: Expr): ex is MichelsonData;
|
|
39
|
+
/**
|
|
40
|
+
* Checks if the node is a valid Michelson smart contract source containing all required and valid properties such as `parameter`, `storage` and `code`.
|
|
41
|
+
* This is a type guard function which either returns true of throws an exception.
|
|
42
|
+
* @param ex An AST node
|
|
43
|
+
*/
|
|
44
|
+
export declare function assertMichelsonContract(ex: Expr): ex is MichelsonContract;
|
|
45
|
+
/**
|
|
46
|
+
* Checks if the node is a valid Michelson smart contract source containing all required and valid properties such as `parameter`, `storage` and `code`.
|
|
47
|
+
* @param ex An AST node
|
|
48
|
+
*/
|
|
49
|
+
export declare function isMichelsonScript(ex: Expr): ex is MichelsonContract;
|
|
50
|
+
/**
|
|
51
|
+
* Checks if the node is a valid Michelson data literal such as `(Pair {Elt "0" 0} 0)`.
|
|
52
|
+
* @param ex An AST node
|
|
53
|
+
*/
|
|
54
|
+
export declare function isMichelsonData(ex: Expr): ex is MichelsonData;
|
|
55
|
+
/**
|
|
56
|
+
* Checks if the node is a valid Michelson code (sequence of instructions).
|
|
57
|
+
* @param ex An AST node
|
|
58
|
+
*/
|
|
59
|
+
export declare function isMichelsonCode(ex: Expr): ex is InstructionList;
|
|
60
|
+
/**
|
|
61
|
+
* Checks if the node is a valid Michelson type expression.
|
|
62
|
+
* @param ex An AST node
|
|
63
|
+
*/
|
|
64
|
+
export declare function isMichelsonType(ex: Expr): ex is MichelsonType;
|
|
65
|
+
export declare function isInstruction(p: Prim): p is MichelsonInstruction;
|
|
66
|
+
export declare function assertDataListIfAny(d: MichelsonData): d is MichelsonData[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @packageDocumentation
|
|
3
|
+
* @module @tezos-x/octez.js-michel-codec
|
|
4
|
+
*/
|
|
5
|
+
export * from './micheline';
|
|
6
|
+
export * from './micheline-parser';
|
|
7
|
+
export * from './micheline-emitter';
|
|
8
|
+
export * from './michelson-validator';
|
|
9
|
+
export * from './michelson-types';
|
|
10
|
+
export * from './michelson-typecheck';
|
|
11
|
+
export * from './michelson-contract';
|
|
12
|
+
export * from './formatters';
|
|
13
|
+
export * from './binary';
|
|
14
|
+
export { MichelsonError, isMichelsonError, MichelsonTypeError } from './utils';
|
|
15
|
+
export { MacroError } from './macros';
|
|
16
|
+
export { VERSION } from './version';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { TaquitoError } from '@tezos-x/octez.js-core';
|
|
2
|
+
/**
|
|
3
|
+
* @category Error
|
|
4
|
+
* @description Error that indicates a failure when performing the scan step when parsing Michelson
|
|
5
|
+
*/
|
|
6
|
+
export declare class ScanError extends TaquitoError {
|
|
7
|
+
readonly src: string;
|
|
8
|
+
readonly idx: number;
|
|
9
|
+
readonly message: string;
|
|
10
|
+
constructor(src: string, idx: number, message: string);
|
|
11
|
+
}
|
|
12
|
+
export declare enum Literal {
|
|
13
|
+
Comment = 0,
|
|
14
|
+
Number = 1,
|
|
15
|
+
String = 2,
|
|
16
|
+
Bytes = 3,
|
|
17
|
+
Ident = 4
|
|
18
|
+
}
|
|
19
|
+
export type TokenType = '(' | ')' | '{' | '}' | ';' | Literal;
|
|
20
|
+
export interface Token {
|
|
21
|
+
t: TokenType;
|
|
22
|
+
v: string;
|
|
23
|
+
first: number;
|
|
24
|
+
last: number;
|
|
25
|
+
}
|
|
26
|
+
export declare function scan(src: string, scanComments?: boolean): Generator<Token, void>;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { Prim, Expr, StringLiteral, IntLiteral } from './micheline';
|
|
2
|
+
import { MichelsonData, MichelsonDataPair, MichelsonType, MichelsonTypePair } from './michelson-types';
|
|
3
|
+
import { TaquitoError } from '@tezos-x/octez.js-core';
|
|
4
|
+
export type Tuple<N extends number, T> = N extends 1 ? [T] : N extends 2 ? [T, T] : N extends 3 ? [T, T, T] : N extends 4 ? [T, T, T, T] : N extends 5 ? [T, T, T, T, T] : N extends 6 ? [T, T, T, T, T, T] : N extends 7 ? [T, T, T, T, T, T, T] : N extends 8 ? [T, T, T, T, T, T, T, T] : T[];
|
|
5
|
+
type RequiredProp<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;
|
|
6
|
+
type OmitProp<T, K extends keyof T> = Omit<T, K> & {
|
|
7
|
+
[P in K]?: undefined;
|
|
8
|
+
};
|
|
9
|
+
export type ReqArgs<T extends Prim> = RequiredProp<T, 'args'>;
|
|
10
|
+
export type NoArgs<T extends Prim> = OmitProp<T, 'args'>;
|
|
11
|
+
export type NoAnnots<T extends Prim> = OmitProp<T, 'annots'>;
|
|
12
|
+
export type Nullable<T> = {
|
|
13
|
+
[P in keyof T]: T[P] | null;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* @category Error
|
|
17
|
+
* @description Error that indicates a Michelson failure occurring
|
|
18
|
+
*/
|
|
19
|
+
export declare class MichelsonError<T extends Expr = Expr> extends TaquitoError {
|
|
20
|
+
readonly val: T;
|
|
21
|
+
readonly message: string;
|
|
22
|
+
/**
|
|
23
|
+
* @param val Value of a AST node caused the error
|
|
24
|
+
* @param path Path to a node caused the error
|
|
25
|
+
* @param message An error message
|
|
26
|
+
*/
|
|
27
|
+
constructor(val: T, message: string);
|
|
28
|
+
}
|
|
29
|
+
export declare function isMichelsonError<T extends Expr = Expr>(err: unknown): err is MichelsonError<T>;
|
|
30
|
+
export declare class MichelsonTypeError extends MichelsonError<MichelsonType | MichelsonType[]> {
|
|
31
|
+
readonly val: MichelsonType | MichelsonType[];
|
|
32
|
+
readonly message: string;
|
|
33
|
+
data?: Expr;
|
|
34
|
+
/**
|
|
35
|
+
* @param val Value of a type node caused the error
|
|
36
|
+
* @param data Value of a data node caused the error
|
|
37
|
+
* @param message An error message
|
|
38
|
+
*/
|
|
39
|
+
constructor(val: MichelsonType | MichelsonType[], message: string, data?: Expr);
|
|
40
|
+
}
|
|
41
|
+
export declare class LongInteger {
|
|
42
|
+
private neg;
|
|
43
|
+
private buf;
|
|
44
|
+
private append;
|
|
45
|
+
constructor(arg?: string | number);
|
|
46
|
+
cmp(arg: LongInteger): number;
|
|
47
|
+
get sign(): number;
|
|
48
|
+
}
|
|
49
|
+
export declare function parseBytes(s: string): number[] | null;
|
|
50
|
+
export declare function compareBytes(a: number[] | Uint8Array, b: number[] | Uint8Array): number;
|
|
51
|
+
export declare function isDecimal(x: string): boolean;
|
|
52
|
+
export declare function isNatural(x: string): boolean;
|
|
53
|
+
export interface UnpackedAnnotations {
|
|
54
|
+
f?: string[];
|
|
55
|
+
t?: string[];
|
|
56
|
+
v?: string[];
|
|
57
|
+
}
|
|
58
|
+
export interface UnpackAnnotationsOptions {
|
|
59
|
+
specialVar?: boolean;
|
|
60
|
+
emptyVar?: boolean;
|
|
61
|
+
specialFields?: boolean;
|
|
62
|
+
emptyFields?: boolean;
|
|
63
|
+
}
|
|
64
|
+
export declare function unpackAnnotations(p: Prim | Expr[], opt?: UnpackAnnotationsOptions): UnpackedAnnotations;
|
|
65
|
+
export type TezosIDType = 'BlockHash' | 'OperationHash' | 'OperationListHash' | 'OperationListListHash' | 'ProtocolHash' | 'ContextHash' | 'ED25519PublicKeyHash' | 'SECP256K1PublicKeyHash' | 'P256PublicKeyHash' | 'ContractHash' | 'CryptoboxPublicKeyHash' | 'ED25519Seed' | 'ED25519PublicKey' | 'SECP256K1SecretKey' | 'P256SecretKey' | 'ED25519EncryptedSeed' | 'SECP256K1EncryptedSecretKey' | 'P256EncryptedSecretKey' | 'SECP256K1PublicKey' | 'P256PublicKey' | 'SECP256K1Scalar' | 'SECP256K1Element' | 'ED25519SecretKey' | 'ED25519Signature' | 'SECP256K1Signature' | 'P256Signature' | 'GenericSignature' | 'ChainID' | 'RollupAddress';
|
|
66
|
+
export type TezosIDPrefix = [number, number[]];
|
|
67
|
+
export declare const tezosPrefix: Record<TezosIDType, TezosIDPrefix>;
|
|
68
|
+
export declare function checkDecodeTezosID<T extends TezosIDType[]>(id: string, ...types: T): [T[number], number[]] | null;
|
|
69
|
+
export declare function encodeTezosID(id: TezosIDType, data: number[] | Uint8Array): string;
|
|
70
|
+
type PairTypeOrDataPrim<I extends 'pair' | 'Pair'> = I extends 'pair' ? Extract<MichelsonTypePair<MichelsonType[]>, Prim> : Extract<MichelsonDataPair<MichelsonData[]>, Prim>;
|
|
71
|
+
export declare function unpackComb<I extends 'pair' | 'Pair'>(id: I, v: I extends 'pair' ? MichelsonTypePair<MichelsonType[]> : MichelsonDataPair<MichelsonData[]>): PairTypeOrDataPrim<I>;
|
|
72
|
+
export declare function isPairType(t: MichelsonType): t is MichelsonTypePair<MichelsonType[]>;
|
|
73
|
+
export declare function isPairData(d: Expr): d is MichelsonDataPair<MichelsonData[]>;
|
|
74
|
+
export declare function parseDate(a: StringLiteral | IntLiteral): Date | null;
|
|
75
|
+
export declare function parseHex(s: string): number[];
|
|
76
|
+
export declare function hexBytes(bytes: number[]): string;
|
|
77
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tezos-x/octez.js-michel-codec",
|
|
3
|
+
"version": "0.9.0",
|
|
4
|
+
"description": "Michelson parser/validator/formatter",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"tezos",
|
|
7
|
+
"blockchain",
|
|
8
|
+
"signer"
|
|
9
|
+
],
|
|
10
|
+
"main": "./dist/octez.js-michel-codec.umd.js",
|
|
11
|
+
"module": "./dist/octez.js-michel-codec.es6.js",
|
|
12
|
+
"typings": "./dist/types/octez.js-michel-codec.d.ts",
|
|
13
|
+
"files": [
|
|
14
|
+
"dist",
|
|
15
|
+
"signature.json"
|
|
16
|
+
],
|
|
17
|
+
"publishConfig": {
|
|
18
|
+
"access": "public"
|
|
19
|
+
},
|
|
20
|
+
"author": "Eugene Zagidullin <eugene@ecadlabs.com>",
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://github.com/trilitech/octez.js.git"
|
|
24
|
+
},
|
|
25
|
+
"license": "Apache-2.0",
|
|
26
|
+
"engines": {
|
|
27
|
+
"node": ">=20"
|
|
28
|
+
},
|
|
29
|
+
"scripts": {
|
|
30
|
+
"test": "jest --coverage",
|
|
31
|
+
"test:watch": "jest --coverage --watch",
|
|
32
|
+
"test:prod": "npm run lint && npm run test -- --no-cache",
|
|
33
|
+
"lint": "eslint --ext .js,.ts .",
|
|
34
|
+
"precommit": "lint-staged",
|
|
35
|
+
"prebuild": "rimraf dist",
|
|
36
|
+
"version-stamp": "node ../octez.js/version-stamping.js",
|
|
37
|
+
"build": "tsc --project ./tsconfig.prod.json --module commonjs && rollup -c rollup.config.ts --bundleConfigAsCjs",
|
|
38
|
+
"start": "rollup -c rollup.config.ts --bundleConfigAsCjs -w"
|
|
39
|
+
},
|
|
40
|
+
"lint-staged": {
|
|
41
|
+
"{src,test}/**/*.ts": [
|
|
42
|
+
"prettier --write",
|
|
43
|
+
"eslint --fix"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"jest": {
|
|
47
|
+
"transform": {
|
|
48
|
+
".(ts|tsx)": "ts-jest"
|
|
49
|
+
},
|
|
50
|
+
"testEnvironment": "node",
|
|
51
|
+
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
|
|
52
|
+
"moduleFileExtensions": [
|
|
53
|
+
"ts",
|
|
54
|
+
"tsx",
|
|
55
|
+
"js"
|
|
56
|
+
],
|
|
57
|
+
"moduleNameMapper": {
|
|
58
|
+
"^@tezos-x/octez.js-utils$": "<rootDir>/../octez.js-utils/src/octez.js-utils.ts"
|
|
59
|
+
},
|
|
60
|
+
"coveragePathIgnorePatterns": [
|
|
61
|
+
"/node_modules/",
|
|
62
|
+
"/test/"
|
|
63
|
+
],
|
|
64
|
+
"collectCoverageFrom": [
|
|
65
|
+
"src/**/*.{js,ts}"
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
"dependencies": {
|
|
69
|
+
"@tezos-x/octez.js-core": "*"
|
|
70
|
+
},
|
|
71
|
+
"devDependencies": {
|
|
72
|
+
"@types/bluebird": "^3.5.42",
|
|
73
|
+
"@types/jest": "^29.5.12",
|
|
74
|
+
"@types/node": "^20",
|
|
75
|
+
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
76
|
+
"@typescript-eslint/parser": "^6.21.0",
|
|
77
|
+
"eslint": "^8.57.0",
|
|
78
|
+
"jest": "^29.7.0",
|
|
79
|
+
"jest-config": "^29.7.0",
|
|
80
|
+
"jest-extended": "^4.0.2",
|
|
81
|
+
"lint-staged": "^15.2.7",
|
|
82
|
+
"lodash.camelcase": "^4.3.0",
|
|
83
|
+
"prettier": "^3.3.3",
|
|
84
|
+
"rimraf": "^6.0.1",
|
|
85
|
+
"rollup": "^4.22.4",
|
|
86
|
+
"rollup-plugin-json": "^4.0.0",
|
|
87
|
+
"rollup-plugin-typescript2": "^0.36.0",
|
|
88
|
+
"ts-jest": "^29.2.3",
|
|
89
|
+
"ts-node": "^10.9.2",
|
|
90
|
+
"ts-toolbelt": "^9.6.0",
|
|
91
|
+
"typescript": "~5.5.4"
|
|
92
|
+
},
|
|
93
|
+
"gitHead": "551e35aeff7d6dcde1c72284238c0ed3c3aae77e"
|
|
94
|
+
}
|
package/signature.json
ADDED
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
{
|
|
2
|
+
"entries": [
|
|
3
|
+
{
|
|
4
|
+
"entry": "files/v1alpha2",
|
|
5
|
+
"value": {
|
|
6
|
+
"files": [
|
|
7
|
+
{
|
|
8
|
+
"path": "dist/lib/base58.js",
|
|
9
|
+
"sha512": "9783d1d58adfc0bf9863004939fb25b87891ba7882cf705f803181012ee99f6bf9296a11e11d03dffae6915f987ffaa815d0704b997bb83a565bd61c34a1adf0"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"path": "dist/lib/formatters.js",
|
|
13
|
+
"sha512": "cb0319e6e80fafa5b05db9984b410f9617f2f05b9f842d517e8afda6b8d5ddd9cddb1c0445e7edc2e35acf89402548b0c613010962cb6d5b3172fa254579f4fc"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"path": "dist/lib/macros.js",
|
|
17
|
+
"sha512": "cf7792cc212d35a25c7e8b57d483350e80a8e15f295bcf5e2f1c24e06239adf8ec674b66e6116dc9c4e943bb5470b096222afca352f44cc6c3763c897e38c48f"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"path": "dist/lib/micheline-emitter.js",
|
|
21
|
+
"sha512": "3b580f3b6514603e2061c1ffc6180fd7983ab38902fe556d097b1e2cb2781a66b038a80974c1258efee415333a3d7f016e7b5eff2f329ddd4f29e3ec17b8b28c"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"path": "dist/lib/micheline-parser.js",
|
|
25
|
+
"sha512": "f6d6399c403d4bfc1e252566b6a01b159037d9a7a5f176c19bc13b97c1208cbecfd9af4f10c945dbaccfaf5223eb7f34944768d5d57188591d34c4b05509cdec"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"path": "dist/lib/micheline.js",
|
|
29
|
+
"sha512": "769739b48ab6bd971c7108fcb1d56ddf856281a42ad3b3333cab8c4c2128602d025cb7b347cc2e203725169c52b90df802af9407a24b2693f11b5c9ce06087fd"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"path": "dist/lib/michelson-contract.js",
|
|
33
|
+
"sha512": "b76a2de09bbdca9129ae002985def95d3c6629e8ae61a63028f0bc522cfda01a631d5ceacff3474b659310a27519a3daa81250717b093640e20e43c3f3d3d2c2"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"path": "dist/lib/michelson-typecheck.js",
|
|
37
|
+
"sha512": "f9d8b5e0398d6b3f0f926bf63ca234dc13bc83a4765b3956b1123f35b42fc16552aeb6b9ab579b4ed678dbb2e8bf06ba99096bde40a03e481f77b22453003476"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"path": "dist/lib/michelson-types.js",
|
|
41
|
+
"sha512": "a3b7c1d1665feadb8214d99afd9d811bdb390ee745bbf2f0fa11410e98eae28118a835409ac8971c20fdde64e80e6f64afc6328ea44d9f7550e33fd26ad06193"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"path": "dist/lib/michelson-validator.js",
|
|
45
|
+
"sha512": "84ddb792c7a56b7b4bd462d425720a31fc13f0d8421039f4e748b268156027418b7fdd50cd28d79d433a425be0d197b38b99bbc7e3d4cd2d565bb71bf31abb40"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"path": "dist/lib/scan.js",
|
|
49
|
+
"sha512": "0688fa100679dd93e764a8068e22ab6b58225602ad77328d728e44257db5bda57b7864f0f8420b7e84b9a4c8965a722b501eaec01c45ae8502ddde7ed402874e"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"path": "dist/octez.js-michel-codec.es5.js",
|
|
53
|
+
"sha512": "6689785cdcef2f78f3e8aaf99a9c4a76551ce7917e53ae8f7c4c9a8b6104bbe83a132ed5ab44d0f0857ad2e91ada5ec4f1862a9c89debaaefd6a53d3533760de"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"path": "dist/lib/octez.js-michel-codec.js",
|
|
57
|
+
"sha512": "d315e8ab3ae18ad9e101634b5ecfdffaedf785f91d2669005c2bf70835f4937512cba0ab4537e443ce5f8ff4f16c800ec3117bc92fc626f8cc6327c119905b86"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"path": "dist/octez.js-michel-codec.umd.js",
|
|
61
|
+
"sha512": "709d3c09dafc98a44c26adfa0728e570d7204e161c14042be4144f456eb9c4bef44c97e3050c8e961b77eba5b77724ca4f4ad35e603454bd694d70fae6769b5f"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"path": "dist/lib/utils.js",
|
|
65
|
+
"sha512": "d897c7f85b5201cf1152e2e8e2c3b7b7579a7f8c8998b7362ab5fc9ea6e7f9ca3b7461f3e6827b3f786961a97638daae39872aa74668a2502f1b3a1d6b4446f9"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"path": "dist/lib/base58.js.map",
|
|
69
|
+
"sha512": "e0517d428078af62e19e39f0483d2634ed89a8da771bdf2d6df8f86edb6bb1cc54784d8e07c320b3575f023f530213ca1bdca24bbb281e55c6ce91ade994e588"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"path": "dist/lib/formatters.js.map",
|
|
73
|
+
"sha512": "6ab3aff9e06330dc4775589fe78c2f90df6e022b3528ab27bfb917b56ecb027d5961ceffb9d0976ddf7fc07cd197392f74913a381aaf1070a2e53749522cafa0"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"path": "dist/lib/macros.js.map",
|
|
77
|
+
"sha512": "77de4173d80e00381c1a0c4952bb8e2542e5c1c228a1226a8c626b2abc0ad9a64918b4154240eda9205631338790e8143254874657cfd577ca4bc8eb24ed809c"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"path": "dist/lib/micheline-emitter.js.map",
|
|
81
|
+
"sha512": "ec51a8ce1e8e11f4b5332554fbd175b89811683541b7ac87ddf106963d270dfea8e28906109293c7bcd0f63d0a463c66fac6647b50b27a5662449b365df8f85c"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"path": "dist/lib/micheline-parser.js.map",
|
|
85
|
+
"sha512": "17481db072aba345ea209a7e3e31ef6160a729185988548a932b1be181b64b149204af57d557aa02fbd0feca42f6a06f0b00c5597273fee3ffaa22c48897241e"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"path": "dist/lib/micheline.js.map",
|
|
89
|
+
"sha512": "aa0811ebfa33e72860bf7e15eaadae1aeba198e42cfaf22256f18456c9caa9b5a49c59bcece25ccf84f5cdf9a8a13329ae1dca9bd0d13a80e2766cbeb4bef79c"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"path": "dist/lib/michelson-contract.js.map",
|
|
93
|
+
"sha512": "4ec14ce2f6eac9dd49eeee547146c79dba359f1f54cce54b5fec2eb6ab074b6feb09e6fe2d6169a7e6a258c3d6fb644616efb378ea0c13559f44744373692db6"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"path": "dist/lib/michelson-typecheck.js.map",
|
|
97
|
+
"sha512": "01f3afdf1bef1ecdb42e7f68f1fffa3323caeae8fbc0160de567595f3bdfa9ecb9a59a00dccb9cab4ef77361665982993b36d7dd693c876e56a5b0494fc7c78a"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"path": "dist/lib/michelson-types.js.map",
|
|
101
|
+
"sha512": "f72ad81c8169a84f3ad928a88305f238344e30077020b49460e0cafe4bd45b1b620f162f133d66d18b0cafc9e3d4fa2e2f9a9311af896c2e5ccefc6db84c7504"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"path": "dist/lib/michelson-validator.js.map",
|
|
105
|
+
"sha512": "e21ca7578c3a425c7ac080b713d11217da4f017afe51ec4ae35dc6f1b6145ebf36a8eea75c1254420062cf681ceca9826a02441c8f2771bcee0daeb00bf209e1"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"path": "dist/lib/scan.js.map",
|
|
109
|
+
"sha512": "c2cc3bf2b9bcd7a8bb6f0f10caf1e6c8915bbf8dc03cab9ce589e28297764818ca018a208c3acadbcba06b5bfb3e49be858a3672da708cec33cc27ffbbb50e5f"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"path": "dist/octez.js-michel-codec.es5.js.map",
|
|
113
|
+
"sha512": "15280ecfd8e4d49dec00a83cbb7bb7d8d24772e34783fef3f13821f7e1ffe2acb02747a9efeba5b01a1dd43472afbdda4a2cdb2052a4234c7aa5576d1a986f40"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"path": "dist/lib/octez.js-michel-codec.js.map",
|
|
117
|
+
"sha512": "7ee20e23970b80ce0e99254eee2c216744834536380278c84b773a51de8ca08460f03554c3481527c245f2f888cddf2db04b1a6e3d4d02abc9e1edee94721c37"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"path": "dist/octez.js-michel-codec.umd.js.map",
|
|
121
|
+
"sha512": "eab133427520ab9f063d09cfca2a10455b8f11a51c9ae5be303d1bc08de9458d911dc3cf75a1998a80f523d19dbdad76276feae1a47104e5fcacbb5defe34322"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"path": "dist/lib/utils.js.map",
|
|
125
|
+
"sha512": "ddb0e8e6953cb68faf7bea1027a590e144488ce0994cea097dd2cd06d17855dc6a8d59894e111fa1c50bb0fc329faeeba3e142cb939f36a8bdfef755b3d871d1"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"path": "README.md",
|
|
129
|
+
"sha512": "1897105d9f4a23fa1dc08cfcac5fc753dac8b9fbe7c9174b1cb1b09bf225c87886e46a009dd46f55530b3549c62eab135f0f22428e8115ea8406dd52782adbcd"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"path": "dist/types/base58.d.ts",
|
|
133
|
+
"sha512": "cae9e29223d37f6b49677e3a368320cedd68673205ad3cfdf8aacfce1facfbb50bbf14e3fd5708e7c6fe900b52e5866ddb090a6e16118177bc698baf1b531d99"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"path": "dist/types/formatters.d.ts",
|
|
137
|
+
"sha512": "269d37c92b843ba50c5fff831ba63da940a511bf92980a32a85f5029591138fd20ca4c3ab744b912a7e62844766cfbd184825f7a934218cd93e48bb3d31b2f01"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"path": "dist/types/macros.d.ts",
|
|
141
|
+
"sha512": "9326299fbebe3391fd6a0a29b79e7207f7481a027a6b7db51aba88982fec20bbf316a04bb1a1766d003e19a6ac37166a995587d03b681b0c783c57e9e52b8fc1"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"path": "dist/types/micheline-emitter.d.ts",
|
|
145
|
+
"sha512": "1d37e5307bc23e5c30ea22c172b217e025f43288c2edab293b909864b8fb1fda707e48d9e0f57443f1549a7c271be8b54b8c31c5dd5e8a8899acff0844cfdbea"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"path": "dist/types/micheline-parser.d.ts",
|
|
149
|
+
"sha512": "5fcca4427864933cb8c2451c8264389dbca9f4dfe3980a0c70d98835013ba0dceab9b56df7a2ac80fb64f31e48e356e446507ac1222496faedf3175b300f812a"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"path": "dist/types/micheline.d.ts",
|
|
153
|
+
"sha512": "caf8de68d6e96c6c72e236fd72ca6b289399fa97bfd19ff10c861be2df14c09699fd15011b38f0ad04b18c7330eafda32530cf4b0e831664d6d63f0f4b7e0830"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"path": "dist/types/michelson-contract.d.ts",
|
|
157
|
+
"sha512": "429470aa8c1f35b9f3ac59c51a02e28436914ea55c993a6941bbac65c82852e8c53566bf78c2776d64890876a0664799f4b9c3702a443502ed1f4f6b465be7b1"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"path": "dist/types/michelson-typecheck.d.ts",
|
|
161
|
+
"sha512": "b7c31f795935322aa8b736f3c078725773741d7f4bf8f0ae24867ee73f0ce60fddfa4996e6f823ad0f8004ee158e42d734b538d16b593727b90df56711083839"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"path": "dist/types/michelson-types.d.ts",
|
|
165
|
+
"sha512": "e3b22d70fc743814ec7f3e4cd59c1adbf2930339be9adb493595b4188b7be86b73999c912b47a90eda68d6b0672c1856b0cf02ae14ddb6b79d5e6d665e56a384"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"path": "dist/types/michelson-validator.d.ts",
|
|
169
|
+
"sha512": "f5eb44d3aecc069a1d26979431e11ec8ea8e4e885ef509c63805a90b69b533878bd831849af0a49751d86283f50d1722f202588fcf8243f81f9bd879567e23f3"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"path": "dist/types/scan.d.ts",
|
|
173
|
+
"sha512": "1daa1b109b5d67852086ecb506ce955538040c76faca6a1c3a754f989c97acdf9b37254539daf98e2fa9ea23b01a9b88b4ade9c1ee536e8496963f3146c3f806"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"path": "dist/types/octez.js-michel-codec.d.ts",
|
|
177
|
+
"sha512": "3da4724385301e8d9868c4b4389fbc1926544a309ba31849cd24037b4344f7cba0f7bb2a1fc0d44cfd013af6374a4c3f2545563c15c194d4f9ac70faf857f0bf"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"path": "dist/types/utils.d.ts",
|
|
181
|
+
"sha512": "8cea86d5e59a09c8c781bf5fa3dab9de96986fd1dfa10ac60d45e3caf6776555321b85e6534a65e0ac1624a21ed88e00687d006d46f228813b1c77c85639526d"
|
|
182
|
+
}
|
|
183
|
+
]
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"entry": "identity/v1alpha2",
|
|
188
|
+
"value": {
|
|
189
|
+
"identity": {
|
|
190
|
+
"keybaseUser": "jevonearth"
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"entry": "npmCompatiblePackageJson/v1alpha2",
|
|
196
|
+
"value": {
|
|
197
|
+
"packageJsonProperties": [
|
|
198
|
+
"author",
|
|
199
|
+
"description",
|
|
200
|
+
"devDependencies",
|
|
201
|
+
"engines",
|
|
202
|
+
"files",
|
|
203
|
+
"gitHead",
|
|
204
|
+
"jest",
|
|
205
|
+
"keywords",
|
|
206
|
+
"license",
|
|
207
|
+
"lint-staged",
|
|
208
|
+
"main",
|
|
209
|
+
"module",
|
|
210
|
+
"name",
|
|
211
|
+
"publishConfig",
|
|
212
|
+
"repository",
|
|
213
|
+
"scripts",
|
|
214
|
+
"typings",
|
|
215
|
+
"version"
|
|
216
|
+
],
|
|
217
|
+
"sha512": "b0a3bb5ac4ffa000b18ced7c3ca5415649ffb5c2e94b6d04eb6c76a33b87cb14e4e461172f44794b3b3562305e72e8e1852f8c5208f6c56acbaa7acb56e42e60"
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"entry": "packageJson/v1alpha2",
|
|
222
|
+
"value": {
|
|
223
|
+
"packageJson": {
|
|
224
|
+
"name": "@tezos-x/octez.js-michel-codec",
|
|
225
|
+
"version": "8.0.4-beta.0",
|
|
226
|
+
"description": "Michelson parser/validator/formatter",
|
|
227
|
+
"keywords": [
|
|
228
|
+
"tezos",
|
|
229
|
+
"blockchain",
|
|
230
|
+
"signer"
|
|
231
|
+
],
|
|
232
|
+
"main": "./dist/octez.js-michel-codec.umd.js",
|
|
233
|
+
"module": "./dist/octez.js-michel-codec.es5.js",
|
|
234
|
+
"typings": "./dist/types/octez.js-michel-codec.d.ts",
|
|
235
|
+
"files": [
|
|
236
|
+
"dist",
|
|
237
|
+
"signature.json"
|
|
238
|
+
],
|
|
239
|
+
"publishConfig": {
|
|
240
|
+
"access": "public"
|
|
241
|
+
},
|
|
242
|
+
"author": "Eugene Zagidullin <eugene@ecadlabs.com>",
|
|
243
|
+
"repository": {
|
|
244
|
+
"type": "git",
|
|
245
|
+
"url": "git+https://github.com/ecadlabs/octez.js.git"
|
|
246
|
+
},
|
|
247
|
+
"license": "MIT",
|
|
248
|
+
"engines": {
|
|
249
|
+
"node": ">=18"
|
|
250
|
+
},
|
|
251
|
+
"scripts": {
|
|
252
|
+
"test": "jest --coverage",
|
|
253
|
+
"test:watch": "jest --coverage --watch",
|
|
254
|
+
"test:prod": "npm run lint && npm run test -- --no-cache",
|
|
255
|
+
"lint": "tslint --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'",
|
|
256
|
+
"precommit": "lint-staged",
|
|
257
|
+
"prebuild": "rimraf dist",
|
|
258
|
+
"build": "tsc --project ./tsconfig.prod.json --module commonjs && rollup -c rollup.config.ts",
|
|
259
|
+
"start": "rollup -c rollup.config.ts -w"
|
|
260
|
+
},
|
|
261
|
+
"lint-staged": {
|
|
262
|
+
"{src,test}/**/*.ts": [
|
|
263
|
+
"prettier --write",
|
|
264
|
+
"tslint --fix"
|
|
265
|
+
]
|
|
266
|
+
},
|
|
267
|
+
"jest": {
|
|
268
|
+
"transform": {
|
|
269
|
+
".(ts|tsx)": "ts-jest"
|
|
270
|
+
},
|
|
271
|
+
"testEnvironment": "node",
|
|
272
|
+
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
|
|
273
|
+
"moduleFileExtensions": [
|
|
274
|
+
"ts",
|
|
275
|
+
"tsx",
|
|
276
|
+
"js"
|
|
277
|
+
],
|
|
278
|
+
"moduleNameMapper": {
|
|
279
|
+
"^@tezos-x/octez.js-utils$": "<rootDir>/../octez.js-utils/src/octez.js-utils.ts"
|
|
280
|
+
},
|
|
281
|
+
"coveragePathIgnorePatterns": [
|
|
282
|
+
"/node_modules/",
|
|
283
|
+
"/test/"
|
|
284
|
+
],
|
|
285
|
+
"collectCoverageFrom": [
|
|
286
|
+
"src/**/*.{js,ts}"
|
|
287
|
+
]
|
|
288
|
+
},
|
|
289
|
+
"devDependencies": {
|
|
290
|
+
"@types/jest": "^26.0.16",
|
|
291
|
+
"@types/node": "^18",
|
|
292
|
+
"jest": "^26.6.3",
|
|
293
|
+
"jest-extended": "^0.11.5",
|
|
294
|
+
"lint-staged": "^10.4.0",
|
|
295
|
+
"lodash.camelcase": "^4.3.0",
|
|
296
|
+
"prettier": "^2.1.2",
|
|
297
|
+
"rimraf": "^3.0.2",
|
|
298
|
+
"rollup": "^2.28.2",
|
|
299
|
+
"rollup-plugin-json": "^4.0.0",
|
|
300
|
+
"rollup-plugin-typescript2": "^0.27.3",
|
|
301
|
+
"ts-jest": "^26.4.4",
|
|
302
|
+
"ts-node": "^9.1.1",
|
|
303
|
+
"tslint": "^6.1.3",
|
|
304
|
+
"tslint-config-prettier": "^1.18.0",
|
|
305
|
+
"tslint-config-standard": "^9.0.0",
|
|
306
|
+
"typedoc": "^0.20.23",
|
|
307
|
+
"typescript": "~4.1.5"
|
|
308
|
+
},
|
|
309
|
+
"gitHead": "551e35aeff7d6dcde1c72284238c0ed3c3aae77e"
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
],
|
|
314
|
+
"signature": "-----BEGIN PGP SIGNATURE-----\n\nwsFcBAABCAAQBQJgN/UCCRAD9Qy5GYHsngAAUvgQAEsq1HSL2sCOyAwtCuXJsWdm\n2Zb0U6VnOU+OmxLFWrWO+wgHddHu5uzD3grMuCbPY0IgaPiGpE0hFmRQ3gXn50SG\nBq9AGGd9NS61LHqAofkz0zVzwY3tUR5UZNwP38bkEKctf11Njp/dLqmFtkWMXb1U\n2iSSyhFufwIMsxNo5LgkVP6ZFtO2byIrhbwGcdz+RJNFcSVDmEZOsskbWjHK0TIc\nHOja3ZeUXHD4oWOK1TXaN2jGZBbb38pk9wPUoz5dDqW/itRd6ojrWd/3D81AAPui\nGYlSJwCuuNTrQJt+gLB3MsDmvU8UDRa9x/X2fKBWidB+haiIHAog8Ycn5Jq0XIOe\nSGsmxAFyXlFfDRW8By7pwgrty/og5yqvAk0+hSw3yXlfhnQQtu3A899fxpqV6Edb\n71GxavH014XijQd1Kki72iF2xoqnlDLGDY7PYOTwvn7C2lrJOAdU+SN8hiC3gB6G\nzhsvGEdPv/Y5tD43ur8W/ttChqzv9HULO+YtPkOjANXDn8SYRCU+gp1xygfN5b1X\nEKQsRlB8YuCm7M5NwGKUhz6R86fhxlIb89G8JxHjswsmxocMO+5hLOmbroN244Af\n/Tjx1tD9IiAW6/TPyn8nT3Kgi/X/b9drJDVpVCXjcOhNROxxZpm7RTbFJwraNNaE\nC8JtO4FrF97R+FjG/G8F\n=Yy2D\n-----END PGP SIGNATURE-----\n"
|
|
315
|
+
}
|