New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@0x/utils

Package Overview
Dependencies
Maintainers
12
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@0x/utils - npm Package Compare versions

Comparing version 6.2.0 to 6.2.1

9

CHANGELOG.json
[
{
"timestamp": 1616613438,
"version": "6.2.1",
"changes": [
{
"note": "Dependencies updated"
}
]
},
{
"version": "6.2.0",

@@ -4,0 +13,0 @@ "changes": [

4

CHANGELOG.md

@@ -8,2 +8,6 @@ <!--

## v6.2.1 - _March 24, 2021_
* Dependencies updated
## v6.2.0 - _January 5, 2021_

@@ -10,0 +14,0 @@

5

lib/src/abi_decoder.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AbiDecoder = void 0;
const ethereum_types_1 = require("ethereum-types");

@@ -73,3 +74,3 @@ const ethers = require("ethers");

// Decoding was successful. Return decoded log.
return Object.assign({}, log, { event: event.name, args: decodedArgs });
return Object.assign(Object.assign({}, log), { event: event.name, args: decodedArgs });
}

@@ -141,3 +142,3 @@ /**

const numIndexedArgs = _.reduce(eventAbi.inputs, (sum, input) => (input.indexed ? sum + 1 : sum), 0);
this._eventIds[topic] = Object.assign({}, this._eventIds[topic], { [numIndexedArgs]: eventAbi });
this._eventIds[topic] = Object.assign(Object.assign({}, this._eventIds[topic]), { [numIndexedArgs]: eventAbi });
}

@@ -144,0 +145,0 @@ _addMethodABI(methodAbi, contractName) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DataType = void 0;
const _ = require("lodash");

@@ -19,3 +20,3 @@ const calldata_1 = require("../calldata/calldata");

encode(value, rules, selector) {
const rules_ = Object.assign({}, constants_1.constants.DEFAULT_ENCODING_RULES, rules);
const rules_ = Object.assign(Object.assign({}, constants_1.constants.DEFAULT_ENCODING_RULES), rules);
const calldata = new calldata_1.Calldata(rules_);

@@ -36,3 +37,3 @@ if (selector !== undefined) {

const rawCalldata = new raw_calldata_1.RawCalldata(calldata, hasSelector);
const rules_ = Object.assign({}, constants_1.constants.DEFAULT_DECODING_RULES, rules);
const rules_ = Object.assign(Object.assign({}, constants_1.constants.DEFAULT_DECODING_RULES), rules);
const value = rules_.isStrictMode || rawCalldata.getSizeInBytes() > 0

@@ -39,0 +40,0 @@ ? this.generateValue(rawCalldata, rules_)

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

/// <reference types="node" />
import { DataItem } from 'ethereum-types';

@@ -2,0 +3,0 @@ import { RawCalldata } from '../calldata/raw_calldata';

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

/// <reference types="node" />
import { DataItem } from 'ethereum-types';

@@ -2,0 +3,0 @@ import { BlobCalldataBlock } from '../../calldata/blocks/blob';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AbstractBlobDataType = void 0;
const blob_1 = require("../../calldata/blocks/blob");

@@ -4,0 +5,0 @@ const data_type_1 = require("../data_type");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AbstractPointerDataType = void 0;
const ethUtil = require("ethereumjs-util");

@@ -4,0 +5,0 @@ const pointer_1 = require("../../calldata/blocks/pointer");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AbstractSetDataType = void 0;
const ethUtil = require("ethereumjs-util");

@@ -4,0 +5,0 @@ const _ = require("lodash");

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

/// <reference types="node" />
import { CalldataBlock } from '../calldata_block';

@@ -2,0 +3,0 @@ export declare class BlobCalldataBlock extends CalldataBlock {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BlobCalldataBlock = void 0;
const calldata_block_1 = require("../calldata_block");

@@ -4,0 +5,0 @@ class BlobCalldataBlock extends calldata_block_1.CalldataBlock {

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

/// <reference types="node" />
import { CalldataBlock } from '../calldata_block';

@@ -2,0 +3,0 @@ export declare class PointerCalldataBlock extends CalldataBlock {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PointerCalldataBlock = void 0;
const ethUtil = require("ethereumjs-util");

@@ -45,2 +46,3 @@ const constants_1 = require("../../utils/constants");

}
exports.PointerCalldataBlock = PointerCalldataBlock;
PointerCalldataBlock.RAW_DATA_START = Buffer.from('<');

@@ -50,3 +52,2 @@ PointerCalldataBlock.RAW_DATA_END = Buffer.from('>');

PointerCalldataBlock._EMPTY_HEADER_SIZE = 0;
exports.PointerCalldataBlock = PointerCalldataBlock;
//# sourceMappingURL=pointer.js.map

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

/// <reference types="node" />
import { CalldataBlock } from '../calldata_block';

@@ -2,0 +3,0 @@ export declare class SetCalldataBlock extends CalldataBlock {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SetCalldataBlock = void 0;
const _ = require("lodash");

@@ -4,0 +5,0 @@ const calldata_block_1 = require("../calldata_block");

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

/// <reference types="node" />
export declare abstract class CalldataBlock {

@@ -2,0 +3,0 @@ private readonly _signature;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CalldataBlock = void 0;
const ethUtil = require("ethereumjs-util");

@@ -4,0 +5,0 @@ class CalldataBlock {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Calldata = void 0;
const ethUtil = require("ethereumjs-util");

@@ -4,0 +5,0 @@ const _ = require("lodash");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ReverseCalldataIterator = exports.CalldataIterator = void 0;
/* tslint:disable max-classes-per-file */

@@ -39,2 +40,6 @@ const _ = require("lodash");

class BaseIterator {
constructor(root) {
this._root = root;
this._queue = BaseIterator._createQueue(root);
}
static _createQueue(block) {

@@ -65,6 +70,2 @@ const queue = new queue_1.Queue();

}
constructor(root) {
this._root = root;
this._queue = BaseIterator._createQueue(root);
}
[Symbol.iterator]() {

@@ -71,0 +72,0 @@ return {

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

/// <reference types="node" />
export declare class RawCalldata {

@@ -2,0 +3,0 @@ private static readonly _INITIAL_OFFSET;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RawCalldata = void 0;
const ethUtil = require("ethereumjs-util");

@@ -76,4 +77,4 @@ const _ = require("lodash");

}
exports.RawCalldata = RawCalldata;
RawCalldata._INITIAL_OFFSET = 0;
exports.RawCalldata = RawCalldata;
//# sourceMappingURL=raw_calldata.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createMethod = exports.create = exports.EvmDataTypeFactory = exports.Method = exports.Array = exports.Tuple = exports.Pointer = exports.String = exports.DynamicBytes = exports.StaticBytes = exports.UInt = exports.Int = exports.Bool = exports.Address = void 0;
const _ = require("lodash");

@@ -84,2 +85,4 @@ const signature_parser_1 = require("./utils/signature_parser");

class EvmDataTypeFactory {
/* tslint:enable prefer-function-over-method */
constructor() { }
static getInstance() {

@@ -132,4 +135,2 @@ if (!EvmDataTypeFactory._instance) {

}
/* tslint:enable prefer-function-over-method */
constructor() { }
}

@@ -136,0 +137,0 @@ exports.EvmDataTypeFactory = EvmDataTypeFactory;

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

/// <reference types="node" />
import { DataItem } from 'ethereum-types';

@@ -2,0 +3,0 @@ import { DataTypeFactory } from '../abstract_data_types/interfaces';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AddressDataType = void 0;
const ethereum_types_1 = require("ethereum-types");

@@ -42,2 +43,3 @@ const ethUtil = require("ethereumjs-util");

}
exports.AddressDataType = AddressDataType;
AddressDataType._SIZE_KNOWN_AT_COMPILE_TIME = true;

@@ -47,3 +49,2 @@ AddressDataType._ADDRESS_SIZE_IN_BYTES = 20;

AddressDataType._DEFAULT_VALUE = '0x0000000000000000000000000000000000000000';
exports.AddressDataType = AddressDataType;
//# sourceMappingURL=address.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ArrayDataType = void 0;
const _ = require("lodash");

@@ -68,4 +69,4 @@ const set_1 = require("../abstract_data_types/types/set");

}
exports.ArrayDataType = ArrayDataType;
ArrayDataType._MATCHER = RegExp('^(.+)\\[([0-9]*)\\]$');
exports.ArrayDataType = ArrayDataType;
//# sourceMappingURL=array.js.map

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

/// <reference types="node" />
import { DataItem } from 'ethereum-types';

@@ -2,0 +3,0 @@ import { DataTypeFactory } from '../abstract_data_types/interfaces';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BoolDataType = void 0;
const ethereum_types_1 = require("ethereum-types");

@@ -45,5 +46,5 @@ const ethUtil = require("ethereumjs-util");

}
exports.BoolDataType = BoolDataType;
BoolDataType._SIZE_KNOWN_AT_COMPILE_TIME = true;
BoolDataType._DEFAULT_VALUE = false;
exports.BoolDataType = BoolDataType;
//# sourceMappingURL=bool.js.map

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

/// <reference types="node" />
import { DataItem } from 'ethereum-types';

@@ -2,0 +3,0 @@ import { DataTypeFactory } from '../abstract_data_types/interfaces';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DynamicBytesDataType = void 0;
const ethereum_types_1 = require("ethereum-types");

@@ -67,5 +68,5 @@ const ethUtil = require("ethereumjs-util");

}
exports.DynamicBytesDataType = DynamicBytesDataType;
DynamicBytesDataType._SIZE_KNOWN_AT_COMPILE_TIME = false;
DynamicBytesDataType._DEFAULT_VALUE = '0x';
exports.DynamicBytesDataType = DynamicBytesDataType;
//# sourceMappingURL=dynamic_bytes.js.map

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

/// <reference types="node" />
import { DataItem } from 'ethereum-types';

@@ -2,0 +3,0 @@ import { BigNumber } from '../../configured_bignumber';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IntDataType = void 0;
const ethereum_types_1 = require("ethereum-types");

@@ -51,2 +52,3 @@ const configured_bignumber_1 = require("../../configured_bignumber");

}
exports.IntDataType = IntDataType;
IntDataType._MATCHER = RegExp('^int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256){0,1}$');

@@ -57,3 +59,2 @@ IntDataType._SIZE_KNOWN_AT_COMPILE_TIME = true;

IntDataType._DEFAULT_VALUE = new configured_bignumber_1.BigNumber(0);
exports.IntDataType = IntDataType;
//# sourceMappingURL=int.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MethodDataType = void 0;
const ethUtil = require("ethereumjs-util");

@@ -26,3 +27,3 @@ const _ = require("lodash");

strictDecode(calldata, rules) {
const value = super.decode(calldata, Object.assign({}, rules, { isStrictMode: true }), this._methodSelector);
const value = super.decode(calldata, Object.assign(Object.assign({}, rules), { isStrictMode: true }), this._methodSelector);
const valueAsArray = _.isObject(value) ? _.values(value) : [value];

@@ -47,3 +48,3 @@ switch (valueAsArray.length) {

strictDecodeReturnValue(returndata, rules) {
const returnValues = this._returnDataType.decode(returndata, Object.assign({}, rules, { isStrictMode: true }));
const returnValues = this._returnDataType.decode(returndata, Object.assign(Object.assign({}, rules), { isStrictMode: true }));
const returnValuesAsArray = _.isObject(returnValues) ? _.values(returnValues) : [returnValues];

@@ -50,0 +51,0 @@ switch (returnValuesAsArray.length) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PointerDataType = void 0;
const pointer_1 = require("../abstract_data_types/types/pointer");

@@ -4,0 +5,0 @@ class PointerDataType extends pointer_1.AbstractPointerDataType {

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

/// <reference types="node" />
import { DataItem } from 'ethereum-types';

@@ -2,0 +3,0 @@ import { DataTypeFactory } from '../abstract_data_types/interfaces';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StaticBytesDataType = void 0;
const ethereum_types_1 = require("ethereum-types");

@@ -66,6 +67,6 @@ const ethUtil = require("ethereumjs-util");

}
exports.StaticBytesDataType = StaticBytesDataType;
StaticBytesDataType._SIZE_KNOWN_AT_COMPILE_TIME = true;
StaticBytesDataType._MATCHER = RegExp('^(byte|bytes(1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32))$');
StaticBytesDataType._DEFAULT_WIDTH = 1;
exports.StaticBytesDataType = StaticBytesDataType;
//# sourceMappingURL=static_bytes.js.map

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

/// <reference types="node" />
import { DataItem } from 'ethereum-types';

@@ -2,0 +3,0 @@ import { DataTypeFactory } from '../abstract_data_types/interfaces';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StringDataType = void 0;
const ethereum_types_1 = require("ethereum-types");

@@ -54,5 +55,5 @@ const ethUtil = require("ethereumjs-util");

}
exports.StringDataType = StringDataType;
StringDataType._SIZE_KNOWN_AT_COMPILE_TIME = false;
StringDataType._DEFAULT_VALUE = '';
exports.StringDataType = StringDataType;
//# sourceMappingURL=string.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TupleDataType = void 0;
const ethereum_types_1 = require("ethereum-types");

@@ -4,0 +5,0 @@ const _ = require("lodash");

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

/// <reference types="node" />
import { DataItem } from 'ethereum-types';

@@ -2,0 +3,0 @@ import { BigNumber } from '../../configured_bignumber';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.UIntDataType = void 0;
const ethereum_types_1 = require("ethereum-types");

@@ -50,2 +51,3 @@ const configured_bignumber_1 = require("../../configured_bignumber");

}
exports.UIntDataType = UIntDataType;
UIntDataType._MATCHER = RegExp('^uint(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256){0,1}$');

@@ -57,3 +59,2 @@ UIntDataType._SIZE_KNOWN_AT_COMPILE_TIME = true;

UIntDataType._DEFAULT_VALUE = new configured_bignumber_1.BigNumber(0);
exports.UIntDataType = UIntDataType;
//# sourceMappingURL=uint.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DataType = exports.createMethod = exports.create = exports.UInt = exports.Tuple = exports.String = exports.StaticBytes = exports.Pointer = exports.Method = exports.Int = exports.DynamicBytes = exports.Bool = exports.Array = exports.Address = void 0;
var evm_data_type_factory_1 = require("./evm_data_type_factory");
exports.Address = evm_data_type_factory_1.Address;
exports.Array = evm_data_type_factory_1.Array;
exports.Bool = evm_data_type_factory_1.Bool;
exports.DynamicBytes = evm_data_type_factory_1.DynamicBytes;
exports.Int = evm_data_type_factory_1.Int;
exports.Method = evm_data_type_factory_1.Method;
exports.Pointer = evm_data_type_factory_1.Pointer;
exports.StaticBytes = evm_data_type_factory_1.StaticBytes;
exports.String = evm_data_type_factory_1.String;
exports.Tuple = evm_data_type_factory_1.Tuple;
exports.UInt = evm_data_type_factory_1.UInt;
exports.create = evm_data_type_factory_1.create;
exports.createMethod = evm_data_type_factory_1.createMethod;
Object.defineProperty(exports, "Address", { enumerable: true, get: function () { return evm_data_type_factory_1.Address; } });
Object.defineProperty(exports, "Array", { enumerable: true, get: function () { return evm_data_type_factory_1.Array; } });
Object.defineProperty(exports, "Bool", { enumerable: true, get: function () { return evm_data_type_factory_1.Bool; } });
Object.defineProperty(exports, "DynamicBytes", { enumerable: true, get: function () { return evm_data_type_factory_1.DynamicBytes; } });
Object.defineProperty(exports, "Int", { enumerable: true, get: function () { return evm_data_type_factory_1.Int; } });
Object.defineProperty(exports, "Method", { enumerable: true, get: function () { return evm_data_type_factory_1.Method; } });
Object.defineProperty(exports, "Pointer", { enumerable: true, get: function () { return evm_data_type_factory_1.Pointer; } });
Object.defineProperty(exports, "StaticBytes", { enumerable: true, get: function () { return evm_data_type_factory_1.StaticBytes; } });
Object.defineProperty(exports, "String", { enumerable: true, get: function () { return evm_data_type_factory_1.String; } });
Object.defineProperty(exports, "Tuple", { enumerable: true, get: function () { return evm_data_type_factory_1.Tuple; } });
Object.defineProperty(exports, "UInt", { enumerable: true, get: function () { return evm_data_type_factory_1.UInt; } });
Object.defineProperty(exports, "create", { enumerable: true, get: function () { return evm_data_type_factory_1.create; } });
Object.defineProperty(exports, "createMethod", { enumerable: true, get: function () { return evm_data_type_factory_1.createMethod; } });
var data_type_1 = require("./abstract_data_types/data_type");
exports.DataType = data_type_1.DataType;
Object.defineProperty(exports, "DataType", { enumerable: true, get: function () { return data_type_1.DataType; } });
//# sourceMappingURL=index.js.map

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

/// <reference types="node" />
import { DecodingRules, EncodingRules } from './rules';

@@ -2,0 +3,0 @@ export declare const constants: {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.constants = void 0;
const ethUtil = require("ethereumjs-util");

@@ -4,0 +5,0 @@ exports.constants = {

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

/// <reference types="node" />
import { BigNumber } from '../../configured_bignumber';

@@ -2,0 +3,0 @@ /**

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.safeDecodeNumericValue = exports.decodeNumericValue = exports.safeEncodeNumericValue = exports.encodeNumericValue = void 0;
const ethUtil = require("ethereumjs-util");

@@ -4,0 +5,0 @@ const _ = require("lodash");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Queue = void 0;
class Queue {

@@ -4,0 +5,0 @@ constructor() {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.generateDataItemFromSignature = void 0;
const _ = require("lodash");

@@ -4,0 +5,0 @@ function parseNode(node) {

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

import { AbiDefinition, DataItem, MethodAbi } from 'ethereum-types';
import { ContractAbi, DataItem, MethodAbi } from 'ethereum-types';
declare type ParamName = null | string | NestedParamName;

@@ -32,5 +32,5 @@ interface NestedParamName {

*/
renameOverloadedMethods(inputContractAbi: AbiDefinition[]): AbiDefinition[];
renameOverloadedMethods(inputContractAbi: ContractAbi): ContractAbi;
};
export {};
//# sourceMappingURL=abi_utils.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.abiUtils = void 0;
const ethereum_types_1 = require("ethereum-types");

@@ -4,0 +5,0 @@ const _ = require("lodash");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.addressUtils = void 0;
const ethereumjs_util_1 = require("ethereumjs-util");

@@ -4,0 +5,0 @@ const jsSHA3 = require("js-sha3");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.classUtils = void 0;
const _ = require("lodash");

@@ -4,0 +5,0 @@ exports.classUtils = {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BigNumber = void 0;
const bignumber_js_1 = require("bignumber.js");
exports.BigNumber = bignumber_js_1.BigNumber;
Object.defineProperty(exports, "BigNumber", { enumerable: true, get: function () { return bignumber_js_1.BigNumber; } });
bignumber_js_1.BigNumber.config({

@@ -6,0 +7,0 @@ // By default BigNumber's `toString` method converts to exponential notation if the value has

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NULL_ADDRESS = exports.NULL_BYTES = void 0;
exports.NULL_BYTES = '0x';
exports.NULL_ADDRESS = '0x0000000000000000000000000000000000000000';
//# sourceMappingURL=constants.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.deleteNestedProperty = void 0;
/* Deletes deeply nested properties from an object. MUTATES the object

@@ -8,3 +9,3 @@ * @param obj the object to be operated on

*/
exports.deleteNestedProperty = (obj, propPath) => {
const deleteNestedProperty = (obj, propPath) => {
if (!obj || !propPath) {

@@ -25,2 +26,3 @@ return;

};
exports.deleteNestedProperty = deleteNestedProperty;
//# sourceMappingURL=delete_nested_property.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.errorUtils = void 0;
exports.errorUtils = {

@@ -4,0 +5,0 @@ spawnSwitchErr(name, value) {

"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -11,2 +12,3 @@ });

Object.defineProperty(exports, "__esModule", { value: true });
exports.fetchAsync = void 0;
const isNode = require("detect-node");

@@ -17,3 +19,3 @@ require("isomorphic-fetch");

require("abortcontroller-polyfill/dist/abortcontroller-polyfill-only");
exports.fetchAsync = (endpoint, options = {}, timeoutMs = 20000) => __awaiter(this, void 0, void 0, function* () {
const fetchAsync = (endpoint, options = {}, timeoutMs = 20000) => __awaiter(void 0, void 0, void 0, function* () {
if (options.signal || options.timeout) {

@@ -40,2 +42,3 @@ throw new Error('Cannot call fetchAsync with options.signal or options.timeout. To set a timeout, please use the supplied "timeoutMs" parameter.');

});
exports.fetchAsync = fetchAsync;
//# sourceMappingURL=fetch_async.js.map

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

/// <reference types="node" />
import { Numberish } from './types';

@@ -2,0 +3,0 @@ export declare const hexUtils: {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.hexUtils = void 0;
const crypto = require("crypto");

@@ -4,0 +5,0 @@ const ethUtil = require("ethereumjs-util");

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ZeroExRevertErrors = exports.toTokenUnitAmount = exports.fromTokenUnitAmount = exports.AnyRevertError = exports.StringRevertError = exports.RevertError = exports.registerRevertErrorType = exports.RawRevertError = exports.coerceThrownErrorAsRevertError = exports.decodeThrownErrorAsRevertError = exports.decodeBytesAsRevertError = exports.generatePseudoRandom256BitNumber = exports.hexUtils = exports.signTypedDataUtils = exports.fetchAsync = exports.errorUtils = exports.NULL_ADDRESS = exports.NULL_BYTES = exports.abiUtils = exports.logUtils = exports.AbiDecoder = exports.BigNumber = exports.providerUtils = exports.intervalUtils = exports.deleteNestedProperty = exports.classUtils = exports.addressUtils = exports.promisify = void 0;
var promisify_1 = require("./promisify");
exports.promisify = promisify_1.promisify;
Object.defineProperty(exports, "promisify", { enumerable: true, get: function () { return promisify_1.promisify; } });
var address_utils_1 = require("./address_utils");
exports.addressUtils = address_utils_1.addressUtils;
Object.defineProperty(exports, "addressUtils", { enumerable: true, get: function () { return address_utils_1.addressUtils; } });
var class_utils_1 = require("./class_utils");
exports.classUtils = class_utils_1.classUtils;
Object.defineProperty(exports, "classUtils", { enumerable: true, get: function () { return class_utils_1.classUtils; } });
var delete_nested_property_1 = require("./delete_nested_property");
exports.deleteNestedProperty = delete_nested_property_1.deleteNestedProperty;
Object.defineProperty(exports, "deleteNestedProperty", { enumerable: true, get: function () { return delete_nested_property_1.deleteNestedProperty; } });
var interval_utils_1 = require("./interval_utils");
exports.intervalUtils = interval_utils_1.intervalUtils;
Object.defineProperty(exports, "intervalUtils", { enumerable: true, get: function () { return interval_utils_1.intervalUtils; } });
var provider_utils_1 = require("./provider_utils");
exports.providerUtils = provider_utils_1.providerUtils;
Object.defineProperty(exports, "providerUtils", { enumerable: true, get: function () { return provider_utils_1.providerUtils; } });
var configured_bignumber_1 = require("./configured_bignumber");
exports.BigNumber = configured_bignumber_1.BigNumber;
Object.defineProperty(exports, "BigNumber", { enumerable: true, get: function () { return configured_bignumber_1.BigNumber; } });
var abi_decoder_1 = require("./abi_decoder");
exports.AbiDecoder = abi_decoder_1.AbiDecoder;
Object.defineProperty(exports, "AbiDecoder", { enumerable: true, get: function () { return abi_decoder_1.AbiDecoder; } });
var log_utils_1 = require("./log_utils");
exports.logUtils = log_utils_1.logUtils;
Object.defineProperty(exports, "logUtils", { enumerable: true, get: function () { return log_utils_1.logUtils; } });
var abi_utils_1 = require("./abi_utils");
exports.abiUtils = abi_utils_1.abiUtils;
Object.defineProperty(exports, "abiUtils", { enumerable: true, get: function () { return abi_utils_1.abiUtils; } });
var constants_1 = require("./constants");
exports.NULL_BYTES = constants_1.NULL_BYTES;
exports.NULL_ADDRESS = constants_1.NULL_ADDRESS;
Object.defineProperty(exports, "NULL_BYTES", { enumerable: true, get: function () { return constants_1.NULL_BYTES; } });
Object.defineProperty(exports, "NULL_ADDRESS", { enumerable: true, get: function () { return constants_1.NULL_ADDRESS; } });
var error_utils_1 = require("./error_utils");
exports.errorUtils = error_utils_1.errorUtils;
Object.defineProperty(exports, "errorUtils", { enumerable: true, get: function () { return error_utils_1.errorUtils; } });
var fetch_async_1 = require("./fetch_async");
exports.fetchAsync = fetch_async_1.fetchAsync;
Object.defineProperty(exports, "fetchAsync", { enumerable: true, get: function () { return fetch_async_1.fetchAsync; } });
var sign_typed_data_utils_1 = require("./sign_typed_data_utils");
exports.signTypedDataUtils = sign_typed_data_utils_1.signTypedDataUtils;
Object.defineProperty(exports, "signTypedDataUtils", { enumerable: true, get: function () { return sign_typed_data_utils_1.signTypedDataUtils; } });
var hex_utils_1 = require("./hex_utils");
exports.hexUtils = hex_utils_1.hexUtils;
Object.defineProperty(exports, "hexUtils", { enumerable: true, get: function () { return hex_utils_1.hexUtils; } });
exports.AbiEncoder = require("./abi_encoder");
__exportStar(require("./types"), exports);
var random_1 = require("./random");
exports.generatePseudoRandom256BitNumber = random_1.generatePseudoRandom256BitNumber;
Object.defineProperty(exports, "generatePseudoRandom256BitNumber", { enumerable: true, get: function () { return random_1.generatePseudoRandom256BitNumber; } });
var revert_error_1 = require("./revert_error");
exports.decodeBytesAsRevertError = revert_error_1.decodeBytesAsRevertError;
exports.decodeThrownErrorAsRevertError = revert_error_1.decodeThrownErrorAsRevertError;
exports.coerceThrownErrorAsRevertError = revert_error_1.coerceThrownErrorAsRevertError;
exports.RawRevertError = revert_error_1.RawRevertError;
exports.registerRevertErrorType = revert_error_1.registerRevertErrorType;
exports.RevertError = revert_error_1.RevertError;
exports.StringRevertError = revert_error_1.StringRevertError;
exports.AnyRevertError = revert_error_1.AnyRevertError;
Object.defineProperty(exports, "decodeBytesAsRevertError", { enumerable: true, get: function () { return revert_error_1.decodeBytesAsRevertError; } });
Object.defineProperty(exports, "decodeThrownErrorAsRevertError", { enumerable: true, get: function () { return revert_error_1.decodeThrownErrorAsRevertError; } });
Object.defineProperty(exports, "coerceThrownErrorAsRevertError", { enumerable: true, get: function () { return revert_error_1.coerceThrownErrorAsRevertError; } });
Object.defineProperty(exports, "RawRevertError", { enumerable: true, get: function () { return revert_error_1.RawRevertError; } });
Object.defineProperty(exports, "registerRevertErrorType", { enumerable: true, get: function () { return revert_error_1.registerRevertErrorType; } });
Object.defineProperty(exports, "RevertError", { enumerable: true, get: function () { return revert_error_1.RevertError; } });
Object.defineProperty(exports, "StringRevertError", { enumerable: true, get: function () { return revert_error_1.StringRevertError; } });
Object.defineProperty(exports, "AnyRevertError", { enumerable: true, get: function () { return revert_error_1.AnyRevertError; } });
var token_utils_1 = require("./token_utils");
exports.fromTokenUnitAmount = token_utils_1.fromTokenUnitAmount;
exports.toTokenUnitAmount = token_utils_1.toTokenUnitAmount;
Object.defineProperty(exports, "fromTokenUnitAmount", { enumerable: true, get: function () { return token_utils_1.fromTokenUnitAmount; } });
Object.defineProperty(exports, "toTokenUnitAmount", { enumerable: true, get: function () { return token_utils_1.toTokenUnitAmount; } });
exports.BrokerRevertErrors = require("./revert_errors/broker/revert_errors");

@@ -50,0 +62,0 @@ exports.CoordinatorRevertErrors = require("./revert_errors/coordinator/revert_errors");

@@ -0,1 +1,3 @@

/// <reference types="mocha" />
/// <reference types="node" />
export declare const intervalUtils: {

@@ -2,0 +4,0 @@ setAsyncExcludingInterval(fn: () => Promise<void>, intervalMs: number, onError: (err: Error) => void): NodeJS.Timer;

"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -11,2 +12,3 @@ });

Object.defineProperty(exports, "__esModule", { value: true });
exports.intervalUtils = void 0;
exports.intervalUtils = {

@@ -13,0 +15,0 @@ setAsyncExcludingInterval(fn, intervalMs, onError) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.logUtils = void 0;
const chalk_1 = require("chalk");

@@ -4,0 +5,0 @@ const _ = require("lodash");

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

/**
* Transforms callback-based function -- func(arg1, arg2 .. argN, callback) -- into an ES6-compatible Promise.
* Promisify provides a default callback of the form (error, result) and rejects when `error` is not null. You can also
* supply thisArg object as the second argument which will be passed to `apply`.
*/
export declare function promisify<T>(originalFn: (...args: any[]) => void, thisArg?: any): (...callArgs: any[]) => Promise<T>;
export { promisify } from 'util';
//# sourceMappingURL=promisify.d.ts.map
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Transforms callback-based function -- func(arg1, arg2 .. argN, callback) -- into an ES6-compatible Promise.
* Promisify provides a default callback of the form (error, result) and rejects when `error` is not null. You can also
* supply thisArg object as the second argument which will be passed to `apply`.
*/
// HACK: This can't be properly typed without variadic kinds https://github.com/Microsoft/TypeScript/issues/5453
function promisify(originalFn, thisArg) {
const promisifiedFunction = (...callArgs) => __awaiter(this, void 0, void 0, function* () {
return new Promise((resolve, reject) => {
const callback = (err, data) => {
err === null || err === undefined ? resolve(data) : reject(err);
};
originalFn.apply(thisArg, [...callArgs, callback]);
});
});
return promisifiedFunction;
}
exports.promisify = promisify;
exports.promisify = void 0;
var util_1 = require("util");
Object.defineProperty(exports, "promisify", { enumerable: true, get: function () { return util_1.promisify; } });
// /**
// * Transforms callback-based function -- func(arg1, arg2 .. argN, callback) -- into an ES6-compatible Promise.
// * Promisify provides a default callback of the form (error, result) and rejects when `error` is not null. You can also
// * supply thisArg object as the second argument which will be passed to `apply`.
// */
// // HACK: This can't be properly typed without variadic kinds https://github.com/Microsoft/TypeScript/issues/5453
// export function promisify<T>(originalFn: (...args: any[]) => void, thisArg?: any): (...callArgs: any[]) => Promise<T> {
// const promisifiedFunction = async (...callArgs: any[]): Promise<T> => {
// return new Promise<T>((resolve, reject) => {
// const callback = (err: Error | null, data?: T) => {
// err === null || err === undefined ? resolve(data) : reject(err);
// };
// originalFn.apply(thisArg, [...callArgs, callback]);
// });
// };
// return promisifiedFunction;
// }
//# sourceMappingURL=promisify.js.map
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -11,2 +12,3 @@ });

Object.defineProperty(exports, "__esModule", { value: true });
exports.providerUtils = void 0;
const _ = require("lodash");

@@ -45,3 +47,3 @@ exports.providerUtils = {

enable: supportedProvider.enable,
sendAsync: _.noop.bind(_),
sendAsync: _.noop.bind(_), // Will be replaced
};

@@ -48,0 +50,0 @@ if (provider.enable) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.generatePseudoRandom256BitNumber = void 0;
const configured_bignumber_1 = require("./configured_bignumber");

@@ -4,0 +5,0 @@ const MAX_DIGITS_IN_UNSIGNED_256_INT = 78;

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

/// <reference types="node" />
import { ObjectMap } from '@0x/types';

@@ -74,20 +75,20 @@ import { DataItem, RevertErrorAbi } from 'ethereum-types';

*/
readonly name: string;
get name(): string;
/**
* Get the class name of this type.
*/
readonly typeName: string;
get typeName(): string;
/**
* Get the hex selector for this revert (without leading '0x').
*/
readonly selector: string;
get selector(): string;
/**
* Get the signature for this revert: e.g., 'Error(string)'.
*/
readonly signature: string;
get signature(): string;
/**
* Get the ABI arguments for this revert.
*/
readonly arguments: DataItem[];
readonly [Symbol.toStringTag]: string;
get arguments(): DataItem[];
get [Symbol.toStringTag](): string;
/**

@@ -104,5 +105,5 @@ * Compares this instance with another.

private _getArgumentByName;
private readonly _isAnyType;
private readonly _isRawType;
private readonly _hasAllArgumentValues;
private get _isAnyType();
private get _isRawType();
private get _hasAllArgumentValues();
}

@@ -109,0 +110,0 @@ interface GanacheTransactionRevertResult {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RawRevertError = exports.AnyRevertError = exports.StringRevertError = exports.getThrownErrorRevertErrorBytes = exports.RevertError = exports.coerceThrownErrorAsRevertError = exports.decodeThrownErrorAsRevertError = exports.decodeBytesAsRevertError = exports.registerRevertErrorType = void 0;
const ethUtil = require("ethereumjs-util");

@@ -296,5 +297,5 @@ const _ = require("lodash");

}
exports.RevertError = RevertError;
// Map of types registered via `registerType`.
RevertError._typeRegistry = {};
exports.RevertError = RevertError;
const PARITY_TRANSACTION_REVERT_ERROR_MESSAGE = /^VM execution error/;

@@ -301,0 +302,0 @@ const GANACHE_TRANSACTION_REVERT_ERROR_MESSAGE = /^VM Exception while processing transaction: revert/;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OnlyERC1155ProxyError = exports.InvalidFunctionSelectorError = exports.TooFewBrokerAssetsProvidedError = exports.AmountsLengthMustEqualOneError = exports.InvalidFromAddressError = void 0;
const revert_error_1 = require("../../revert_error");

@@ -4,0 +5,0 @@ // tslint:disable:max-classes-per-file

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.InvalidApprovalSignatureError = exports.ApprovalExpiredError = exports.InvalidOriginError = exports.SignatureError = exports.SignatureErrorCodes = void 0;
const revert_error_1 = require("../../revert_error");

@@ -4,0 +5,0 @@ // tslint:disable:max-classes-per-file

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MsgValueCannotEqualZeroError = exports.OverspentWethError = exports.UnsupportedFeeError = exports.CompleteSellFailedError = exports.CompleteBuyFailedError = exports.UnregisteredAssetProxyError = void 0;
const revert_error_1 = require("../../revert_error");

@@ -4,0 +5,0 @@ // tslint:disable:max-classes-per-file

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RoundingError = exports.DivisionByZeroError = void 0;
const revert_error_1 = require("../../revert_error");

@@ -4,0 +5,0 @@ // tslint:disable:max-classes-per-file

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PayProtocolFeeError = exports.ExchangeInvalidContextError = exports.IncompleteFillError = exports.TransactionInvalidContextError = exports.TransactionGasPriceError = exports.TransactionExecutionError = exports.TransactionError = exports.NegativeSpreadError = exports.AssetProxyTransferError = exports.AssetProxyDispatchError = exports.AssetProxyExistsError = exports.OrderEpochError = exports.FillError = exports.OrderStatusError = exports.EIP1271SignatureError = exports.SignatureWalletError = exports.SignatureValidatorNotApprovedError = exports.SignatureError = exports.BatchMatchOrdersError = exports.IncompleteFillErrorCode = exports.TransactionErrorCode = exports.AssetProxyDispatchErrorCode = exports.SignatureErrorCode = exports.FillErrorCode = exports.ExchangeContextErrorCodes = exports.BatchMatchOrdersErrorCodes = void 0;
const revert_error_1 = require("../../revert_error");

@@ -4,0 +5,0 @@ // tslint:disable:max-classes-per-file

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Erc721AmountMustEqualOneError = exports.UnsupportedAssetProxyError = void 0;
const revert_error_1 = require("../../revert_error");

@@ -4,0 +5,0 @@ // tslint:disable:max-classes-per-file

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EthFeeLengthMismatchError = exports.DefaultFunctionWethContractOnlyError = exports.InsufficientEthForFeeError = exports.UnregisteredAssetProxyError = void 0;
const revert_error_1 = require("../../revert_error");

@@ -4,0 +5,0 @@ // tslint:disable:max-classes-per-file

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BinOpError = exports.UnsignedValueError = exports.SignedValueError = exports.BinOpErrorCodes = exports.ValueErrorCodes = void 0;
const revert_error_1 = require("../../revert_error");

@@ -4,0 +5,0 @@ // tslint:disable:max-classes-per-file

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PoolNotFinalizedError = exports.PreviousEpochNotFinalizedError = exports.ProxyDestinationCannotBeNilError = exports.InitializationError = exports.InvalidProtocolFeePaymentError = exports.InvalidParamValueError = exports.PoolExistenceError = exports.OperatorShareError = exports.OnlyCallableIfNotInCatastrophicFailureError = exports.OnlyCallableIfInCatastrophicFailureError = exports.OnlyCallableByStakingContractError = exports.BlockTimestampTooLowError = exports.MakerPoolAssignmentError = exports.OnlyCallableByPoolOperatorError = exports.InsufficientBalanceError = exports.ExchangeManagerError = exports.OnlyCallableByExchangeError = exports.ExchangeManagerErrorCodes = exports.InitializationErrorCodes = exports.InvalidParamValueErrorCodes = exports.OperatorShareErrorCodes = exports.MakerPoolAssignmentErrorCodes = void 0;
const revert_error_1 = require("../../revert_error");

@@ -4,0 +5,0 @@ // tslint:disable:max-classes-per-file

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ZeroCantBeAuthorizedError = exports.TargetNotAuthorizedError = exports.TargetAlreadyAuthorizedError = exports.SenderNotAuthorizedError = exports.IndexOutOfBoundsError = exports.AuthorizedAddressMismatchError = void 0;
const revert_error_1 = require("../../revert_error");

@@ -4,0 +5,0 @@ // tslint:disable:max-classes-per-file

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MismanagedMemoryError = void 0;
const revert_error_1 = require("../../revert_error");

@@ -4,0 +5,0 @@ class MismanagedMemoryError extends revert_error_1.RevertError {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.InvalidByteOperationError = exports.InvalidByteOperationErrorCodes = void 0;
const revert_error_1 = require("../../revert_error");

@@ -4,0 +5,0 @@ var InvalidByteOperationErrorCodes;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TransferOwnerToZeroError = exports.OnlyOwnerError = void 0;
const revert_error_1 = require("../../revert_error");

@@ -4,0 +5,0 @@ // tslint:disable:max-classes-per-file

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IllegalReentrancyError = void 0;
const revert_error_1 = require("../../revert_error");

@@ -4,0 +5,0 @@ class IllegalReentrancyError extends revert_error_1.RevertError {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Uint256DowncastError = exports.Uint64BinOpError = exports.Uint96BinOpError = exports.Uint256BinOpError = exports.DowncastErrorCodes = exports.BinOpErrorCodes = void 0;
const revert_error_1 = require("../../revert_error");

@@ -4,0 +5,0 @@ // tslint:disable:max-classes-per-file

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IllegalReentrancyError = exports.OnlyCallableBySelfError = void 0;
const revert_error_1 = require("../../revert_error");

@@ -4,0 +5,0 @@ // tslint:disable:max-classes-per-file

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NoLiquidityProviderForMarketError = exports.LiquidityProviderIncompleteSellError = void 0;
const revert_error_1 = require("../../revert_error");

@@ -4,0 +5,0 @@ // tslint:disable:max-classes-per-file

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MetaTransactionCallFailedError = exports.MetaTransactionInvalidSignatureError = exports.MetaTransactionInsufficientEthError = exports.MetaTransactionGasPriceError = exports.MetaTransactionExpiredError = exports.MetaTransactionWrongSenderError = exports.MetaTransactionUnsupportedFunctionError = exports.MetaTransactionAlreadyExecutedError = exports.InvalidMetaTransactionsArrayLengthsError = void 0;
const revert_error_1 = require("../../revert_error");

@@ -4,0 +5,0 @@ // tslint:disable:max-classes-per-file

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OnlyOwnerError = exports.MigrateCallFailedError = void 0;
const revert_error_1 = require("../../revert_error");

@@ -4,0 +5,0 @@ // tslint:disable:max-classes-per-file

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BootstrapCallFailedError = exports.InvalidDieCallerError = exports.InvalidBootstrapCallerError = exports.NotImplementedError = void 0;
const revert_error_1 = require("../../revert_error");

@@ -4,0 +5,0 @@ // tslint:disable:max-classes-per-file

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SignatureValidationError = exports.SignatureValidationErrorCodes = void 0;
const revert_error_1 = require("../../revert_error");

@@ -4,0 +5,0 @@ // tslint:disable:max-classes-per-file

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NotInRollbackHistoryError = void 0;
const revert_error_1 = require("../../revert_error");

@@ -4,0 +5,0 @@ // tslint:disable:max-classes-per-file

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SpenderERC20TransferFromFailedError = void 0;
const revert_error_1 = require("../../revert_error");

@@ -4,0 +5,0 @@ // tslint:disable:max-classes-per-file

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.InvalidTakerFeeTokenError = exports.InvalidTokenReceivedError = exports.WrongNumberOfTokensReceivedError = exports.InvalidERC20AssetDataError = exports.InsufficientProtocolFeeError = exports.InsufficientTakerTokenError = exports.IncompleteFillBuyQuoteError = exports.IncompleteFillSellQuoteError = exports.InvalidTransformDataError = exports.InvalidTransformDataErrorCode = exports.InvalidExecutionContextError = exports.OnlyCallableByDeployerError = exports.TransformerFailedError = exports.NegativeTransformERC20OutputError = exports.IncompleteTransformERC20Error = exports.InsufficientEthAttachedError = void 0;
const revert_error_1 = require("../../revert_error");

@@ -4,0 +5,0 @@ // tslint:disable:max-classes-per-file

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.WalletExecuteDelegateCallFailedError = exports.WalletExecuteCallFailedError = void 0;
const revert_error_1 = require("../../revert_error");

@@ -4,0 +5,0 @@ // tslint:disable:max-classes-per-file

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

/// <reference types="node" />
import { EIP712Object, EIP712ObjectValue, EIP712TypedData, EIP712Types } from '@0x/types';

@@ -2,0 +3,0 @@ export declare const signTypedDataUtils: {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.signTypedDataUtils = void 0;
const ethUtil = require("ethereumjs-util");

@@ -4,0 +5,0 @@ const ethers = require("ethers");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.toTokenUnitAmount = exports.fromTokenUnitAmount = void 0;
const configured_bignumber_1 = require("./configured_bignumber");

@@ -4,0 +5,0 @@ // tslint:disable:custom-no-magic-numbers

{
"name": "@0x/utils",
"version": "6.2.0",
"version": "6.2.1",
"engines": {

@@ -32,6 +32,5 @@ "node": ">=6.12"

"devDependencies": {
"@0x/tslint-config": "^4.1.3",
"@0x/tslint-config": "^4.1.4",
"@types/detect-node": "2.0.0",
"@types/lodash": "4.14.104",
"@types/mocha": "^5.2.7",
"chai": "^4.0.1",

@@ -46,7 +45,8 @@ "chai-as-promised": "^7.1.0",

"tslint": "5.11.0",
"typescript": "3.0.1"
"typescript": "4.2.2"
},
"dependencies": {
"@0x/types": "^3.3.1",
"@0x/typescript-typings": "^5.1.6",
"@0x/types": "^3.3.2",
"@0x/typescript-typings": "^5.1.7",
"@types/mocha": "^5.2.7",
"@types/node": "12.12.54",

@@ -57,3 +57,3 @@ "abortcontroller-polyfill": "^1.1.9",

"detect-node": "2.0.3",
"ethereum-types": "^3.4.0",
"ethereum-types": "^3.4.1",
"ethereumjs-util": "^5.1.1",

@@ -68,3 +68,3 @@ "ethers": "~4.0.4",

},
"gitHead": "11b7546f43cea98553a2ba32f4060a376c5bee61"
"gitHead": "1eec1e081f73258aa42a96f530df76292d6d586d"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc