Updated dist build.
This commit is contained in:
parent
22bd0c76dd
commit
8933467c01
2446
package-lock.json
generated
2446
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -82,10 +82,8 @@
|
||||
"elliptic": "6.5.3",
|
||||
"hash.js": "1.1.3",
|
||||
"js-sha3": "0.5.7",
|
||||
"mime-types": "2.1.11",
|
||||
"scrypt-js": "3.0.1",
|
||||
"solc": "0.7.1",
|
||||
"solidity-parser-antlr": "^0.3.2",
|
||||
"tiny-inflate": "1.0.3",
|
||||
"ws": "7.2.3"
|
||||
}
|
||||
|
2
packages/abi/lib.esm/_version.d.ts
vendored
2
packages/abi/lib.esm/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "abi/5.0.7";
|
||||
export declare const version = "abi/5.0.8";
|
||||
|
@ -1,2 +1,2 @@
|
||||
export const version = "abi/5.0.7";
|
||||
export const version = "abi/5.0.8";
|
||||
//# sourceMappingURL=_version.js.map
|
2
packages/abi/lib/_version.d.ts
vendored
2
packages/abi/lib/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "abi/5.0.7";
|
||||
export declare const version = "abi/5.0.8";
|
||||
|
@ -1,4 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "abi/5.0.7";
|
||||
exports.version = "abi/5.0.8";
|
||||
//# sourceMappingURL=_version.js.map
|
@ -19,7 +19,7 @@
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "./lib/index.js",
|
||||
"module": "./lib.module/index.js",
|
||||
"module": "./lib.esm/index.js",
|
||||
"name": "@ethersproject/abi",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
@ -31,7 +31,7 @@
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"tarballHash": "0x1cb0dc8fd334cbf9dba1c9746ed316852af2f5dbbd61f07048e737f452568352",
|
||||
"tarballHash": "0xd0da395b7622fd7dd82ecb018055bab5f061029c1f526b2577457d83da3739e1",
|
||||
"types": "./lib/index.d.ts",
|
||||
"version": "5.0.7"
|
||||
"version": "5.0.8"
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export const version = "abi/5.0.7";
|
||||
export const version = "abi/5.0.8";
|
||||
|
@ -1 +1 @@
|
||||
export declare const version = "abstract-provider/5.0.5";
|
||||
export declare const version = "abstract-provider/5.0.6";
|
||||
|
@ -1,2 +1,2 @@
|
||||
export const version = "abstract-provider/5.0.5";
|
||||
export const version = "abstract-provider/5.0.6";
|
||||
//# sourceMappingURL=_version.js.map
|
2
packages/abstract-provider/lib/_version.d.ts
vendored
2
packages/abstract-provider/lib/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "abstract-provider/5.0.5";
|
||||
export declare const version = "abstract-provider/5.0.6";
|
||||
|
@ -1,4 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "abstract-provider/5.0.5";
|
||||
exports.version = "abstract-provider/5.0.6";
|
||||
//# sourceMappingURL=_version.js.map
|
@ -17,7 +17,7 @@
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "./lib/index.js",
|
||||
"module": "./lib.module/index.js",
|
||||
"module": "./lib.esm/index.js",
|
||||
"name": "@ethersproject/abstract-provider",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
@ -30,7 +30,7 @@
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"tarballHash": "0x87fdc7d7ee69d8c228c0e6946be702acd027a832b5a3deaa5b60e3c9f7110e58",
|
||||
"tarballHash": "0x7f7031bb38c6ca4604423fb6ed651450b9992537548ae9b3848f249d107a88a7",
|
||||
"types": "./lib/index.d.ts",
|
||||
"version": "5.0.5"
|
||||
"version": "5.0.6"
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export const version = "abstract-provider/5.0.5";
|
||||
export const version = "abstract-provider/5.0.6";
|
||||
|
@ -1 +1 @@
|
||||
export declare const version = "abstract-signer/5.0.7";
|
||||
export declare const version = "abstract-signer/5.0.8";
|
||||
|
@ -1,2 +1,2 @@
|
||||
export const version = "abstract-signer/5.0.7";
|
||||
export const version = "abstract-signer/5.0.8";
|
||||
//# sourceMappingURL=_version.js.map
|
2
packages/abstract-signer/lib/_version.d.ts
vendored
2
packages/abstract-signer/lib/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "abstract-signer/5.0.7";
|
||||
export declare const version = "abstract-signer/5.0.8";
|
||||
|
@ -1,4 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "abstract-signer/5.0.7";
|
||||
exports.version = "abstract-signer/5.0.8";
|
||||
//# sourceMappingURL=_version.js.map
|
@ -15,7 +15,7 @@
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "./lib/index.js",
|
||||
"module": "./lib.module/index.js",
|
||||
"module": "./lib.esm/index.js",
|
||||
"name": "@ethersproject/abstract-signer",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
@ -28,7 +28,7 @@
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"tarballHash": "0x722fb4b5e18bb70cda3c2fbd250d96bacdbe7d358c4c426a73d262fc1f751845",
|
||||
"tarballHash": "0x6d9f5f4b221cb8879f684ac29d0ccebfb6d71a742007e8aa0e902b610e686827",
|
||||
"types": "./lib/index.d.ts",
|
||||
"version": "5.0.7"
|
||||
"version": "5.0.8"
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export const version = "abstract-signer/5.0.7";
|
||||
export const version = "abstract-signer/5.0.8";
|
||||
|
2
packages/address/lib.esm/_version.d.ts
vendored
2
packages/address/lib.esm/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "address/5.0.5";
|
||||
export declare const version = "address/5.0.6";
|
||||
|
@ -1,2 +1,2 @@
|
||||
export const version = "address/5.0.5";
|
||||
export const version = "address/5.0.6";
|
||||
//# sourceMappingURL=_version.js.map
|
@ -1,8 +1,6 @@
|
||||
"use strict";
|
||||
// We use this for base 36 maths
|
||||
import { BN } from "bn.js";
|
||||
import { arrayify, concat, hexDataLength, hexDataSlice, isHexString, stripZeros } from "@ethersproject/bytes";
|
||||
import { BigNumber } from "@ethersproject/bignumber";
|
||||
import { BigNumber, _base16To36, _base36To16 } from "@ethersproject/bignumber";
|
||||
import { keccak256 } from "@ethersproject/keccak256";
|
||||
import { encode } from "@ethersproject/rlp";
|
||||
import { Logger } from "@ethersproject/logger";
|
||||
@ -86,7 +84,7 @@ export function getAddress(address) {
|
||||
if (address.substring(2, 4) !== ibanChecksum(address)) {
|
||||
logger.throwArgumentError("bad icap checksum", "address", address);
|
||||
}
|
||||
result = (new BN(address.substring(4), 36)).toString(16);
|
||||
result = _base36To16(address.substring(4));
|
||||
while (result.length < 40) {
|
||||
result = "0" + result;
|
||||
}
|
||||
@ -106,7 +104,7 @@ export function isAddress(address) {
|
||||
return false;
|
||||
}
|
||||
export function getIcapAddress(address) {
|
||||
let base36 = (new BN(getAddress(address).substring(2), 16)).toString(36).toUpperCase();
|
||||
let base36 = _base16To36(getAddress(address).substring(2)).toUpperCase();
|
||||
while (base36.length < 30) {
|
||||
base36 = "0" + base36;
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
2
packages/address/lib/_version.d.ts
vendored
2
packages/address/lib/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "address/5.0.5";
|
||||
export declare const version = "address/5.0.6";
|
||||
|
@ -1,4 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "address/5.0.5";
|
||||
exports.version = "address/5.0.6";
|
||||
//# sourceMappingURL=_version.js.map
|
@ -1,7 +1,5 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
// We use this for base 36 maths
|
||||
var bn_js_1 = require("bn.js");
|
||||
var bytes_1 = require("@ethersproject/bytes");
|
||||
var bignumber_1 = require("@ethersproject/bignumber");
|
||||
var keccak256_1 = require("@ethersproject/keccak256");
|
||||
@ -87,7 +85,7 @@ function getAddress(address) {
|
||||
if (address.substring(2, 4) !== ibanChecksum(address)) {
|
||||
logger.throwArgumentError("bad icap checksum", "address", address);
|
||||
}
|
||||
result = (new bn_js_1.BN(address.substring(4), 36)).toString(16);
|
||||
result = bignumber_1._base36To16(address.substring(4));
|
||||
while (result.length < 40) {
|
||||
result = "0" + result;
|
||||
}
|
||||
@ -109,7 +107,7 @@ function isAddress(address) {
|
||||
}
|
||||
exports.isAddress = isAddress;
|
||||
function getIcapAddress(address) {
|
||||
var base36 = (new bn_js_1.BN(getAddress(address).substring(2), 16)).toString(36).toUpperCase();
|
||||
var base36 = bignumber_1._base16To36(getAddress(address).substring(2)).toUpperCase();
|
||||
while (base36.length < 30) {
|
||||
base36 = "0" + base36;
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@ -15,7 +15,7 @@
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "./lib/index.js",
|
||||
"module": "./lib.module/index.js",
|
||||
"module": "./lib.esm/index.js",
|
||||
"name": "@ethersproject/address",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
@ -28,7 +28,7 @@
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"tarballHash": "0xd6263c8653bc6784fed703b8a30075630c544e3861f43ed5b49ab56ffb5d4808",
|
||||
"tarballHash": "0xed9bb243991ef357503555a8f3dc3081da5c5a64ec148a34791a264d07568f99",
|
||||
"types": "./lib/index.d.ts",
|
||||
"version": "5.0.5"
|
||||
"version": "5.0.6"
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export const version = "address/5.0.5";
|
||||
export const version = "address/5.0.6";
|
||||
|
30
packages/address/thirdparty.d.ts
vendored
30
packages/address/thirdparty.d.ts
vendored
@ -1,30 +0,0 @@
|
||||
declare module "bn.js" {
|
||||
export class BN {
|
||||
constructor(value: string | number, radix?: number);
|
||||
|
||||
add(other: BN): BN;
|
||||
sub(other: BN): BN;
|
||||
div(other: BN): BN;
|
||||
mod(other: BN): BN;
|
||||
mul(other: BN): BN;
|
||||
|
||||
pow(other: BN): BN;
|
||||
maskn(other: number): BN;
|
||||
|
||||
eq(other: BN): boolean;
|
||||
lt(other: BN): boolean;
|
||||
lte(other: BN): boolean;
|
||||
gt(other: BN): boolean;
|
||||
gte(other: BN): boolean;
|
||||
|
||||
isZero(): boolean;
|
||||
|
||||
toTwos(other: number): BN;
|
||||
fromTwos(other: number): BN;
|
||||
|
||||
toString(radix: number): string;
|
||||
toNumber(): number;
|
||||
toArray(endian: string, width: number): Uint8Array;
|
||||
encode(encoding: string, compact: boolean): Uint8Array;
|
||||
}
|
||||
}
|
786
packages/asm/lib.esm/_parser.js
Normal file
786
packages/asm/lib.esm/_parser.js
Normal file
@ -0,0 +1,786 @@
|
||||
/* parser generated by jison 0.4.18 */
|
||||
/*
|
||||
Returns a Parser object of the following structure:
|
||||
|
||||
Parser: {
|
||||
yy: {}
|
||||
}
|
||||
|
||||
Parser.prototype: {
|
||||
yy: {},
|
||||
trace: function(),
|
||||
symbols_: {associative list: name ==> number},
|
||||
terminals_: {associative list: number ==> name},
|
||||
productions_: [...],
|
||||
performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),
|
||||
table: [...],
|
||||
defaultActions: {...},
|
||||
parseError: function(str, hash),
|
||||
parse: function(input),
|
||||
|
||||
lexer: {
|
||||
EOF: 1,
|
||||
parseError: function(str, hash),
|
||||
setInput: function(input),
|
||||
input: function(),
|
||||
unput: function(str),
|
||||
more: function(),
|
||||
less: function(n),
|
||||
pastInput: function(),
|
||||
upcomingInput: function(),
|
||||
showPosition: function(),
|
||||
test_match: function(regex_match_array, rule_index),
|
||||
next: function(),
|
||||
lex: function(),
|
||||
begin: function(condition),
|
||||
popState: function(),
|
||||
_currentRules: function(),
|
||||
topState: function(),
|
||||
pushState: function(condition),
|
||||
|
||||
options: {
|
||||
ranges: boolean (optional: true ==> token location info will include a .range[] member)
|
||||
flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)
|
||||
backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)
|
||||
},
|
||||
|
||||
performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),
|
||||
rules: [...],
|
||||
conditions: {associative list: name ==> set},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
token location info (@$, _$, etc.): {
|
||||
first_line: n,
|
||||
last_line: n,
|
||||
first_column: n,
|
||||
last_column: n,
|
||||
range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)
|
||||
}
|
||||
|
||||
|
||||
the parseError function receives a 'hash' object with these members for lexer and parser errors: {
|
||||
text: (matched text)
|
||||
token: (the produced terminal token, if any)
|
||||
line: (yylineno)
|
||||
}
|
||||
while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {
|
||||
loc: (yylloc)
|
||||
expected: (string describing the set of expected tokens)
|
||||
recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)
|
||||
}
|
||||
*/
|
||||
var parser = (function(){
|
||||
var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[2,23],$V1=[1,7],$V2=[1,8],$V3=[1,9],$V4=[1,10],$V5=[1,11],$V6=[1,12],$V7=[1,13],$V8=[1,14],$V9=[1,15],$Va=[1,5],$Vb=[1,6],$Vc=[5,28],$Vd=[5,11,14,15,16,17,18,19,20,21,25,28,31],$Ve=[2,2],$Vf=[1,22],$Vg=[5,10,11,13,14,15,16,17,18,19,20,21,25,28,31],$Vh=[1,28],$Vi=[1,29],$Vj=[1,30],$Vk=[1,31],$Vl=[2,17],$Vm=[5,10,11,13,14,15,16,17,18,19,20,21,25,28,30,31],$Vn=[16,17,18,21,30];
|
||||
var parser = {trace: function trace () { },
|
||||
yy: {},
|
||||
symbols_: {"error":2,"program":3,"statement_list":4,"EOF":5,"javascript":6,"SCRIPT_TOKEN":7,"opcode_list":8,"opcode":9,"COMMA":10,"ID":11,"OPEN_PAREN":12,"CLOSE_PAREN":13,"HASH_ID":14,"DOLLAR_ID":15,"HEX":16,"DECIMAL":17,"BINARY":18,"DOLLAR_DOLLAR":19,"DOLLAR_INDEX":20,"SCRIPT_EVAL":21,"hex_list":22,"hex":23,"statement":24,"AT_ID":25,"COLON":26,"OPEN_BRACE":27,"CLOSE_BRACE":28,"OPEN_BRACKET":29,"CLOSE_BRACKET":30,"SCRIPT_EXEC":31,"$accept":0,"$end":1},
|
||||
terminals_: {2:"error",5:"EOF",7:"SCRIPT_TOKEN",10:"COMMA",11:"ID",12:"OPEN_PAREN",13:"CLOSE_PAREN",14:"HASH_ID",15:"DOLLAR_ID",16:"HEX",17:"DECIMAL",18:"BINARY",19:"DOLLAR_DOLLAR",20:"DOLLAR_INDEX",21:"SCRIPT_EVAL",25:"AT_ID",26:"COLON",27:"OPEN_BRACE",28:"CLOSE_BRACE",29:"OPEN_BRACKET",30:"CLOSE_BRACKET",31:"SCRIPT_EXEC"},
|
||||
productions_: [0,[3,2],[6,0],[6,2],[8,1],[8,3],[9,1],[9,3],[9,4],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[22,0],[22,2],[23,1],[23,1],[23,1],[23,2],[4,0],[4,2],[24,1],[24,2],[24,4],[24,4],[24,2]],
|
||||
performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {
|
||||
/* this == yyval */
|
||||
|
||||
var $0 = $$.length - 1;
|
||||
switch (yystate) {
|
||||
case 1:
|
||||
return { type: "scope", name: "_", statements: $$[$0-1], loc: getLoc(yy, null) };
|
||||
break;
|
||||
case 2:
|
||||
this.$ = "";
|
||||
break;
|
||||
case 3:
|
||||
this.$ = $$[$0-1] + $$[$0];
|
||||
break;
|
||||
case 4:
|
||||
this.$ = [ $$[$0] ];
|
||||
break;
|
||||
case 5:
|
||||
{
|
||||
const opcodes = $$[$0].slice();
|
||||
opcodes.unshift($$[$0-2]);
|
||||
this.$ = opcodes;
|
||||
}
|
||||
break;
|
||||
case 6:
|
||||
this.$ = { type: "opcode", bare: true, mnemonic: $$[$0], operands: [ ], loc: getLoc(yy, _$[$0]) };
|
||||
break;
|
||||
case 7:
|
||||
this.$ = { type: "opcode", mnemonic: $$[$0-2], operands: [ ], loc: getLoc(yy, _$[$0-2], _$[$0]) };
|
||||
break;
|
||||
case 8:
|
||||
this.$ = { type: "opcode", mnemonic: $$[$0-3], operands: $$[$0-1], loc: getLoc(yy, _$[$0-3], _$[$0]) };
|
||||
break;
|
||||
case 9:
|
||||
this.$ = { type: "length", label: $$[$0].substring(1), loc: getLoc(yy, _$[$0]) };
|
||||
break;
|
||||
case 10:
|
||||
this.$ = { type: "offset", label: $$[$0].substring(1), loc: getLoc(yy, _$[$0]) };
|
||||
break;
|
||||
case 11:
|
||||
this.$ = { type: "hex", value: $$[$0], loc: getLoc(yy, _$[$0]) };
|
||||
break;
|
||||
case 12:
|
||||
this.$ = { type: "decimal", value: $$[$0], loc: getLoc(yy, _$[$0]) };
|
||||
break;
|
||||
case 13:
|
||||
{
|
||||
const hex = "0x" + parseInt(("0" + ($$[$0]).substring(2)), 2).toString(16);
|
||||
this.$ = { type: "hex", value: hex, loc: getLoc(yy, _$[$0]) };
|
||||
}
|
||||
break;
|
||||
case 14:
|
||||
this.$ = { type: "pop", index: 0, loc: getLoc(yy, _$[$0]) };
|
||||
break;
|
||||
case 15:
|
||||
this.$ = { type: "pop", index: parseInt(($$[$0]).substring(1)), loc: getLoc(yy, _$[$0]) };
|
||||
break;
|
||||
case 16:
|
||||
this.$ = { type: "eval", script: $$[$0], loc: getLoc(yy, _$[$0-1], _$[$0]) };
|
||||
break;
|
||||
case 17: case 23:
|
||||
this.$ = [ ];
|
||||
break;
|
||||
case 18:
|
||||
{
|
||||
const hexes = $$[$0].slice();;
|
||||
hexes.unshift($$[$0-1]);
|
||||
this.$ = hexes;
|
||||
}
|
||||
break;
|
||||
case 19:
|
||||
this.$ = { type: "hex", verbatim: true, value: $$[$0], loc: getLoc(yy, _$[$0]) };
|
||||
break;
|
||||
case 20:
|
||||
{
|
||||
const value = parseInt($$[$0]);
|
||||
if (value >= 256) { throw new Error("decimal data values must be single bytes"); }
|
||||
let hex = (value).toString(16);
|
||||
while (hex.length < 2) { hex = "0" + hex; }
|
||||
this.$ = { type: "hex", verbatim: true, value: ("0x" + hex), loc: getLoc(yy, _$[$0]) };
|
||||
}
|
||||
break;
|
||||
case 21:
|
||||
{
|
||||
const value = parseInt(($$[$0]).substring(2), 2);
|
||||
if (value >= 256) { throw new Error("binary data values must be single bytes"); }
|
||||
const hex = ("0x" + (value).toString(16));
|
||||
this.$ = { type: "hex", verbatim: true, value: hex, loc: getLoc(yy, _$[$0]) };
|
||||
}
|
||||
break;
|
||||
case 22:
|
||||
this.$ = { type: "eval", verbatim: true, script: $$[$0], loc: getLoc(yy, _$[$0-1], _$[$0]) };
|
||||
break;
|
||||
case 24:
|
||||
{
|
||||
const statements = $$[$0].slice();
|
||||
statements.unshift($$[$0-1]);
|
||||
this.$ = statements;
|
||||
}
|
||||
break;
|
||||
case 25:
|
||||
{
|
||||
const statement = $$[$0];
|
||||
statement.loc.statement = true;
|
||||
this.$ = statement;
|
||||
}
|
||||
break;
|
||||
case 26:
|
||||
this.$ = { type: "label", name: $$[$0-1].substring(1), loc: getLoc(yy, _$[$0-1], _$[$0], true) };
|
||||
break;
|
||||
case 27:
|
||||
this.$ = { type: "scope", name: $$[$0-3].substring(1), statements: $$[$0-1], loc: getLoc(yy, _$[$0-3], _$[$0], true) };
|
||||
break;
|
||||
case 28:
|
||||
this.$ = { type: "data", name: $$[$0-3].substring(1), data: $$[$0-1], loc: getLoc(yy, _$[$0-3], _$[$0], true) };
|
||||
break;
|
||||
case 29:
|
||||
this.$ = { type: "exec", script: $$[$0], loc: getLoc(yy, _$[$0-1], _$[$0], true) };
|
||||
break;
|
||||
}
|
||||
},
|
||||
table: [{3:1,4:2,5:$V0,9:4,11:$V1,14:$V2,15:$V3,16:$V4,17:$V5,18:$V6,19:$V7,20:$V8,21:$V9,24:3,25:$Va,31:$Vb},{1:[3]},{5:[1,16]},o($Vc,$V0,{24:3,9:4,4:17,11:$V1,14:$V2,15:$V3,16:$V4,17:$V5,18:$V6,19:$V7,20:$V8,21:$V9,25:$Va,31:$Vb}),o($Vd,[2,25]),{26:[1,18],27:[1,19],29:[1,20]},o($Vd,$Ve,{6:21,7:$Vf}),o($Vg,[2,6],{12:[1,23]}),o($Vg,[2,9]),o($Vg,[2,10]),o($Vg,[2,11]),o($Vg,[2,12]),o($Vg,[2,13]),o($Vg,[2,14]),o($Vg,[2,15]),o($Vg,$Ve,{6:24,7:$Vf}),{1:[2,1]},o($Vc,[2,24]),o($Vd,[2,26]),{4:25,9:4,11:$V1,14:$V2,15:$V3,16:$V4,17:$V5,18:$V6,19:$V7,20:$V8,21:$V9,24:3,25:$Va,28:$V0,31:$Vb},{16:$Vh,17:$Vi,18:$Vj,21:$Vk,22:26,23:27,30:$Vl},o($Vd,[2,29]),o($Vm,$Ve,{6:32,7:$Vf}),{8:34,9:35,11:$V1,13:[1,33],14:$V2,15:$V3,16:$V4,17:$V5,18:$V6,19:$V7,20:$V8,21:$V9},o($Vg,[2,16]),{28:[1,36]},{30:[1,37]},{16:$Vh,17:$Vi,18:$Vj,21:$Vk,22:38,23:27,30:$Vl},o($Vn,[2,19]),o($Vn,[2,20]),o($Vn,[2,21]),o($Vn,$Ve,{6:39,7:$Vf}),o($Vm,[2,3]),o($Vg,[2,7]),{13:[1,40]},{10:[1,41],13:[2,4]},o($Vd,[2,27]),o($Vd,[2,28]),{30:[2,18]},o($Vn,[2,22]),o($Vg,[2,8]),{8:42,9:35,11:$V1,14:$V2,15:$V3,16:$V4,17:$V5,18:$V6,19:$V7,20:$V8,21:$V9},{13:[2,5]}],
|
||||
defaultActions: {16:[2,1],38:[2,18],42:[2,5]},
|
||||
parseError: function parseError (str, hash) {
|
||||
if (hash.recoverable) {
|
||||
this.trace(str);
|
||||
} else {
|
||||
var error = new Error(str);
|
||||
error.hash = hash;
|
||||
throw error;
|
||||
}
|
||||
},
|
||||
parse: function parse(input) {
|
||||
var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
|
||||
var args = lstack.slice.call(arguments, 1);
|
||||
var lexer = Object.create(this.lexer);
|
||||
var sharedState = { yy: {} };
|
||||
for (var k in this.yy) {
|
||||
if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
|
||||
sharedState.yy[k] = this.yy[k];
|
||||
}
|
||||
}
|
||||
lexer.setInput(input, sharedState.yy);
|
||||
sharedState.yy.lexer = lexer;
|
||||
sharedState.yy.parser = this;
|
||||
if (typeof lexer.yylloc == 'undefined') {
|
||||
lexer.yylloc = {};
|
||||
}
|
||||
var yyloc = lexer.yylloc;
|
||||
lstack.push(yyloc);
|
||||
var ranges = lexer.options && lexer.options.ranges;
|
||||
if (typeof sharedState.yy.parseError === 'function') {
|
||||
this.parseError = sharedState.yy.parseError;
|
||||
} else {
|
||||
this.parseError = Object.getPrototypeOf(this).parseError;
|
||||
}
|
||||
function popStack(n) {
|
||||
stack.length = stack.length - 2 * n;
|
||||
vstack.length = vstack.length - n;
|
||||
lstack.length = lstack.length - n;
|
||||
}
|
||||
_token_stack:
|
||||
var lex = function () {
|
||||
var token;
|
||||
token = lexer.lex() || EOF;
|
||||
if (typeof token !== 'number') {
|
||||
token = self.symbols_[token] || token;
|
||||
}
|
||||
return token;
|
||||
};
|
||||
var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;
|
||||
while (true) {
|
||||
state = stack[stack.length - 1];
|
||||
if (this.defaultActions[state]) {
|
||||
action = this.defaultActions[state];
|
||||
} else {
|
||||
if (symbol === null || typeof symbol == 'undefined') {
|
||||
symbol = lex();
|
||||
}
|
||||
action = table[state] && table[state][symbol];
|
||||
}
|
||||
if (typeof action === 'undefined' || !action.length || !action[0]) {
|
||||
var errStr = '';
|
||||
expected = [];
|
||||
for (p in table[state]) {
|
||||
if (this.terminals_[p] && p > TERROR) {
|
||||
expected.push('\'' + this.terminals_[p] + '\'');
|
||||
}
|
||||
}
|
||||
if (lexer.showPosition) {
|
||||
errStr = 'Parse error on line ' + (yylineno + 1) + ':\n' + lexer.showPosition() + '\nExpecting ' + expected.join(', ') + ', got \'' + (this.terminals_[symbol] || symbol) + '\'';
|
||||
} else {
|
||||
errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\'' + (this.terminals_[symbol] || symbol) + '\'');
|
||||
}
|
||||
this.parseError(errStr, {
|
||||
text: lexer.match,
|
||||
token: this.terminals_[symbol] || symbol,
|
||||
line: lexer.yylineno,
|
||||
loc: yyloc,
|
||||
expected: expected
|
||||
});
|
||||
}
|
||||
if (action[0] instanceof Array && action.length > 1) {
|
||||
throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);
|
||||
}
|
||||
switch (action[0]) {
|
||||
case 1:
|
||||
stack.push(symbol);
|
||||
vstack.push(lexer.yytext);
|
||||
lstack.push(lexer.yylloc);
|
||||
stack.push(action[1]);
|
||||
symbol = null;
|
||||
if (!preErrorSymbol) {
|
||||
yyleng = lexer.yyleng;
|
||||
yytext = lexer.yytext;
|
||||
yylineno = lexer.yylineno;
|
||||
yyloc = lexer.yylloc;
|
||||
if (recovering > 0) {
|
||||
recovering--;
|
||||
}
|
||||
} else {
|
||||
symbol = preErrorSymbol;
|
||||
preErrorSymbol = null;
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
len = this.productions_[action[1]][1];
|
||||
yyval.$ = vstack[vstack.length - len];
|
||||
yyval._$ = {
|
||||
first_line: lstack[lstack.length - (len || 1)].first_line,
|
||||
last_line: lstack[lstack.length - 1].last_line,
|
||||
first_column: lstack[lstack.length - (len || 1)].first_column,
|
||||
last_column: lstack[lstack.length - 1].last_column
|
||||
};
|
||||
if (ranges) {
|
||||
yyval._$.range = [
|
||||
lstack[lstack.length - (len || 1)].range[0],
|
||||
lstack[lstack.length - 1].range[1]
|
||||
];
|
||||
}
|
||||
r = this.performAction.apply(yyval, [
|
||||
yytext,
|
||||
yyleng,
|
||||
yylineno,
|
||||
sharedState.yy,
|
||||
action[1],
|
||||
vstack,
|
||||
lstack
|
||||
].concat(args));
|
||||
if (typeof r !== 'undefined') {
|
||||
return r;
|
||||
}
|
||||
if (len) {
|
||||
stack = stack.slice(0, -1 * len * 2);
|
||||
vstack = vstack.slice(0, -1 * len);
|
||||
lstack = lstack.slice(0, -1 * len);
|
||||
}
|
||||
stack.push(this.productions_[action[1]][0]);
|
||||
vstack.push(yyval.$);
|
||||
lstack.push(yyval._$);
|
||||
newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
|
||||
stack.push(newState);
|
||||
break;
|
||||
case 3:
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}};
|
||||
|
||||
|
||||
function getLoc(yy, start, end, statement) {
|
||||
if (end == null) { end = start; }
|
||||
|
||||
let result = null;
|
||||
if (start) {
|
||||
result = {
|
||||
first_line: start.first_line,
|
||||
first_column: start.first_column,
|
||||
last_line: end.last_line,
|
||||
last_column: end.last_column,
|
||||
statement: !!statement
|
||||
};
|
||||
}
|
||||
|
||||
if (yy._ethersLocation) {
|
||||
return yy._ethersLocation(result);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
/* generated by jison-lex 0.3.4 */
|
||||
var lexer = (function(){
|
||||
var lexer = ({
|
||||
|
||||
EOF:1,
|
||||
|
||||
parseError:function parseError(str, hash) {
|
||||
if (this.yy.parser) {
|
||||
this.yy.parser.parseError(str, hash);
|
||||
} else {
|
||||
throw new Error(str);
|
||||
}
|
||||
},
|
||||
|
||||
// resets the lexer, sets new input
|
||||
setInput:function (input, yy) {
|
||||
this.yy = yy || this.yy || {};
|
||||
this._input = input;
|
||||
this._more = this._backtrack = this.done = false;
|
||||
this.yylineno = this.yyleng = 0;
|
||||
this.yytext = this.matched = this.match = '';
|
||||
this.conditionStack = ['INITIAL'];
|
||||
this.yylloc = {
|
||||
first_line: 1,
|
||||
first_column: 0,
|
||||
last_line: 1,
|
||||
last_column: 0
|
||||
};
|
||||
if (this.options.ranges) {
|
||||
this.yylloc.range = [0,0];
|
||||
}
|
||||
this.offset = 0;
|
||||
return this;
|
||||
},
|
||||
|
||||
// consumes and returns one char from the input
|
||||
input:function () {
|
||||
var ch = this._input[0];
|
||||
this.yytext += ch;
|
||||
this.yyleng++;
|
||||
this.offset++;
|
||||
this.match += ch;
|
||||
this.matched += ch;
|
||||
var lines = ch.match(/(?:\r\n?|\n).*/g);
|
||||
if (lines) {
|
||||
this.yylineno++;
|
||||
this.yylloc.last_line++;
|
||||
} else {
|
||||
this.yylloc.last_column++;
|
||||
}
|
||||
if (this.options.ranges) {
|
||||
this.yylloc.range[1]++;
|
||||
}
|
||||
|
||||
this._input = this._input.slice(1);
|
||||
return ch;
|
||||
},
|
||||
|
||||
// unshifts one char (or a string) into the input
|
||||
unput:function (ch) {
|
||||
var len = ch.length;
|
||||
var lines = ch.split(/(?:\r\n?|\n)/g);
|
||||
|
||||
this._input = ch + this._input;
|
||||
this.yytext = this.yytext.substr(0, this.yytext.length - len);
|
||||
//this.yyleng -= len;
|
||||
this.offset -= len;
|
||||
var oldLines = this.match.split(/(?:\r\n?|\n)/g);
|
||||
this.match = this.match.substr(0, this.match.length - 1);
|
||||
this.matched = this.matched.substr(0, this.matched.length - 1);
|
||||
|
||||
if (lines.length - 1) {
|
||||
this.yylineno -= lines.length - 1;
|
||||
}
|
||||
var r = this.yylloc.range;
|
||||
|
||||
this.yylloc = {
|
||||
first_line: this.yylloc.first_line,
|
||||
last_line: this.yylineno + 1,
|
||||
first_column: this.yylloc.first_column,
|
||||
last_column: lines ?
|
||||
(lines.length === oldLines.length ? this.yylloc.first_column : 0)
|
||||
+ oldLines[oldLines.length - lines.length].length - lines[0].length :
|
||||
this.yylloc.first_column - len
|
||||
};
|
||||
|
||||
if (this.options.ranges) {
|
||||
this.yylloc.range = [r[0], r[0] + this.yyleng - len];
|
||||
}
|
||||
this.yyleng = this.yytext.length;
|
||||
return this;
|
||||
},
|
||||
|
||||
// When called from action, caches matched text and appends it on next action
|
||||
more:function () {
|
||||
this._more = true;
|
||||
return this;
|
||||
},
|
||||
|
||||
// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
|
||||
reject:function () {
|
||||
if (this.options.backtrack_lexer) {
|
||||
this._backtrack = true;
|
||||
} else {
|
||||
return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n' + this.showPosition(), {
|
||||
text: "",
|
||||
token: null,
|
||||
line: this.yylineno
|
||||
});
|
||||
|
||||
}
|
||||
return this;
|
||||
},
|
||||
|
||||
// retain first n characters of the match
|
||||
less:function (n) {
|
||||
this.unput(this.match.slice(n));
|
||||
},
|
||||
|
||||
// displays already matched input, i.e. for error messages
|
||||
pastInput:function () {
|
||||
var past = this.matched.substr(0, this.matched.length - this.match.length);
|
||||
return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\n/g, "");
|
||||
},
|
||||
|
||||
// displays upcoming input, i.e. for error messages
|
||||
upcomingInput:function () {
|
||||
var next = this.match;
|
||||
if (next.length < 20) {
|
||||
next += this._input.substr(0, 20-next.length);
|
||||
}
|
||||
return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\n/g, "");
|
||||
},
|
||||
|
||||
// displays the character position where the lexing error occurred, i.e. for error messages
|
||||
showPosition:function () {
|
||||
var pre = this.pastInput();
|
||||
var c = new Array(pre.length + 1).join("-");
|
||||
return pre + this.upcomingInput() + "\n" + c + "^";
|
||||
},
|
||||
|
||||
// test the lexed token: return FALSE when not a match, otherwise return token
|
||||
test_match:function(match, indexed_rule) {
|
||||
var token,
|
||||
lines,
|
||||
backup;
|
||||
|
||||
if (this.options.backtrack_lexer) {
|
||||
// save context
|
||||
backup = {
|
||||
yylineno: this.yylineno,
|
||||
yylloc: {
|
||||
first_line: this.yylloc.first_line,
|
||||
last_line: this.last_line,
|
||||
first_column: this.yylloc.first_column,
|
||||
last_column: this.yylloc.last_column
|
||||
},
|
||||
yytext: this.yytext,
|
||||
match: this.match,
|
||||
matches: this.matches,
|
||||
matched: this.matched,
|
||||
yyleng: this.yyleng,
|
||||
offset: this.offset,
|
||||
_more: this._more,
|
||||
_input: this._input,
|
||||
yy: this.yy,
|
||||
conditionStack: this.conditionStack.slice(0),
|
||||
done: this.done
|
||||
};
|
||||
if (this.options.ranges) {
|
||||
backup.yylloc.range = this.yylloc.range.slice(0);
|
||||
}
|
||||
}
|
||||
|
||||
lines = match[0].match(/(?:\r\n?|\n).*/g);
|
||||
if (lines) {
|
||||
this.yylineno += lines.length;
|
||||
}
|
||||
this.yylloc = {
|
||||
first_line: this.yylloc.last_line,
|
||||
last_line: this.yylineno + 1,
|
||||
first_column: this.yylloc.last_column,
|
||||
last_column: lines ?
|
||||
lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length :
|
||||
this.yylloc.last_column + match[0].length
|
||||
};
|
||||
this.yytext += match[0];
|
||||
this.match += match[0];
|
||||
this.matches = match;
|
||||
this.yyleng = this.yytext.length;
|
||||
if (this.options.ranges) {
|
||||
this.yylloc.range = [this.offset, this.offset += this.yyleng];
|
||||
}
|
||||
this._more = false;
|
||||
this._backtrack = false;
|
||||
this._input = this._input.slice(match[0].length);
|
||||
this.matched += match[0];
|
||||
token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
|
||||
if (this.done && this._input) {
|
||||
this.done = false;
|
||||
}
|
||||
if (token) {
|
||||
return token;
|
||||
} else if (this._backtrack) {
|
||||
// recover context
|
||||
for (var k in backup) {
|
||||
this[k] = backup[k];
|
||||
}
|
||||
return false; // rule action called reject() implying the next rule should be tested instead.
|
||||
}
|
||||
return false;
|
||||
},
|
||||
|
||||
// return next match in input
|
||||
next:function () {
|
||||
if (this.done) {
|
||||
return this.EOF;
|
||||
}
|
||||
if (!this._input) {
|
||||
this.done = true;
|
||||
}
|
||||
|
||||
var token,
|
||||
match,
|
||||
tempMatch,
|
||||
index;
|
||||
if (!this._more) {
|
||||
this.yytext = '';
|
||||
this.match = '';
|
||||
}
|
||||
var rules = this._currentRules();
|
||||
for (var i = 0; i < rules.length; i++) {
|
||||
tempMatch = this._input.match(this.rules[rules[i]]);
|
||||
if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
|
||||
match = tempMatch;
|
||||
index = i;
|
||||
if (this.options.backtrack_lexer) {
|
||||
token = this.test_match(tempMatch, rules[i]);
|
||||
if (token !== false) {
|
||||
return token;
|
||||
} else if (this._backtrack) {
|
||||
match = false;
|
||||
continue; // rule action called reject() implying a rule MISmatch.
|
||||
} else {
|
||||
// else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
|
||||
return false;
|
||||
}
|
||||
} else if (!this.options.flex) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (match) {
|
||||
token = this.test_match(match, rules[index]);
|
||||
if (token !== false) {
|
||||
return token;
|
||||
}
|
||||
// else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
|
||||
return false;
|
||||
}
|
||||
if (this._input === "") {
|
||||
return this.EOF;
|
||||
} else {
|
||||
return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\n' + this.showPosition(), {
|
||||
text: "",
|
||||
token: null,
|
||||
line: this.yylineno
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
// return next match that has a token
|
||||
lex:function lex () {
|
||||
var r = this.next();
|
||||
if (r) {
|
||||
return r;
|
||||
} else {
|
||||
return this.lex();
|
||||
}
|
||||
},
|
||||
|
||||
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
||||
begin:function begin (condition) {
|
||||
this.conditionStack.push(condition);
|
||||
},
|
||||
|
||||
// pop the previously active lexer condition state off the condition stack
|
||||
popState:function popState () {
|
||||
var n = this.conditionStack.length - 1;
|
||||
if (n > 0) {
|
||||
return this.conditionStack.pop();
|
||||
} else {
|
||||
return this.conditionStack[0];
|
||||
}
|
||||
},
|
||||
|
||||
// produce the lexer rule set which is active for the currently active lexer condition state
|
||||
_currentRules:function _currentRules () {
|
||||
if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
|
||||
return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
|
||||
} else {
|
||||
return this.conditions["INITIAL"].rules;
|
||||
}
|
||||
},
|
||||
|
||||
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
||||
topState:function topState (n) {
|
||||
n = this.conditionStack.length - 1 - Math.abs(n || 0);
|
||||
if (n >= 0) {
|
||||
return this.conditionStack[n];
|
||||
} else {
|
||||
return "INITIAL";
|
||||
}
|
||||
},
|
||||
|
||||
// alias for begin(condition)
|
||||
pushState:function pushState (condition) {
|
||||
this.begin(condition);
|
||||
},
|
||||
|
||||
// return the number of states currently on the stack
|
||||
stateStackSize:function stateStackSize() {
|
||||
return this.conditionStack.length;
|
||||
},
|
||||
options: {},
|
||||
performAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {
|
||||
var YYSTATE=YY_START;
|
||||
switch($avoiding_name_collisions) {
|
||||
case 0: this.begin("script"); return "SCRIPT_EVAL";
|
||||
break;
|
||||
case 1: this.begin("script"); return "SCRIPT_EXEC";
|
||||
break;
|
||||
case 2:return "SCRIPT_TOKEN";
|
||||
break;
|
||||
case 3:this.popState()
|
||||
break;
|
||||
case 4:// Ignore comments
|
||||
break;
|
||||
case 5:// Ignore Whitespace
|
||||
break;
|
||||
case 6:return "ID"
|
||||
break;
|
||||
case 7:return "OPEN_PAREN"
|
||||
break;
|
||||
case 8:return "CLOSE_PAREN"
|
||||
break;
|
||||
case 9:return "COMMA"
|
||||
break;
|
||||
case 10:return "AT_ID"
|
||||
break;
|
||||
case 11:return "DOLLAR_ID"
|
||||
break;
|
||||
case 12:return "HASH_ID"
|
||||
break;
|
||||
case 13:return "OPEN_BRACE"
|
||||
break;
|
||||
case 14:return "CLOSE_BRACE"
|
||||
break;
|
||||
case 15:return "COLON"
|
||||
break;
|
||||
case 16:return "OPEN_BRACKET"
|
||||
break;
|
||||
case 17:return "CLOSE_BRACKET"
|
||||
break;
|
||||
case 18:return "HEX"
|
||||
break;
|
||||
case 19:return "BINARY"
|
||||
break;
|
||||
case 20:return "DECIMAL"
|
||||
break;
|
||||
case 21:return "DOLLAR_DOLLAR"
|
||||
break;
|
||||
case 22:return "DOLLAR_INDEX"
|
||||
break;
|
||||
case 23:return "EOF"
|
||||
break;
|
||||
case 24:return "INVALID"
|
||||
break;
|
||||
}
|
||||
},
|
||||
rules: [/^(?:\{\{=)/,/^(?:\{\{!)/,/^(?:([^\}]|\n|\}[^}]))/,/^(?:\}\})/,/^(?:([;][^\n]*\n))/,/^(?:(\s+))/,/^(?:([A-Za-z][A-Za-z0-9]*))/,/^(?:\()/,/^(?:\))/,/^(?:,)/,/^(?:([@][A-Za-z][A-Za-z0-9]*))/,/^(?:([$](_|[A-Za-z][A-Za-z0-9]*)))/,/^(?:([#](_|[A-Za-z][A-Za-z0-9]*)))/,/^(?:\{)/,/^(?:\})/,/^(?::)/,/^(?:\[)/,/^(?:\])/,/^(?:(0x([0-9a-fA-F][0-9a-fA-F])*))/,/^(?:(0b(0|1)+))/,/^(?:([1-9][0-9]*|0))/,/^(?:\$\$)/,/^(?:([$][1-9][0-9]*))/,/^(?:$)/,/^(?:)/],
|
||||
conditions: {"script":{"rules":[2,3],"inclusive":false},"INITIAL":{"rules":[0,1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24],"inclusive":true}}
|
||||
});
|
||||
return lexer;
|
||||
})();
|
||||
parser.lexer = lexer;
|
||||
function Parser () {
|
||||
this.yy = {};
|
||||
}
|
||||
Parser.prototype = parser;parser.Parser = Parser;
|
||||
return new Parser;
|
||||
})();
|
||||
|
||||
|
||||
if (typeof require !== 'undefined' && typeof exports !== 'undefined') {
|
||||
exports.parser = parser;
|
||||
exports.Parser = parser.Parser;
|
||||
exports.parse = function () { return parser.parse.apply(parser, arguments); };
|
||||
exports.main = function commonjsMain (args) {
|
||||
if (!args[1]) {
|
||||
console.log('Usage: '+args[0]+' FILE');
|
||||
process.exit(1);
|
||||
}
|
||||
var source = require('fs').readFileSync(require('path').normalize(args[1]), "utf8");
|
||||
return exports.parser.parse(source);
|
||||
};
|
||||
if (typeof module !== 'undefined' && require.main === module) {
|
||||
exports.main(process.argv.slice(1));
|
||||
}
|
||||
}
|
||||
|
||||
// Added By ../generate.js
|
||||
const parse = exports.parse;
|
||||
export { parse, parser }
|
2
packages/asm/lib.esm/_version.d.ts
vendored
2
packages/asm/lib.esm/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "asm/5.0.6";
|
||||
export declare const version = "asm/5.0.7";
|
||||
|
@ -1,2 +1,2 @@
|
||||
export const version = "asm/5.0.6";
|
||||
export const version = "asm/5.0.7";
|
||||
//# sourceMappingURL=_version.js.map
|
2
packages/asm/lib/_version.d.ts
vendored
2
packages/asm/lib/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "asm/5.0.6";
|
||||
export declare const version = "asm/5.0.7";
|
||||
|
@ -1,4 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "asm/5.0.6";
|
||||
exports.version = "asm/5.0.7";
|
||||
//# sourceMappingURL=_version.js.map
|
@ -12,7 +12,7 @@
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "./lib/index.js",
|
||||
"module": "./lib.module/index.js",
|
||||
"module": "./lib.esm/index.js",
|
||||
"name": "@ethersproject/asm",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
@ -25,7 +25,7 @@
|
||||
"generate": "node ./generate.js",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"tarballHash": "0x29773f2f77c16dcd4e7f6cb0cc1929a249f165cfc128380558a64cc5dff87cb7",
|
||||
"tarballHash": "0xa34335f80d32a66c7b35829a2f4c253b231e4b33607c73c1b3df61201fe31068",
|
||||
"types": "./lib/index.d.ts",
|
||||
"version": "5.0.6"
|
||||
"version": "5.0.7"
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export const version = "asm/5.0.6";
|
||||
export const version = "asm/5.0.7";
|
||||
|
2
packages/base64/lib.esm/_version.d.ts
vendored
2
packages/base64/lib.esm/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "base64/5.0.4";
|
||||
export declare const version = "base64/5.0.5";
|
||||
|
@ -1,2 +1,2 @@
|
||||
export const version = "base64/5.0.4";
|
||||
export const version = "base64/5.0.5";
|
||||
//# sourceMappingURL=_version.js.map
|
3
packages/base64/lib.esm/base64.d.ts
vendored
Normal file
3
packages/base64/lib.esm/base64.d.ts
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
import { BytesLike } from "@ethersproject/bytes";
|
||||
export declare function decode(textData: string): Uint8Array;
|
||||
export declare function encode(data: BytesLike): string;
|
@ -16,4 +16,4 @@ export function encode(data) {
|
||||
}
|
||||
return btoa(textData);
|
||||
}
|
||||
//# sourceMappingURL=browser.js.map
|
||||
//# sourceMappingURL=base64.js.map
|
1
packages/base64/lib.esm/base64.js.map
Normal file
1
packages/base64/lib.esm/base64.js.map
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"base64.js","sourceRoot":"","sources":["../src.ts/browser-base64.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAE3D,MAAM,UAAU,MAAM,CAAC,QAAgB;IACnC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC1B,MAAM,IAAI,GAAG,EAAE,CAAC;IAChB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACtC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;KACrC;IACD,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AAED,MAAM,UAAU,MAAM,CAAC,IAAe;IAClC,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IACtB,IAAI,QAAQ,GAAG,EAAE,CAAC;IAClB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QAClC,QAAQ,IAAI,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;KAC5C;IACD,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC;AAC1B,CAAC"}
|
@ -1 +0,0 @@
|
||||
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../src.ts/browser.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAE3D,MAAM,UAAU,MAAM,CAAC,QAAgB;IACnC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC1B,MAAM,IAAI,GAAG,EAAE,CAAC;IAChB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACtC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;KACrC;IACD,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AAED,MAAM,UAAU,MAAM,CAAC,IAAe;IAClC,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IACtB,IAAI,QAAQ,GAAG,EAAE,CAAC;IAClB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QAClC,QAAQ,IAAI,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;KAC5C;IACD,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC;AAC1B,CAAC"}
|
4
packages/base64/lib.esm/index.d.ts
vendored
4
packages/base64/lib.esm/index.d.ts
vendored
@ -1,3 +1 @@
|
||||
import { BytesLike } from "@ethersproject/bytes";
|
||||
export declare function decode(textData: string): Uint8Array;
|
||||
export declare function encode(data: BytesLike): string;
|
||||
export { decode, encode } from "./base64";
|
||||
|
@ -1,10 +1,3 @@
|
||||
"use strict";
|
||||
import { arrayify } from "@ethersproject/bytes";
|
||||
export function decode(textData) {
|
||||
return arrayify(new Uint8Array(Buffer.from(textData, "base64")));
|
||||
}
|
||||
;
|
||||
export function encode(data) {
|
||||
return Buffer.from(arrayify(data)).toString("base64");
|
||||
}
|
||||
export { decode, encode } from "./base64";
|
||||
//# sourceMappingURL=index.js.map
|
@ -1 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src.ts/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAG3D,MAAM,UAAU,MAAM,CAAC,QAAgB;IACnC,OAAO,QAAQ,CAAC,IAAI,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;AACrE,CAAC;AAAA,CAAC;AAEF,MAAM,UAAU,MAAM,CAAC,IAAe;IAClC,OAAO,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AAC1D,CAAC"}
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src.ts/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
|
2
packages/base64/lib/_version.d.ts
vendored
2
packages/base64/lib/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "base64/5.0.4";
|
||||
export declare const version = "base64/5.0.5";
|
||||
|
@ -1,4 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "base64/5.0.4";
|
||||
exports.version = "base64/5.0.5";
|
||||
//# sourceMappingURL=_version.js.map
|
3
packages/base64/lib/base64.d.ts
vendored
Normal file
3
packages/base64/lib/base64.d.ts
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
import { BytesLike } from "@ethersproject/bytes";
|
||||
export declare function decode(textData: string): Uint8Array;
|
||||
export declare function encode(data: BytesLike): string;
|
13
packages/base64/lib/base64.js
Normal file
13
packages/base64/lib/base64.js
Normal file
@ -0,0 +1,13 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var bytes_1 = require("@ethersproject/bytes");
|
||||
function decode(textData) {
|
||||
return bytes_1.arrayify(new Uint8Array(Buffer.from(textData, "base64")));
|
||||
}
|
||||
exports.decode = decode;
|
||||
;
|
||||
function encode(data) {
|
||||
return Buffer.from(bytes_1.arrayify(data)).toString("base64");
|
||||
}
|
||||
exports.encode = encode;
|
||||
//# sourceMappingURL=base64.js.map
|
1
packages/base64/lib/base64.js.map
Normal file
1
packages/base64/lib/base64.js.map
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"base64.js","sourceRoot":"","sources":["../src.ts/base64.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,8CAA2D;AAG3D,SAAgB,MAAM,CAAC,QAAgB;IACnC,OAAO,gBAAQ,CAAC,IAAI,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;AACrE,CAAC;AAFD,wBAEC;AAAA,CAAC;AAEF,SAAgB,MAAM,CAAC,IAAe;IAClC,OAAO,MAAM,CAAC,IAAI,CAAC,gBAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AAC1D,CAAC;AAFD,wBAEC"}
|
3
packages/base64/lib/browser-base64.d.ts
vendored
Normal file
3
packages/base64/lib/browser-base64.d.ts
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
import { BytesLike } from "@ethersproject/bytes";
|
||||
export declare function decode(textData: string): Uint8Array;
|
||||
export declare function encode(data: BytesLike): string;
|
@ -19,4 +19,4 @@ function encode(data) {
|
||||
return btoa(textData);
|
||||
}
|
||||
exports.encode = encode;
|
||||
//# sourceMappingURL=browser.js.map
|
||||
//# sourceMappingURL=browser-base64.js.map
|
1
packages/base64/lib/browser-base64.js.map
Normal file
1
packages/base64/lib/browser-base64.js.map
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"browser-base64.js","sourceRoot":"","sources":["../src.ts/browser-base64.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,8CAA2D;AAE3D,SAAgB,MAAM,CAAC,QAAgB;IACnC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC1B,IAAM,IAAI,GAAG,EAAE,CAAC;IAChB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACtC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;KACrC;IACD,OAAO,gBAAQ,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AAPD,wBAOC;AAED,SAAgB,MAAM,CAAC,IAAe;IAClC,IAAI,GAAG,gBAAQ,CAAC,IAAI,CAAC,CAAC;IACtB,IAAI,QAAQ,GAAG,EAAE,CAAC;IAClB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QAClC,QAAQ,IAAI,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;KAC5C;IACD,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC;AAC1B,CAAC;AAPD,wBAOC"}
|
@ -1 +0,0 @@
|
||||
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../src.ts/browser.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,8CAA2D;AAE3D,SAAgB,MAAM,CAAC,QAAgB;IACnC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC1B,IAAM,IAAI,GAAG,EAAE,CAAC;IAChB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACtC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;KACrC;IACD,OAAO,gBAAQ,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AAPD,wBAOC;AAED,SAAgB,MAAM,CAAC,IAAe;IAClC,IAAI,GAAG,gBAAQ,CAAC,IAAI,CAAC,CAAC;IACtB,IAAI,QAAQ,GAAG,EAAE,CAAC;IAClB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QAClC,QAAQ,IAAI,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;KAC5C;IACD,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC;AAC1B,CAAC;AAPD,wBAOC"}
|
4
packages/base64/lib/index.d.ts
vendored
4
packages/base64/lib/index.d.ts
vendored
@ -1,3 +1 @@
|
||||
import { BytesLike } from "@ethersproject/bytes";
|
||||
export declare function decode(textData: string): Uint8Array;
|
||||
export declare function encode(data: BytesLike): string;
|
||||
export { decode, encode } from "./base64";
|
||||
|
@ -1,13 +1,6 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var bytes_1 = require("@ethersproject/bytes");
|
||||
function decode(textData) {
|
||||
return bytes_1.arrayify(new Uint8Array(Buffer.from(textData, "base64")));
|
||||
}
|
||||
exports.decode = decode;
|
||||
;
|
||||
function encode(data) {
|
||||
return Buffer.from(bytes_1.arrayify(data)).toString("base64");
|
||||
}
|
||||
exports.encode = encode;
|
||||
var base64_1 = require("./base64");
|
||||
exports.decode = base64_1.decode;
|
||||
exports.encode = base64_1.encode;
|
||||
//# sourceMappingURL=index.js.map
|
@ -1 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src.ts/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,8CAA2D;AAG3D,SAAgB,MAAM,CAAC,QAAgB;IACnC,OAAO,gBAAQ,CAAC,IAAI,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;AACrE,CAAC;AAFD,wBAEC;AAAA,CAAC;AAEF,SAAgB,MAAM,CAAC,IAAe;IAClC,OAAO,MAAM,CAAC,IAAI,CAAC,gBAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AAC1D,CAAC;AAFD,wBAEC"}
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src.ts/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,mCAA0C;AAAjC,0BAAA,MAAM,CAAA;AAAE,0BAAA,MAAM,CAAA"}
|
@ -3,9 +3,9 @@
|
||||
"base64.js": "browser-base64.js"
|
||||
},
|
||||
"author": "Richard Moore <me@ricmoo.com>",
|
||||
"browser": "./lib/browser.js",
|
||||
"browser.esm": "./lib.esm/browser.js",
|
||||
"browser.umd": "./lib/browser.js",
|
||||
"browser": {
|
||||
"./lib/base64": "./lib/browser-base64.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ethersproject/bytes": "^5.0.4"
|
||||
},
|
||||
@ -17,7 +17,7 @@
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "./lib/index.js",
|
||||
"module": "./lib.module/index.js",
|
||||
"module": "./lib.esm/index.js",
|
||||
"name": "@ethersproject/base64",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
@ -30,7 +30,7 @@
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"tarballHash": "0xf9edd66aa5131bf0bca2ea188265e0e333d781e4b0ef5e92090a7cef8556cb30",
|
||||
"tarballHash": "0xb364a54a1e2a4180ba3704634382e9280ed96801142e8f51eb956bf2d9853d4d",
|
||||
"types": "./lib/index.d.ts",
|
||||
"version": "5.0.4"
|
||||
"version": "5.0.5"
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export const version = "base64/5.0.4";
|
||||
export const version = "base64/5.0.5";
|
||||
|
2
packages/basex/lib.esm/_version.d.ts
vendored
2
packages/basex/lib.esm/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "basex/5.0.4";
|
||||
export declare const version = "basex/5.0.5";
|
||||
|
@ -1,2 +1,2 @@
|
||||
export const version = "basex/5.0.4";
|
||||
export const version = "basex/5.0.5";
|
||||
//# sourceMappingURL=_version.js.map
|
2
packages/basex/lib/_version.d.ts
vendored
2
packages/basex/lib/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "basex/5.0.4";
|
||||
export declare const version = "basex/5.0.5";
|
||||
|
@ -1,4 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "basex/5.0.4";
|
||||
exports.version = "basex/5.0.5";
|
||||
//# sourceMappingURL=_version.js.map
|
@ -12,7 +12,7 @@
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "./lib/index.js",
|
||||
"module": "./lib.module/index.js",
|
||||
"module": "./lib.esm/index.js",
|
||||
"name": "@ethersproject/basex",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
@ -25,7 +25,7 @@
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"tarballHash": "0x680c45cf36dc0bc442c80238ff9fbfc482b7ac0486c24559c349277f395e0fa9",
|
||||
"tarballHash": "0x7fa7045f05554887ced897ea35c569153ea65efc744d4b414cacc409145e6ff5",
|
||||
"types": "./lib/index.d.ts",
|
||||
"version": "5.0.4"
|
||||
"version": "5.0.5"
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export const version = "basex/5.0.4";
|
||||
export const version = "basex/5.0.5";
|
||||
|
2
packages/bignumber/lib.esm/_version.d.ts
vendored
2
packages/bignumber/lib.esm/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "bignumber/5.0.8";
|
||||
export declare const version = "bignumber/5.0.9";
|
||||
|
@ -1,2 +1,2 @@
|
||||
export const version = "bignumber/5.0.8";
|
||||
export const version = "bignumber/5.0.9";
|
||||
//# sourceMappingURL=_version.js.map
|
2
packages/bignumber/lib.esm/bignumber.d.ts
vendored
2
packages/bignumber/lib.esm/bignumber.d.ts
vendored
@ -34,3 +34,5 @@ export declare class BigNumber implements Hexable {
|
||||
static from(value: any): BigNumber;
|
||||
static isBigNumber(value: any): value is BigNumber;
|
||||
}
|
||||
export declare function _base36To16(value: string): string;
|
||||
export declare function _base16To36(value: string): string;
|
||||
|
@ -6,7 +6,8 @@
|
||||
* because it is used by elliptic, so it is required regardles.
|
||||
*
|
||||
*/
|
||||
import { BN } from "bn.js";
|
||||
import _BN from "bn.js";
|
||||
var BN = _BN.BN;
|
||||
import { hexlify, isBytes, isHexString } from "@ethersproject/bytes";
|
||||
import { Logger } from "@ethersproject/logger";
|
||||
import { version } from "./_version";
|
||||
@ -272,4 +273,12 @@ function throwFault(fault, operation, value) {
|
||||
}
|
||||
return logger.throwError(fault, Logger.errors.NUMERIC_FAULT, params);
|
||||
}
|
||||
// value should have no prefix
|
||||
export function _base36To16(value) {
|
||||
return (new BN(value, 36)).toString(16);
|
||||
}
|
||||
// value should have no prefix
|
||||
export function _base16To36(value) {
|
||||
return (new BN(value, 16)).toString(36);
|
||||
}
|
||||
//# sourceMappingURL=bignumber.js.map
|
File diff suppressed because one or more lines are too long
1
packages/bignumber/lib.esm/index.d.ts
vendored
1
packages/bignumber/lib.esm/index.d.ts
vendored
@ -1,2 +1,3 @@
|
||||
export { BigNumber, BigNumberish } from "./bignumber";
|
||||
export { formatFixed, FixedFormat, FixedNumber, parseFixed } from "./fixednumber";
|
||||
export { _base16To36, _base36To16 } from "./bignumber";
|
||||
|
@ -1,3 +1,5 @@
|
||||
export { BigNumber } from "./bignumber";
|
||||
export { formatFixed, FixedFormat, FixedNumber, parseFixed } from "./fixednumber";
|
||||
// Internal methods used by address
|
||||
export { _base16To36, _base36To16 } from "./bignumber";
|
||||
//# sourceMappingURL=index.js.map
|
@ -1 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src.ts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAgB,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src.ts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAgB,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAElF,mCAAmC;AACnC,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC"}
|
2
packages/bignumber/lib/_version.d.ts
vendored
2
packages/bignumber/lib/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "bignumber/5.0.8";
|
||||
export declare const version = "bignumber/5.0.9";
|
||||
|
@ -1,4 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "bignumber/5.0.8";
|
||||
exports.version = "bignumber/5.0.9";
|
||||
//# sourceMappingURL=_version.js.map
|
2
packages/bignumber/lib/bignumber.d.ts
vendored
2
packages/bignumber/lib/bignumber.d.ts
vendored
@ -34,3 +34,5 @@ export declare class BigNumber implements Hexable {
|
||||
static from(value: any): BigNumber;
|
||||
static isBigNumber(value: any): value is BigNumber;
|
||||
}
|
||||
export declare function _base36To16(value: string): string;
|
||||
export declare function _base16To36(value: string): string;
|
||||
|
@ -1,4 +1,7 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
/**
|
||||
* BigNumber
|
||||
@ -7,7 +10,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
||||
* because it is used by elliptic, so it is required regardles.
|
||||
*
|
||||
*/
|
||||
var bn_js_1 = require("bn.js");
|
||||
var bn_js_1 = __importDefault(require("bn.js"));
|
||||
var BN = bn_js_1.default.BN;
|
||||
var bytes_1 = require("@ethersproject/bytes");
|
||||
var logger_1 = require("@ethersproject/logger");
|
||||
var _version_1 = require("./_version");
|
||||
@ -169,7 +173,7 @@ var BigNumber = /** @class */ (function () {
|
||||
return new BigNumber(_constructorGuard, toHex(value));
|
||||
}
|
||||
if (value.match(/^-?[0-9]+$/)) {
|
||||
return new BigNumber(_constructorGuard, toHex(new bn_js_1.BN(value)));
|
||||
return new BigNumber(_constructorGuard, toHex(new BN(value)));
|
||||
}
|
||||
return logger.throwArgumentError("invalid BigNumber string", "value", value);
|
||||
}
|
||||
@ -266,9 +270,9 @@ function toBigNumber(value) {
|
||||
function toBN(value) {
|
||||
var hex = BigNumber.from(value).toHexString();
|
||||
if (hex[0] === "-") {
|
||||
return (new bn_js_1.BN("-" + hex.substring(3), 16));
|
||||
return (new BN("-" + hex.substring(3), 16));
|
||||
}
|
||||
return new bn_js_1.BN(hex.substring(2), 16);
|
||||
return new BN(hex.substring(2), 16);
|
||||
}
|
||||
function throwFault(fault, operation, value) {
|
||||
var params = { fault: fault, operation: operation };
|
||||
@ -277,4 +281,14 @@ function throwFault(fault, operation, value) {
|
||||
}
|
||||
return logger.throwError(fault, logger_1.Logger.errors.NUMERIC_FAULT, params);
|
||||
}
|
||||
// value should have no prefix
|
||||
function _base36To16(value) {
|
||||
return (new BN(value, 36)).toString(16);
|
||||
}
|
||||
exports._base36To16 = _base36To16;
|
||||
// value should have no prefix
|
||||
function _base16To36(value) {
|
||||
return (new BN(value, 16)).toString(36);
|
||||
}
|
||||
exports._base16To36 = _base16To36;
|
||||
//# sourceMappingURL=bignumber.js.map
|
File diff suppressed because one or more lines are too long
1
packages/bignumber/lib/index.d.ts
vendored
1
packages/bignumber/lib/index.d.ts
vendored
@ -1,2 +1,3 @@
|
||||
export { BigNumber, BigNumberish } from "./bignumber";
|
||||
export { formatFixed, FixedFormat, FixedNumber, parseFixed } from "./fixednumber";
|
||||
export { _base16To36, _base36To16 } from "./bignumber";
|
||||
|
@ -7,4 +7,8 @@ exports.formatFixed = fixednumber_1.formatFixed;
|
||||
exports.FixedFormat = fixednumber_1.FixedFormat;
|
||||
exports.FixedNumber = fixednumber_1.FixedNumber;
|
||||
exports.parseFixed = fixednumber_1.parseFixed;
|
||||
// Internal methods used by address
|
||||
var bignumber_2 = require("./bignumber");
|
||||
exports._base16To36 = bignumber_2._base16To36;
|
||||
exports._base36To16 = bignumber_2._base36To16;
|
||||
//# sourceMappingURL=index.js.map
|
@ -1 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src.ts/index.ts"],"names":[],"mappings":";;AAAA,yCAAsD;AAA7C,gCAAA,SAAS,CAAA;AAClB,6CAAkF;AAAzE,oCAAA,WAAW,CAAA;AAAE,oCAAA,WAAW,CAAA;AAAE,oCAAA,WAAW,CAAA;AAAE,mCAAA,UAAU,CAAA"}
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src.ts/index.ts"],"names":[],"mappings":";;AAAA,yCAAsD;AAA7C,gCAAA,SAAS,CAAA;AAClB,6CAAkF;AAAzE,oCAAA,WAAW,CAAA;AAAE,oCAAA,WAAW,CAAA;AAAE,oCAAA,WAAW,CAAA;AAAE,mCAAA,UAAU,CAAA;AAE1D,mCAAmC;AACnC,yCAAuD;AAA9C,kCAAA,WAAW,CAAA;AAAE,kCAAA,WAAW,CAAA"}
|
@ -27,7 +27,7 @@
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"tarballHash": "0x13de0d9c0138d0d056ed658b8f8744fab45fcdf4b52dcd9456bfd7285a4288ce",
|
||||
"tarballHash": "0x192557ad26313e85389bef34bf7d705d9290089c57cc9a1586f4e7bff0e30074",
|
||||
"types": "./lib/index.d.ts",
|
||||
"version": "5.0.8"
|
||||
"version": "5.0.9"
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export const version = "bignumber/5.0.8";
|
||||
export const version = "bignumber/5.0.9";
|
||||
|
2
packages/bytes/lib.esm/_version.d.ts
vendored
2
packages/bytes/lib.esm/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "bytes/5.0.5";
|
||||
export declare const version = "bytes/5.0.6";
|
||||
|
@ -1,2 +1,2 @@
|
||||
export const version = "bytes/5.0.5";
|
||||
export const version = "bytes/5.0.6";
|
||||
//# sourceMappingURL=_version.js.map
|
2
packages/bytes/lib/_version.d.ts
vendored
2
packages/bytes/lib/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "bytes/5.0.5";
|
||||
export declare const version = "bytes/5.0.6";
|
||||
|
@ -1,4 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "bytes/5.0.5";
|
||||
exports.version = "bytes/5.0.6";
|
||||
//# sourceMappingURL=_version.js.map
|
@ -11,7 +11,7 @@
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "./lib/index.js",
|
||||
"module": "./lib.module/index.js",
|
||||
"module": "./lib.esm/index.js",
|
||||
"name": "@ethersproject/bytes",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
@ -26,7 +26,7 @@
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"tarballHash": "0x132538d3d8927299393c28ac01243ebc0e7ea34f5af1feadf23b364745f7c130",
|
||||
"tarballHash": "0x1434c3e1df18ea4906cefbb68a6f0e70f389b2f16c6632153a1dbd7c0004af94",
|
||||
"types": "./lib/index.d.ts",
|
||||
"version": "5.0.5"
|
||||
"version": "5.0.6"
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export const version = "bytes/5.0.5";
|
||||
export const version = "bytes/5.0.6";
|
||||
|
2
packages/cli/lib.esm/_version.d.ts
vendored
2
packages/cli/lib.esm/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "cli/5.0.5";
|
||||
export declare const version = "cli/5.0.6";
|
||||
|
@ -1,2 +1,2 @@
|
||||
export const version = "cli/5.0.5";
|
||||
export const version = "cli/5.0.6";
|
||||
//# sourceMappingURL=_version.js.map
|
2
packages/cli/lib/_version.d.ts
vendored
2
packages/cli/lib/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "cli/5.0.5";
|
||||
export declare const version = "cli/5.0.6";
|
||||
|
@ -1,4 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "cli/5.0.5";
|
||||
exports.version = "cli/5.0.6";
|
||||
//# sourceMappingURL=_version.js.map
|
@ -12,10 +12,8 @@
|
||||
"@ethersproject/asm": "^5.0.5",
|
||||
"@ethersproject/basex": "^5.0.3",
|
||||
"ethers": "^5.0.13",
|
||||
"mime-types": "2.1.11",
|
||||
"scrypt-js": "3.0.1",
|
||||
"solc": "0.7.1",
|
||||
"solidity-parser-antlr": "^0.3.2"
|
||||
"solc": "0.7.1"
|
||||
},
|
||||
"description": "Command-Line Interface scripts and releated utilities.",
|
||||
"ethereum": "donations.ethers.eth",
|
||||
@ -38,7 +36,7 @@
|
||||
"scripts": {
|
||||
"test": "exit 1"
|
||||
},
|
||||
"tarballHash": "0xe7e54bdcfdf154ef9e94945a34f84b41c2aca0cf642479c4da9457f5b20e73f5",
|
||||
"tarballHash": "0xfba941d36467b91537a3c4e408460c9eb0218c1483cf548881a66239d399f7d6",
|
||||
"types": "./lib/index.d.ts",
|
||||
"version": "5.0.5"
|
||||
"version": "5.0.6"
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export const version = "cli/5.0.5";
|
||||
export const version = "cli/5.0.6";
|
||||
|
2
packages/constants/lib.esm/_version.d.ts
vendored
2
packages/constants/lib.esm/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "constants/5.0.5";
|
||||
export declare const version = "constants/5.0.6";
|
||||
|
@ -1,2 +1,2 @@
|
||||
export const version = "constants/5.0.5";
|
||||
export const version = "constants/5.0.6";
|
||||
//# sourceMappingURL=_version.js.map
|
1
packages/constants/lib.esm/addresses.d.ts
vendored
Normal file
1
packages/constants/lib.esm/addresses.d.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
export declare const AddressZero = "0x0000000000000000000000000000000000000000";
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user