From 53f1c0d071c3fd55b0d7608265752fbf8e00d81e Mon Sep 17 00:00:00 2001 From: fabioberger Date: Fri, 20 Dec 2019 15:32:38 +0100 Subject: [PATCH 01/50] Update versions back to `development` --- README.md | 2 +- browser/package.json | 2 +- core/core.go | 2 +- docs/browser/reference.md | 250 ++++----- docs/deployment.md | 2 +- docs/deployment_with_telemetry.md | 2 +- docs/json_rpc_clients/typescript/reference.md | 504 +++++++++--------- docs/rpc_api.md | 2 +- rpc/clients/typescript/package.json | 2 +- 9 files changed, 384 insertions(+), 384 deletions(-) diff --git a/README.md b/README.md index 86ad7e1a9..481801e69 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Version](https://img.shields.io/badge/version-8.0.0--beta--0xv3-orange.svg)](https://github.com/0xProject/0x-mesh/releases) +[![Version](https://img.shields.io/badge/version-development-orange.svg)](https://github.com/0xProject/0x-mesh/releases) [![Docs](https://img.shields.io/badge/docs-website-yellow.svg)](https://0x-org.gitbook.io/mesh) [![Chat with us on Discord](https://img.shields.io/badge/chat-Discord-blueViolet.svg)](https://discord.gg/HF7fHwk) [![Circle CI](https://img.shields.io/circleci/project/0xProject/0x-mesh/master.svg)](https://circleci.com/gh/0xProject/0x-mesh/tree/master) diff --git a/browser/package.json b/browser/package.json index d031722db..474a7c57b 100644 --- a/browser/package.json +++ b/browser/package.json @@ -1,6 +1,6 @@ { "name": "@0x/mesh-browser", - "version": "8.0.0-beta-0xv3", + "version": "development", "description": "TypeScript and JavaScript bindings for running Mesh directly in the browser.", "main": "./lib/index.js", "license": "Apache-2.0", diff --git a/core/core.go b/core/core.go index cbe01b7b2..536767781 100644 --- a/core/core.go +++ b/core/core.go @@ -57,7 +57,7 @@ const ( estimatedNonPollingEthereumRPCRequestsPer24Hrs = 50000 // logStatsInterval is how often to log stats for this node. logStatsInterval = 5 * time.Minute - version = "8.0.0-beta-0xv3" + version = "development" ) // Note(albrow): The Config type is currently copied to browser/ts/index.ts. We diff --git a/docs/browser/reference.md b/docs/browser/reference.md index e6c85b409..058963c16 100644 --- a/docs/browser/reference.md +++ b/docs/browser/reference.md @@ -14,7 +14,7 @@ sending orders through the 0x Mesh network. \+ **new Mesh**(`config`: [Config](#interface-config)): *[Mesh](#class-mesh)* -*Defined in [index.ts:576](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L576)* +*Defined in [index.ts:576](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L576)* Instantiates a new Mesh instance. @@ -34,7 +34,7 @@ An instance of Mesh ▸ **addOrdersAsync**(`orders`: SignedOrder[], `pinned`: boolean): *Promise‹[ValidationResults](#interface-validationresults)›* -*Defined in [index.ts:650](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L650)* +*Defined in [index.ts:650](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L650)* Validates and adds the given orders to Mesh. If an order is successfully added, Mesh will share it with any peers in the network and start @@ -61,7 +61,7 @@ ___ ▸ **onError**(`handler`: function): *void* -*Defined in [index.ts:596](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L596)* +*Defined in [index.ts:596](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L596)* Registers a handler which will be called in the event of a critical error. Note that the handler will not be called for non-critical errors. @@ -90,7 +90,7 @@ ___ ▸ **onOrderEvents**(`handler`: function): *void* -*Defined in [index.ts:611](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L611)* +*Defined in [index.ts:611](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L611)* Registers a handler which will be called for any incoming order events. Order events are fired whenver an order is added, canceled, expired, or @@ -119,7 +119,7 @@ ___ ▸ **startAsync**(): *Promise‹void›* -*Defined in [index.ts:622](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L622)* +*Defined in [index.ts:622](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L622)* Starts the Mesh node in the background. Mesh will automatically find peers in the network and begin receiving orders from them. @@ -137,7 +137,7 @@ peers in the network and begin receiving orders from them. • **Added**: = "ADDED" -*Defined in [index.ts:439](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L439)* +*Defined in [index.ts:439](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L439)* ___ @@ -145,7 +145,7 @@ ___ • **Cancelled**: = "CANCELLED" -*Defined in [index.ts:442](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L442)* +*Defined in [index.ts:442](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L442)* ___ @@ -153,7 +153,7 @@ ___ • **Expired**: = "EXPIRED" -*Defined in [index.ts:443](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L443)* +*Defined in [index.ts:443](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L443)* ___ @@ -161,7 +161,7 @@ ___ • **FillabilityIncreased**: = "FILLABILITY_INCREASED" -*Defined in [index.ts:446](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L446)* +*Defined in [index.ts:446](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L446)* ___ @@ -169,7 +169,7 @@ ___ • **Filled**: = "FILLED" -*Defined in [index.ts:440](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L440)* +*Defined in [index.ts:440](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L440)* ___ @@ -177,7 +177,7 @@ ___ • **FullyFilled**: = "FULLY_FILLED" -*Defined in [index.ts:441](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L441)* +*Defined in [index.ts:441](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L441)* ___ @@ -185,7 +185,7 @@ ___ • **Invalid**: = "INVALID" -*Defined in [index.ts:438](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L438)* +*Defined in [index.ts:438](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L438)* ___ @@ -193,7 +193,7 @@ ___ • **StoppedWatching**: = "STOPPED_WATCHING" -*Defined in [index.ts:447](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L447)* +*Defined in [index.ts:447](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L447)* ___ @@ -201,7 +201,7 @@ ___ • **Unexpired**: = "UNEXPIRED" -*Defined in [index.ts:444](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L444)* +*Defined in [index.ts:444](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L444)* ___ @@ -209,7 +209,7 @@ ___ • **Unfunded**: = "UNFUNDED" -*Defined in [index.ts:445](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L445)* +*Defined in [index.ts:445](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L445)*
@@ -224,7 +224,7 @@ A set of categories for rejected orders. • **CoordinatorError**: = "COORDINATOR_ERROR" -*Defined in [index.ts:530](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L530)* +*Defined in [index.ts:530](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L530)* ___ @@ -232,7 +232,7 @@ ___ • **MeshError**: = "MESH_ERROR" -*Defined in [index.ts:528](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L528)* +*Defined in [index.ts:528](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L528)* ___ @@ -240,7 +240,7 @@ ___ • **MeshValidation**: = "MESH_VALIDATION" -*Defined in [index.ts:529](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L529)* +*Defined in [index.ts:529](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L529)* ___ @@ -248,7 +248,7 @@ ___ • **ZeroExValidation**: = "ZEROEX_VALIDATION" -*Defined in [index.ts:527](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L527)* +*Defined in [index.ts:527](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L527)*
@@ -261,7 +261,7 @@ ___ • **Debug**: = 5 -*Defined in [index.ts:149](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L149)* +*Defined in [index.ts:149](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L149)* ___ @@ -269,7 +269,7 @@ ___ • **Error**: = 2 -*Defined in [index.ts:146](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L146)* +*Defined in [index.ts:146](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L146)* ___ @@ -277,7 +277,7 @@ ___ • **Fatal**: = 1 -*Defined in [index.ts:145](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L145)* +*Defined in [index.ts:145](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L145)* ___ @@ -285,7 +285,7 @@ ___ • **Info**: = 4 -*Defined in [index.ts:148](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L148)* +*Defined in [index.ts:148](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L148)* ___ @@ -293,7 +293,7 @@ ___ • **Panic**: = 0 -*Defined in [index.ts:144](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L144)* +*Defined in [index.ts:144](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L144)* ___ @@ -301,7 +301,7 @@ ___ • **Trace**: = 6 -*Defined in [index.ts:150](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L150)* +*Defined in [index.ts:150](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L150)* ___ @@ -309,7 +309,7 @@ ___ • **Warn**: = 3 -*Defined in [index.ts:147](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L147)* +*Defined in [index.ts:147](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L147)*
@@ -328,7 +328,7 @@ Info for any orders that were accepted. • **fillableTakerAssetAmount**: *BigNumber* -*Defined in [index.ts:508](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L508)* +*Defined in [index.ts:508](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L508)* ___ @@ -336,7 +336,7 @@ ___ • **isNew**: *boolean* -*Defined in [index.ts:509](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L509)* +*Defined in [index.ts:509](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L509)* ___ @@ -344,7 +344,7 @@ ___ • **orderHash**: *string* -*Defined in [index.ts:506](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L506)* +*Defined in [index.ts:506](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L506)* ___ @@ -352,7 +352,7 @@ ___ • **signedOrder**: *SignedOrder* -*Defined in [index.ts:507](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L507)* +*Defined in [index.ts:507](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L507)*
@@ -371,7 +371,7 @@ A set of configuration options for Mesh. • **blockPollingIntervalSeconds**? : *undefined | number* -*Defined in [index.ts:79](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L79)* +*Defined in [index.ts:79](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L79)* ___ @@ -379,7 +379,7 @@ ___ • **bootstrapList**? : *string[]* -*Defined in [index.ts:72](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L72)* +*Defined in [index.ts:72](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L72)* ___ @@ -387,7 +387,7 @@ ___ • **customContractAddresses**? : *[ContractAddresses](#class-contractaddresses)* -*Defined in [index.ts:123](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L123)* +*Defined in [index.ts:123](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L123)* ___ @@ -395,7 +395,7 @@ ___ • **enableEthereumRPCRateLimiting**? : *undefined | false | true* -*Defined in [index.ts:96](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L96)* +*Defined in [index.ts:96](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L96)* ___ @@ -403,7 +403,7 @@ ___ • **ethereumChainID**: *number* -*Defined in [index.ts:64](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L64)* +*Defined in [index.ts:64](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L64)* ___ @@ -411,7 +411,7 @@ ___ • **ethereumRPCMaxContentLength**? : *undefined | number* -*Defined in [index.ts:88](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L88)* +*Defined in [index.ts:88](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L88)* ___ @@ -419,7 +419,7 @@ ___ • **ethereumRPCMaxRequestsPer24HrUTC**? : *undefined | number* -*Defined in [index.ts:101](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L101)* +*Defined in [index.ts:101](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L101)* ___ @@ -427,7 +427,7 @@ ___ • **ethereumRPCMaxRequestsPerSecond**? : *undefined | number* -*Defined in [index.ts:107](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L107)* +*Defined in [index.ts:107](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L107)* ___ @@ -435,7 +435,7 @@ ___ • **ethereumRPCURL**: *string* -*Defined in [index.ts:61](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L61)* +*Defined in [index.ts:61](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L61)* ___ @@ -443,7 +443,7 @@ ___ • **maxOrdersInStorage**? : *undefined | number* -*Defined in [index.ts:128](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L128)* +*Defined in [index.ts:128](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L128)* ___ @@ -451,7 +451,7 @@ ___ • **useBootstrapList**? : *undefined | false | true* -*Defined in [index.ts:67](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L67)* +*Defined in [index.ts:67](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L67)* ___ @@ -459,7 +459,7 @@ ___ • **verbosity**? : *[Verbosity](#enumeration-verbosity)* -*Defined in [index.ts:58](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L58)* +*Defined in [index.ts:58](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L58)*
@@ -476,7 +476,7 @@ ___ • **coordinator**? : *undefined | string* -*Defined in [index.ts:137](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L137)* +*Defined in [index.ts:137](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L137)* ___ @@ -484,7 +484,7 @@ ___ • **coordinatorRegistry**? : *undefined | string* -*Defined in [index.ts:138](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L138)* +*Defined in [index.ts:138](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L138)* ___ @@ -492,7 +492,7 @@ ___ • **devUtils**: *string* -*Defined in [index.ts:133](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L133)* +*Defined in [index.ts:133](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L133)* ___ @@ -500,7 +500,7 @@ ___ • **erc1155Proxy**: *string* -*Defined in [index.ts:136](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L136)* +*Defined in [index.ts:136](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L136)* ___ @@ -508,7 +508,7 @@ ___ • **erc20Proxy**: *string* -*Defined in [index.ts:134](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L134)* +*Defined in [index.ts:134](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L134)* ___ @@ -516,7 +516,7 @@ ___ • **erc721Proxy**: *string* -*Defined in [index.ts:135](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L135)* +*Defined in [index.ts:135](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L135)* ___ @@ -524,7 +524,7 @@ ___ • **exchange**: *string* -*Defined in [index.ts:132](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L132)* +*Defined in [index.ts:132](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L132)* ___ @@ -532,7 +532,7 @@ ___ • **weth9**? : *undefined | string* -*Defined in [index.ts:139](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L139)* +*Defined in [index.ts:139](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L139)* ___ @@ -540,7 +540,7 @@ ___ • **zrxToken**? : *undefined | string* -*Defined in [index.ts:140](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L140)* +*Defined in [index.ts:140](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L140)*
@@ -557,7 +557,7 @@ ___ • **address**: *string* -*Defined in [index.ts:420](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L420)* +*Defined in [index.ts:420](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L420)* ___ @@ -565,7 +565,7 @@ ___ • **blockHash**: *string* -*Defined in [index.ts:415](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L415)* +*Defined in [index.ts:415](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L415)* ___ @@ -573,7 +573,7 @@ ___ • **isRemoved**: *string* -*Defined in [index.ts:419](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L419)* +*Defined in [index.ts:419](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L419)* ___ @@ -581,7 +581,7 @@ ___ • **kind**: *ContractEventKind* -*Defined in [index.ts:421](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L421)* +*Defined in [index.ts:421](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L421)* ___ @@ -589,7 +589,7 @@ ___ • **logIndex**: *number* -*Defined in [index.ts:418](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L418)* +*Defined in [index.ts:418](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L418)* ___ @@ -597,7 +597,7 @@ ___ • **parameters**: *ContractEventParameters* -*Defined in [index.ts:422](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L422)* +*Defined in [index.ts:422](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L422)* ___ @@ -605,7 +605,7 @@ ___ • **txHash**: *string* -*Defined in [index.ts:416](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L416)* +*Defined in [index.ts:416](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L416)* ___ @@ -613,7 +613,7 @@ ___ • **txIndex**: *number* -*Defined in [index.ts:417](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L417)* +*Defined in [index.ts:417](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L417)*
@@ -630,7 +630,7 @@ ___ • **approved**: *boolean* -*Defined in [index.ts:296](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L296)* +*Defined in [index.ts:296](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L296)* ___ @@ -638,7 +638,7 @@ ___ • **operator**: *string* -*Defined in [index.ts:295](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L295)* +*Defined in [index.ts:295](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L295)* ___ @@ -646,7 +646,7 @@ ___ • **owner**: *string* -*Defined in [index.ts:294](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L294)* +*Defined in [index.ts:294](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L294)*
@@ -663,7 +663,7 @@ ___ • **from**: *string* -*Defined in [index.ts:279](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L279)* +*Defined in [index.ts:279](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L279)* ___ @@ -671,7 +671,7 @@ ___ • **ids**: *BigNumber[]* -*Defined in [index.ts:281](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L281)* +*Defined in [index.ts:281](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L281)* ___ @@ -679,7 +679,7 @@ ___ • **operator**: *string* -*Defined in [index.ts:278](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L278)* +*Defined in [index.ts:278](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L278)* ___ @@ -687,7 +687,7 @@ ___ • **to**: *string* -*Defined in [index.ts:280](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L280)* +*Defined in [index.ts:280](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L280)* ___ @@ -695,7 +695,7 @@ ___ • **values**: *BigNumber[]* -*Defined in [index.ts:282](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L282)* +*Defined in [index.ts:282](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L282)*
@@ -712,7 +712,7 @@ ___ • **from**: *string* -*Defined in [index.ts:263](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L263)* +*Defined in [index.ts:263](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L263)* ___ @@ -720,7 +720,7 @@ ___ • **id**: *BigNumber* -*Defined in [index.ts:265](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L265)* +*Defined in [index.ts:265](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L265)* ___ @@ -728,7 +728,7 @@ ___ • **operator**: *string* -*Defined in [index.ts:262](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L262)* +*Defined in [index.ts:262](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L262)* ___ @@ -736,7 +736,7 @@ ___ • **to**: *string* -*Defined in [index.ts:264](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L264)* +*Defined in [index.ts:264](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L264)* ___ @@ -744,7 +744,7 @@ ___ • **value**: *BigNumber* -*Defined in [index.ts:266](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L266)* +*Defined in [index.ts:266](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L266)*
@@ -761,7 +761,7 @@ ___ • **owner**: *string* -*Defined in [index.ts:220](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L220)* +*Defined in [index.ts:220](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L220)* ___ @@ -769,7 +769,7 @@ ___ • **spender**: *string* -*Defined in [index.ts:221](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L221)* +*Defined in [index.ts:221](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L221)* ___ @@ -777,7 +777,7 @@ ___ • **value**: *BigNumber* -*Defined in [index.ts:222](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L222)* +*Defined in [index.ts:222](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L222)*
@@ -794,7 +794,7 @@ ___ • **from**: *string* -*Defined in [index.ts:208](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L208)* +*Defined in [index.ts:208](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L208)* ___ @@ -802,7 +802,7 @@ ___ • **to**: *string* -*Defined in [index.ts:209](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L209)* +*Defined in [index.ts:209](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L209)* ___ @@ -810,7 +810,7 @@ ___ • **value**: *BigNumber* -*Defined in [index.ts:210](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L210)* +*Defined in [index.ts:210](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L210)*
@@ -827,7 +827,7 @@ ___ • **approved**: *string* -*Defined in [index.ts:245](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L245)* +*Defined in [index.ts:245](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L245)* ___ @@ -835,7 +835,7 @@ ___ • **owner**: *string* -*Defined in [index.ts:244](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L244)* +*Defined in [index.ts:244](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L244)* ___ @@ -843,7 +843,7 @@ ___ • **tokenId**: *BigNumber* -*Defined in [index.ts:246](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L246)* +*Defined in [index.ts:246](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L246)*
@@ -860,7 +860,7 @@ ___ • **approved**: *boolean* -*Defined in [index.ts:258](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L258)* +*Defined in [index.ts:258](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L258)* ___ @@ -868,7 +868,7 @@ ___ • **operator**: *string* -*Defined in [index.ts:257](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L257)* +*Defined in [index.ts:257](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L257)* ___ @@ -876,7 +876,7 @@ ___ • **owner**: *string* -*Defined in [index.ts:256](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L256)* +*Defined in [index.ts:256](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L256)*
@@ -893,7 +893,7 @@ ___ • **from**: *string* -*Defined in [index.ts:232](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L232)* +*Defined in [index.ts:232](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L232)* ___ @@ -901,7 +901,7 @@ ___ • **to**: *string* -*Defined in [index.ts:233](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L233)* +*Defined in [index.ts:233](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L233)* ___ @@ -909,7 +909,7 @@ ___ • **tokenId**: *BigNumber* -*Defined in [index.ts:234](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L234)* +*Defined in [index.ts:234](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L234)*
@@ -926,7 +926,7 @@ ___ • **feeRecipientAddress**: *string* -*Defined in [index.ts:330](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L330)* +*Defined in [index.ts:330](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L330)* ___ @@ -934,7 +934,7 @@ ___ • **makerAddress**: *string* -*Defined in [index.ts:328](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L328)* +*Defined in [index.ts:328](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L328)* ___ @@ -942,7 +942,7 @@ ___ • **makerAssetData**: *string* -*Defined in [index.ts:332](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L332)* +*Defined in [index.ts:332](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L332)* ___ @@ -950,7 +950,7 @@ ___ • **orderHash**: *string* -*Defined in [index.ts:331](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L331)* +*Defined in [index.ts:331](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L331)* ___ @@ -958,7 +958,7 @@ ___ • **senderAddress**: *string* -*Defined in [index.ts:329](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L329)* +*Defined in [index.ts:329](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L329)* ___ @@ -966,7 +966,7 @@ ___ • **takerAssetData**: *string* -*Defined in [index.ts:333](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L333)* +*Defined in [index.ts:333](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L333)*
@@ -983,7 +983,7 @@ ___ • **makerAddress**: *string* -*Defined in [index.ts:337](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L337)* +*Defined in [index.ts:337](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L337)* ___ @@ -991,7 +991,7 @@ ___ • **orderEpoch**: *BigNumber* -*Defined in [index.ts:339](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L339)* +*Defined in [index.ts:339](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L339)* ___ @@ -999,7 +999,7 @@ ___ • **senderAddress**: *string* -*Defined in [index.ts:338](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L338)* +*Defined in [index.ts:338](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L338)*
@@ -1016,7 +1016,7 @@ ___ • **feeRecipientAddress**: *string* -*Defined in [index.ts:303](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L303)* +*Defined in [index.ts:303](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L303)* ___ @@ -1024,7 +1024,7 @@ ___ • **makerAddress**: *string* -*Defined in [index.ts:300](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L300)* +*Defined in [index.ts:300](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L300)* ___ @@ -1032,7 +1032,7 @@ ___ • **makerAssetData**: *string* -*Defined in [index.ts:309](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L309)* +*Defined in [index.ts:309](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L309)* ___ @@ -1040,7 +1040,7 @@ ___ • **makerAssetFilledAmount**: *BigNumber* -*Defined in [index.ts:304](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L304)* +*Defined in [index.ts:304](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L304)* ___ @@ -1048,7 +1048,7 @@ ___ • **makerFeePaid**: *BigNumber* -*Defined in [index.ts:306](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L306)* +*Defined in [index.ts:306](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L306)* ___ @@ -1056,7 +1056,7 @@ ___ • **orderHash**: *string* -*Defined in [index.ts:308](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L308)* +*Defined in [index.ts:308](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L308)* ___ @@ -1064,7 +1064,7 @@ ___ • **senderAddress**: *string* -*Defined in [index.ts:302](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L302)* +*Defined in [index.ts:302](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L302)* ___ @@ -1072,7 +1072,7 @@ ___ • **takerAddress**: *string* -*Defined in [index.ts:301](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L301)* +*Defined in [index.ts:301](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L301)* ___ @@ -1080,7 +1080,7 @@ ___ • **takerAssetData**: *string* -*Defined in [index.ts:310](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L310)* +*Defined in [index.ts:310](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L310)* ___ @@ -1088,7 +1088,7 @@ ___ • **takerAssetFilledAmount**: *BigNumber* -*Defined in [index.ts:305](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L305)* +*Defined in [index.ts:305](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L305)* ___ @@ -1096,7 +1096,7 @@ ___ • **takerFeePaid**: *BigNumber* -*Defined in [index.ts:307](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L307)* +*Defined in [index.ts:307](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L307)*
@@ -1116,7 +1116,7 @@ or filled. • **contractEvents**: *[ContractEvent](#class-contractevent)[]* -*Defined in [index.ts:469](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L469)* +*Defined in [index.ts:469](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L469)* ___ @@ -1124,7 +1124,7 @@ ___ • **endState**: *[OrderEventEndState](#enumeration-ordereventendstate)* -*Defined in [index.ts:467](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L467)* +*Defined in [index.ts:467](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L467)* ___ @@ -1132,7 +1132,7 @@ ___ • **fillableTakerAssetAmount**: *BigNumber* -*Defined in [index.ts:468](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L468)* +*Defined in [index.ts:468](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L468)* ___ @@ -1140,7 +1140,7 @@ ___ • **orderHash**: *string* -*Defined in [index.ts:465](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L465)* +*Defined in [index.ts:465](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L465)* ___ @@ -1148,7 +1148,7 @@ ___ • **signedOrder**: *SignedOrder* -*Defined in [index.ts:466](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L466)* +*Defined in [index.ts:466](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L466)* ___ @@ -1156,7 +1156,7 @@ ___ • **timestampMs**: *number* -*Defined in [index.ts:464](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L464)* +*Defined in [index.ts:464](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L464)*
@@ -1176,7 +1176,7 @@ rejected. • **kind**: *[RejectedOrderKind](#enumeration-rejectedorderkind)* -*Defined in [index.ts:519](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L519)* +*Defined in [index.ts:519](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L519)* ___ @@ -1184,7 +1184,7 @@ ___ • **orderHash**: *string* -*Defined in [index.ts:517](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L517)* +*Defined in [index.ts:517](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L517)* ___ @@ -1192,7 +1192,7 @@ ___ • **signedOrder**: *SignedOrder* -*Defined in [index.ts:518](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L518)* +*Defined in [index.ts:518](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L518)* ___ @@ -1200,7 +1200,7 @@ ___ • **status**: *[RejectedOrderStatus](#class-rejectedorderstatus)* -*Defined in [index.ts:520](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L520)* +*Defined in [index.ts:520](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L520)*
@@ -1219,7 +1219,7 @@ Provides more information about why an order was rejected. • **code**: *string* -*Defined in [index.ts:537](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L537)* +*Defined in [index.ts:537](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L537)* ___ @@ -1227,7 +1227,7 @@ ___ • **message**: *string* -*Defined in [index.ts:538](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L538)* +*Defined in [index.ts:538](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L538)*
@@ -1246,7 +1246,7 @@ Indicates which orders where accepted, which were rejected, and why. • **accepted**: *[AcceptedOrderInfo](#class-acceptedorderinfo)[]* -*Defined in [index.ts:498](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L498)* +*Defined in [index.ts:498](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L498)* ___ @@ -1254,7 +1254,7 @@ ___ • **rejected**: *[RejectedOrderInfo](#class-rejectedorderinfo)[]* -*Defined in [index.ts:499](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L499)* +*Defined in [index.ts:499](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L499)*
@@ -1271,7 +1271,7 @@ ___ • **owner**: *string* -*Defined in [index.ts:359](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L359)* +*Defined in [index.ts:359](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L359)* ___ @@ -1279,7 +1279,7 @@ ___ • **value**: *BigNumber* -*Defined in [index.ts:360](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L360)* +*Defined in [index.ts:360](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L360)*
@@ -1296,7 +1296,7 @@ ___ • **owner**: *string* -*Defined in [index.ts:349](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L349)* +*Defined in [index.ts:349](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L349)* ___ @@ -1304,7 +1304,7 @@ ___ • **value**: *BigNumber* -*Defined in [index.ts:350](https://github.com/0xProject/0x-mesh/blob/e8a485fe/browser/ts/index.ts#L350)* +*Defined in [index.ts:350](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L350)*
diff --git a/docs/deployment.md b/docs/deployment.md index cf55f3136..c0a4f5c24 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -1,4 +1,4 @@ -[![Version](https://img.shields.io/badge/version-8.0.0--beta--0xv3-orange.svg)](https://github.com/0xProject/0x-mesh/releases) +[![Version](https://img.shields.io/badge/version-development-orange.svg)](https://github.com/0xProject/0x-mesh/releases) # 0x Mesh Deployment Guide diff --git a/docs/deployment_with_telemetry.md b/docs/deployment_with_telemetry.md index 8a0e54ff1..87169a6ee 100644 --- a/docs/deployment_with_telemetry.md +++ b/docs/deployment_with_telemetry.md @@ -1,4 +1,4 @@ -[![Version](https://img.shields.io/badge/version-8.0.0--beta--0xv3-orange.svg)](https://github.com/0xProject/0x-mesh/releases) +[![Version](https://img.shields.io/badge/version-development-orange.svg)](https://github.com/0xProject/0x-mesh/releases) ## Deploying a Telemetry-Enabled Mesh Node diff --git a/docs/json_rpc_clients/typescript/reference.md b/docs/json_rpc_clients/typescript/reference.md index d4bf39330..5f8c3d29e 100644 --- a/docs/json_rpc_clients/typescript/reference.md +++ b/docs/json_rpc_clients/typescript/reference.md @@ -30,7 +30,7 @@ websocket endpoint. \+ **new WSClient**(`url`: string, `wsOpts?`: [WSOpts](#interface-wsopts)): *[WSClient](#class-wsclient)* -*Defined in [ws_client.ts:252](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/ws_client.ts#L252)* +*Defined in [ws_client.ts:252](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/ws_client.ts#L252)* Instantiates a new WSClient instance @@ -51,7 +51,7 @@ An instance of WSClient ▸ **addOrdersAsync**(`signedOrders`: `SignedOrder`[], `pinned`: boolean): *`Promise`* -*Defined in [ws_client.ts:281](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/ws_client.ts#L281)* +*Defined in [ws_client.ts:281](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/ws_client.ts#L281)* Adds an array of 0x signed orders to the Mesh node. @@ -72,7 +72,7 @@ ___ ▸ **destroy**(): *void* -*Defined in [ws_client.ts:403](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/ws_client.ts#L403)* +*Defined in [ws_client.ts:403](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/ws_client.ts#L403)* destroy unsubscribes all active subscriptions, closes the websocket connection and stops the internal heartbeat connection liveness check. @@ -85,7 +85,7 @@ ___ ▸ **getOrdersAsync**(`perPage`: number): *`Promise`* -*Defined in [ws_client.ts:311](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/ws_client.ts#L311)* +*Defined in [ws_client.ts:311](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/ws_client.ts#L311)* Get all 0x signed orders currently stored in the Mesh node @@ -105,7 +105,7 @@ ___ ▸ **getStatsAsync**(): *`Promise`* -*Defined in [ws_client.ts:302](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/ws_client.ts#L302)* +*Defined in [ws_client.ts:302](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/ws_client.ts#L302)* **Returns:** *`Promise`* @@ -115,7 +115,7 @@ ___ ▸ **onClose**(`cb`: function): *void* -*Defined in [ws_client.ts:385](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/ws_client.ts#L385)* +*Defined in [ws_client.ts:385](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/ws_client.ts#L385)* Get notified when the underlying WS connection closes normally. If it closes with an error, WSClient automatically attempts to re-connect without emitting a `close` event. @@ -136,7 +136,7 @@ ___ ▸ **onReconnected**(`cb`: function): *void* -*Defined in [ws_client.ts:394](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/ws_client.ts#L394)* +*Defined in [ws_client.ts:394](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/ws_client.ts#L394)* Get notified when a connection to the underlying WS connection is re-established @@ -156,7 +156,7 @@ ___ ▸ **subscribeToOrdersAsync**(`cb`: function): *`Promise`* -*Defined in [ws_client.ts:345](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/ws_client.ts#L345)* +*Defined in [ws_client.ts:345](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/ws_client.ts#L345)* Subscribe to the 'orders' topic and receive order events from Mesh. This method returns a subscriptionId that can be used to `unsubscribe()` from this subscription. @@ -185,7 +185,7 @@ ___ ▸ **unsubscribeAsync**(`subscriptionId`: string): *`Promise`* -*Defined in [ws_client.ts:375](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/ws_client.ts#L375)* +*Defined in [ws_client.ts:375](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/ws_client.ts#L375)* Unsubscribe from a subscription @@ -225,7 +225,7 @@ Name | Type | Description | • **ERC1155ApprovalForAllEvent**: = "ERC1155ApprovalForAllEvent" -*Defined in [types.ts:222](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L222)* +*Defined in [types.ts:222](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L222)* ___ @@ -233,7 +233,7 @@ ___ • **ERC1155TransferBatchEvent**: = "ERC1155TransferBatchEvent" -*Defined in [types.ts:224](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L224)* +*Defined in [types.ts:224](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L224)* ___ @@ -241,7 +241,7 @@ ___ • **ERC1155TransferSingleEvent**: = "ERC1155TransferSingleEvent" -*Defined in [types.ts:223](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L223)* +*Defined in [types.ts:223](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L223)* ___ @@ -249,7 +249,7 @@ ___ • **ERC20ApprovalEvent**: = "ERC20ApprovalEvent" -*Defined in [types.ts:218](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L218)* +*Defined in [types.ts:218](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L218)* ___ @@ -257,7 +257,7 @@ ___ • **ERC20TransferEvent**: = "ERC20TransferEvent" -*Defined in [types.ts:217](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L217)* +*Defined in [types.ts:217](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L217)* ___ @@ -265,7 +265,7 @@ ___ • **ERC721ApprovalEvent**: = "ERC721ApprovalEvent" -*Defined in [types.ts:220](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L220)* +*Defined in [types.ts:220](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L220)* ___ @@ -273,7 +273,7 @@ ___ • **ERC721ApprovalForAllEvent**: = "ERC721ApprovalForAllEvent" -*Defined in [types.ts:221](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L221)* +*Defined in [types.ts:221](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L221)* ___ @@ -281,7 +281,7 @@ ___ • **ERC721TransferEvent**: = "ERC721TransferEvent" -*Defined in [types.ts:219](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L219)* +*Defined in [types.ts:219](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L219)* ___ @@ -289,7 +289,7 @@ ___ • **ExchangeCancelEvent**: = "ExchangeCancelEvent" -*Defined in [types.ts:226](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L226)* +*Defined in [types.ts:226](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L226)* ___ @@ -297,7 +297,7 @@ ___ • **ExchangeCancelUpToEvent**: = "ExchangeCancelUpToEvent" -*Defined in [types.ts:227](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L227)* +*Defined in [types.ts:227](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L227)* ___ @@ -305,7 +305,7 @@ ___ • **ExchangeFillEvent**: = "ExchangeFillEvent" -*Defined in [types.ts:225](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L225)* +*Defined in [types.ts:225](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L225)* ___ @@ -313,7 +313,7 @@ ___ • **WethDepositEvent**: = "WethDepositEvent" -*Defined in [types.ts:228](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L228)* +*Defined in [types.ts:228](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L228)* ___ @@ -321,7 +321,7 @@ ___ • **WethWithdrawalEvent**: = "WethWithdrawalEvent" -*Defined in [types.ts:229](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L229)* +*Defined in [types.ts:229](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L229)*
@@ -348,7 +348,7 @@ ___ • **Added**: = "ADDED" -*Defined in [types.ts:286](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L286)* +*Defined in [types.ts:286](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L286)* ___ @@ -356,7 +356,7 @@ ___ • **Cancelled**: = "CANCELLED" -*Defined in [types.ts:289](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L289)* +*Defined in [types.ts:289](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L289)* ___ @@ -364,7 +364,7 @@ ___ • **Expired**: = "EXPIRED" -*Defined in [types.ts:290](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L290)* +*Defined in [types.ts:290](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L290)* ___ @@ -372,7 +372,7 @@ ___ • **FillabilityIncreased**: = "FILLABILITY_INCREASED" -*Defined in [types.ts:294](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L294)* +*Defined in [types.ts:294](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L294)* ___ @@ -380,7 +380,7 @@ ___ • **Filled**: = "FILLED" -*Defined in [types.ts:287](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L287)* +*Defined in [types.ts:287](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L287)* ___ @@ -388,7 +388,7 @@ ___ • **FullyFilled**: = "FULLY_FILLED" -*Defined in [types.ts:288](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L288)* +*Defined in [types.ts:288](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L288)* ___ @@ -396,7 +396,7 @@ ___ • **Invalid**: = "INVALID" -*Defined in [types.ts:285](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L285)* +*Defined in [types.ts:285](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L285)* ___ @@ -404,7 +404,7 @@ ___ • **StoppedWatching**: = "STOPPED_WATCHING" -*Defined in [types.ts:292](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L292)* +*Defined in [types.ts:292](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L292)* ___ @@ -412,7 +412,7 @@ ___ • **Unexpired**: = "UNEXPIRED" -*Defined in [types.ts:291](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L291)* +*Defined in [types.ts:291](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L291)* ___ @@ -420,7 +420,7 @@ ___ • **Unfunded**: = "UNFUNDED" -*Defined in [types.ts:293](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L293)* +*Defined in [types.ts:293](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L293)*
@@ -451,7 +451,7 @@ ___ • **InternalError**: = "InternalError" -*Defined in [types.ts:358](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L358)* +*Defined in [types.ts:358](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L358)* ___ @@ -459,7 +459,7 @@ ___ • **MaxOrderSizeExceeded**: = "MaxOrderSizeExceeded" -*Defined in [types.ts:359](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L359)* +*Defined in [types.ts:359](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L359)* ___ @@ -467,7 +467,7 @@ ___ • **NetworkRequestFailed**: = "NetworkRequestFailed" -*Defined in [types.ts:362](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L362)* +*Defined in [types.ts:362](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L362)* ___ @@ -475,7 +475,7 @@ ___ • **OrderAlreadyStored**: = "OrderAlreadyStored" -*Defined in [types.ts:360](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L360)* +*Defined in [types.ts:360](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L360)* ___ @@ -483,7 +483,7 @@ ___ • **OrderCancelled**: = "OrderCancelled" -*Defined in [types.ts:367](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L367)* +*Defined in [types.ts:367](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L367)* ___ @@ -491,7 +491,7 @@ ___ • **OrderExpired**: = "OrderExpired" -*Defined in [types.ts:365](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L365)* +*Defined in [types.ts:365](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L365)* ___ @@ -499,7 +499,7 @@ ___ • **OrderForIncorrectChain**: = "OrderForIncorrectChain" -*Defined in [types.ts:361](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L361)* +*Defined in [types.ts:361](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L361)* ___ @@ -507,7 +507,7 @@ ___ • **OrderFullyFilled**: = "OrderFullyFilled" -*Defined in [types.ts:366](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L366)* +*Defined in [types.ts:366](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L366)* ___ @@ -515,7 +515,7 @@ ___ • **OrderHasInvalidMakerAssetAmount**: = "OrderHasInvalidMakerAssetAmount" -*Defined in [types.ts:363](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L363)* +*Defined in [types.ts:363](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L363)* ___ @@ -523,7 +523,7 @@ ___ • **OrderHasInvalidMakerAssetData**: = "OrderHasInvalidMakerAssetData" -*Defined in [types.ts:369](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L369)* +*Defined in [types.ts:369](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L369)* ___ @@ -531,7 +531,7 @@ ___ • **OrderHasInvalidSignature**: = "OrderHasInvalidSignature" -*Defined in [types.ts:371](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L371)* +*Defined in [types.ts:371](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L371)* ___ @@ -539,7 +539,7 @@ ___ • **OrderHasInvalidTakerAssetAmount**: = "OrderHasInvalidTakerAssetAmount" -*Defined in [types.ts:364](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L364)* +*Defined in [types.ts:364](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L364)* ___ @@ -547,7 +547,7 @@ ___ • **OrderHasInvalidTakerAssetData**: = "OrderHasInvalidTakerAssetData" -*Defined in [types.ts:370](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L370)* +*Defined in [types.ts:370](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L370)* ___ @@ -555,7 +555,7 @@ ___ • **OrderUnfunded**: = "OrderUnfunded" -*Defined in [types.ts:368](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L368)* +*Defined in [types.ts:368](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L368)*
@@ -575,7 +575,7 @@ ___ • **MeshError**: = "MESH_ERROR" -*Defined in [types.ts:353](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L353)* +*Defined in [types.ts:353](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L353)* ___ @@ -583,7 +583,7 @@ ___ • **MeshValidation**: = "MESH_VALIDATION" -*Defined in [types.ts:354](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L354)* +*Defined in [types.ts:354](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L354)* ___ @@ -591,7 +591,7 @@ ___ • **ZeroexValidation**: = "ZEROEX_VALIDATION" -*Defined in [types.ts:352](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L352)* +*Defined in [types.ts:352](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L352)*
@@ -616,7 +616,7 @@ ___ • **fillableTakerAssetAmount**: *`BigNumber`* -*Defined in [types.ts:335](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L335)* +*Defined in [types.ts:335](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L335)* ___ @@ -624,7 +624,7 @@ ___ • **isNew**: *boolean* -*Defined in [types.ts:336](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L336)* +*Defined in [types.ts:336](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L336)* ___ @@ -632,7 +632,7 @@ ___ • **orderHash**: *string* -*Defined in [types.ts:333](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L333)* +*Defined in [types.ts:333](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L333)* ___ @@ -640,7 +640,7 @@ ___ • **signedOrder**: *`SignedOrder`* -*Defined in [types.ts:334](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L334)* +*Defined in [types.ts:334](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L334)*
@@ -672,7 +672,7 @@ Source: https://github.com/theturtle32/WebSocket-Node/blob/master/docs/WebSocket • **assembleFragments**? : *undefined | false | true* -*Defined in [types.ts:16](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L16)* +*Defined in [types.ts:16](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L16)* ___ @@ -680,7 +680,7 @@ ___ • **closeTimeout**? : *undefined | number* -*Defined in [types.ts:17](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L17)* +*Defined in [types.ts:17](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L17)* ___ @@ -688,7 +688,7 @@ ___ • **fragmentOutgoingMessages**? : *undefined | false | true* -*Defined in [types.ts:14](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L14)* +*Defined in [types.ts:14](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L14)* ___ @@ -696,7 +696,7 @@ ___ • **fragmentationThreshold**? : *undefined | number* -*Defined in [types.ts:15](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L15)* +*Defined in [types.ts:15](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L15)* ___ @@ -704,7 +704,7 @@ ___ • **maxReceivedFrameSize**? : *undefined | number* -*Defined in [types.ts:12](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L12)* +*Defined in [types.ts:12](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L12)* ___ @@ -712,7 +712,7 @@ ___ • **maxReceivedMessageSize**? : *undefined | number* -*Defined in [types.ts:13](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L13)* +*Defined in [types.ts:13](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L13)* ___ @@ -720,7 +720,7 @@ ___ • **tlsOptions**? : *any* -*Defined in [types.ts:18](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L18)* +*Defined in [types.ts:18](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L18)* ___ @@ -728,7 +728,7 @@ ___ • **webSocketVersion**? : *undefined | number* -*Defined in [types.ts:11](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L11)* +*Defined in [types.ts:11](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L11)*
@@ -757,7 +757,7 @@ ___ • **address**: *string* -*Defined in [types.ts:279](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L279)* +*Defined in [types.ts:279](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L279)* ___ @@ -765,7 +765,7 @@ ___ • **blockHash**: *string* -*Defined in [types.ts:274](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L274)* +*Defined in [types.ts:274](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L274)* ___ @@ -773,7 +773,7 @@ ___ • **isRemoved**: *string* -*Defined in [types.ts:278](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L278)* +*Defined in [types.ts:278](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L278)* ___ @@ -781,7 +781,7 @@ ___ • **kind**: *[ContractEventKind](#enumeration-contracteventkind)* -*Defined in [types.ts:280](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L280)* +*Defined in [types.ts:280](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L280)* ___ @@ -789,7 +789,7 @@ ___ • **logIndex**: *number* -*Defined in [types.ts:277](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L277)* +*Defined in [types.ts:277](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L277)* ___ @@ -797,7 +797,7 @@ ___ • **parameters**: *[ContractEventParameters](#contracteventparameters)* -*Defined in [types.ts:281](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L281)* +*Defined in [types.ts:281](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L281)* ___ @@ -805,7 +805,7 @@ ___ • **txHash**: *string* -*Defined in [types.ts:275](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L275)* +*Defined in [types.ts:275](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L275)* ___ @@ -813,7 +813,7 @@ ___ • **txIndex**: *number* -*Defined in [types.ts:276](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L276)* +*Defined in [types.ts:276](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L276)*
@@ -837,7 +837,7 @@ ___ • **approved**: *boolean* -*Defined in [types.ts:144](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L144)* +*Defined in [types.ts:144](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L144)* ___ @@ -845,7 +845,7 @@ ___ • **operator**: *string* -*Defined in [types.ts:143](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L143)* +*Defined in [types.ts:143](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L143)* ___ @@ -853,7 +853,7 @@ ___ • **owner**: *string* -*Defined in [types.ts:142](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L142)* +*Defined in [types.ts:142](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L142)*
@@ -879,7 +879,7 @@ ___ • **from**: *string* -*Defined in [types.ts:127](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L127)* +*Defined in [types.ts:127](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L127)* ___ @@ -887,7 +887,7 @@ ___ • **ids**: *`BigNumber`[]* -*Defined in [types.ts:129](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L129)* +*Defined in [types.ts:129](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L129)* ___ @@ -895,7 +895,7 @@ ___ • **operator**: *string* -*Defined in [types.ts:126](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L126)* +*Defined in [types.ts:126](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L126)* ___ @@ -903,7 +903,7 @@ ___ • **to**: *string* -*Defined in [types.ts:128](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L128)* +*Defined in [types.ts:128](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L128)* ___ @@ -911,7 +911,7 @@ ___ • **values**: *`BigNumber`[]* -*Defined in [types.ts:130](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L130)* +*Defined in [types.ts:130](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L130)*
@@ -937,7 +937,7 @@ ___ • **from**: *string* -*Defined in [types.ts:111](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L111)* +*Defined in [types.ts:111](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L111)* ___ @@ -945,7 +945,7 @@ ___ • **id**: *`BigNumber`* -*Defined in [types.ts:113](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L113)* +*Defined in [types.ts:113](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L113)* ___ @@ -953,7 +953,7 @@ ___ • **operator**: *string* -*Defined in [types.ts:110](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L110)* +*Defined in [types.ts:110](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L110)* ___ @@ -961,7 +961,7 @@ ___ • **to**: *string* -*Defined in [types.ts:112](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L112)* +*Defined in [types.ts:112](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L112)* ___ @@ -969,7 +969,7 @@ ___ • **value**: *`BigNumber`* -*Defined in [types.ts:114](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L114)* +*Defined in [types.ts:114](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L114)*
@@ -993,7 +993,7 @@ ___ • **owner**: *string* -*Defined in [types.ts:68](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L68)* +*Defined in [types.ts:68](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L68)* ___ @@ -1001,7 +1001,7 @@ ___ • **spender**: *string* -*Defined in [types.ts:69](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L69)* +*Defined in [types.ts:69](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L69)* ___ @@ -1009,7 +1009,7 @@ ___ • **value**: *`BigNumber`* -*Defined in [types.ts:70](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L70)* +*Defined in [types.ts:70](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L70)*
@@ -1033,7 +1033,7 @@ ___ • **from**: *string* -*Defined in [types.ts:56](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L56)* +*Defined in [types.ts:56](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L56)* ___ @@ -1041,7 +1041,7 @@ ___ • **to**: *string* -*Defined in [types.ts:57](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L57)* +*Defined in [types.ts:57](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L57)* ___ @@ -1049,7 +1049,7 @@ ___ • **value**: *`BigNumber`* -*Defined in [types.ts:58](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L58)* +*Defined in [types.ts:58](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L58)*
@@ -1073,7 +1073,7 @@ ___ • **approved**: *string* -*Defined in [types.ts:93](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L93)* +*Defined in [types.ts:93](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L93)* ___ @@ -1081,7 +1081,7 @@ ___ • **owner**: *string* -*Defined in [types.ts:92](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L92)* +*Defined in [types.ts:92](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L92)* ___ @@ -1089,7 +1089,7 @@ ___ • **tokenId**: *`BigNumber`* -*Defined in [types.ts:94](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L94)* +*Defined in [types.ts:94](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L94)*
@@ -1113,7 +1113,7 @@ ___ • **approved**: *boolean* -*Defined in [types.ts:106](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L106)* +*Defined in [types.ts:106](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L106)* ___ @@ -1121,7 +1121,7 @@ ___ • **operator**: *string* -*Defined in [types.ts:105](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L105)* +*Defined in [types.ts:105](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L105)* ___ @@ -1129,7 +1129,7 @@ ___ • **owner**: *string* -*Defined in [types.ts:104](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L104)* +*Defined in [types.ts:104](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L104)*
@@ -1153,7 +1153,7 @@ ___ • **from**: *string* -*Defined in [types.ts:80](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L80)* +*Defined in [types.ts:80](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L80)* ___ @@ -1161,7 +1161,7 @@ ___ • **to**: *string* -*Defined in [types.ts:81](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L81)* +*Defined in [types.ts:81](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L81)* ___ @@ -1169,7 +1169,7 @@ ___ • **tokenId**: *`BigNumber`* -*Defined in [types.ts:82](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L82)* +*Defined in [types.ts:82](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L82)*
@@ -1196,7 +1196,7 @@ ___ • **feeRecipientAddress**: *string* -*Defined in [types.ts:178](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L178)* +*Defined in [types.ts:178](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L178)* ___ @@ -1204,7 +1204,7 @@ ___ • **makerAddress**: *string* -*Defined in [types.ts:176](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L176)* +*Defined in [types.ts:176](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L176)* ___ @@ -1212,7 +1212,7 @@ ___ • **makerAssetData**: *string* -*Defined in [types.ts:180](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L180)* +*Defined in [types.ts:180](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L180)* ___ @@ -1220,7 +1220,7 @@ ___ • **orderHash**: *string* -*Defined in [types.ts:179](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L179)* +*Defined in [types.ts:179](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L179)* ___ @@ -1228,7 +1228,7 @@ ___ • **senderAddress**: *string* -*Defined in [types.ts:177](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L177)* +*Defined in [types.ts:177](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L177)* ___ @@ -1236,7 +1236,7 @@ ___ • **takerAssetData**: *string* -*Defined in [types.ts:181](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L181)* +*Defined in [types.ts:181](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L181)*
@@ -1260,7 +1260,7 @@ ___ • **makerAddress**: *string* -*Defined in [types.ts:185](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L185)* +*Defined in [types.ts:185](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L185)* ___ @@ -1268,7 +1268,7 @@ ___ • **orderEpoch**: *`BigNumber`* -*Defined in [types.ts:187](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L187)* +*Defined in [types.ts:187](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L187)* ___ @@ -1276,7 +1276,7 @@ ___ • **senderAddress**: *string* -*Defined in [types.ts:186](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L186)* +*Defined in [types.ts:186](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L186)*
@@ -1308,7 +1308,7 @@ ___ • **feeRecipientAddress**: *string* -*Defined in [types.ts:151](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L151)* +*Defined in [types.ts:151](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L151)* ___ @@ -1316,7 +1316,7 @@ ___ • **makerAddress**: *string* -*Defined in [types.ts:148](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L148)* +*Defined in [types.ts:148](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L148)* ___ @@ -1324,7 +1324,7 @@ ___ • **makerAssetData**: *string* -*Defined in [types.ts:157](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L157)* +*Defined in [types.ts:157](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L157)* ___ @@ -1332,7 +1332,7 @@ ___ • **makerAssetFilledAmount**: *`BigNumber`* -*Defined in [types.ts:152](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L152)* +*Defined in [types.ts:152](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L152)* ___ @@ -1340,7 +1340,7 @@ ___ • **makerFeePaid**: *`BigNumber`* -*Defined in [types.ts:154](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L154)* +*Defined in [types.ts:154](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L154)* ___ @@ -1348,7 +1348,7 @@ ___ • **orderHash**: *string* -*Defined in [types.ts:156](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L156)* +*Defined in [types.ts:156](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L156)* ___ @@ -1356,7 +1356,7 @@ ___ • **senderAddress**: *string* -*Defined in [types.ts:150](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L150)* +*Defined in [types.ts:150](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L150)* ___ @@ -1364,7 +1364,7 @@ ___ • **takerAddress**: *string* -*Defined in [types.ts:149](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L149)* +*Defined in [types.ts:149](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L149)* ___ @@ -1372,7 +1372,7 @@ ___ • **takerAssetData**: *string* -*Defined in [types.ts:158](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L158)* +*Defined in [types.ts:158](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L158)* ___ @@ -1380,7 +1380,7 @@ ___ • **takerAssetFilledAmount**: *`BigNumber`* -*Defined in [types.ts:153](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L153)* +*Defined in [types.ts:153](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L153)* ___ @@ -1388,7 +1388,7 @@ ___ • **takerFeePaid**: *`BigNumber`* -*Defined in [types.ts:155](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L155)* +*Defined in [types.ts:155](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L155)*
@@ -1412,7 +1412,7 @@ ___ • **ordersInfos**: *[OrderInfo](#interface-orderinfo)[]* -*Defined in [types.ts:415](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L415)* +*Defined in [types.ts:415](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L415)* ___ @@ -1420,7 +1420,7 @@ ___ • **snapshotID**: *string* -*Defined in [types.ts:413](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L413)* +*Defined in [types.ts:413](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L413)* ___ @@ -1428,7 +1428,7 @@ ___ • **snapshotTimestamp**: *number* -*Defined in [types.ts:414](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L414)* +*Defined in [types.ts:414](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L414)*
@@ -1463,7 +1463,7 @@ ___ • **ethRPCRateLimitExpiredRequests**: *number* -*Defined in [types.ts:442](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L442)* +*Defined in [types.ts:442](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L442)* ___ @@ -1471,7 +1471,7 @@ ___ • **ethRPCRequestsSentInCurrentUTCDay**: *number* -*Defined in [types.ts:441](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L441)* +*Defined in [types.ts:441](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L441)* ___ @@ -1479,7 +1479,7 @@ ___ • **ethereumChainID**: *number* -*Defined in [types.ts:433](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L433)* +*Defined in [types.ts:433](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L433)* ___ @@ -1487,7 +1487,7 @@ ___ • **latestBlock**: *[LatestBlock](#interface-latestblock)* -*Defined in [types.ts:434](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L434)* +*Defined in [types.ts:434](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L434)* ___ @@ -1495,7 +1495,7 @@ ___ • **maxExpirationTime**: *string* -*Defined in [types.ts:439](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L439)* +*Defined in [types.ts:439](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L439)* ___ @@ -1503,7 +1503,7 @@ ___ • **numOrders**: *number* -*Defined in [types.ts:436](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L436)* +*Defined in [types.ts:436](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L436)* ___ @@ -1511,7 +1511,7 @@ ___ • **numOrdersIncludingRemoved**: *number* -*Defined in [types.ts:437](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L437)* +*Defined in [types.ts:437](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L437)* ___ @@ -1519,7 +1519,7 @@ ___ • **numPeers**: *number* -*Defined in [types.ts:435](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L435)* +*Defined in [types.ts:435](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L435)* ___ @@ -1527,7 +1527,7 @@ ___ • **numPinnedOrders**: *number* -*Defined in [types.ts:438](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L438)* +*Defined in [types.ts:438](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L438)* ___ @@ -1535,7 +1535,7 @@ ___ • **peerID**: *string* -*Defined in [types.ts:432](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L432)* +*Defined in [types.ts:432](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L432)* ___ @@ -1543,7 +1543,7 @@ ___ • **pubSubTopic**: *string* -*Defined in [types.ts:430](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L430)* +*Defined in [types.ts:430](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L430)* ___ @@ -1551,7 +1551,7 @@ ___ • **rendezvous**: *string* -*Defined in [types.ts:431](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L431)* +*Defined in [types.ts:431](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L431)* ___ @@ -1559,7 +1559,7 @@ ___ • **startOfCurrentUTCDay**: *string* -*Defined in [types.ts:440](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L440)* +*Defined in [types.ts:440](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L440)* ___ @@ -1567,7 +1567,7 @@ ___ • **version**: *string* -*Defined in [types.ts:429](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L429)* +*Defined in [types.ts:429](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L429)*
@@ -1590,7 +1590,7 @@ ___ • **result**: *string* -*Defined in [types.ts:304](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L304)* +*Defined in [types.ts:304](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L304)* ___ @@ -1598,7 +1598,7 @@ ___ • **subscription**: *string* -*Defined in [types.ts:303](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L303)* +*Defined in [types.ts:303](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L303)*
@@ -1621,7 +1621,7 @@ ___ • **hash**: *string* -*Defined in [types.ts:425](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L425)* +*Defined in [types.ts:425](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L425)* ___ @@ -1629,7 +1629,7 @@ ___ • **number**: *number* -*Defined in [types.ts:424](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L424)* +*Defined in [types.ts:424](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L424)*
@@ -1656,7 +1656,7 @@ ___ • **contractEvents**: *[ContractEvent](#interface-contractevent)[]* -*Defined in [types.ts:322](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L322)* +*Defined in [types.ts:322](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L322)* ___ @@ -1664,7 +1664,7 @@ ___ • **endState**: *[OrderEventEndState](#enumeration-ordereventendstate)* -*Defined in [types.ts:320](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L320)* +*Defined in [types.ts:320](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L320)* ___ @@ -1672,7 +1672,7 @@ ___ • **fillableTakerAssetAmount**: *`BigNumber`* -*Defined in [types.ts:321](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L321)* +*Defined in [types.ts:321](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L321)* ___ @@ -1680,7 +1680,7 @@ ___ • **orderHash**: *string* -*Defined in [types.ts:318](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L318)* +*Defined in [types.ts:318](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L318)* ___ @@ -1688,7 +1688,7 @@ ___ • **signedOrder**: *`SignedOrder`* -*Defined in [types.ts:319](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L319)* +*Defined in [types.ts:319](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L319)* ___ @@ -1696,7 +1696,7 @@ ___ • **timestampMs**: *number* -*Defined in [types.ts:317](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L317)* +*Defined in [types.ts:317](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L317)*
@@ -1719,7 +1719,7 @@ ___ • **result**: *[RawOrderEvent](#interface-raworderevent)[]* -*Defined in [types.ts:299](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L299)* +*Defined in [types.ts:299](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L299)* ___ @@ -1727,7 +1727,7 @@ ___ • **subscription**: *string* -*Defined in [types.ts:298](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L298)* +*Defined in [types.ts:298](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L298)*
@@ -1751,7 +1751,7 @@ ___ • **fillableTakerAssetAmount**: *`BigNumber`* -*Defined in [types.ts:348](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L348)* +*Defined in [types.ts:348](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L348)* ___ @@ -1759,7 +1759,7 @@ ___ • **orderHash**: *string* -*Defined in [types.ts:346](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L346)* +*Defined in [types.ts:346](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L346)* ___ @@ -1767,7 +1767,7 @@ ___ • **signedOrder**: *`SignedOrder`* -*Defined in [types.ts:347](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L347)* +*Defined in [types.ts:347](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L347)*
@@ -1792,7 +1792,7 @@ ___ • **fillableTakerAssetAmount**: *string* -*Defined in [types.ts:328](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L328)* +*Defined in [types.ts:328](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L328)* ___ @@ -1800,7 +1800,7 @@ ___ • **isNew**: *boolean* -*Defined in [types.ts:329](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L329)* +*Defined in [types.ts:329](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L329)* ___ @@ -1808,7 +1808,7 @@ ___ • **orderHash**: *string* -*Defined in [types.ts:326](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L326)* +*Defined in [types.ts:326](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L326)* ___ @@ -1816,7 +1816,7 @@ ___ • **signedOrder**: *[StringifiedSignedOrder](#interface-stringifiedsignedorder)* -*Defined in [types.ts:327](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L327)* +*Defined in [types.ts:327](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L327)*
@@ -1840,7 +1840,7 @@ ___ • **ordersInfos**: *[RawAcceptedOrderInfo](#interface-rawacceptedorderinfo)[]* -*Defined in [types.ts:406](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L406)* +*Defined in [types.ts:406](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L406)* ___ @@ -1848,7 +1848,7 @@ ___ • **snapshotID**: *string* -*Defined in [types.ts:404](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L404)* +*Defined in [types.ts:404](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L404)* ___ @@ -1856,7 +1856,7 @@ ___ • **snapshotTimestamp**: *string* -*Defined in [types.ts:405](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L405)* +*Defined in [types.ts:405](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L405)*
@@ -1883,7 +1883,7 @@ ___ • **contractEvents**: *[StringifiedContractEvent](#interface-stringifiedcontractevent)[]* -*Defined in [types.ts:313](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L313)* +*Defined in [types.ts:313](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L313)* ___ @@ -1891,7 +1891,7 @@ ___ • **endState**: *[OrderEventEndState](#enumeration-ordereventendstate)* -*Defined in [types.ts:311](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L311)* +*Defined in [types.ts:311](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L311)* ___ @@ -1899,7 +1899,7 @@ ___ • **fillableTakerAssetAmount**: *string* -*Defined in [types.ts:312](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L312)* +*Defined in [types.ts:312](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L312)* ___ @@ -1907,7 +1907,7 @@ ___ • **orderHash**: *string* -*Defined in [types.ts:309](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L309)* +*Defined in [types.ts:309](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L309)* ___ @@ -1915,7 +1915,7 @@ ___ • **signedOrder**: *[StringifiedSignedOrder](#interface-stringifiedsignedorder)* -*Defined in [types.ts:310](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L310)* +*Defined in [types.ts:310](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L310)* ___ @@ -1923,7 +1923,7 @@ ___ • **timestamp**: *string* -*Defined in [types.ts:308](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L308)* +*Defined in [types.ts:308](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L308)*
@@ -1947,7 +1947,7 @@ ___ • **fillableTakerAssetAmount**: *string* -*Defined in [types.ts:342](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L342)* +*Defined in [types.ts:342](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L342)* ___ @@ -1955,7 +1955,7 @@ ___ • **orderHash**: *string* -*Defined in [types.ts:340](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L340)* +*Defined in [types.ts:340](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L340)* ___ @@ -1963,7 +1963,7 @@ ___ • **signedOrder**: *[StringifiedSignedOrder](#interface-stringifiedsignedorder)* -*Defined in [types.ts:341](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L341)* +*Defined in [types.ts:341](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L341)*
@@ -1988,7 +1988,7 @@ ___ • **kind**: *[RejectedKind](#enumeration-rejectedkind)* -*Defined in [types.ts:382](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L382)* +*Defined in [types.ts:382](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L382)* ___ @@ -1996,7 +1996,7 @@ ___ • **orderHash**: *string* -*Defined in [types.ts:380](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L380)* +*Defined in [types.ts:380](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L380)* ___ @@ -2004,7 +2004,7 @@ ___ • **signedOrder**: *[StringifiedSignedOrder](#interface-stringifiedsignedorder)* -*Defined in [types.ts:381](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L381)* +*Defined in [types.ts:381](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L381)* ___ @@ -2012,7 +2012,7 @@ ___ • **status**: *[RejectedStatus](#interface-rejectedstatus)* -*Defined in [types.ts:383](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L383)* +*Defined in [types.ts:383](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L383)*
@@ -2035,7 +2035,7 @@ ___ • **accepted**: *[RawAcceptedOrderInfo](#interface-rawacceptedorderinfo)[]* -*Defined in [types.ts:394](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L394)* +*Defined in [types.ts:394](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L394)* ___ @@ -2043,7 +2043,7 @@ ___ • **rejected**: *[RawRejectedOrderInfo](#interface-rawrejectedorderinfo)[]* -*Defined in [types.ts:395](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L395)* +*Defined in [types.ts:395](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L395)*
@@ -2068,7 +2068,7 @@ ___ • **kind**: *[RejectedKind](#enumeration-rejectedkind)* -*Defined in [types.ts:389](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L389)* +*Defined in [types.ts:389](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L389)* ___ @@ -2076,7 +2076,7 @@ ___ • **orderHash**: *string* -*Defined in [types.ts:387](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L387)* +*Defined in [types.ts:387](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L387)* ___ @@ -2084,7 +2084,7 @@ ___ • **signedOrder**: *`SignedOrder`* -*Defined in [types.ts:388](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L388)* +*Defined in [types.ts:388](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L388)* ___ @@ -2092,7 +2092,7 @@ ___ • **status**: *[RejectedStatus](#interface-rejectedstatus)* -*Defined in [types.ts:390](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L390)* +*Defined in [types.ts:390](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L390)*
@@ -2115,7 +2115,7 @@ ___ • **code**: *[RejectedCode](#enumeration-rejectedcode)* -*Defined in [types.ts:375](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L375)* +*Defined in [types.ts:375](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L375)* ___ @@ -2123,7 +2123,7 @@ ___ • **message**: *string* -*Defined in [types.ts:376](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L376)* +*Defined in [types.ts:376](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L376)*
@@ -2152,7 +2152,7 @@ ___ • **address**: *string* -*Defined in [types.ts:253](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L253)* +*Defined in [types.ts:253](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L253)* ___ @@ -2160,7 +2160,7 @@ ___ • **blockHash**: *string* -*Defined in [types.ts:248](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L248)* +*Defined in [types.ts:248](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L248)* ___ @@ -2168,7 +2168,7 @@ ___ • **isRemoved**: *string* -*Defined in [types.ts:252](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L252)* +*Defined in [types.ts:252](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L252)* ___ @@ -2176,7 +2176,7 @@ ___ • **kind**: *string* -*Defined in [types.ts:254](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L254)* +*Defined in [types.ts:254](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L254)* ___ @@ -2184,7 +2184,7 @@ ___ • **logIndex**: *number* -*Defined in [types.ts:251](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L251)* +*Defined in [types.ts:251](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L251)* ___ @@ -2192,7 +2192,7 @@ ___ • **parameters**: *[StringifiedContractEventParameters](#stringifiedcontracteventparameters)* -*Defined in [types.ts:255](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L255)* +*Defined in [types.ts:255](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L255)* ___ @@ -2200,7 +2200,7 @@ ___ • **txHash**: *string* -*Defined in [types.ts:249](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L249)* +*Defined in [types.ts:249](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L249)* ___ @@ -2208,7 +2208,7 @@ ___ • **txIndex**: *number* -*Defined in [types.ts:250](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L250)* +*Defined in [types.ts:250](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L250)*
@@ -2234,7 +2234,7 @@ ___ • **from**: *string* -*Defined in [types.ts:135](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L135)* +*Defined in [types.ts:135](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L135)* ___ @@ -2242,7 +2242,7 @@ ___ • **ids**: *string[]* -*Defined in [types.ts:137](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L137)* +*Defined in [types.ts:137](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L137)* ___ @@ -2250,7 +2250,7 @@ ___ • **operator**: *string* -*Defined in [types.ts:134](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L134)* +*Defined in [types.ts:134](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L134)* ___ @@ -2258,7 +2258,7 @@ ___ • **to**: *string* -*Defined in [types.ts:136](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L136)* +*Defined in [types.ts:136](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L136)* ___ @@ -2266,7 +2266,7 @@ ___ • **values**: *string[]* -*Defined in [types.ts:138](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L138)* +*Defined in [types.ts:138](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L138)*
@@ -2292,7 +2292,7 @@ ___ • **from**: *string* -*Defined in [types.ts:119](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L119)* +*Defined in [types.ts:119](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L119)* ___ @@ -2300,7 +2300,7 @@ ___ • **id**: *string* -*Defined in [types.ts:121](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L121)* +*Defined in [types.ts:121](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L121)* ___ @@ -2308,7 +2308,7 @@ ___ • **operator**: *string* -*Defined in [types.ts:118](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L118)* +*Defined in [types.ts:118](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L118)* ___ @@ -2316,7 +2316,7 @@ ___ • **to**: *string* -*Defined in [types.ts:120](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L120)* +*Defined in [types.ts:120](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L120)* ___ @@ -2324,7 +2324,7 @@ ___ • **value**: *string* -*Defined in [types.ts:122](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L122)* +*Defined in [types.ts:122](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L122)*
@@ -2348,7 +2348,7 @@ ___ • **owner**: *string* -*Defined in [types.ts:74](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L74)* +*Defined in [types.ts:74](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L74)* ___ @@ -2356,7 +2356,7 @@ ___ • **spender**: *string* -*Defined in [types.ts:75](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L75)* +*Defined in [types.ts:75](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L75)* ___ @@ -2364,7 +2364,7 @@ ___ • **value**: *string* -*Defined in [types.ts:76](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L76)* +*Defined in [types.ts:76](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L76)*
@@ -2388,7 +2388,7 @@ ___ • **from**: *string* -*Defined in [types.ts:62](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L62)* +*Defined in [types.ts:62](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L62)* ___ @@ -2396,7 +2396,7 @@ ___ • **to**: *string* -*Defined in [types.ts:63](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L63)* +*Defined in [types.ts:63](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L63)* ___ @@ -2404,7 +2404,7 @@ ___ • **value**: *string* -*Defined in [types.ts:64](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L64)* +*Defined in [types.ts:64](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L64)*
@@ -2428,7 +2428,7 @@ ___ • **approved**: *string* -*Defined in [types.ts:99](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L99)* +*Defined in [types.ts:99](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L99)* ___ @@ -2436,7 +2436,7 @@ ___ • **owner**: *string* -*Defined in [types.ts:98](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L98)* +*Defined in [types.ts:98](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L98)* ___ @@ -2444,7 +2444,7 @@ ___ • **tokenId**: *string* -*Defined in [types.ts:100](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L100)* +*Defined in [types.ts:100](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L100)*
@@ -2468,7 +2468,7 @@ ___ • **from**: *string* -*Defined in [types.ts:86](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L86)* +*Defined in [types.ts:86](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L86)* ___ @@ -2476,7 +2476,7 @@ ___ • **to**: *string* -*Defined in [types.ts:87](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L87)* +*Defined in [types.ts:87](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L87)* ___ @@ -2484,7 +2484,7 @@ ___ • **tokenId**: *string* -*Defined in [types.ts:88](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L88)* +*Defined in [types.ts:88](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L88)*
@@ -2508,7 +2508,7 @@ ___ • **makerAddress**: *string* -*Defined in [types.ts:191](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L191)* +*Defined in [types.ts:191](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L191)* ___ @@ -2516,7 +2516,7 @@ ___ • **orderEpoch**: *string* -*Defined in [types.ts:193](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L193)* +*Defined in [types.ts:193](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L193)* ___ @@ -2524,7 +2524,7 @@ ___ • **senderAddress**: *string* -*Defined in [types.ts:192](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L192)* +*Defined in [types.ts:192](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L192)*
@@ -2556,7 +2556,7 @@ ___ • **feeRecipientAddress**: *string* -*Defined in [types.ts:165](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L165)* +*Defined in [types.ts:165](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L165)* ___ @@ -2564,7 +2564,7 @@ ___ • **makerAddress**: *string* -*Defined in [types.ts:162](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L162)* +*Defined in [types.ts:162](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L162)* ___ @@ -2572,7 +2572,7 @@ ___ • **makerAssetData**: *string* -*Defined in [types.ts:171](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L171)* +*Defined in [types.ts:171](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L171)* ___ @@ -2580,7 +2580,7 @@ ___ • **makerAssetFilledAmount**: *string* -*Defined in [types.ts:166](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L166)* +*Defined in [types.ts:166](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L166)* ___ @@ -2588,7 +2588,7 @@ ___ • **makerFeePaid**: *string* -*Defined in [types.ts:168](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L168)* +*Defined in [types.ts:168](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L168)* ___ @@ -2596,7 +2596,7 @@ ___ • **orderHash**: *string* -*Defined in [types.ts:170](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L170)* +*Defined in [types.ts:170](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L170)* ___ @@ -2604,7 +2604,7 @@ ___ • **senderAddress**: *string* -*Defined in [types.ts:164](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L164)* +*Defined in [types.ts:164](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L164)* ___ @@ -2612,7 +2612,7 @@ ___ • **takerAddress**: *string* -*Defined in [types.ts:163](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L163)* +*Defined in [types.ts:163](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L163)* ___ @@ -2620,7 +2620,7 @@ ___ • **takerAssetData**: *string* -*Defined in [types.ts:172](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L172)* +*Defined in [types.ts:172](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L172)* ___ @@ -2628,7 +2628,7 @@ ___ • **takerAssetFilledAmount**: *string* -*Defined in [types.ts:167](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L167)* +*Defined in [types.ts:167](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L167)* ___ @@ -2636,7 +2636,7 @@ ___ • **takerFeePaid**: *string* -*Defined in [types.ts:169](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L169)* +*Defined in [types.ts:169](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L169)*
@@ -2671,7 +2671,7 @@ ___ • **exchangeAddress**: *string* -*Defined in [types.ts:49](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L49)* +*Defined in [types.ts:49](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L49)* ___ @@ -2679,7 +2679,7 @@ ___ • **expirationTimeSeconds**: *string* -*Defined in [types.ts:51](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L51)* +*Defined in [types.ts:51](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L51)* ___ @@ -2687,7 +2687,7 @@ ___ • **feeRecipientAddress**: *string* -*Defined in [types.ts:50](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L50)* +*Defined in [types.ts:50](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L50)* ___ @@ -2695,7 +2695,7 @@ ___ • **makerAddress**: *string* -*Defined in [types.ts:40](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L40)* +*Defined in [types.ts:40](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L40)* ___ @@ -2703,7 +2703,7 @@ ___ • **makerAssetAmount**: *string* -*Defined in [types.ts:44](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L44)* +*Defined in [types.ts:44](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L44)* ___ @@ -2711,7 +2711,7 @@ ___ • **makerAssetData**: *string* -*Defined in [types.ts:46](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L46)* +*Defined in [types.ts:46](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L46)* ___ @@ -2719,7 +2719,7 @@ ___ • **makerFee**: *string* -*Defined in [types.ts:42](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L42)* +*Defined in [types.ts:42](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L42)* ___ @@ -2727,7 +2727,7 @@ ___ • **salt**: *string* -*Defined in [types.ts:48](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L48)* +*Defined in [types.ts:48](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L48)* ___ @@ -2735,7 +2735,7 @@ ___ • **senderAddress**: *string* -*Defined in [types.ts:39](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L39)* +*Defined in [types.ts:39](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L39)* ___ @@ -2743,7 +2743,7 @@ ___ • **signature**: *string* -*Defined in [types.ts:52](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L52)* +*Defined in [types.ts:52](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L52)* ___ @@ -2751,7 +2751,7 @@ ___ • **takerAddress**: *string* -*Defined in [types.ts:41](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L41)* +*Defined in [types.ts:41](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L41)* ___ @@ -2759,7 +2759,7 @@ ___ • **takerAssetAmount**: *string* -*Defined in [types.ts:45](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L45)* +*Defined in [types.ts:45](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L45)* ___ @@ -2767,7 +2767,7 @@ ___ • **takerAssetData**: *string* -*Defined in [types.ts:47](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L47)* +*Defined in [types.ts:47](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L47)* ___ @@ -2775,7 +2775,7 @@ ___ • **takerFee**: *string* -*Defined in [types.ts:43](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L43)* +*Defined in [types.ts:43](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L43)*
@@ -2798,7 +2798,7 @@ ___ • **owner**: *string* -*Defined in [types.ts:212](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L212)* +*Defined in [types.ts:212](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L212)* ___ @@ -2806,7 +2806,7 @@ ___ • **value**: *string* -*Defined in [types.ts:213](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L213)* +*Defined in [types.ts:213](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L213)*
@@ -2829,7 +2829,7 @@ ___ • **owner**: *string* -*Defined in [types.ts:202](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L202)* +*Defined in [types.ts:202](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L202)* ___ @@ -2837,7 +2837,7 @@ ___ • **value**: *string* -*Defined in [types.ts:203](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L203)* +*Defined in [types.ts:203](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L203)*
@@ -2860,7 +2860,7 @@ ___ • **accepted**: *[AcceptedOrderInfo](#interface-acceptedorderinfo)[]* -*Defined in [types.ts:399](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L399)* +*Defined in [types.ts:399](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L399)* ___ @@ -2868,7 +2868,7 @@ ___ • **rejected**: *[RejectedOrderInfo](#interface-rejectedorderinfo)[]* -*Defined in [types.ts:400](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L400)* +*Defined in [types.ts:400](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L400)*
@@ -2891,7 +2891,7 @@ ___ • **owner**: *string* -*Defined in [types.ts:207](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L207)* +*Defined in [types.ts:207](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L207)* ___ @@ -2899,7 +2899,7 @@ ___ • **value**: *`BigNumber`* -*Defined in [types.ts:208](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L208)* +*Defined in [types.ts:208](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L208)*
@@ -2922,7 +2922,7 @@ ___ • **owner**: *string* -*Defined in [types.ts:197](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L197)* +*Defined in [types.ts:197](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L197)* ___ @@ -2930,7 +2930,7 @@ ___ • **value**: *`BigNumber`* -*Defined in [types.ts:198](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L198)* +*Defined in [types.ts:198](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L198)*
@@ -2953,7 +2953,7 @@ ___ • **type**: *string* -*Defined in [types.ts:419](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L419)* +*Defined in [types.ts:419](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L419)* ___ @@ -2961,7 +2961,7 @@ ___ • **utf8Data**: *string* -*Defined in [types.ts:420](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L420)* +*Defined in [types.ts:420](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L420)*
@@ -2995,7 +2995,7 @@ reconnectDelay: time in milliseconds after which to attempt to reconnect to WS s • **clientConfig**? : *[ClientConfig](#interface-clientconfig)* -*Defined in [types.ts:34](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L34)* +*Defined in [types.ts:34](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L34)* ___ @@ -3003,7 +3003,7 @@ ___ • **headers**? : *undefined | `__type`* -*Defined in [types.ts:32](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L32)* +*Defined in [types.ts:32](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L32)* ___ @@ -3011,7 +3011,7 @@ ___ • **protocol**? : *undefined | string* -*Defined in [types.ts:33](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L33)* +*Defined in [types.ts:33](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L33)* ___ @@ -3019,7 +3019,7 @@ ___ • **reconnectDelay**? : *undefined | number* -*Defined in [types.ts:35](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L35)* +*Defined in [types.ts:35](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L35)* ___ @@ -3027,7 +3027,7 @@ ___ • **timeout**? : *undefined | number* -*Defined in [types.ts:31](https://github.com/0xProject/0x-mesh/blob/e8a485fe/rpc/clients/typescript/src/types.ts#L31)* +*Defined in [types.ts:31](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L31)*
diff --git a/docs/rpc_api.md b/docs/rpc_api.md index e12da9a40..fa796ac5a 100644 --- a/docs/rpc_api.md +++ b/docs/rpc_api.md @@ -1,4 +1,4 @@ -[![Version](https://img.shields.io/badge/version-8.0.0--beta--0xv3-orange.svg)](https://github.com/0xProject/0x-mesh/releases) +[![Version](https://img.shields.io/badge/version-development-orange.svg)](https://github.com/0xProject/0x-mesh/releases) # 0x Mesh JSON-RPC API Documentation diff --git a/rpc/clients/typescript/package.json b/rpc/clients/typescript/package.json index f9b4c236c..67487a0af 100644 --- a/rpc/clients/typescript/package.json +++ b/rpc/clients/typescript/package.json @@ -1,6 +1,6 @@ { "name": "@0x/mesh-rpc-client", - "version": "8.0.0-beta-0xv3", + "version": "development", "engines": { "node": ">=6.12" }, From e1505437f9f612e2b19f89312dbe80fab75ba034 Mon Sep 17 00:00:00 2001 From: fabioberger Date: Fri, 20 Dec 2019 16:03:23 +0100 Subject: [PATCH 02/50] Update 0x deps to post-beta versions --- browser/package.json | 8 +- browser/yarn.lock | 685 +++++++++++-------------- integration-tests/browser/package.json | 4 +- integration-tests/browser/src/index.ts | 2 +- integration-tests/browser/yarn.lock | 227 ++++---- rpc/clients/typescript/package.json | 6 +- rpc/clients/typescript/yarn.lock | 229 ++------- 7 files changed, 454 insertions(+), 707 deletions(-) diff --git a/browser/package.json b/browser/package.json index 474a7c57b..0fb7311c9 100644 --- a/browser/package.json +++ b/browser/package.json @@ -16,15 +16,15 @@ "docsPath": "../docs/browser" }, "devDependencies": { - "@0x/ts-doc-gen": "^0.0.16", - "@0x/tslint-config": "^3.1.0-beta.1", + "@0x/ts-doc-gen": "^0.0.23", + "@0x/tslint-config": "^4.0.0", "@types/base64-arraybuffer": "^0.1.0", "tslint": "5.11.0", "typescript": "^3.5.3" }, "dependencies": { - "@0x/order-utils": "8.5.0-beta.1", - "@0x/utils": "4.6.0-beta.1", + "@0x/order-utils": "^10.0.1", + "@0x/utils": "^5.1.1", "base64-arraybuffer": "^0.2.0", "browserfs": "^1.4.3" } diff --git a/browser/yarn.lock b/browser/yarn.lock index 9e585e37f..16644d2ba 100644 --- a/browser/yarn.lock +++ b/browser/yarn.lock @@ -2,104 +2,87 @@ # yarn lockfile v1 -"@0x/abi-gen-wrappers@^5.4.0-beta.1": - version "5.4.0-beta.1" - resolved "https://registry.yarnpkg.com/@0x/abi-gen-wrappers/-/abi-gen-wrappers-5.4.0-beta.1.tgz#653ec94b9ec14985c6f649a6341f7ae5fd26e0a0" - integrity sha512-duLIQCPtFh3yEDC5xte/+cmycAs3b9lg8EtQyZA8CVjuO4bD7ctoiNvhx5PJwRhjKKxjnWgIv8+OTQzyiDRPFA== - dependencies: - "@0x/assert" "^2.2.0-beta.1" - "@0x/base-contract" "^5.5.0-beta.1" - "@0x/contract-addresses" "^3.3.0-beta.2" - "@0x/json-schemas" "^4.1.0-beta.1" - "@0x/types" "^2.5.0-beta.1" - "@0x/utils" "^4.6.0-beta.1" - "@0x/web3-wrapper" "^6.1.0-beta.1" - ethereum-types "^2.2.0-beta.1" - ethers "~4.0.4" - -"@0x/assert@^2.2.0-beta.1": - version "2.2.0-beta.1" - resolved "https://registry.yarnpkg.com/@0x/assert/-/assert-2.2.0-beta.1.tgz#eb223440ccb88fda7c3a4674e753ed4f347bbce1" - integrity sha512-4xTkOAIgeeB2YFlRLRJ9NZuHATL4XzViQn5SpgiebQxGYUWGF6R1PxPBBxy9CKX7ISJ13YzV/1hay5a/7xSlHQ== +"@0x/assert@^3.0.2": + version "3.0.2" + resolved "https://registry.yarnpkg.com/@0x/assert/-/assert-3.0.2.tgz#412c6d06807b59d8a7747d32e87ba56c76a4bac8" + integrity sha512-kYRCP/eOoGX3S0zTXskIcy8jA0zxOm20BCDK7EImAQ8HvdmfZr8R6dqUm5UEBLd/JJ6jywR97Y+yCUiteIGg0g== dependencies: - "@0x/json-schemas" "^4.1.0-beta.1" - "@0x/typescript-typings" "^4.4.0-beta.1" - "@0x/utils" "^4.6.0-beta.1" + "@0x/json-schemas" "^5.0.2" + "@0x/typescript-typings" "^5.0.1" + "@0x/utils" "^5.1.1" lodash "^4.17.11" valid-url "^1.0.9" -"@0x/base-contract@^5.5.0-beta.1": - version "5.5.0-beta.1" - resolved "https://registry.yarnpkg.com/@0x/base-contract/-/base-contract-5.5.0-beta.1.tgz#f1917131a850e5cbddbee08640038f39bd056423" - integrity sha512-ui7U02SL9NqaGy/CTlDVagMGguW/LEUvSlmVXwz15mez5tflNGz/Eh2eaZyZ4KLerfeIqH6zW01SN5M400LqpA== - dependencies: - "@0x/assert" "^2.2.0-beta.1" - "@0x/json-schemas" "^4.1.0-beta.1" - "@0x/types" "^2.5.0-beta.1" - "@0x/typescript-typings" "^4.4.0-beta.1" - "@0x/utils" "^4.6.0-beta.1" - "@0x/web3-wrapper" "^6.1.0-beta.1" - ethereum-types "^2.2.0-beta.1" +"@0x/base-contract@^6.0.2": + version "6.0.2" + resolved "https://registry.yarnpkg.com/@0x/base-contract/-/base-contract-6.0.2.tgz#198bad06398bdb58da1b98a93bf41f4322e9a6cd" + integrity sha512-UR6A0KTOqkOLjzaHRy0++WDaWl3Xn6WuaIoAPk9/LD7vnKTCK+NzohCh3pBRbgkkEylng2000jldbDMZkM5FXA== + dependencies: + "@0x/assert" "^3.0.2" + "@0x/json-schemas" "^5.0.2" + "@0x/utils" "^5.1.1" + "@0x/web3-wrapper" "^7.0.2" ethereumjs-account "^3.0.0" ethereumjs-blockstream "^7.0.0" ethereumjs-util "^5.1.1" ethereumjs-vm "^4.0.0" ethers "~4.0.4" js-sha3 "^0.7.0" - lodash "^4.17.11" uuid "^3.3.2" -"@0x/contract-addresses@^3.3.0-beta.2": - version "3.3.0-beta.2" - resolved "https://registry.yarnpkg.com/@0x/contract-addresses/-/contract-addresses-3.3.0-beta.2.tgz#866619dc5418cb59dc922d51323e9749dc3d6048" - integrity sha512-SmZpFCaqr3BEl7ivhDJPkICUgp4TvXNP3sisGOyvDfNHR6HeVEOKgccefyKNEo9HMw3QXzswkGORgezg8sFyKw== +"@0x/contract-addresses@^4.1.0": + version "4.1.0" + resolved "https://registry.yarnpkg.com/@0x/contract-addresses/-/contract-addresses-4.1.0.tgz#baa09961e9773457adca6988051412937b985cb9" + integrity sha512-scx2Gv6//fBj1Gb3AuqiH6s3qTw1mlcUW6YPp1RnjEGtBPH44cc0PvWmyIeOcCAcEZSVGk8glgTR25QrBAPJnw== dependencies: lodash "^4.17.11" -"@0x/contract-artifacts@^2.3.0-beta.2": - version "2.3.0-beta.2" - resolved "https://registry.yarnpkg.com/@0x/contract-artifacts/-/contract-artifacts-2.3.0-beta.2.tgz#39e924b413bd083e9610fec436d9753bef2c7b6c" - integrity sha512-FtG4j4gF8bVCV/qCHfFgCoK2d9CwScePf152mBxmFW8mMwSOZBSUmzUX79uCknpzvqGzIIa7rwAYuoodjPm8Dw== +"@0x/contract-wrappers@^13.2.0": + version "13.2.0" + resolved "https://registry.yarnpkg.com/@0x/contract-wrappers/-/contract-wrappers-13.2.0.tgz#d03e3fd3e70a2b9223ab0409c576378e61dd7ed9" + integrity sha512-XvQFdLIleba6CApbvEzFuHwvvBESzerniWecUjf+1imxOZkqRuxOR8XuvWFSp7XZcU37rRgICABmyK3Csu8Cmw== + dependencies: + "@0x/assert" "^3.0.2" + "@0x/base-contract" "^6.0.2" + "@0x/contract-addresses" "^4.1.0" + "@0x/json-schemas" "^5.0.2" + "@0x/types" "^3.1.1" + "@0x/utils" "^5.1.1" + "@0x/web3-wrapper" "^7.0.2" + ethereum-types "^3.0.0" + ethers "~4.0.4" -"@0x/json-schemas@^4.1.0-beta.1": - version "4.1.0-beta.1" - resolved "https://registry.yarnpkg.com/@0x/json-schemas/-/json-schemas-4.1.0-beta.1.tgz#8f124eecb506573705f124cade1e2be17d7bad65" - integrity sha512-a4yss6TA6qHVbuqetiHKVWAzlZ/54Cy5vdxlgJclMfCJyBKA4/9zMFcp/SBfAYegThg8dQ1ru5qnflFyakBb9w== +"@0x/json-schemas@^5.0.2": + version "5.0.2" + resolved "https://registry.yarnpkg.com/@0x/json-schemas/-/json-schemas-5.0.2.tgz#70d1804141d2b66126ad180e77dc25249819ca74" + integrity sha512-2mwC42aWx6tvOCh58pRyYCSrmdajHdmfbDSCsII/8EOWRI6gYYenRMl/edVMnqKw7FH0QLsfWdx5GeP+jNoxDA== dependencies: - "@0x/typescript-typings" "^4.4.0-beta.1" + "@0x/typescript-typings" "^5.0.1" "@types/node" "*" jsonschema "^1.2.0" lodash.values "^4.3.0" -"@0x/order-utils@8.5.0-beta.1": - version "8.5.0-beta.1" - resolved "https://registry.yarnpkg.com/@0x/order-utils/-/order-utils-8.5.0-beta.1.tgz#9970e067d15397badd3571ca4347714f5207cad1" - integrity sha512-aZe9VgtzqFYDsDKwroxjgHI+cnPu5Vtxa6bk96tr/9MUBvx2EOEvm1pxh4xAVGkjd00CGft9MWS+VcKZww3IzA== - dependencies: - "@0x/abi-gen-wrappers" "^5.4.0-beta.1" - "@0x/assert" "^2.2.0-beta.1" - "@0x/contract-addresses" "^3.3.0-beta.2" - "@0x/contract-artifacts" "^2.3.0-beta.2" - "@0x/json-schemas" "^4.1.0-beta.1" - "@0x/types" "^2.5.0-beta.1" - "@0x/typescript-typings" "^4.4.0-beta.1" - "@0x/utils" "^4.6.0-beta.1" - "@0x/web3-wrapper" "^6.1.0-beta.1" - "@types/node" "*" - bn.js "^4.11.8" - ethereum-types "^2.2.0-beta.1" - ethereumjs-abi "0.6.5" +"@0x/order-utils@^10.0.1": + version "10.0.1" + resolved "https://registry.yarnpkg.com/@0x/order-utils/-/order-utils-10.0.1.tgz#5cd887e70e76df3117051582a01c74087c4cb9fa" + integrity sha512-NZsDciNSQtn3ARPmWc+pNK62GK2miELKryhPwwQzqpQs7bi8RSCTf26TmTMtYeXUg3t0gVfhfRD8FGBur53N9A== + dependencies: + "@0x/assert" "^3.0.2" + "@0x/contract-wrappers" "^13.2.0" + "@0x/json-schemas" "^5.0.2" + "@0x/utils" "^5.1.1" + "@0x/web3-wrapper" "^7.0.2" ethereumjs-util "^5.1.1" ethers "~4.0.4" lodash "^4.17.11" -"@0x/ts-doc-gen@^0.0.16": - version "0.0.16" - resolved "https://registry.yarnpkg.com/@0x/ts-doc-gen/-/ts-doc-gen-0.0.16.tgz#9ac03483803c89c5fd774a95d99a4cb0db070f69" - integrity sha512-jE2QPR0257Pa7MURN7NFB6F2bnEWvcHvvYTdSzLvFMmibQEa+5b0jron4NaK7TCseWFnKJD/psTbyXMResTnsQ== +"@0x/ts-doc-gen@^0.0.23": + version "0.0.23" + resolved "https://registry.yarnpkg.com/@0x/ts-doc-gen/-/ts-doc-gen-0.0.23.tgz#0998a5d1de88677e3bacce9b09481b73bd53f4c8" + integrity sha512-z7GuxEYBIWcN2sWFksyptLwt4Sxv+OAKIWyWSCjPfmqKXZKkl0htCC3tUa/Zuio+Er+eZ7aydOv5Qyt2Z61N+Q== dependencies: - "@0x/typescript-typings" "^4.2.2" - "@0x/utils" "^4.3.3" + "@0x/typescript-typings" "^5.0.1" + "@0x/utils" "^5.1.1" glob "^7.1.4" promisify-child-process "^3.1.1" rimraf "^2.6.3" @@ -107,10 +90,10 @@ typedoc-plugin-markdown "^2.1.0" yargs "^10.0.3" -"@0x/tslint-config@^3.1.0-beta.1": - version "3.1.0-beta.1" - resolved "https://registry.yarnpkg.com/@0x/tslint-config/-/tslint-config-3.1.0-beta.1.tgz#fca8fddef88703a2c5bfc07017aabfe6b268b4c4" - integrity sha512-GFVBstcYNNtM0MYWEhFlcv7sRZY3YtrNaZ2Oav6D9YJJ2V3EpdPH8urnoLYkng45p+iXDhAdHxsL3EyglgGRiw== +"@0x/tslint-config@^4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@0x/tslint-config/-/tslint-config-4.0.0.tgz#f73eb8d4b84e8825e986df787711dc68ed896b46" + integrity sha512-kFTp6huh3aAzxBr+41LYyYSS4P040vdAcyVRYfQE6jvtzVCG0NpMo5x3RVdXJrQxGJ1yAUMLaWYT3QOzFhIhJg== dependencies: lodash "^4.17.11" tslint "5.11.0" @@ -118,102 +101,63 @@ tslint-react "^3.2.0" tsutils "3.0.0" -"@0x/types@^2.4.1": - version "2.4.1" - resolved "https://registry.yarnpkg.com/@0x/types/-/types-2.4.1.tgz#41a42185dcd093b19ef0d4595a432b285aae4746" - integrity sha512-gJrpxwoV1c1rSWg94RH1fLdfMCwaSCene8p4ckCgwmOzoLaD9Oj1ImErgjzGhmbPugwn6n5HnjoU7cQzeek4nw== - dependencies: - "@types/node" "*" - bignumber.js "~8.0.2" - ethereum-types "^2.1.4" - -"@0x/types@^2.5.0-beta.1": - version "2.5.0-beta.1" - resolved "https://registry.yarnpkg.com/@0x/types/-/types-2.5.0-beta.1.tgz#af1958d1a2721fd0efd63551ac3414acbd4b1e60" - integrity sha512-5Y8Ml8iuV6gByleNdMZlkrwZNuF54bFtyLYeWgbHozF2eEWqDQd58Dd4ZP/L8N5ABxw1yeA+71YVVHj225yZtg== +"@0x/types@^3.1.1": + version "3.1.1" + resolved "https://registry.yarnpkg.com/@0x/types/-/types-3.1.1.tgz#b20ca76e9516201b9c27621f941696f41ffc9fac" + integrity sha512-+TQmzH+chWeDWpc+Lce3/q4X2UEHFfAwZcWrV7tEQ5EVAJvph7gpKawRW2XRsmHeQDSHBmiiBdSZ8Rc/OAjvlQ== dependencies: "@types/node" "*" - bignumber.js "~8.0.2" - ethereum-types "^2.2.0-beta.1" + bignumber.js "~9.0.0" + ethereum-types "^3.0.0" -"@0x/typescript-typings@^4.2.2", "@0x/typescript-typings@^4.2.4": - version "4.2.4" - resolved "https://registry.yarnpkg.com/@0x/typescript-typings/-/typescript-typings-4.2.4.tgz#0858639ddfdf7e9e1a3f9fd8f7d8f2e8ebfdce85" - integrity sha512-yIg8q/bj9+Y0OzNuq59D3JDe4OoQR3bU2QKy+7d8NV6CIfA0GqfWWS+JFdUB45S45qT5P0EmThh/szQ7zuW4oQ== +"@0x/typescript-typings@^5.0.1": + version "5.0.1" + resolved "https://registry.yarnpkg.com/@0x/typescript-typings/-/typescript-typings-5.0.1.tgz#031e291cc506ecd26d3fe10adf618f4f51ff1510" + integrity sha512-zSA39URHkFnL16WD30VMa8wL8va0Khpx9APHffdPWpBOr9SUPdADtae5HO4iNCYvSgo3mrtPlKID2nIqREIHOQ== dependencies: "@types/bn.js" "^4.11.0" "@types/react" "*" - bignumber.js "~8.0.2" - ethereum-types "^2.1.4" + bignumber.js "~9.0.0" + ethereum-types "^3.0.0" popper.js "1.14.3" -"@0x/typescript-typings@^4.4.0-beta.1": - version "4.4.0-beta.1" - resolved "https://registry.yarnpkg.com/@0x/typescript-typings/-/typescript-typings-4.4.0-beta.1.tgz#4cc60e94ea61258d065d8b4eacd5a49bc6645b93" - integrity sha512-FKj7xSrlhVLCM8AeotsGdJ9iJEGh5hLWxQ3cLHbSZ3E1NHEy6Ffw794kTeL09G8QGKFpgknEiznpz0EA6S/yOQ== - dependencies: - "@types/bn.js" "^4.11.0" - "@types/react" "*" - bignumber.js "~8.0.2" - ethereum-types "^2.2.0-beta.1" - popper.js "1.14.3" - -"@0x/utils@4.6.0-beta.1", "@0x/utils@^4.6.0-beta.1": - version "4.6.0-beta.1" - resolved "https://registry.yarnpkg.com/@0x/utils/-/utils-4.6.0-beta.1.tgz#5c975e381d497b76365e223130fa47e950df8a6e" - integrity sha512-CILwtJGgxhYQib+0THQl6qgSwAekeoohKIswjxVG+CV/4Yb1N+9EgimX+wKMvgisdylC6Z/g9BQFtZaFSmJ8MA== - dependencies: - "@0x/types" "^2.5.0-beta.1" - "@0x/typescript-typings" "^4.4.0-beta.1" - "@types/node" "*" - abortcontroller-polyfill "^1.1.9" - bignumber.js "~8.0.2" - chalk "^2.3.0" - detect-node "2.0.3" - ethereum-types "^2.2.0-beta.1" - ethereumjs-util "^5.1.1" - ethers "~4.0.4" - isomorphic-fetch "2.2.1" - js-sha3 "^0.7.0" - lodash "^4.17.11" - -"@0x/utils@^4.3.3": - version "4.5.0" - resolved "https://registry.yarnpkg.com/@0x/utils/-/utils-4.5.0.tgz#b5780ea76f4553ef458c4dddc970262c5d6cee75" - integrity sha512-tdMpfccExkuuVDznJBJ0m813GocNv0RdyHckmjPQVdpaAlcehY6u9WB2+b8O9Coop5l8p1Y71Z4DeNuFrEqHpQ== +"@0x/utils@^5.1.1": + version "5.1.1" + resolved "https://registry.yarnpkg.com/@0x/utils/-/utils-5.1.1.tgz#1895529b5ec313f7056819458c8f55fbb19256cb" + integrity sha512-DRNKtAqZR0vFA1XdUhBwaIz2qEjWS1xqdvzQl/Dn8OLJH+1sxb+1UmtG6fOlbu7pTLbF+CWoaYf2+pvQfcF//g== dependencies: - "@0x/types" "^2.4.1" - "@0x/typescript-typings" "^4.2.4" + "@0x/types" "^3.1.1" + "@0x/typescript-typings" "^5.0.1" "@types/node" "*" abortcontroller-polyfill "^1.1.9" - bignumber.js "~8.0.2" + bignumber.js "~9.0.0" chalk "^2.3.0" detect-node "2.0.3" - ethereum-types "^2.1.4" + ethereum-types "^3.0.0" ethereumjs-util "^5.1.1" ethers "~4.0.4" isomorphic-fetch "2.2.1" js-sha3 "^0.7.0" lodash "^4.17.11" -"@0x/web3-wrapper@^6.1.0-beta.1": - version "6.1.0-beta.1" - resolved "https://registry.yarnpkg.com/@0x/web3-wrapper/-/web3-wrapper-6.1.0-beta.1.tgz#ed61d1308a446c45ed96bd10c34d3dc341f0b287" - integrity sha512-QhbUXhgUXPaYId+M9Vnpi+dtT8GlgMh53cL4tu8DU10s3Yjrdo0KqvUoRQQa4zcXhx+QB08ovWzOIfusSFFbKA== +"@0x/web3-wrapper@^7.0.2": + version "7.0.2" + resolved "https://registry.yarnpkg.com/@0x/web3-wrapper/-/web3-wrapper-7.0.2.tgz#afdd12a3c2518207d56372397ae91e4a90634f46" + integrity sha512-kSmrg0E0ZmuNKTKmanxHlRUO5dom8Wr2eDmgG+NZcuWY3EJKIkuxFsz6KRUfoYbVOVT22ZQZazzZIGwoz/LObg== dependencies: - "@0x/assert" "^2.2.0-beta.1" - "@0x/json-schemas" "^4.1.0-beta.1" - "@0x/typescript-typings" "^4.4.0-beta.1" - "@0x/utils" "^4.6.0-beta.1" - ethereum-types "^2.2.0-beta.1" + "@0x/assert" "^3.0.2" + "@0x/json-schemas" "^5.0.2" + "@0x/typescript-typings" "^5.0.1" + "@0x/utils" "^5.1.1" + ethereum-types "^3.0.0" ethereumjs-util "^5.1.1" ethers "~4.0.4" lodash "^4.17.11" "@babel/runtime@^7.1.5": - version "7.5.5" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.5.5.tgz#74fba56d35efbeca444091c7850ccd494fd2f132" - integrity sha512-28QvEGyQyNkB0/m2B4FU7IEZGK2NUrcMtT6BZEFALTguLk+AUT6ofsHtPk5QyjAdUkpMJ+/Em+quwz4HOt30AQ== + version "7.7.7" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.7.7.tgz#194769ca8d6d7790ec23605af9ee3e42a0aa79cf" + integrity sha512-uCnC2JEVAu8AKB5do1WRIsvrdJ0flYx/A/9f/6chdacnEZ7LmavjdsDXr5ksYBegxtuTPR5Va9/+13QF/kFkCA== dependencies: regenerator-runtime "^0.13.2" @@ -222,7 +166,7 @@ resolved "https://registry.yarnpkg.com/@types/base64-arraybuffer/-/base64-arraybuffer-0.1.0.tgz#739eea0a974d13ae831f96d97d882ceb0b187543" integrity sha512-oyV0CGER7tX6OlfnLfGze0XbsA7tfRuTtsQ2JbP8K5KBUzc24yoYRD+0XjMRQgOejvZWeIbtkNaHlE8akzj4aQ== -"@types/bn.js@^4.11.0": +"@types/bn.js@^4.11.0", "@types/bn.js@^4.11.3": version "4.11.5" resolved "https://registry.yarnpkg.com/@types/bn.js/-/bn.js-4.11.5.tgz#40e36197433f78f807524ec623afcf0169ac81dc" integrity sha512-AEAZcIZga0JgVMHNtl1CprA/hXX7/wPt79AgR4XqaDt7jyj3QWYw6LPoOiznPtugDmlubUnAahMs2PFxGcQrng== @@ -235,32 +179,27 @@ integrity sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA== "@types/node@*": - version "12.7.2" - resolved "https://registry.yarnpkg.com/@types/node/-/node-12.7.2.tgz#c4e63af5e8823ce9cc3f0b34f7b998c2171f0c44" - integrity sha512-dyYO+f6ihZEtNPDcWNR1fkoTDf3zAK3lAABDze3mz6POyIercH0lEUawUFXlG8xaQZmm1yEBON/4TsYv/laDYg== - -"@types/node@^10.3.2": - version "10.14.16" - resolved "https://registry.yarnpkg.com/@types/node/-/node-10.14.16.tgz#4d690c96cbb7b2728afea0e260d680501b3da5cf" - integrity sha512-/opXIbfn0P+VLt+N8DE4l8Mn8rbhiJgabU96ZJ0p9mxOkIks5gh6RUnpHak7Yh0SFkyjO/ODbxsQQPV2bpMmyA== + version "12.12.21" + resolved "https://registry.yarnpkg.com/@types/node/-/node-12.12.21.tgz#aa44a6363291c7037111c47e4661ad210aded23f" + integrity sha512-8sRGhbpU+ck1n0PGAUgVrWrWdjSW2aqNeyC15W88GRsMpSwzv6RJGlLhE7s2RhVSOdyDmxbqlWSeThq4/7xqlA== "@types/prop-types@*": - version "15.7.1" - resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.1.tgz#f1a11e7babb0c3cad68100be381d1e064c68f1f6" - integrity sha512-CFzn9idOEpHrgdw8JsoTkaDDyRWk1jrzIV8djzcgpq0y9tG4B4lFT+Nxh52DVpDXV+n4+NPNv7M1Dj5uMp6XFg== + version "15.7.3" + resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.3.tgz#2ab0d5da2e5815f94b0b9d4b95d1e5f243ab2ca7" + integrity sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw== "@types/react@*": - version "16.9.2" - resolved "https://registry.yarnpkg.com/@types/react/-/react-16.9.2.tgz#6d1765431a1ad1877979013906731aae373de268" - integrity sha512-jYP2LWwlh+FTqGd9v7ynUKZzjj98T8x7Yclz479QdRhHfuW9yQ+0jjnD31eXSXutmBpppj5PYNLYLRfnZJvcfg== + version "16.9.17" + resolved "https://registry.yarnpkg.com/@types/react/-/react-16.9.17.tgz#58f0cc0e9ec2425d1441dd7b623421a867aa253e" + integrity sha512-UP27In4fp4sWF5JgyV6pwVPAQM83Fj76JOcg02X5BZcpSu5Wx+fP9RMqc2v0ssBoQIFvD5JdKY41gjJJKmw6Bg== dependencies: "@types/prop-types" "*" csstype "^2.2.0" abortcontroller-polyfill@^1.1.9: - version "1.3.0" - resolved "https://registry.yarnpkg.com/abortcontroller-polyfill/-/abortcontroller-polyfill-1.3.0.tgz#de69af32ae926c210b7efbcc29bf644ee4838b00" - integrity sha512-lbWQgf+eRvku3va8poBlDBO12FigTQr9Zb7NIjXrePrhxWVKdCP2wbDl1tLDaYa18PWTom3UEWwdH13S46I+yA== + version "1.4.0" + resolved "https://registry.yarnpkg.com/abortcontroller-polyfill/-/abortcontroller-polyfill-1.4.0.tgz#0d5eb58e522a461774af8086414f68e1dda7a6c4" + integrity sha512-3ZFfCRfDzx3GFjO6RAkYx81lPGpUS20ISxux9gLxuKnqafNcFQo59+IoZqpO2WvQlyc287B62HDnDdNYRmlvWA== abstract-leveldown@^5.0.0, abstract-leveldown@~5.0.0: version "5.0.0" @@ -362,10 +301,10 @@ base64-arraybuffer@^0.2.0: resolved "https://registry.yarnpkg.com/base64-arraybuffer/-/base64-arraybuffer-0.2.0.tgz#4b944fac0191aa5907afe2d8c999ccc57ce80f45" integrity sha512-7emyCsu1/xiBXgQZrscw/8KPRT44I4Yq9Pe6EGs3aPRTsWuggML1/1DTuZUuIaJPIm1FTDUVXl4x/yW8s0kQDQ== -bignumber.js@~8.0.2: - version "8.0.2" - resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-8.0.2.tgz#d8c4e1874359573b1ef03011a2d861214aeef137" - integrity sha512-EiuvFrnbv0jFixEQ9f58jo7X0qI2lNGIr/MxntmVzQc5JUweDSh8y8hbTCAomFtqwUPIOWcLXP0VEOSZTG7FFw== +bignumber.js@~9.0.0: + version "9.0.0" + resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-9.0.0.tgz#805880f84a329b5eac6e7cb6f8274b6d82bdf075" + integrity sha512-t/OYhhJ2SD+YGBQcjY8GzzDHEk9f3nerxjtfa6tlMXfe7frs/WozhvCNoGvpM0P3bNf3Gq5ZRMlGr5f3r4/N8A== bindings@^1.2.1, bindings@^1.5.0: version "1.5.0" @@ -381,7 +320,7 @@ bip66@^1.1.5: dependencies: safe-buffer "^5.0.1" -bn.js@^4.0.0, bn.js@^4.10.0, bn.js@^4.11.0, bn.js@^4.11.1, bn.js@^4.11.8, bn.js@^4.4.0, bn.js@^4.8.0: +bn.js@^4.0.0, bn.js@^4.11.0, bn.js@^4.11.1, bn.js@^4.11.8, bn.js@^4.4.0, bn.js@^4.8.0: version "4.11.8" resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.8.tgz#2cde09eb5ee341f484746bb0309b3253b1b1442f" integrity sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA== @@ -508,10 +447,10 @@ color-name@1.1.3: resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU= -commander@^2.12.1, commander@~2.20.0: - version "2.20.0" - resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.0.tgz#d58bb2b5c1ee8f87b0d340027e9e94e222c5a422" - integrity sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ== +commander@^2.12.1, commander@~2.20.3: + version "2.20.3" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" + integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== concat-map@0.0.1: version "0.0.1" @@ -519,9 +458,9 @@ concat-map@0.0.1: integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= core-js-pure@^3.0.1: - version "3.2.1" - resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.2.1.tgz#879a23699cff46175bfd2d09158b5c50645a3c45" - integrity sha512-+qpvnYrsi/JDeQTArB7NnNc2VoMYLE1YSkziCDHgjexC2KH7OFiGhLUd3urxfyWmNjSwSW7NYXPWHMhuIJx9Ow== + version "3.6.0" + resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.6.0.tgz#c86e14d9316659af04dd54266addc9271f6164f8" + integrity sha512-+YSSo7UFDFuVvMUr1HVFYArb22pYIKRDISBo6V50kRuS0MsXgsuDWmJYFu6dJsJupr77S486xRnDkr/BWQQonw== core-util-is@~1.0.0: version "1.0.2" @@ -561,9 +500,9 @@ cross-spawn@^5.0.1: which "^1.2.9" csstype@^2.2.0: - version "2.6.6" - resolved "https://registry.yarnpkg.com/csstype/-/csstype-2.6.6.tgz#c34f8226a94bbb10c32cc0d714afdf942291fc41" - integrity sha512-RpFbQGUE74iyPgvr46U9t1xoQBM8T4BL8SxrN66Le2xYAPSaDJJKeztV3awugusb3g3G9iL8StmkBBXhcbbXhg== + version "2.6.8" + resolved "https://registry.yarnpkg.com/csstype/-/csstype-2.6.8.tgz#0fb6fc2417ffd2816a418c9336da74d7f07db431" + integrity sha512-msVS9qTuMT5zwAGCVm4mxfrZ18BNc6Csd0oJAtiFMZ1FAx1CCvy2+5MDmYoix63LM/6NDbNtodCiGYGmFgO0dA== decamelize@^1.1.1: version "1.2.0" @@ -619,20 +558,10 @@ drbg.js@^1.0.1: create-hash "^1.1.2" create-hmac "^1.1.4" -elliptic@6.3.3: - version "6.3.3" - resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.3.3.tgz#5482d9646d54bcb89fd7d994fc9e2e9568876e3f" - integrity sha1-VILZZG1UvLif19mU/J4ulWiHbj8= - dependencies: - bn.js "^4.4.0" - brorand "^1.0.1" - hash.js "^1.0.0" - inherits "^2.0.1" - -elliptic@^6.4.1: - version "6.5.0" - resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.0.tgz#2b8ed4c891b7de3200e14412a5b8248c7af505ca" - integrity sha512-eFOJTMyCYb7xtE/caJ6JJu+bhi67WCYNbkGSknu20pmM8Ke/bqOfdnZWxyoGN26JgfxTbXrsCkEw4KheCT/KGg== +elliptic@6.5.2, elliptic@^6.5.2: + version "6.5.2" + resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.2.tgz#05c5678d7173c049d8ca433552224a495d0e3762" + integrity sha512-f4x70okzZbIQl/NSRLkI/+tteV/9WqL98zx+SQ69KbXxmVrmjwsNUPn/gYJJ0sHvEak24cZgHIPegRePAtA/xw== dependencies: bn.js "^4.4.0" brorand "^1.0.1" @@ -667,26 +596,27 @@ errno@~0.1.1: dependencies: prr "~1.0.1" -es-abstract@^1.5.1: - version "1.15.0" - resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.15.0.tgz#8884928ec7e40a79e3c9bc812d37d10c8b24cc57" - integrity sha512-bhkEqWJ2t2lMeaJDuk7okMkJWI/yqgH/EoGwpcvv0XW9RWQsRspI4wt6xuyuvMvvQE3gg/D9HXppgk21w78GyQ== +es-abstract@^1.17.0-next.1: + version "1.17.0-next.1" + resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.17.0-next.1.tgz#94acc93e20b05a6e96dacb5ab2f1cb3a81fc2172" + integrity sha512-7MmGr03N7Rnuid6+wyhD9sHNE2n4tFSwExnU2lQl3lIo2ShXWGePY80zYaoMOmILWv57H0amMjZGHNzzGG70Rw== dependencies: - es-to-primitive "^1.2.0" + es-to-primitive "^1.2.1" function-bind "^1.1.1" has "^1.0.3" - has-symbols "^1.0.0" + has-symbols "^1.0.1" is-callable "^1.1.4" is-regex "^1.0.4" - object-inspect "^1.6.0" + object-inspect "^1.7.0" object-keys "^1.1.1" + object.assign "^4.1.0" string.prototype.trimleft "^2.1.0" string.prototype.trimright "^2.1.0" -es-to-primitive@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.0.tgz#edf72478033456e8dda8ef09e00ad9650707f377" - integrity sha512-qZryBOJjV//LaxLTV6UC//WewneB3LcXOL9NP++ozKVXsIIIpm/2c13UDiD9Jp2eThsecw9m3jPqDwTyobcdbg== +es-to-primitive@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.1.tgz#e55cd4c9cdc188bcefb03b366c736323fc5c898a" + integrity sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA== dependencies: is-callable "^1.1.4" is-date-object "^1.0.1" @@ -722,34 +652,13 @@ ethashjs@~0.0.7: ethereumjs-util "^4.0.1" miller-rabin "^4.0.0" -ethereum-common@^0.0.18: - version "0.0.18" - resolved "https://registry.yarnpkg.com/ethereum-common/-/ethereum-common-0.0.18.tgz#2fdc3576f232903358976eb39da783213ff9523f" - integrity sha1-L9w1dvIykDNYl26znaeDIT/5Uj8= - -ethereum-types@^2.1.4: - version "2.1.4" - resolved "https://registry.yarnpkg.com/ethereum-types/-/ethereum-types-2.1.4.tgz#5e3f5fd562f354d6334500af7a10bea10da0c7c4" - integrity sha512-plsM51Nj4+yC0G5Z+cxWxQ7OTtwnjKDCT6GZyrpt6NVKTANc5woJTJsjvye2o0xwbbtu89/npFvXpH6D5ohwSA== - dependencies: - "@types/node" "*" - bignumber.js "~8.0.2" - -ethereum-types@^2.2.0-beta.1: - version "2.2.0-beta.1" - resolved "https://registry.yarnpkg.com/ethereum-types/-/ethereum-types-2.2.0-beta.1.tgz#63f51a414e9dd4f6281df4f4d5a6fe780f976705" - integrity sha512-BBoTEFHaMmmNTMsWMuHd8Bzno2uQbKW4JLHPjZ9TxOEb4IZQOrAhYJ1hAVZ1k3KL2ELg7zMX3B4bPvBXauzatw== +ethereum-types@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/ethereum-types/-/ethereum-types-3.0.0.tgz#9fa3a98b8b9b64a0fab1864de7bc7fd7b1699fcd" + integrity sha512-jRSsiua+e4/89r7M3mqPcP1M2f3TgXxpVmWysy+7pEg2H4lwEQRWarbYfIpWp81NtxrcMQv5bMK+yR1MN4sDpg== dependencies: "@types/node" "*" - bignumber.js "~8.0.2" - -ethereumjs-abi@0.6.5: - version "0.6.5" - resolved "https://registry.yarnpkg.com/ethereumjs-abi/-/ethereumjs-abi-0.6.5.tgz#5a637ef16ab43473fa72a29ad90871405b3f5241" - integrity sha1-WmN+8Wq0NHP6cqKa2QhxQFs/UkE= - dependencies: - bn.js "^4.10.0" - ethereumjs-util "^4.3.0" + bignumber.js "~9.0.0" ethereumjs-account@^3.0.0: version "3.0.0" @@ -760,26 +669,26 @@ ethereumjs-account@^3.0.0: rlp "^2.2.1" safe-buffer "^5.1.1" -ethereumjs-block@~2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/ethereumjs-block/-/ethereumjs-block-2.2.0.tgz#8c6c3ab4a5eff0a16d9785fbeedbe643f4dbcbef" - integrity sha512-Ye+uG/L2wrp364Zihdlr/GfC3ft+zG8PdHcRtsBFNNH1CkOhxOwdB8friBU85n89uRZ9eIMAywCq0F4CwT1wAw== +ethereumjs-block@^2.2.2, ethereumjs-block@~2.2.2: + version "2.2.2" + resolved "https://registry.yarnpkg.com/ethereumjs-block/-/ethereumjs-block-2.2.2.tgz#c7654be7e22df489fda206139ecd63e2e9c04965" + integrity sha512-2p49ifhek3h2zeg/+da6XpdFR3GlqY3BIEiqxGF8j9aSRIgkb7M1Ky+yULBKJOu8PAZxfhsYA+HxUk2aCQp3vg== dependencies: async "^2.0.1" - ethereumjs-common "^1.1.0" - ethereumjs-tx "^1.2.2" + ethereumjs-common "^1.5.0" + ethereumjs-tx "^2.1.1" ethereumjs-util "^5.0.0" merkle-patricia-tree "^2.1.2" -ethereumjs-blockchain@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/ethereumjs-blockchain/-/ethereumjs-blockchain-4.0.1.tgz#db113dfed4fcc5197d223391f10adbc5a1b3536b" - integrity sha512-twf2yeyzeBXzCgclLyF9wZEyCKbCweM2KZdZkTsnlqGgaffgnSgY44+z+9BHUIVoWY+gxMj+XsTlTgVcbha8rg== +ethereumjs-blockchain@^4.0.3: + version "4.0.3" + resolved "https://registry.yarnpkg.com/ethereumjs-blockchain/-/ethereumjs-blockchain-4.0.3.tgz#e013034633a30ad2006728e8e2b21956b267b773" + integrity sha512-0nJWbyA+Gu0ZKZr/cywMtB/77aS/4lOVsIKbgUN2sFQYscXO5rPbUfrEe7G2Zhjp86/a0VqLllemDSTHvx3vZA== dependencies: async "^2.6.1" ethashjs "~0.0.7" - ethereumjs-block "~2.2.0" - ethereumjs-common "^1.1.0" + ethereumjs-block "~2.2.2" + ethereumjs-common "^1.5.0" ethereumjs-util "~6.1.0" flow-stoplight "^1.0.0" level-mem "^3.0.1" @@ -796,28 +705,20 @@ ethereumjs-blockstream@^7.0.0: source-map-support "0.5.6" uuid "3.2.1" -ethereumjs-common@^1.1.0, ethereumjs-common@^1.3.1, ethereumjs-common@^1.3.2: - version "1.3.2" - resolved "https://registry.yarnpkg.com/ethereumjs-common/-/ethereumjs-common-1.3.2.tgz#5a20831e52199a31ff4b68ef361e34c05c976ed0" - integrity sha512-GkltYRIqBLzaZLmF/K3E+g9lZ4O4FL+TtpisAlD3N+UVlR+mrtoG+TvxavqVa6PwOY4nKIEMe5pl6MrTio3Lww== - -ethereumjs-tx@^1.2.2: - version "1.3.7" - resolved "https://registry.yarnpkg.com/ethereumjs-tx/-/ethereumjs-tx-1.3.7.tgz#88323a2d875b10549b8347e09f4862b546f3d89a" - integrity sha512-wvLMxzt1RPhAQ9Yi3/HKZTn0FZYpnsmQdbKYfUUpi4j1SEIcbkd9tndVjcPrufY3V7j2IebOpC00Zp2P/Ay2kA== - dependencies: - ethereum-common "^0.0.18" - ethereumjs-util "^5.0.0" +ethereumjs-common@^1.5.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/ethereumjs-common/-/ethereumjs-common-1.5.0.tgz#d3e82fc7c47c0cef95047f431a99485abc9bb1cd" + integrity sha512-SZOjgK1356hIY7MRj3/ma5qtfr/4B5BL+G4rP/XSMYr2z1H5el4RX5GReYCKmQmYI/nSBmRnwrZ17IfHuG0viQ== -ethereumjs-tx@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/ethereumjs-tx/-/ethereumjs-tx-2.1.1.tgz#7d204e2b319156c9bc6cec67e9529424a26e8ccc" - integrity sha512-QtVriNqowCFA19X9BCRPMgdVNJ0/gMBS91TQb1DfrhsbR748g4STwxZptFAwfqehMyrF8rDwB23w87PQwru0wA== +ethereumjs-tx@^2.1.1, ethereumjs-tx@^2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/ethereumjs-tx/-/ethereumjs-tx-2.1.2.tgz#5dfe7688bf177b45c9a23f86cf9104d47ea35fed" + integrity sha512-zZEK1onCeiORb0wyCXUvg94Ve5It/K6GD1K+26KfFKodiBiS6d9lfCXlUKGBBdQ+bv7Day+JK0tj1K+BeNFRAw== dependencies: - ethereumjs-common "^1.3.1" + ethereumjs-common "^1.5.0" ethereumjs-util "^6.0.0" -ethereumjs-util@^4.0.1, ethereumjs-util@^4.3.0: +ethereumjs-util@^4.0.1: version "4.5.0" resolved "https://registry.yarnpkg.com/ethereumjs-util/-/ethereumjs-util-4.5.0.tgz#3e9428b317eebda3d7260d854fddda954b1f1bc6" integrity sha1-PpQosxfuvaPXJg2FT93alUsfG8Y= @@ -841,7 +742,20 @@ ethereumjs-util@^5.0.0, ethereumjs-util@^5.1.1: safe-buffer "^5.1.1" secp256k1 "^3.0.1" -ethereumjs-util@^6.0.0, ethereumjs-util@^6.1.0, ethereumjs-util@~6.1.0: +ethereumjs-util@^6.0.0, ethereumjs-util@^6.2.0: + version "6.2.0" + resolved "https://registry.yarnpkg.com/ethereumjs-util/-/ethereumjs-util-6.2.0.tgz#23ec79b2488a7d041242f01e25f24e5ad0357960" + integrity sha512-vb0XN9J2QGdZGIEKG2vXM+kUdEivUfU6Wmi5y0cg+LRhDYKnXIZ/Lz7XjFbHRR9VIKq2lVGLzGBkA++y2nOdOQ== + dependencies: + "@types/bn.js" "^4.11.3" + bn.js "^4.11.0" + create-hash "^1.1.2" + ethjs-util "0.1.6" + keccak "^2.0.0" + rlp "^2.2.3" + secp256k1 "^3.0.1" + +ethereumjs-util@~6.1.0: version "6.1.0" resolved "https://registry.yarnpkg.com/ethereumjs-util/-/ethereumjs-util-6.1.0.tgz#e9c51e5549e8ebd757a339cc00f5380507e799c8" integrity sha512-URESKMFbDeJxnAxPppnk2fN6Y3BIatn9fwn76Lm8bQlt+s52TpG8dN9M66MLPuRAiAOIqL3dfwqWJf0sd0fL0Q== @@ -855,19 +769,19 @@ ethereumjs-util@^6.0.0, ethereumjs-util@^6.1.0, ethereumjs-util@~6.1.0: secp256k1 "^3.0.1" ethereumjs-vm@^4.0.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/ethereumjs-vm/-/ethereumjs-vm-4.1.0.tgz#359ed3592636390a5b2909a28d955c908830daa5" - integrity sha512-qvgmKkyF+eZ6NvtqTV74z9oRB7UxUStA0gShEbXftovpukVIYVzhvCl9KvUi64Rpo8jufze6Z0zHhiQpZN0Izw== + version "4.1.2" + resolved "https://registry.yarnpkg.com/ethereumjs-vm/-/ethereumjs-vm-4.1.2.tgz#02c946f54c52be6f124cf74a30a147326ba344d1" + integrity sha512-Zxz/i0u6+74kZ/0UEAbCd2WCSTuS0jPM9LnM9TUGXDbffrkULb1tIBcgHWqYsARGCQJGMDZj5FKDtUJ04Heowg== dependencies: async "^2.1.2" async-eventemitter "^0.2.2" core-js-pure "^3.0.1" ethereumjs-account "^3.0.0" - ethereumjs-block "~2.2.0" - ethereumjs-blockchain "^4.0.1" - ethereumjs-common "^1.3.2" - ethereumjs-tx "^2.1.1" - ethereumjs-util "^6.1.0" + ethereumjs-block "^2.2.2" + ethereumjs-blockchain "^4.0.3" + ethereumjs-common "^1.5.0" + ethereumjs-tx "^2.1.2" + ethereumjs-util "^6.2.0" fake-merkle-patricia-tree "^1.0.1" functional-red-black-tree "^1.0.1" merkle-patricia-tree "^2.3.2" @@ -876,14 +790,13 @@ ethereumjs-vm@^4.0.0: util.promisify "^1.0.0" ethers@~4.0.4: - version "4.0.33" - resolved "https://registry.yarnpkg.com/ethers/-/ethers-4.0.33.tgz#f7b88d2419d731a39aefc37843a3f293e396f918" - integrity sha512-lAHkSPzBe0Vj+JrhmkEHLtUEKEheVktIjGDyE9gbzF4zf1vibjYgB57LraDHu4/ItqWVkztgsm8GWqcDMN+6vQ== + version "4.0.40" + resolved "https://registry.yarnpkg.com/ethers/-/ethers-4.0.40.tgz#6e1963d10b5d336a13cd81b519c230cc17624653" + integrity sha512-MC9BtV7Hpq4dgFONEfanx9aU9GhhoWU270F+/wegHZXA7FR+2KXFdt36YIQYLmVY5ykUWswDxd+f9EVkIa7JOA== dependencies: - "@types/node" "^10.3.2" aes-js "3.0.0" bn.js "^4.4.0" - elliptic "6.3.3" + elliptic "6.5.2" hash.js "1.1.3" js-sha3 "0.5.7" scrypt-js "2.0.4" @@ -979,9 +892,9 @@ get-stream@^3.0.0: integrity sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ= glob@^7.0.0, glob@^7.1.1, glob@^7.1.3, glob@^7.1.4: - version "7.1.4" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.4.tgz#aa608a2f6c577ad357e1ae5a5c26d9a8d1969255" - integrity sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A== + version "7.1.6" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6" + integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA== dependencies: fs.realpath "^1.0.0" inflight "^1.0.4" @@ -991,14 +904,14 @@ glob@^7.0.0, glob@^7.1.1, glob@^7.1.3, glob@^7.1.4: path-is-absolute "^1.0.0" graceful-fs@^4.1.6, graceful-fs@^4.2.0: - version "4.2.2" - resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.2.tgz#6f0952605d0140c1cfdb138ed005775b92d67b02" - integrity sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q== + version "4.2.3" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.3.tgz#4a12ff1b60376ef09862c2093edd908328be8423" + integrity sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ== -handlebars@^4.1.2: - version "4.1.2" - resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.1.2.tgz#b6b37c1ced0306b221e094fc7aca3ec23b131b67" - integrity sha512-nvfrjqvt9xQ8Z/w0ijewdD/vvWDTOweBUm96NTr66Wfvo1mJenBLwcYmPs3TIBP5ruzYGD7Hx/DaM9RmhroGPw== +handlebars@^4.5.3: + version "4.5.3" + resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.5.3.tgz#5cf75bd8714f7605713511a56be7c349becb0482" + integrity sha512-3yPecJoJHK/4c6aZhSvxOyG4vJKDshV36VHp0iVCDVh7o9w2vwi3NSnL2MMPj3YdduqaBcu7cGbggJQM0br9xA== dependencies: neo-async "^2.6.0" optimist "^0.6.1" @@ -1018,12 +931,12 @@ has-flag@^3.0.0: resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" integrity sha1-tdRU3CGZriJWmfNGfloH87lVuv0= -has-symbols@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.0.tgz#ba1a8f1af2a0fc39650f5c850367704122063b44" - integrity sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q= +has-symbols@^1.0.0, has-symbols@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.1.tgz#9f5214758a44196c406d9bd76cebf81ec2dd31e8" + integrity sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg== -has@^1.0.1, has@^1.0.3: +has@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw== @@ -1054,10 +967,12 @@ hash.js@^1.0.0, hash.js@^1.0.3: inherits "^2.0.3" minimalistic-assert "^1.0.1" -highlight.js@^9.15.8: - version "9.15.10" - resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-9.15.10.tgz#7b18ed75c90348c045eef9ed08ca1319a2219ad2" - integrity sha512-RoV7OkQm0T3os3Dd2VHLNMoaoDVx77Wygln3n9l5YV172XonWG6rgQD3XnF/BuFFZw9A0TJgmMSO8FEWQgvcXw== +highlight.js@^9.17.1: + version "9.17.1" + resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-9.17.1.tgz#14a4eded23fd314b05886758bb906e39dd627f9a" + integrity sha512-TA2/doAur5Ol8+iM3Ov7qy3jYcr/QiJ2eDTdRF4dfbjG7AaaB99J5G+zSl11ljbl6cIcahgPY6SKb3sC3EJ0fw== + dependencies: + handlebars "^4.5.3" hmac-drbg@^1.0.0: version "1.0.1" @@ -1093,7 +1008,7 @@ inflight@^1.0.4: once "^1.3.0" wrappy "1" -inherits@2, inherits@^2.0.1, inherits@^2.0.3, inherits@~2.0.1, inherits@~2.0.3: +inherits@2, inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.1, inherits@~2.0.3: version "2.0.4" resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== @@ -1109,14 +1024,14 @@ invert-kv@^1.0.0: integrity sha1-EEqOSqym09jNFXqO+L+rLXo//bY= is-callable@^1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.4.tgz#1e1adf219e1eeb684d691f9d6a05ff0d30a24d75" - integrity sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA== + version "1.1.5" + resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.5.tgz#f7e46b596890456db74e7f6e976cb3273d06faab" + integrity sha512-ESKv5sMCJB2jnHTWZ3O5itG+O128Hsus4K4Qh1h2/cgn2vbgnLSVqfV46AeJA9D5EeeLa9w81KUXMtn34zhX+Q== is-date-object@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.1.tgz#9aa20eb6aeebbff77fbd33e74ca01b33581d3a16" - integrity sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY= + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.2.tgz#bda736f2cd8fd06d32844e7743bfa7494c3bfd7e" + integrity sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g== is-fullwidth-code-point@^1.0.0: version "1.0.0" @@ -1136,11 +1051,11 @@ is-hex-prefixed@1.0.0: integrity sha1-fY035q135dEnFIkTxXPggtd39VQ= is-regex@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.0.4.tgz#5517489b547091b0930e095654ced25ee97e9491" - integrity sha1-VRdIm1RwkbCTDglWVM7SXul+lJE= + version "1.0.5" + resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.0.5.tgz#39d589a358bf18967f726967120b8fc1aed74eae" + integrity sha512-vlKW17SNq44owv5AQR3Cq0bQPEb8+kF3UKZ2fiZNOWtztYE5i0CzCZxFDwO58qAOWtxdBRVO/V5Qin1wjCqFYQ== dependencies: - has "^1.0.1" + has "^1.0.3" is-stream@^1.0.1, is-stream@^1.1.0: version "1.1.0" @@ -1148,11 +1063,11 @@ is-stream@^1.0.1, is-stream@^1.1.0: integrity sha1-EtSj3U5o4Lec6428hBc66A2RykQ= is-symbol@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.2.tgz#a055f6ae57192caee329e7a860118b497a950f38" - integrity sha512-HS8bZ9ox60yCJLH9snBpIwv9pYUAkcuLhSA1oero1UB5y9aiQpRA8y2ex945AOtCZL1lJDeIk3G5LthswI46Lw== + version "1.0.3" + resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.3.tgz#38e1014b9e6329be0de9d24a414fd7441ec61937" + integrity sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ== dependencies: - has-symbols "^1.0.0" + has-symbols "^1.0.1" isarray@0.0.1: version "0.0.1" @@ -1218,9 +1133,9 @@ jsonfile@^4.0.0: graceful-fs "^4.1.6" jsonschema@^1.2.0: - version "1.2.4" - resolved "https://registry.yarnpkg.com/jsonschema/-/jsonschema-1.2.4.tgz#a46bac5d3506a254465bc548876e267c6d0d6464" - integrity sha512-lz1nOH69GbsVHeVgEdvyavc/33oymY1AZwtePMiMj4HZPMbP5OIKK3zT9INMWjwua/V4Z4yq7wSlBbSG+g4AEw== + version "1.2.5" + resolved "https://registry.yarnpkg.com/jsonschema/-/jsonschema-1.2.5.tgz#bab69d97fa28946aec0a56a9cc266d23fe80ae61" + integrity sha512-kVTF+08x25PQ0CjuVc0gRM9EUPb0Fe9Ln/utFOgcdxEIOHuU7ooBk/UPTd7t1M91pP35m0MU1T8M5P7vP1bRRw== keccak@^1.0.2: version "1.4.0" @@ -1232,6 +1147,16 @@ keccak@^1.0.2: nan "^2.2.1" safe-buffer "^5.1.0" +keccak@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/keccak/-/keccak-2.1.0.tgz#734ea53f2edcfd0f42cdb8d5f4c358fef052752b" + integrity sha512-m1wbJRTo+gWbctZWay9i26v5fFnYkOn7D5PCxJ3fZUGUEb49dE1Pm4BREUYCt/aoO6di7jeoGmhvqN9Nzylm3Q== + dependencies: + bindings "^1.5.0" + inherits "^2.0.4" + nan "^2.14.0" + safe-buffer "^5.2.0" + keccakjs@^0.2.0: version "0.2.3" resolved "https://registry.yarnpkg.com/keccakjs/-/keccakjs-0.2.3.tgz#5e4e969ce39689a3861f445d7752ee3477f9fe72" @@ -1382,10 +1307,10 @@ ltgt@~2.2.0: resolved "https://registry.yarnpkg.com/ltgt/-/ltgt-2.2.1.tgz#f35ca91c493f7b73da0e07495304f17b31f87ee5" integrity sha1-81ypHEk/e3PaDgdJUwTxezH4fuU= -lunr@^2.3.6: - version "2.3.6" - resolved "https://registry.yarnpkg.com/lunr/-/lunr-2.3.6.tgz#f278beee7ffd56ad86e6e478ce02ab2b98c78dd5" - integrity sha512-swStvEyDqQ85MGpABCMBclZcLI/pBIlu8FFDtmX197+oEgKloJ67QnB+Tidh0340HmLMs39c4GrkPY3cmkXp6Q== +lunr@^2.3.8: + version "2.3.8" + resolved "https://registry.yarnpkg.com/lunr/-/lunr-2.3.8.tgz#a8b89c31f30b5a044b97d2d28e2da191b6ba2072" + integrity sha512-oxMeX/Y35PNFuZoHp+jUj5OSEmLCaIH4KTFJh7a93cHBoFmpw2IoPs22VIz7vyO2YUnx2Tn9dzIwO2P/4quIRg== marked@^0.7.0: version "0.7.0" @@ -1516,12 +1441,12 @@ number-is-nan@^1.0.0: resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" integrity sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0= -object-inspect@^1.6.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.6.0.tgz#c70b6cbf72f274aab4c34c0c82f5167bf82cf15b" - integrity sha512-GJzfBZ6DgDAmnuaM3104jR4s1Myxr3Y3zfIyN4z3UdqN69oSRacNK8UhnobDdC+7J2AHCjGwxQubNJfE70SXXQ== +object-inspect@^1.7.0: + version "1.7.0" + resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.7.0.tgz#f4f6bd181ad77f006b5ece60bd0b6f398ff74a67" + integrity sha512-a7pEHdh1xKIAgTySUGgLMx/xwDZskN1Ud6egYYN3EdRW4ZMPNEDUTF+hwy2LUC+Bl+SyLXANnwz/jyh/qutKUw== -object-keys@^1.0.12, object-keys@^1.1.1: +object-keys@^1.0.11, object-keys@^1.0.12, object-keys@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e" integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== @@ -1531,13 +1456,23 @@ object-keys@~0.4.0: resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-0.4.0.tgz#28a6aae7428dd2c3a92f3d95f21335dd204e0336" integrity sha1-KKaq50KN0sOpLz2V8hM13SBOAzY= -object.getownpropertydescriptors@^2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz#8758c846f5b407adab0f236e0986f14b051caa16" - integrity sha1-h1jIRvW0B62rDyNuCYbxSwUcqhY= +object.assign@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.0.tgz#968bf1100d7956bb3ca086f006f846b3bc4008da" + integrity sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w== dependencies: define-properties "^1.1.2" - es-abstract "^1.5.1" + function-bind "^1.1.1" + has-symbols "^1.0.0" + object-keys "^1.0.11" + +object.getownpropertydescriptors@^2.0.3: + version "2.1.0" + resolved "https://registry.yarnpkg.com/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.0.tgz#369bf1f9592d8ab89d712dced5cb81c7c5352649" + integrity sha512-Z53Oah9A3TdLoblT7VKJaTDdXdT+lQO+cNpKVnya5JDe9uLvzu1YyY1yFDFrcxrlRgWrEFH0jJtD/IbuwjcEVg== + dependencies: + define-properties "^1.1.3" + es-abstract "^1.17.0-next.1" once@^1.3.0: version "1.4.0" @@ -1628,9 +1563,9 @@ progress@^2.0.3: integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== promisify-child-process@^3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/promisify-child-process/-/promisify-child-process-3.1.1.tgz#3a029c1d97bdb8bbcc8862c765b91f1cee0f2691" - integrity sha512-683UHZEP4Bm75BvBujEe87AdE9lxnoWpcU5pEw4FG9HCSwwZC9pF7HUj3QmlDAvhyvulkWHLZs1lVRBNTvkbXQ== + version "3.1.3" + resolved "https://registry.yarnpkg.com/promisify-child-process/-/promisify-child-process-3.1.3.tgz#52a3b66638ae101fa2e68f9a2cbd101846042e33" + integrity sha512-qVox3vW2hqbktVw+IN7YZ/kgGA+u426ekmiZxiofNe9O4GSewjROwRQ4MQ6IbvhpeYSLqiLS0kMn+FWCz6ENlg== dependencies: "@babel/runtime" "^7.1.5" @@ -1700,9 +1635,9 @@ require-main-filename@^1.0.1: integrity sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE= resolve@^1.1.6, resolve@^1.3.2: - version "1.12.0" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.12.0.tgz#3fc644a35c84a48554609ff26ec52b66fa577df6" - integrity sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w== + version "1.14.1" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.14.1.tgz#9e018c540fcf0c427d678b9931cbf45e984bcaff" + integrity sha512-fn5Wobh4cxbLzuHaE+nphztHy43/b++4M6SsGFC2gB8uYwf0C8LcarfCz1un7UTW8OFQg9iNjZ4xpcFVGebDPg== dependencies: path-parse "^1.0.6" @@ -1721,20 +1656,19 @@ ripemd160@^2.0.0, ripemd160@^2.0.1: hash-base "^3.0.0" inherits "^2.0.1" -rlp@^2.0.0, rlp@^2.2.1, rlp@^2.2.2: - version "2.2.3" - resolved "https://registry.yarnpkg.com/rlp/-/rlp-2.2.3.tgz#7f94aef86cec412df87d5ea1d8cb116a47d45f0e" - integrity sha512-l6YVrI7+d2vpW6D6rS05x2Xrmq8oW7v3pieZOJKBEdjuTF4Kz/iwk55Zyh1Zaz+KOB2kC8+2jZlp2u9L4tTzCQ== +rlp@^2.0.0, rlp@^2.2.1, rlp@^2.2.2, rlp@^2.2.3: + version "2.2.4" + resolved "https://registry.yarnpkg.com/rlp/-/rlp-2.2.4.tgz#d6b0e1659e9285fc509a5d169a9bd06f704951c1" + integrity sha512-fdq2yYCWpAQBhwkZv+Z8o/Z4sPmYm1CUq6P7n6lVTOdb949CnqA0sndXal5C1NleSVSZm6q5F3iEbauyVln/iw== dependencies: bn.js "^4.11.1" - safe-buffer "^5.1.1" rustbn.js@~0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/rustbn.js/-/rustbn.js-0.2.0.tgz#8082cb886e707155fd1cb6f23bd591ab8d55d0ca" integrity sha512-4VlvkRUuCJvr2J6Y0ImW7NvTCriMi7ErOAqWk1y69vAdoNIzCF3yPmgeNzx+RQTLEDFq5sHfscn1MwHxP9hNfA== -safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@^5.1.2: +safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@^5.1.2, safe-buffer@^5.2.0: version "5.2.0" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.0.tgz#b74daec49b1148f88c64b68d49b1e815c1f2f519" integrity sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg== @@ -1755,16 +1689,16 @@ scrypt-js@2.0.4: integrity sha512-4KsaGcPnuhtCZQCxFxN3GVYIhKFPTdLd8PLC552XwbMndtD0cjRFAhDuuydXQ0h08ZfPgzqe6EKHozpuH74iDw== secp256k1@^3.0.1: - version "3.7.1" - resolved "https://registry.yarnpkg.com/secp256k1/-/secp256k1-3.7.1.tgz#12e473e0e9a7c2f2d4d4818e722ad0e14cc1e2f1" - integrity sha512-1cf8sbnRreXrQFdH6qsg2H71Xw91fCCS9Yp021GnUNJzWJS/py96fS4lHbnTnouLp08Xj6jBoBB6V78Tdbdu5g== + version "3.8.0" + resolved "https://registry.yarnpkg.com/secp256k1/-/secp256k1-3.8.0.tgz#28f59f4b01dbee9575f56a47034b7d2e3b3b352d" + integrity sha512-k5ke5avRZbtl9Tqx/SA7CbY3NF6Ro+Sj9cZxezFzuBlLDmyqPiL8hJJ+EmzD8Ig4LUDByHJ3/iPOVoRixs/hmw== dependencies: bindings "^1.5.0" bip66 "^1.1.5" bn.js "^4.11.8" create-hash "^1.2.0" drbg.js "^1.0.1" - elliptic "^6.4.1" + elliptic "^6.5.2" nan "^2.14.0" safe-buffer "^5.1.2" @@ -1802,9 +1736,9 @@ sha.js@^2.4.0, sha.js@^2.4.8: safe-buffer "^5.0.1" sha3@^1.2.2: - version "1.2.3" - resolved "https://registry.yarnpkg.com/sha3/-/sha3-1.2.3.tgz#ed5958fa8331df1b1b8529ca9fdf225a340c5418" - integrity sha512-sOWDZi8cDBRkLfWOw18wvJyNblXDHzwMGnRWut8zNNeIeLnmMRO17bjpLc7OzMuj1ASUgx2IyohzUCAl+Kx5vA== + version "1.2.6" + resolved "https://registry.yarnpkg.com/sha3/-/sha3-1.2.6.tgz#102aa3e47dc793e2357902c3cce8760822f9e905" + integrity sha512-KgLGmJGrmNB4JWVsAV11Yk6KbvsAiygWJc7t5IebWva/0NukNrjJqhtKhzy3Eiv2AKuGvhZZt7dt1mDo7HkoiQ== dependencies: nan "2.13.2" @@ -1870,17 +1804,17 @@ string-width@^2.0.0, string-width@^2.1.1: strip-ansi "^4.0.0" string.prototype.trimleft@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/string.prototype.trimleft/-/string.prototype.trimleft-2.1.0.tgz#6cc47f0d7eb8d62b0f3701611715a3954591d634" - integrity sha512-FJ6b7EgdKxxbDxc79cOlok6Afd++TTs5szo+zJTUyow3ycrRfJVE2pq3vcN53XexvKZu/DJMDfeI/qMiZTrjTw== + version "2.1.1" + resolved "https://registry.yarnpkg.com/string.prototype.trimleft/-/string.prototype.trimleft-2.1.1.tgz#9bdb8ac6abd6d602b17a4ed321870d2f8dcefc74" + integrity sha512-iu2AGd3PuP5Rp7x2kEZCrB2Nf41ehzh+goo8TV7z8/XDBbsvc6HQIlUl9RjkZ4oyrW1XM5UwlGl1oVEaDjg6Ag== dependencies: define-properties "^1.1.3" function-bind "^1.1.1" string.prototype.trimright@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/string.prototype.trimright/-/string.prototype.trimright-2.1.0.tgz#669d164be9df9b6f7559fa8e89945b168a5a6c58" - integrity sha512-fXZTSV55dNBwv16uw+hh5jkghxSnc5oHq+5K/gXgizHwAvMetdAJlHqqoFC1FSDVPYWLkAKl2cxpUT41sV7nSg== + version "2.1.1" + resolved "https://registry.yarnpkg.com/string.prototype.trimright/-/string.prototype.trimright-2.1.1.tgz#440314b15996c866ce8a0341894d45186200c5d9" + integrity sha512-qFvWL3/+QIgZXVmJBfpHmxLB7xsUXz6HsUmP8+5dRaC3Q7oKUv9Vo6aMCRZC1smrtyECFsIT30PqBJ1gTjAs+g== dependencies: define-properties "^1.1.3" function-bind "^1.1.1" @@ -2000,49 +1934,52 @@ tsutils@^3.0.0: dependencies: tslib "^1.8.1" -typedoc-default-themes@^0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/typedoc-default-themes/-/typedoc-default-themes-0.6.0.tgz#7e73bf54dd9e11550dd0fb576d5176b758f8f8b5" - integrity sha512-MdTROOojxod78CEv22rIA69o7crMPLnVZPefuDLt/WepXqJwgiSu8Xxq+H36x0Jj3YGc7lOglI2vPJ2GhoOybw== +typedoc-default-themes@^0.6.2: + version "0.6.2" + resolved "https://registry.yarnpkg.com/typedoc-default-themes/-/typedoc-default-themes-0.6.2.tgz#b36d8910987a40e5a80353b88e178c6ffa78f24b" + integrity sha512-+O+1aHjVIpDLsbkIDkZSNu+kutqmg7WdzahT+4KwBC/95mUgAb0xkbwdPpEJEpRX0ov1UJoCmvEPb1/VHxnTuw== dependencies: backbone "^1.4.0" jquery "^3.4.1" - lunr "^2.3.6" + lunr "^2.3.8" underscore "^1.9.1" typedoc-plugin-markdown@^2.1.0: - version "2.1.3" - resolved "https://registry.yarnpkg.com/typedoc-plugin-markdown/-/typedoc-plugin-markdown-2.1.3.tgz#2fd90c2965060335cffb2037b9f9131cf2dbc24e" - integrity sha512-AIOKnqwee/Q4laIHqBAQfJQY4fnWbJ9MrCXyzAXXN1vHBivj76cz97rq+iqNMWrxV9Lan2EIn0p8IIKy1Y84KQ== + version "2.2.14" + resolved "https://registry.yarnpkg.com/typedoc-plugin-markdown/-/typedoc-plugin-markdown-2.2.14.tgz#30c9c51301a2bd1428463bc0b47d8a6228f9914e" + integrity sha512-MukndnFdFWMc24HpzvCPDRKMX8Fx92arfMvlAVFhPv8ClXyK7aQVPygHLB1iWXvev6TzggUSQf6IM3LHvoknCw== + dependencies: + fs-extra "^8.1.0" + handlebars "^4.5.3" typedoc@^0.15.0: - version "0.15.0" - resolved "https://registry.yarnpkg.com/typedoc/-/typedoc-0.15.0.tgz#21eaf4db41cf2797bad027a74f2a75cd08ae0c2d" - integrity sha512-NOtfq5Tis4EFt+J2ozhVq9RCeUnfEYMFKoU6nCXCXUULJz1UQynOM+yH3TkfZCPLzigbqB0tQYGVlktUWweKlw== + version "0.15.5" + resolved "https://registry.yarnpkg.com/typedoc/-/typedoc-0.15.5.tgz#1dd2a15ed0caf284c2be674794a2a8b74e0f2383" + integrity sha512-AKXLtOUCLRlSTyfXQHYp3LFPy6RiFLnxnKS5z1jwQsYXmCPbHWuhmfgS264Es2hPMZjzvHqk/ZQDzCBpb49u6w== dependencies: "@types/minimatch" "3.0.3" fs-extra "^8.1.0" - handlebars "^4.1.2" - highlight.js "^9.15.8" + handlebars "^4.5.3" + highlight.js "^9.17.1" lodash "^4.17.15" marked "^0.7.0" minimatch "^3.0.0" progress "^2.0.3" shelljs "^0.8.3" - typedoc-default-themes "^0.6.0" - typescript "3.5.x" + typedoc-default-themes "^0.6.2" + typescript "3.7.x" -typescript@3.5.x, typescript@^3.5.3: - version "3.5.3" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.5.3.tgz#c830f657f93f1ea846819e929092f5fe5983e977" - integrity sha512-ACzBtm/PhXBDId6a6sDJfroT2pOWt/oOnk4/dElG5G33ZL776N3Y6/6bKZJBFpd+b05F3Ct9qDjMeJmRWtE2/g== +typescript@3.7.x, typescript@^3.5.3: + version "3.7.3" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.3.tgz#b36840668a16458a7025b9eabfad11b66ab85c69" + integrity sha512-Mcr/Qk7hXqFBXMN7p7Lusj1ktCBydylfQM/FZCk5glCNQJrCUKPkMHdo9R0MTFWsC/4kPFvDS0fDPvukfCkFsw== uglify-js@^3.1.4: - version "3.6.0" - resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.6.0.tgz#704681345c53a8b2079fb6cec294b05ead242ff5" - integrity sha512-W+jrUHJr3DXKhrsS7NUVxn3zqMOFn0hL/Ei6v0anCIMoKC93TjcflTagwIHLW7SfMFfiQuktQyFVCFHGUE0+yg== + version "3.7.2" + resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.7.2.tgz#cb1a601e67536e9ed094a92dd1e333459643d3f9" + integrity sha512-uhRwZcANNWVLrxLfNFEdltoPNhECUR3lc+UdJoG9CBpMcSnKyWA94tc3eAujB1GcMY5Uwq8ZMp4qWpxWYDQmaA== dependencies: - commander "~2.20.0" + commander "~2.20.3" source-map "~0.6.1" underscore@>=1.8.3, underscore@^1.9.1: diff --git a/integration-tests/browser/package.json b/integration-tests/browser/package.json index 8b7f52945..f85d50cc0 100644 --- a/integration-tests/browser/package.json +++ b/integration-tests/browser/package.json @@ -17,7 +17,7 @@ }, "dependencies": { "@0x/mesh-browser": "./../../browser/", - "@0x/order-utils": "8.5.0-beta.1", - "@0x/subproviders": "5.1.0-beta.1" + "@0x/order-utils": "^10.0.1", + "@0x/subproviders": "^6.0.2" } } diff --git a/integration-tests/browser/src/index.ts b/integration-tests/browser/src/index.ts index 9489ff872..439a0fe8b 100644 --- a/integration-tests/browser/src/index.ts +++ b/integration-tests/browser/src/index.ts @@ -33,7 +33,7 @@ provider.start(); chainId: 1337, }; const signedOrder = await signatureUtils.ecSignOrderAsync(provider, order, order.makerAddress); - const orderHash = orderHashUtils.getOrderHashHex(order); + const orderHash = await orderHashUtils.getOrderHashAsync(order); console.log( JSON.stringify({ message: 'signed order in browser', diff --git a/integration-tests/browser/yarn.lock b/integration-tests/browser/yarn.lock index 1e056a924..d5c958322 100644 --- a/integration-tests/browser/yarn.lock +++ b/integration-tests/browser/yarn.lock @@ -2,122 +2,105 @@ # yarn lockfile v1 -"@0x/abi-gen-wrappers@^5.4.0-beta.1": - version "5.4.0-beta.2" - resolved "https://registry.yarnpkg.com/@0x/abi-gen-wrappers/-/abi-gen-wrappers-5.4.0-beta.2.tgz#ee14ae2eb68d7a89811ce60eb2a90b8d1c570889" - integrity sha512-TmnMdhXYCoCjr1NpuoiSikPxUVJFKoKuiHgXlaoxQP1jlky5W9mj1KAQ2XHIrssvB/igB/bhx6PJze4/vYmJKA== - dependencies: - "@0x/assert" "^2.2.0-beta.2" - "@0x/base-contract" "^5.5.0-beta.2" - "@0x/contract-addresses" "^3.3.0-beta.3" - "@0x/json-schemas" "^4.1.0-beta.2" - "@0x/types" "^2.5.0-beta.2" - "@0x/utils" "^4.6.0-beta.2" - "@0x/web3-wrapper" "^6.1.0-beta.2" - ethereum-types "^2.2.0-beta.2" - ethers "~4.0.4" - -"@0x/assert@^2.2.0-beta.1", "@0x/assert@^2.2.0-beta.2": - version "2.2.0-beta.2" - resolved "https://registry.yarnpkg.com/@0x/assert/-/assert-2.2.0-beta.2.tgz#de78c0bb2c9eff263df5bbe743fe73f19ca9c3bd" - integrity sha512-30i5fQ2kqejMkLHMrmqTsZedrJ3DR1KKdO6/CfEtP0wN7eF198yIm1VBHsXGRBWcS+1yCd076qbyj0h2X2Deng== +"@0x/assert@^3.0.2": + version "3.0.2" + resolved "https://registry.yarnpkg.com/@0x/assert/-/assert-3.0.2.tgz#412c6d06807b59d8a7747d32e87ba56c76a4bac8" + integrity sha512-kYRCP/eOoGX3S0zTXskIcy8jA0zxOm20BCDK7EImAQ8HvdmfZr8R6dqUm5UEBLd/JJ6jywR97Y+yCUiteIGg0g== dependencies: - "@0x/json-schemas" "^4.1.0-beta.2" - "@0x/typescript-typings" "^4.4.0-beta.2" - "@0x/utils" "^4.6.0-beta.2" + "@0x/json-schemas" "^5.0.2" + "@0x/typescript-typings" "^5.0.1" + "@0x/utils" "^5.1.1" lodash "^4.17.11" valid-url "^1.0.9" -"@0x/base-contract@^5.5.0-beta.2": - version "5.5.0-beta.2" - resolved "https://registry.yarnpkg.com/@0x/base-contract/-/base-contract-5.5.0-beta.2.tgz#a84348433f46cbff8fdb1b934fe583e232a34140" - integrity sha512-TDn71cvWXkyxNZbYkViYD0il1iiD5rLuq5oUrwZHbiuilk35l9ikg912M9/hcHHuaXNnyrRR/DPXnNLKkbG5xg== - dependencies: - "@0x/assert" "^2.2.0-beta.2" - "@0x/json-schemas" "^4.1.0-beta.2" - "@0x/types" "^2.5.0-beta.2" - "@0x/typescript-typings" "^4.4.0-beta.2" - "@0x/utils" "^4.6.0-beta.2" - "@0x/web3-wrapper" "^6.1.0-beta.2" - ethereum-types "^2.2.0-beta.2" +"@0x/base-contract@^6.0.2": + version "6.0.2" + resolved "https://registry.yarnpkg.com/@0x/base-contract/-/base-contract-6.0.2.tgz#198bad06398bdb58da1b98a93bf41f4322e9a6cd" + integrity sha512-UR6A0KTOqkOLjzaHRy0++WDaWl3Xn6WuaIoAPk9/LD7vnKTCK+NzohCh3pBRbgkkEylng2000jldbDMZkM5FXA== + dependencies: + "@0x/assert" "^3.0.2" + "@0x/json-schemas" "^5.0.2" + "@0x/utils" "^5.1.1" + "@0x/web3-wrapper" "^7.0.2" ethereumjs-account "^3.0.0" ethereumjs-blockstream "^7.0.0" ethereumjs-util "^5.1.1" ethereumjs-vm "^4.0.0" ethers "~4.0.4" js-sha3 "^0.7.0" - lodash "^4.17.11" uuid "^3.3.2" -"@0x/contract-addresses@^3.3.0-beta.2", "@0x/contract-addresses@^3.3.0-beta.3": - version "3.3.0-beta.3" - resolved "https://registry.yarnpkg.com/@0x/contract-addresses/-/contract-addresses-3.3.0-beta.3.tgz#0fa8ad47e22aecdb99f9a044ba3c705c4173b61e" - integrity sha512-9pJ2M5r3Fwu43YhetgdWkUKKKti83z2aKvzkXcnjc3goi+XefNVhtmsBTiov6MyRXmgXH8uwDtj5N0t9mlFTtw== +"@0x/contract-addresses@^4.1.0": + version "4.1.0" + resolved "https://registry.yarnpkg.com/@0x/contract-addresses/-/contract-addresses-4.1.0.tgz#baa09961e9773457adca6988051412937b985cb9" + integrity sha512-scx2Gv6//fBj1Gb3AuqiH6s3qTw1mlcUW6YPp1RnjEGtBPH44cc0PvWmyIeOcCAcEZSVGk8glgTR25QrBAPJnw== dependencies: lodash "^4.17.11" -"@0x/contract-artifacts@^2.3.0-beta.2": - version "2.3.0-beta.3" - resolved "https://registry.yarnpkg.com/@0x/contract-artifacts/-/contract-artifacts-2.3.0-beta.3.tgz#12cffe5772cdb2ccb10ce770ca90d77d87f6326a" - integrity sha512-k1SUwSEwvnqVwTTt16oW8AkZUj7/Sx+oUMttz0+SGlGsK1aD3sGIoEsbx4vyPi6gENlI5QDSHSvDoL+zrIdRYw== +"@0x/contract-wrappers@^13.2.0": + version "13.2.0" + resolved "https://registry.yarnpkg.com/@0x/contract-wrappers/-/contract-wrappers-13.2.0.tgz#d03e3fd3e70a2b9223ab0409c576378e61dd7ed9" + integrity sha512-XvQFdLIleba6CApbvEzFuHwvvBESzerniWecUjf+1imxOZkqRuxOR8XuvWFSp7XZcU37rRgICABmyK3Csu8Cmw== + dependencies: + "@0x/assert" "^3.0.2" + "@0x/base-contract" "^6.0.2" + "@0x/contract-addresses" "^4.1.0" + "@0x/json-schemas" "^5.0.2" + "@0x/types" "^3.1.1" + "@0x/utils" "^5.1.1" + "@0x/web3-wrapper" "^7.0.2" + ethereum-types "^3.0.0" + ethers "~4.0.4" -"@0x/json-schemas@^4.1.0-beta.1", "@0x/json-schemas@^4.1.0-beta.2": - version "4.1.0-beta.2" - resolved "https://registry.yarnpkg.com/@0x/json-schemas/-/json-schemas-4.1.0-beta.2.tgz#79d05d0c91525e2356f783dae5e572dd3624969f" - integrity sha512-GWLAC4GlcRcn3ct+0wV/ppey+M9bnfnznB1fFcBWS7qmjM0iq36ex3DP48MJroWLWwUiXIWHrAZkp5QCAlc3FA== +"@0x/json-schemas@^5.0.2": + version "5.0.2" + resolved "https://registry.yarnpkg.com/@0x/json-schemas/-/json-schemas-5.0.2.tgz#70d1804141d2b66126ad180e77dc25249819ca74" + integrity sha512-2mwC42aWx6tvOCh58pRyYCSrmdajHdmfbDSCsII/8EOWRI6gYYenRMl/edVMnqKw7FH0QLsfWdx5GeP+jNoxDA== dependencies: - "@0x/typescript-typings" "^4.4.0-beta.2" + "@0x/typescript-typings" "^5.0.1" "@types/node" "*" jsonschema "^1.2.0" lodash.values "^4.3.0" "@0x/mesh-browser@./../../browser/": - version "7.0.4-beta-0xv3" + version "8.0.0-beta-0xv3" dependencies: - "@0x/order-utils" "8.5.0-beta.1" - "@0x/utils" "4.6.0-beta.1" + "@0x/order-utils" "^10.0.1" + "@0x/utils" "^5.1.1" base64-arraybuffer "^0.2.0" browserfs "^1.4.3" -"@0x/order-utils@8.5.0-beta.1": - version "8.5.0-beta.1" - resolved "https://registry.yarnpkg.com/@0x/order-utils/-/order-utils-8.5.0-beta.1.tgz#9970e067d15397badd3571ca4347714f5207cad1" - integrity sha512-aZe9VgtzqFYDsDKwroxjgHI+cnPu5Vtxa6bk96tr/9MUBvx2EOEvm1pxh4xAVGkjd00CGft9MWS+VcKZww3IzA== - dependencies: - "@0x/abi-gen-wrappers" "^5.4.0-beta.1" - "@0x/assert" "^2.2.0-beta.1" - "@0x/contract-addresses" "^3.3.0-beta.2" - "@0x/contract-artifacts" "^2.3.0-beta.2" - "@0x/json-schemas" "^4.1.0-beta.1" - "@0x/types" "^2.5.0-beta.1" - "@0x/typescript-typings" "^4.4.0-beta.1" - "@0x/utils" "^4.6.0-beta.1" - "@0x/web3-wrapper" "^6.1.0-beta.1" - "@types/node" "*" - bn.js "^4.11.8" - ethereum-types "^2.2.0-beta.1" - ethereumjs-abi "0.6.5" +"@0x/order-utils@^10.0.1": + version "10.0.1" + resolved "https://registry.yarnpkg.com/@0x/order-utils/-/order-utils-10.0.1.tgz#5cd887e70e76df3117051582a01c74087c4cb9fa" + integrity sha512-NZsDciNSQtn3ARPmWc+pNK62GK2miELKryhPwwQzqpQs7bi8RSCTf26TmTMtYeXUg3t0gVfhfRD8FGBur53N9A== + dependencies: + "@0x/assert" "^3.0.2" + "@0x/contract-wrappers" "^13.2.0" + "@0x/json-schemas" "^5.0.2" + "@0x/utils" "^5.1.1" + "@0x/web3-wrapper" "^7.0.2" ethereumjs-util "^5.1.1" ethers "~4.0.4" lodash "^4.17.11" -"@0x/subproviders@5.1.0-beta.1": - version "5.1.0-beta.1" - resolved "https://registry.yarnpkg.com/@0x/subproviders/-/subproviders-5.1.0-beta.1.tgz#799b0855d0c41263661b7ffd0d90f23696f9ca7d" - integrity sha512-KQFKihf6FQOMDQoDKy3y5IO/hZOixWE8x+UfMyWb5b8gakMXG4On3PmaoVn5NFBMbd6tMqTyltGoZK6F8jjXXg== - dependencies: - "@0x/assert" "^2.2.0-beta.1" - "@0x/types" "^2.5.0-beta.1" - "@0x/typescript-typings" "^4.4.0-beta.1" - "@0x/utils" "^4.6.0-beta.1" - "@0x/web3-wrapper" "^6.1.0-beta.1" +"@0x/subproviders@^6.0.2": + version "6.0.2" + resolved "https://registry.yarnpkg.com/@0x/subproviders/-/subproviders-6.0.2.tgz#2d00a62d0db81d865dedd0ae43d7594c061e033e" + integrity sha512-YEu+FSSTDqhdnqwVEuT/BgX62iy6aZHIax6L7mPGSyV2o+scFtbR4FKsYRJGeHv2l7BkjCv8rHeSvE4oaw5Lew== + dependencies: + "@0x/assert" "^3.0.2" + "@0x/types" "^3.1.1" + "@0x/typescript-typings" "^5.0.1" + "@0x/utils" "^5.1.1" + "@0x/web3-wrapper" "^7.0.2" "@ledgerhq/hw-app-eth" "^4.3.0" "@ledgerhq/hw-transport-u2f" "4.24.0" "@types/hdkey" "^0.7.0" "@types/web3-provider-engine" "^14.0.0" bip39 "^2.5.0" bn.js "^4.11.8" - ethereum-types "^2.2.0-beta.1" + ethereum-types "^3.0.0" ethereumjs-tx "^1.3.5" ethereumjs-util "^5.1.1" ganache-core "^2.6.0" @@ -129,74 +112,55 @@ optionalDependencies: "@ledgerhq/hw-transport-node-hid" "^4.3.0" -"@0x/types@^2.5.0-beta.1", "@0x/types@^2.5.0-beta.2": - version "2.5.0-beta.2" - resolved "https://registry.yarnpkg.com/@0x/types/-/types-2.5.0-beta.2.tgz#19d8bda61d5c1b1febc569d30dc8e7bf764d38f9" - integrity sha512-/7+n09z1dngIN7Kw7L+nleGe0+YXCT4O0VzTihZj6Z2vVHCt+Wo4q1ma9r11vviv07tmqglyw7QbYAfTHIz8Ew== +"@0x/types@^3.1.1": + version "3.1.1" + resolved "https://registry.yarnpkg.com/@0x/types/-/types-3.1.1.tgz#b20ca76e9516201b9c27621f941696f41ffc9fac" + integrity sha512-+TQmzH+chWeDWpc+Lce3/q4X2UEHFfAwZcWrV7tEQ5EVAJvph7gpKawRW2XRsmHeQDSHBmiiBdSZ8Rc/OAjvlQ== dependencies: "@types/node" "*" bignumber.js "~9.0.0" - ethereum-types "^2.2.0-beta.2" + ethereum-types "^3.0.0" -"@0x/typescript-typings@^4.4.0-beta.1", "@0x/typescript-typings@^4.4.0-beta.2": - version "4.4.0-beta.2" - resolved "https://registry.yarnpkg.com/@0x/typescript-typings/-/typescript-typings-4.4.0-beta.2.tgz#67c621252f162914186b8f684ac5e306206c1cf2" - integrity sha512-Fq2nOKvopdLMEjuPiKqomGog06bxAXGjqnodCwv9OKr11V5W1twFTUM3c1TENfHeGvcqf1aMl1hsH3fuVP61jg== +"@0x/typescript-typings@^5.0.1": + version "5.0.1" + resolved "https://registry.yarnpkg.com/@0x/typescript-typings/-/typescript-typings-5.0.1.tgz#031e291cc506ecd26d3fe10adf618f4f51ff1510" + integrity sha512-zSA39URHkFnL16WD30VMa8wL8va0Khpx9APHffdPWpBOr9SUPdADtae5HO4iNCYvSgo3mrtPlKID2nIqREIHOQ== dependencies: "@types/bn.js" "^4.11.0" "@types/react" "*" bignumber.js "~9.0.0" - ethereum-types "^2.2.0-beta.2" + ethereum-types "^3.0.0" popper.js "1.14.3" -"@0x/utils@4.6.0-beta.1": - version "4.6.0-beta.1" - resolved "https://registry.yarnpkg.com/@0x/utils/-/utils-4.6.0-beta.1.tgz#5c975e381d497b76365e223130fa47e950df8a6e" - integrity sha512-CILwtJGgxhYQib+0THQl6qgSwAekeoohKIswjxVG+CV/4Yb1N+9EgimX+wKMvgisdylC6Z/g9BQFtZaFSmJ8MA== - dependencies: - "@0x/types" "^2.5.0-beta.1" - "@0x/typescript-typings" "^4.4.0-beta.1" - "@types/node" "*" - abortcontroller-polyfill "^1.1.9" - bignumber.js "~8.0.2" - chalk "^2.3.0" - detect-node "2.0.3" - ethereum-types "^2.2.0-beta.1" - ethereumjs-util "^5.1.1" - ethers "~4.0.4" - isomorphic-fetch "2.2.1" - js-sha3 "^0.7.0" - lodash "^4.17.11" - -"@0x/utils@^4.6.0-beta.1", "@0x/utils@^4.6.0-beta.2": - version "4.6.0-beta.2" - resolved "https://registry.yarnpkg.com/@0x/utils/-/utils-4.6.0-beta.2.tgz#ffa70f05736a74ac8d7ca5debe01bff7e6d8f073" - integrity sha512-HjewJF4Ibsizh6oWZZxdVxeNc9mGgjdwTCVp/Xj2k9GN6GI8m8EKiowk4Db86wG0/B6y0PDK+985rZ3dtc3MLQ== +"@0x/utils@^5.1.1": + version "5.1.1" + resolved "https://registry.yarnpkg.com/@0x/utils/-/utils-5.1.1.tgz#1895529b5ec313f7056819458c8f55fbb19256cb" + integrity sha512-DRNKtAqZR0vFA1XdUhBwaIz2qEjWS1xqdvzQl/Dn8OLJH+1sxb+1UmtG6fOlbu7pTLbF+CWoaYf2+pvQfcF//g== dependencies: - "@0x/types" "^2.5.0-beta.2" - "@0x/typescript-typings" "^4.4.0-beta.2" + "@0x/types" "^3.1.1" + "@0x/typescript-typings" "^5.0.1" "@types/node" "*" abortcontroller-polyfill "^1.1.9" bignumber.js "~9.0.0" chalk "^2.3.0" detect-node "2.0.3" - ethereum-types "^2.2.0-beta.2" + ethereum-types "^3.0.0" ethereumjs-util "^5.1.1" ethers "~4.0.4" isomorphic-fetch "2.2.1" js-sha3 "^0.7.0" lodash "^4.17.11" -"@0x/web3-wrapper@^6.1.0-beta.1", "@0x/web3-wrapper@^6.1.0-beta.2": - version "6.1.0-beta.2" - resolved "https://registry.yarnpkg.com/@0x/web3-wrapper/-/web3-wrapper-6.1.0-beta.2.tgz#24aae8a0063057ebb6d3a7893a01d0abac8cd19c" - integrity sha512-XTurMsspRe089KybRbaEDUce/p25LjHBuGh5zMWb6OWctIoD7iJ2QHJOoH5AMJMlXObTO3CFwpwybbDmlbaKGQ== +"@0x/web3-wrapper@^7.0.2": + version "7.0.2" + resolved "https://registry.yarnpkg.com/@0x/web3-wrapper/-/web3-wrapper-7.0.2.tgz#afdd12a3c2518207d56372397ae91e4a90634f46" + integrity sha512-kSmrg0E0ZmuNKTKmanxHlRUO5dom8Wr2eDmgG+NZcuWY3EJKIkuxFsz6KRUfoYbVOVT22ZQZazzZIGwoz/LObg== dependencies: - "@0x/assert" "^2.2.0-beta.2" - "@0x/json-schemas" "^4.1.0-beta.2" - "@0x/typescript-typings" "^4.4.0-beta.2" - "@0x/utils" "^4.6.0-beta.2" - ethereum-types "^2.2.0-beta.2" + "@0x/assert" "^3.0.2" + "@0x/json-schemas" "^5.0.2" + "@0x/typescript-typings" "^5.0.1" + "@0x/utils" "^5.1.1" + ethereum-types "^3.0.0" ethereumjs-util "^5.1.1" ethers "~4.0.4" lodash "^4.17.11" @@ -1427,11 +1391,6 @@ bignumber.js@7.2.1: resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-7.2.1.tgz#80c048759d826800807c4bfd521e50edbba57a5f" integrity sha512-S4XzBk5sMB+Rcb/LNcpzXr57VRTxgAvaAEDAl1AwRx27j00hT84O6OkteE7u8UB3NuaaygCRrEpqox4uDOrbdQ== -bignumber.js@~8.0.2: - version "8.0.2" - resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-8.0.2.tgz#d8c4e1874359573b1ef03011a2d861214aeef137" - integrity sha512-EiuvFrnbv0jFixEQ9f58jo7X0qI2lNGIr/MxntmVzQc5JUweDSh8y8hbTCAomFtqwUPIOWcLXP0VEOSZTG7FFw== - bignumber.js@~9.0.0: version "9.0.0" resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-9.0.0.tgz#805880f84a329b5eac6e7cb6f8274b6d82bdf075" @@ -2865,10 +2824,10 @@ ethereum-common@^0.0.18: resolved "https://registry.yarnpkg.com/ethereum-common/-/ethereum-common-0.0.18.tgz#2fdc3576f232903358976eb39da783213ff9523f" integrity sha1-L9w1dvIykDNYl26znaeDIT/5Uj8= -ethereum-types@^2.2.0-beta.1, ethereum-types@^2.2.0-beta.2: - version "2.2.0-beta.2" - resolved "https://registry.yarnpkg.com/ethereum-types/-/ethereum-types-2.2.0-beta.2.tgz#0b446842474c2afacd351258ed4a2d0841f2608f" - integrity sha512-5ANYHI/InHqf4Nt8oYrpvcph9/D6gi3sbM7Rlr8r0QjXb2mqocqEvOH460Zkf1robc7WDqurp9baeMy+um8kww== +ethereum-types@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/ethereum-types/-/ethereum-types-3.0.0.tgz#9fa3a98b8b9b64a0fab1864de7bc7fd7b1699fcd" + integrity sha512-jRSsiua+e4/89r7M3mqPcP1M2f3TgXxpVmWysy+7pEg2H4lwEQRWarbYfIpWp81NtxrcMQv5bMK+yR1MN4sDpg== dependencies: "@types/node" "*" bignumber.js "~9.0.0" diff --git a/rpc/clients/typescript/package.json b/rpc/clients/typescript/package.json index 67487a0af..4a19bb10e 100644 --- a/rpc/clients/typescript/package.json +++ b/rpc/clients/typescript/package.json @@ -46,9 +46,9 @@ "websocket": "^1.0.29" }, "devDependencies": { - "@0x/dev-utils": "^2.4.0-beta.2", - "@0x/ts-doc-gen": "^0.0.13", - "@0x/tslint-config": "^3.1.0-beta.2", + "@0x/dev-utils": "^3.0.2", + "@0x/ts-doc-gen": "^0.0.23", + "@0x/tslint-config": "^4.0.0", "@types/mocha": "^2.2.42", "@types/uuid": "^3.4.3", "@types/websocket": "^0.0.40", diff --git a/rpc/clients/typescript/yarn.lock b/rpc/clients/typescript/yarn.lock index b76339062..e6e7a3656 100644 --- a/rpc/clients/typescript/yarn.lock +++ b/rpc/clients/typescript/yarn.lock @@ -2,28 +2,6 @@ # yarn lockfile v1 -"@0x/assert@^2.2.0-beta.2": - version "2.2.0-beta.2" - resolved "https://registry.yarnpkg.com/@0x/assert/-/assert-2.2.0-beta.2.tgz#de78c0bb2c9eff263df5bbe743fe73f19ca9c3bd" - integrity sha512-30i5fQ2kqejMkLHMrmqTsZedrJ3DR1KKdO6/CfEtP0wN7eF198yIm1VBHsXGRBWcS+1yCd076qbyj0h2X2Deng== - dependencies: - "@0x/json-schemas" "^4.1.0-beta.2" - "@0x/typescript-typings" "^4.4.0-beta.2" - "@0x/utils" "^4.6.0-beta.2" - lodash "^4.17.11" - valid-url "^1.0.9" - -"@0x/assert@^2.2.0-beta.3": - version "2.2.0-beta.3" - resolved "https://registry.yarnpkg.com/@0x/assert/-/assert-2.2.0-beta.3.tgz#8fb95c265000532cd8dced44d44d29ca544b2bfc" - integrity sha512-ShENc8QJU4ur/5TkRl3l7J3Yt7WaxHAbuoTRm/djcA0iwYyUVlP5yN9Ab9ua+VLizQQTNw1n+kF1mJWg5lQXuA== - dependencies: - "@0x/json-schemas" "^4.1.0-beta.3" - "@0x/typescript-typings" "^4.4.0-beta.2" - "@0x/utils" "^4.6.0-beta.3" - lodash "^4.17.11" - valid-url "^1.0.9" - "@0x/assert@^3.0.2": version "3.0.2" resolved "https://registry.yarnpkg.com/@0x/assert/-/assert-3.0.2.tgz#412c6d06807b59d8a7747d32e87ba56c76a4bac8" @@ -35,43 +13,24 @@ lodash "^4.17.11" valid-url "^1.0.9" -"@0x/dev-utils@^2.4.0-beta.2": - version "2.4.0-beta.2" - resolved "https://registry.yarnpkg.com/@0x/dev-utils/-/dev-utils-2.4.0-beta.2.tgz#68b6d2b2fb4c06a5d69917f8eaa5ceff2cbecb5e" - integrity sha512-jjpv3UpW1uVL7VCmWS4SCidIMwNZ/wULBrcfRFDZZfXdyHcIkyDETJ0k+6f+PxkxVpXRjrbO3BkBvfJDrROmPA== +"@0x/dev-utils@^3.0.2": + version "3.0.2" + resolved "https://registry.yarnpkg.com/@0x/dev-utils/-/dev-utils-3.0.2.tgz#23aef789cb24cc4488078b400bea84a53a5befb3" + integrity sha512-Ha1ksrLf+gEWOCCRBCRPI0BNwJtWpvP9sWZ+JH5+CFFdW1xEGmKrSmBmUTvnaTNXglY3N7nw5POh68et26nL4A== dependencies: - "@0x/subproviders" "^5.1.0-beta.2" - "@0x/types" "^2.5.0-beta.2" - "@0x/typescript-typings" "^4.4.0-beta.2" - "@0x/utils" "^4.6.0-beta.2" - "@0x/web3-wrapper" "^6.1.0-beta.2" + "@0x/subproviders" "^6.0.2" + "@0x/types" "^3.1.1" + "@0x/typescript-typings" "^5.0.1" + "@0x/utils" "^5.1.1" + "@0x/web3-wrapper" "^7.0.2" "@types/web3-provider-engine" "^14.0.0" chai "^4.0.1" chai-as-promised "^7.1.0" chai-bignumber "^3.0.0" dirty-chai "^2.0.1" - ethereum-types "^2.2.0-beta.2" + ethereum-types "^3.0.0" lodash "^4.17.11" - -"@0x/json-schemas@^4.1.0-beta.2": - version "4.1.0-beta.2" - resolved "https://registry.yarnpkg.com/@0x/json-schemas/-/json-schemas-4.1.0-beta.2.tgz#79d05d0c91525e2356f783dae5e572dd3624969f" - integrity sha512-GWLAC4GlcRcn3ct+0wV/ppey+M9bnfnznB1fFcBWS7qmjM0iq36ex3DP48MJroWLWwUiXIWHrAZkp5QCAlc3FA== - dependencies: - "@0x/typescript-typings" "^4.4.0-beta.2" - "@types/node" "*" - jsonschema "^1.2.0" - lodash.values "^4.3.0" - -"@0x/json-schemas@^4.1.0-beta.3": - version "4.1.0-beta.3" - resolved "https://registry.yarnpkg.com/@0x/json-schemas/-/json-schemas-4.1.0-beta.3.tgz#af70a35691108ea162140640bae93a7fc84ca6ee" - integrity sha512-vcgzSeaOXiUQ4KjqdLTTBHbkWnp4IE7cXbUblRy8Y0XYPQsPywhs9mtjY4lBVNmm1DDpLhreo1mwrvPS3HW5YA== - dependencies: - "@0x/typescript-typings" "^4.4.0-beta.2" - "@types/node" "*" - jsonschema "^1.2.0" - lodash.values "^4.3.0" + web3-provider-engine "14.0.6" "@0x/json-schemas@^5.0.2": version "5.0.2" @@ -83,23 +42,23 @@ jsonschema "^1.2.0" lodash.values "^4.3.0" -"@0x/subproviders@^5.1.0-beta.2": - version "5.1.0-beta.2" - resolved "https://registry.yarnpkg.com/@0x/subproviders/-/subproviders-5.1.0-beta.2.tgz#020369711330755448397b3b8cecf2868ae7c54c" - integrity sha512-Nk8iSlR95Zo6L1tq2tHLKupX5bCD/NlxQ/KKli4qyAawyxuXQcQbl8flUApJFd+BYY7mghLDwY5u4o8CCR56Nw== +"@0x/subproviders@^6.0.2": + version "6.0.2" + resolved "https://registry.yarnpkg.com/@0x/subproviders/-/subproviders-6.0.2.tgz#2d00a62d0db81d865dedd0ae43d7594c061e033e" + integrity sha512-YEu+FSSTDqhdnqwVEuT/BgX62iy6aZHIax6L7mPGSyV2o+scFtbR4FKsYRJGeHv2l7BkjCv8rHeSvE4oaw5Lew== dependencies: - "@0x/assert" "^2.2.0-beta.2" - "@0x/types" "^2.5.0-beta.2" - "@0x/typescript-typings" "^4.4.0-beta.2" - "@0x/utils" "^4.6.0-beta.2" - "@0x/web3-wrapper" "^6.1.0-beta.2" + "@0x/assert" "^3.0.2" + "@0x/types" "^3.1.1" + "@0x/typescript-typings" "^5.0.1" + "@0x/utils" "^5.1.1" + "@0x/web3-wrapper" "^7.0.2" "@ledgerhq/hw-app-eth" "^4.3.0" "@ledgerhq/hw-transport-u2f" "4.24.0" "@types/hdkey" "^0.7.0" "@types/web3-provider-engine" "^14.0.0" bip39 "^2.5.0" bn.js "^4.11.8" - ethereum-types "^2.2.0-beta.2" + ethereum-types "^3.0.0" ethereumjs-tx "^1.3.5" ethereumjs-util "^5.1.1" ganache-core "^2.6.0" @@ -111,13 +70,13 @@ optionalDependencies: "@ledgerhq/hw-transport-node-hid" "^4.3.0" -"@0x/ts-doc-gen@^0.0.13": - version "0.0.13" - resolved "https://registry.yarnpkg.com/@0x/ts-doc-gen/-/ts-doc-gen-0.0.13.tgz#0f646d03f951db34b0362948b9ff068d55f30672" - integrity sha512-vEOWfWl9qXDnGG9QBamf0pLzYtIo+cppTU/GzhDhetdcU/3ay57kDU+5Ytg6xybsfQ4I4Mk2Dee+Gg5Lhoi5uw== +"@0x/ts-doc-gen@^0.0.23": + version "0.0.23" + resolved "https://registry.yarnpkg.com/@0x/ts-doc-gen/-/ts-doc-gen-0.0.23.tgz#0998a5d1de88677e3bacce9b09481b73bd53f4c8" + integrity sha512-z7GuxEYBIWcN2sWFksyptLwt4Sxv+OAKIWyWSCjPfmqKXZKkl0htCC3tUa/Zuio+Er+eZ7aydOv5Qyt2Z61N+Q== dependencies: - "@0x/typescript-typings" "^4.2.2" - "@0x/utils" "^4.3.3" + "@0x/typescript-typings" "^5.0.1" + "@0x/utils" "^5.1.1" glob "^7.1.4" promisify-child-process "^3.1.1" rimraf "^2.6.3" @@ -125,10 +84,10 @@ typedoc-plugin-markdown "^2.1.0" yargs "^10.0.3" -"@0x/tslint-config@^3.1.0-beta.2": - version "3.1.0-beta.2" - resolved "https://registry.yarnpkg.com/@0x/tslint-config/-/tslint-config-3.1.0-beta.2.tgz#40a781602a87fd66bc1e1d716a8b2abb61687848" - integrity sha512-KdMYoHXM2wpbMI1/6PvfnJK+R9apFYRyyWBdXExMEkkx4qnDHUUWeucCq6o0y+KRwYX3HXqLyXf9n0D9SRJQgA== +"@0x/tslint-config@^4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@0x/tslint-config/-/tslint-config-4.0.0.tgz#f73eb8d4b84e8825e986df787711dc68ed896b46" + integrity sha512-kFTp6huh3aAzxBr+41LYyYSS4P040vdAcyVRYfQE6jvtzVCG0NpMo5x3RVdXJrQxGJ1yAUMLaWYT3QOzFhIhJg== dependencies: lodash "^4.17.11" tslint "5.11.0" @@ -136,33 +95,6 @@ tslint-react "^3.2.0" tsutils "3.0.0" -"@0x/types@^2.4.1": - version "2.4.1" - resolved "https://registry.yarnpkg.com/@0x/types/-/types-2.4.1.tgz#41a42185dcd093b19ef0d4595a432b285aae4746" - integrity sha512-gJrpxwoV1c1rSWg94RH1fLdfMCwaSCene8p4ckCgwmOzoLaD9Oj1ImErgjzGhmbPugwn6n5HnjoU7cQzeek4nw== - dependencies: - "@types/node" "*" - bignumber.js "~8.0.2" - ethereum-types "^2.1.4" - -"@0x/types@^2.5.0-beta.2": - version "2.5.0-beta.2" - resolved "https://registry.yarnpkg.com/@0x/types/-/types-2.5.0-beta.2.tgz#19d8bda61d5c1b1febc569d30dc8e7bf764d38f9" - integrity sha512-/7+n09z1dngIN7Kw7L+nleGe0+YXCT4O0VzTihZj6Z2vVHCt+Wo4q1ma9r11vviv07tmqglyw7QbYAfTHIz8Ew== - dependencies: - "@types/node" "*" - bignumber.js "~9.0.0" - ethereum-types "^2.2.0-beta.2" - -"@0x/types@^2.5.0-beta.3": - version "2.5.0-beta.3" - resolved "https://registry.yarnpkg.com/@0x/types/-/types-2.5.0-beta.3.tgz#e010e9dbf62e37e59177c1d6df8d1acf3a9ea1b4" - integrity sha512-5wJs4/EZGPcU6W5IZ87zuya9vQUPD4DchyP29bXyguGHg9dOxuUOF4WauJZExWlPCS7eivviiUHpZD9DZhni+w== - dependencies: - "@types/node" "*" - bignumber.js "~9.0.0" - ethereum-types "^2.2.0-beta.2" - "@0x/types@^3.1.1": version "3.1.1" resolved "https://registry.yarnpkg.com/@0x/types/-/types-3.1.1.tgz#b20ca76e9516201b9c27621f941696f41ffc9fac" @@ -172,28 +104,6 @@ bignumber.js "~9.0.0" ethereum-types "^3.0.0" -"@0x/typescript-typings@^4.2.2", "@0x/typescript-typings@^4.2.4": - version "4.2.4" - resolved "https://registry.yarnpkg.com/@0x/typescript-typings/-/typescript-typings-4.2.4.tgz#0858639ddfdf7e9e1a3f9fd8f7d8f2e8ebfdce85" - integrity sha512-yIg8q/bj9+Y0OzNuq59D3JDe4OoQR3bU2QKy+7d8NV6CIfA0GqfWWS+JFdUB45S45qT5P0EmThh/szQ7zuW4oQ== - dependencies: - "@types/bn.js" "^4.11.0" - "@types/react" "*" - bignumber.js "~8.0.2" - ethereum-types "^2.1.4" - popper.js "1.14.3" - -"@0x/typescript-typings@^4.4.0-beta.2": - version "4.4.0-beta.2" - resolved "https://registry.yarnpkg.com/@0x/typescript-typings/-/typescript-typings-4.4.0-beta.2.tgz#67c621252f162914186b8f684ac5e306206c1cf2" - integrity sha512-Fq2nOKvopdLMEjuPiKqomGog06bxAXGjqnodCwv9OKr11V5W1twFTUM3c1TENfHeGvcqf1aMl1hsH3fuVP61jg== - dependencies: - "@types/bn.js" "^4.11.0" - "@types/react" "*" - bignumber.js "~9.0.0" - ethereum-types "^2.2.0-beta.2" - popper.js "1.14.3" - "@0x/typescript-typings@^5.0.1": version "5.0.1" resolved "https://registry.yarnpkg.com/@0x/typescript-typings/-/typescript-typings-5.0.1.tgz#031e291cc506ecd26d3fe10adf618f4f51ff1510" @@ -205,44 +115,6 @@ ethereum-types "^3.0.0" popper.js "1.14.3" -"@0x/utils@^4.3.3": - version "4.4.2" - resolved "https://registry.yarnpkg.com/@0x/utils/-/utils-4.4.2.tgz#8c7899f0f768859a92e805cfa93e57f921cf6122" - integrity sha512-kR0KncZP/m+V5HDUlNNOgcQXmnLA2e7lfovUxNI1XWB8djXDlB42ukqK8A4KRtxlt+A8CsXR64OcXvO8c6wQgA== - dependencies: - "@0x/types" "^2.4.1" - "@0x/typescript-typings" "^4.2.4" - "@types/node" "*" - abortcontroller-polyfill "^1.1.9" - bignumber.js "~8.0.2" - chalk "^2.3.0" - detect-node "2.0.3" - ethereum-types "^2.1.4" - ethereumjs-util "^5.1.1" - ethers "~4.0.4" - isomorphic-fetch "2.2.1" - js-sha3 "^0.7.0" - lodash "^4.17.11" - -"@0x/utils@^4.6.0-beta.2", "@0x/utils@^4.6.0-beta.3": - version "4.6.0-beta.3" - resolved "https://registry.yarnpkg.com/@0x/utils/-/utils-4.6.0-beta.3.tgz#d40278916d98c48ea05821ae4987c88f032c7bff" - integrity sha512-aPIUgfhaDhwgddJAlIQJ2Ki87A60ovatBLCjareLUbsQSvFS5i3iujUBQHgFxZAv9tgl35fyg2ISEJ1YkQyubA== - dependencies: - "@0x/types" "^2.5.0-beta.3" - "@0x/typescript-typings" "^4.4.0-beta.2" - "@types/node" "*" - abortcontroller-polyfill "^1.1.9" - bignumber.js "~9.0.0" - chalk "^2.3.0" - detect-node "2.0.3" - ethereum-types "^2.2.0-beta.2" - ethereumjs-util "^5.1.1" - ethers "~4.0.4" - isomorphic-fetch "2.2.1" - js-sha3 "^0.7.0" - lodash "^4.17.11" - "@0x/utils@^5.1.1": version "5.1.1" resolved "https://registry.yarnpkg.com/@0x/utils/-/utils-5.1.1.tgz#1895529b5ec313f7056819458c8f55fbb19256cb" @@ -262,16 +134,16 @@ js-sha3 "^0.7.0" lodash "^4.17.11" -"@0x/web3-wrapper@^6.1.0-beta.2": - version "6.1.0-beta.3" - resolved "https://registry.yarnpkg.com/@0x/web3-wrapper/-/web3-wrapper-6.1.0-beta.3.tgz#82161147e9283391e0c7cd6027c971749c5a2f77" - integrity sha512-mc8120n8w88gICbDm8pkmC83Ul3RgE4BGsjY5BRBFefmKbv/XLeBZiWdhsaWYmkk8v4f+ZxAQ+HHTBDsRH87Og== +"@0x/web3-wrapper@^7.0.2": + version "7.0.2" + resolved "https://registry.yarnpkg.com/@0x/web3-wrapper/-/web3-wrapper-7.0.2.tgz#afdd12a3c2518207d56372397ae91e4a90634f46" + integrity sha512-kSmrg0E0ZmuNKTKmanxHlRUO5dom8Wr2eDmgG+NZcuWY3EJKIkuxFsz6KRUfoYbVOVT22ZQZazzZIGwoz/LObg== dependencies: - "@0x/assert" "^2.2.0-beta.3" - "@0x/json-schemas" "^4.1.0-beta.3" - "@0x/typescript-typings" "^4.4.0-beta.2" - "@0x/utils" "^4.6.0-beta.3" - ethereum-types "^2.2.0-beta.2" + "@0x/assert" "^3.0.2" + "@0x/json-schemas" "^5.0.2" + "@0x/typescript-typings" "^5.0.1" + "@0x/utils" "^5.1.1" + ethereum-types "^3.0.0" ethereumjs-util "^5.1.1" ethers "~4.0.4" lodash "^4.17.11" @@ -1190,11 +1062,6 @@ bignumber.js@7.2.1: resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-7.2.1.tgz#80c048759d826800807c4bfd521e50edbba57a5f" integrity sha512-S4XzBk5sMB+Rcb/LNcpzXr57VRTxgAvaAEDAl1AwRx27j00hT84O6OkteE7u8UB3NuaaygCRrEpqox4uDOrbdQ== -bignumber.js@~8.0.2: - version "8.0.2" - resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-8.0.2.tgz#d8c4e1874359573b1ef03011a2d861214aeef137" - integrity sha512-EiuvFrnbv0jFixEQ9f58jo7X0qI2lNGIr/MxntmVzQc5JUweDSh8y8hbTCAomFtqwUPIOWcLXP0VEOSZTG7FFw== - bignumber.js@~9.0.0: version "9.0.0" resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-9.0.0.tgz#805880f84a329b5eac6e7cb6f8274b6d82bdf075" @@ -2306,22 +2173,6 @@ ethereum-common@^0.0.18: resolved "https://registry.yarnpkg.com/ethereum-common/-/ethereum-common-0.0.18.tgz#2fdc3576f232903358976eb39da783213ff9523f" integrity sha1-L9w1dvIykDNYl26znaeDIT/5Uj8= -ethereum-types@^2.1.4: - version "2.1.4" - resolved "https://registry.yarnpkg.com/ethereum-types/-/ethereum-types-2.1.4.tgz#5e3f5fd562f354d6334500af7a10bea10da0c7c4" - integrity sha512-plsM51Nj4+yC0G5Z+cxWxQ7OTtwnjKDCT6GZyrpt6NVKTANc5woJTJsjvye2o0xwbbtu89/npFvXpH6D5ohwSA== - dependencies: - "@types/node" "*" - bignumber.js "~8.0.2" - -ethereum-types@^2.2.0-beta.2: - version "2.2.0-beta.2" - resolved "https://registry.yarnpkg.com/ethereum-types/-/ethereum-types-2.2.0-beta.2.tgz#0b446842474c2afacd351258ed4a2d0841f2608f" - integrity sha512-5ANYHI/InHqf4Nt8oYrpvcph9/D6gi3sbM7Rlr8r0QjXb2mqocqEvOH460Zkf1robc7WDqurp9baeMy+um8kww== - dependencies: - "@types/node" "*" - bignumber.js "~9.0.0" - ethereum-types@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/ethereum-types/-/ethereum-types-3.0.0.tgz#9fa3a98b8b9b64a0fab1864de7bc7fd7b1699fcd" From 96e4b840b92158ab6063164241ecc94781a280f6 Mon Sep 17 00:00:00 2001 From: fabioberger Date: Fri, 20 Dec 2019 16:03:39 +0100 Subject: [PATCH 03/50] Remove double comment --- ethereum/contract_addresses.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethereum/contract_addresses.go b/ethereum/contract_addresses.go index ad0e7a381..3f0019ded 100644 --- a/ethereum/contract_addresses.go +++ b/ethereum/contract_addresses.go @@ -59,7 +59,7 @@ type ContractAddresses struct { // ChainIDToContractAddresses maps chainId to a mapping of contract name to Ethereum address // on that given chain var ChainIDToContractAddresses = map[int]ContractAddresses{ - // // Mainnet + // Mainnet 1: ContractAddresses{ ERC20Proxy: common.HexToAddress("0x95e6f48254609a6ee006f7d493c8e5fb97094cef"), ERC721Proxy: common.HexToAddress("0xefc70a1b18c432bdc64b596838b4d138f6bc6cad"), From 25b60f1fb07db0a1421152831972986ab8900efb Mon Sep 17 00:00:00 2001 From: fabioberger Date: Fri, 20 Dec 2019 16:04:06 +0100 Subject: [PATCH 04/50] Remove client_server_test.go that got revived by a faulty merge --- rpc/client_server_test.go | 352 -------------------------------------- 1 file changed, 352 deletions(-) delete mode 100644 rpc/client_server_test.go diff --git a/rpc/client_server_test.go b/rpc/client_server_test.go deleted file mode 100644 index c75026480..000000000 --- a/rpc/client_server_test.go +++ /dev/null @@ -1,352 +0,0 @@ -// +build !js - -package rpc - -import ( - "context" - "encoding/json" - "errors" - "math/big" - "sync" - "testing" - "time" - - "github.com/0xProject/0x-mesh/constants" - "github.com/0xProject/0x-mesh/ethereum" - "github.com/0xProject/0x-mesh/zeroex" - "github.com/0xProject/0x-mesh/zeroex/ordervalidator" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/rpc" - peer "github.com/libp2p/go-libp2p-peer" - peerstore "github.com/libp2p/go-libp2p-peerstore" - ma "github.com/multiformats/go-multiaddr" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -// dummyRPCHandler is used for testing purposes. It allows declaring handlers -// for some requests or all of them, depending on testing needs. -type dummyRPCHandler struct { - addOrdersHandler func(signedOrdersRaw []*json.RawMessage, opts AddOrdersOpts) (*ordervalidator.ValidationResults, error) - getOrdersHandler func(page, perPage int, snapshotID string) (*GetOrdersResponse, error) - addPeerHandler func(peerInfo peerstore.PeerInfo) error - getStatsHandler func() (*GetStatsResponse, error) - subscribeToOrdersHandler func(ctx context.Context) (*rpc.Subscription, error) -} - -func (d *dummyRPCHandler) AddOrders(signedOrdersRaw []*json.RawMessage, opts AddOrdersOpts) (*ordervalidator.ValidationResults, error) { - if d.addOrdersHandler == nil { - return nil, errors.New("dummyRPCHandler: no handler set for AddOrder") - } - return d.addOrdersHandler(signedOrdersRaw, opts) -} - -func (d *dummyRPCHandler) GetOrders(page, perPage int, snapshotID string) (*GetOrdersResponse, error) { - if d.getOrdersHandler == nil { - return nil, errors.New("dummyRPCHandler: no handler set for GetOrders") - } - return d.getOrdersHandler(page, perPage, snapshotID) -} - -func (d *dummyRPCHandler) AddPeer(peerInfo peerstore.PeerInfo) error { - if d.addPeerHandler == nil { - return errors.New("dummyRPCHandler: no handler set for AddPeer") - } - return d.addPeerHandler(peerInfo) -} - -func (d *dummyRPCHandler) GetStats() (*GetStatsResponse, error) { - if d.getStatsHandler == nil { - return nil, errors.New("dummyRPCHandler: no handler set for GetStats") - } - return d.getStatsHandler() -} - -func (d *dummyRPCHandler) SubscribeToOrders(ctx context.Context) (*rpc.Subscription, error) { - if d.subscribeToOrdersHandler == nil { - return nil, errors.New("dummyRPCHandler: no handler set for Orders") - } - return d.subscribeToOrdersHandler(ctx) -} - -// newTestServerAndClient returns a server and client which have been connected -// to one another on the local network. The server will use the given -// orderHandler to handle incoming requests. Useful for testing purposes. Will -// block until both the server and client are running and connected to one -// another. -func newTestServerAndClient(t *testing.T, rpcHandler *dummyRPCHandler, ctx context.Context) (*Server, *Client) { - // Start a new server. - server, err := NewServer(":0", rpcHandler) - require.NoError(t, err) - go func() { - err := server.Listen(ctx) - if err != nil { - panic(err) - } - require.NoError(t, err) - }() - - // We need to wait for the OS to choose an available port and for server.Addr - // to return a non-nil value. - for server.Addr() == nil { - time.Sleep(10 * time.Millisecond) - } - - // Create a new client which is connected to the server. - client, err := NewClient("ws://" + server.Addr().String()) - require.NoError(t, err) - - return server, client -} - -var testOrder = &zeroex.Order{ - ChainID: big.NewInt(constants.TestChainID), - MakerAddress: constants.GanacheAccount0, - TakerAddress: constants.NullAddress, - SenderAddress: constants.NullAddress, - FeeRecipientAddress: common.HexToAddress("0xa258b39954cef5cb142fd567a46cddb31a670124"), - MakerAssetData: common.Hex2Bytes("f47261b000000000000000000000000034d402f14d58e001d8efbe6585051bf9706aa064"), - MakerFeeAssetData: constants.NullBytes, - TakerAssetData: common.Hex2Bytes("f47261b000000000000000000000000025b8fe1de9daf8ba351890744ff28cf7dfa8f5e3"), - TakerFeeAssetData: constants.NullBytes, - Salt: big.NewInt(1548619145450), - MakerFee: big.NewInt(0), - TakerFee: big.NewInt(0), - MakerAssetAmount: big.NewInt(3551808554499581700), - TakerAssetAmount: big.NewInt(300000000000000), - ExpirationTimeSeconds: big.NewInt(1548619325), - ExchangeAddress: ethereum.ChainIDToContractAddresses[constants.TestChainID].Exchange, -} - -func TestAddOrdersSuccess(t *testing.T) { - signedTestOrder, err := zeroex.SignTestOrder(testOrder) - require.NoError(t, err) - - expectedFillableTakerAssetAmount := signedTestOrder.TakerAssetAmount - - // Set up the dummy handler with an addOrdersHandler - wg := &sync.WaitGroup{} - wg.Add(1) - rpcHandler := &dummyRPCHandler{ - addOrdersHandler: func(signedOrdersRaw []*json.RawMessage, opts AddOrdersOpts) (*ordervalidator.ValidationResults, error) { - require.Len(t, signedOrdersRaw, 1) - validationResponse := &ordervalidator.ValidationResults{} - for _, signedOrderRaw := range signedOrdersRaw { - signedOrder := &zeroex.SignedOrder{} - err := signedOrder.UnmarshalJSON([]byte(*signedOrderRaw)) - require.NoError(t, err) - orderHash, err := signedOrder.ComputeOrderHash() - require.NoError(t, err) - validationResponse.Accepted = append(validationResponse.Accepted, &ordervalidator.AcceptedOrderInfo{ - OrderHash: orderHash, - SignedOrder: signedOrder, - FillableTakerAssetAmount: signedOrder.TakerAssetAmount, - IsNew: true, - }) - } - wg.Done() - return validationResponse, nil - }, - } - - ctx, cancel := context.WithCancel(context.Background()) - defer cancel() - _, client := newTestServerAndClient(t, rpcHandler, ctx) - - signedTestOrders := []*zeroex.SignedOrder{signedTestOrder} - validationResponse, err := client.AddOrders(signedTestOrders) - require.NoError(t, err) - expectedOrderHash, err := testOrder.ComputeOrderHash() - require.NoError(t, err) - assert.Len(t, validationResponse.Accepted, 1) - assert.Len(t, validationResponse.Rejected, 0) - - // We need to call ResetHash so that unexported hash field is equal in later - // assertions. - signedTestOrder.ResetHash() - - acceptedOrderInfo := validationResponse.Accepted[0] - assert.Equal(t, expectedOrderHash, acceptedOrderInfo.OrderHash, "orderHashes did not match") - assert.Equal(t, signedTestOrder, acceptedOrderInfo.SignedOrder, "signedOrder did not match") - assert.Equal(t, expectedFillableTakerAssetAmount, acceptedOrderInfo.FillableTakerAssetAmount, "fillableTakerAssetAmount did not match") - - // The WaitGroup signals that AddOrders was called on the server-side. - wg.Wait() -} - -func TestGetOrdersSuccess(t *testing.T) { - signedTestOrder, err := zeroex.SignTestOrder(testOrder) - require.NoError(t, err) - - expectedFillableTakerAssetAmount := signedTestOrder.TakerAssetAmount - - expectedPage := 0 - expectedPerPage := 5 - expectedSnapshotID := "" - returnedSnapshotID := "0x123" - - // Set up the dummy handler with an addOrdersHandler - wg := &sync.WaitGroup{} - wg.Add(1) - rpcHandler := &dummyRPCHandler{ - getOrdersHandler: func(page, perPage int, snapshotID string) (*GetOrdersResponse, error) { - assert.Equal(t, expectedPage, page) - assert.Equal(t, expectedPerPage, perPage) - assert.Equal(t, expectedSnapshotID, snapshotID) - orderHash, err := signedTestOrder.ComputeOrderHash() - require.NoError(t, err) - ordersInfos := []*OrderInfo{ - &OrderInfo{ - OrderHash: orderHash, - SignedOrder: signedTestOrder, - FillableTakerAssetAmount: expectedFillableTakerAssetAmount, - }, - } - wg.Done() - return &GetOrdersResponse{ - SnapshotID: returnedSnapshotID, - OrdersInfos: ordersInfos, - }, nil - }, - } - - ctx, cancel := context.WithCancel(context.Background()) - defer cancel() - _, client := newTestServerAndClient(t, rpcHandler, ctx) - - getOrdersResponse, err := client.GetOrders(expectedPage, expectedPerPage, expectedSnapshotID) - require.NoError(t, err) - expectedOrderHash, err := testOrder.ComputeOrderHash() - require.NoError(t, err) - assert.Len(t, getOrdersResponse.OrdersInfos, 1) - - assert.Equal(t, returnedSnapshotID, getOrdersResponse.SnapshotID, "SnapshotID did not match") - - // We need to call ResetHash so that unexported hash field is equal in later - // assertions. - signedTestOrder.ResetHash() - - orderInfo := getOrdersResponse.OrdersInfos[0] - assert.Equal(t, expectedOrderHash, orderInfo.OrderHash, "orderHashes did not match") - assert.Equal(t, signedTestOrder, orderInfo.SignedOrder, "signedOrder did not match") - assert.Equal(t, expectedFillableTakerAssetAmount, orderInfo.FillableTakerAssetAmount, "fillableTakerAssetAmount did not match") - - // The WaitGroup signals that AddOrders was called on the server-side. - wg.Wait() -} - -func TestAddPeer(t *testing.T) { - // Create the expected PeerInfo - addr0, err := ma.NewMultiaddr("/ip4/127.0.0.1/tcp/1234") - require.NoError(t, err) - addr1, err := ma.NewMultiaddr("/ip4/127.0.0.1/tcp/5678") - require.NoError(t, err) - peerID, err := peer.IDB58Decode("QmagLpXZHNrTraqWpY49xtFmZMTLBWctx2PF96s4aFrj9f") - require.NoError(t, err) - expectedPeerInfo := peerstore.PeerInfo{ - ID: peerID, - Addrs: []ma.Multiaddr{addr0, addr1}, - } - - // Set up the dummy handler with an addPeerHandler - wg := &sync.WaitGroup{} - wg.Add(1) - rpcHandler := &dummyRPCHandler{ - addPeerHandler: func(peerInfo peerstore.PeerInfo) error { - assert.Equal(t, expectedPeerInfo, peerInfo, "AddPeer was called with an unexpected peerInfo argument") - wg.Done() - return nil - }, - } - - ctx, cancel := context.WithCancel(context.Background()) - defer cancel() - _, client := newTestServerAndClient(t, rpcHandler, ctx) - - require.NoError(t, client.AddPeer(expectedPeerInfo)) - - // The WaitGroup signals that AddPeer was called on the server-side. - wg.Wait() -} - -func TestGetStats(t *testing.T) { - expectedGetStatsResponse := &GetStatsResponse{ - Version: "development", - PubSubTopic: "/0x-orders/network/development/version/1", - Rendezvous: "/0x-mesh/network/development/version/1", - PeerID: "16Uiu2HAmJ827EAibLvJxGMj6BvT1tr2e2ssW4cMtpP15qoQqZGSA", - EthereumChainID: 42, - LatestBlock: LatestBlock{ - Number: 1, - Hash: common.HexToHash("0x0000000000000000000000000000000000000000000000000000000000000000"), - }, - NumOrders: 0, - NumPeers: 0, - } - - // Set up the dummy handler with a getStatsHandler - wg := &sync.WaitGroup{} - wg.Add(1) - rpcHandler := &dummyRPCHandler{ - getStatsHandler: func() (*GetStatsResponse, error) { - wg.Done() - return expectedGetStatsResponse, nil - }, - } - - ctx, cancel := context.WithCancel(context.Background()) - defer cancel() - _, client := newTestServerAndClient(t, rpcHandler, ctx) - - getStatsResponse, err := client.GetStats() - require.NoError(t, err) - require.Equal(t, expectedGetStatsResponse, getStatsResponse) - - // The WaitGroup signals that GetStats was called on the server-side. - wg.Wait() -} - -func TestOrdersSubscription(t *testing.T) { - ctx := context.Background() - - // Set up the dummy handler with a subscribeToOrdersHandler - wg := &sync.WaitGroup{} - wg.Add(1) - rpcHandler := &dummyRPCHandler{ - subscribeToOrdersHandler: func(ctx context.Context) (*rpc.Subscription, error) { - wg.Done() - return nil, nil - }, - } - - ctx, cancel := context.WithCancel(context.Background()) - defer cancel() - _, client := newTestServerAndClient(t, rpcHandler, ctx) - - orderEventChan := make(chan []*zeroex.OrderEvent) - clientSubscription, err := client.SubscribeToOrders(ctx, orderEventChan) - require.NoError(t, err) - assert.NotNil(t, clientSubscription, "clientSubscription not nil") - - // The WaitGroup signals that AddOrder was called on the server-side. - wg.Wait() -} - -func TestHeartbeatSubscription(t *testing.T) { - ctx := context.Background() - - rpcHandler := &dummyRPCHandler{} - - ctx, cancel := context.WithCancel(context.Background()) - defer cancel() - _, client := newTestServerAndClient(t, rpcHandler, ctx) - - heartbeatChan := make(chan string) - clientSubscription, err := client.SubscribeToHeartbeat(ctx, heartbeatChan) - defer clientSubscription.Unsubscribe() - require.NoError(t, err) - assert.NotNil(t, clientSubscription, "clientSubscription not nil") - - heartbeat := <-heartbeatChan - assert.Equal(t, "tick", heartbeat) -} From 0414f0bc27b9c8715fd360c65affdda0213bbed1 Mon Sep 17 00:00:00 2001 From: fabioberger Date: Fri, 20 Dec 2019 16:04:26 +0100 Subject: [PATCH 05/50] Remove unused dep --- rpc/clients/typescript/package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/rpc/clients/typescript/package.json b/rpc/clients/typescript/package.json index 4a19bb10e..cf77a8a5a 100644 --- a/rpc/clients/typescript/package.json +++ b/rpc/clients/typescript/package.json @@ -52,7 +52,6 @@ "@types/mocha": "^2.2.42", "@types/uuid": "^3.4.3", "@types/websocket": "^0.0.40", - "@types/detect-node": "2.0.0", "chai": "^4.0.1", "chai-as-promised": "^7.1.0", "chai-bignumber": "^3.0.0", From 12746d7d13eeddebe7e72df687c4aaa1371c37c7 Mon Sep 17 00:00:00 2001 From: fabioberger Date: Fri, 20 Dec 2019 16:17:06 +0100 Subject: [PATCH 06/50] Remove "as any" BigNumber hack now that BigNumber version is set to 9.0.0 in all dependencies --- examples/browser/src/index.ts | 17 +- integration-tests/browser/package.json | 1 + integration-tests/browser/src/index.ts | 15 +- integration-tests/browser/yarn.lock | 1137 ++++++++--------- rpc/clients/typescript/test/ws_client_test.ts | 12 +- rpc/clients/typescript/yarn.lock | 5 - 6 files changed, 589 insertions(+), 598 deletions(-) diff --git a/examples/browser/src/index.ts b/examples/browser/src/index.ts index 49e770eab..398e4a613 100644 --- a/examples/browser/src/index.ts +++ b/examples/browser/src/index.ts @@ -28,22 +28,17 @@ import { Mesh, OrderEvent, SignedOrder, BigNumber } from '@0x/mesh-browser'; const order: SignedOrder = { makerAddress: '0xa3eCE5D5B6319Fa785EfC10D3112769a46C6E149', makerAssetData: '0xf47261b0000000000000000000000000e41d2489571d322189246dafa5ebde1f4699f498', - // HACK(albrow): Webpack doesn't think that this BigNumber type is - // compatible due to "separate declarations of a private property - // '_isBigNumber'". Using `is any` to workaround the issue. I think this - // workaround won't be necessary anymore after we publish the package - // instead of using a local Yarn package. - makerAssetAmount: new BigNumber('1000000000000000000') as any, - makerFee: new BigNumber('0') as any, + makerAssetAmount: new BigNumber('1000000000000000000'), + makerFee: new BigNumber('0'), takerAddress: '0x0000000000000000000000000000000000000000', takerAssetData: '0xf47261b0000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2', - takerAssetAmount: new BigNumber('10000000000000000000000') as any, - takerFee: new BigNumber('0') as any, + takerAssetAmount: new BigNumber('10000000000000000000000'), + takerFee: new BigNumber('0'), senderAddress: '0x0000000000000000000000000000000000000000', exchangeAddress: '0x080bf510FCbF18b91105470639e9561022937712', feeRecipientAddress: '0x0000000000000000000000000000000000000000', - expirationTimeSeconds: new BigNumber('1586340602') as any, - salt: new BigNumber('41253767178111694375645046549067933145709740457131351457334397888365956743955') as any, + expirationTimeSeconds: new BigNumber('1586340602'), + salt: new BigNumber('41253767178111694375645046549067933145709740457131351457334397888365956743955'), signature: '0x1c0827552a3bde2c72560362950a69f581ae7a1e6fa8c160bb437f3a61002bb96c22b646edd3b103b976db4aa4840a11c13306b2a02a0bb6ce647806c858c238ec03', }; diff --git a/integration-tests/browser/package.json b/integration-tests/browser/package.json index f85d50cc0..66327653a 100644 --- a/integration-tests/browser/package.json +++ b/integration-tests/browser/package.json @@ -17,6 +17,7 @@ }, "dependencies": { "@0x/mesh-browser": "./../../browser/", + "@0x/utils": "^5.1.1", "@0x/order-utils": "^10.0.1", "@0x/subproviders": "^6.0.2" } diff --git a/integration-tests/browser/src/index.ts b/integration-tests/browser/src/index.ts index 439a0fe8b..d59c01298 100644 --- a/integration-tests/browser/src/index.ts +++ b/integration-tests/browser/src/index.ts @@ -1,4 +1,5 @@ -import { Mesh, OrderEvent, BigNumber, Verbosity } from '@0x/mesh-browser'; +import { Mesh, OrderEvent, Verbosity } from '@0x/mesh-browser'; +import { BigNumber } from '@0x/utils'; import { Web3ProviderEngine, RPCSubprovider } from '@0x/subproviders'; import { signatureUtils, Order, orderHashUtils } from '@0x/order-utils'; @@ -18,18 +19,18 @@ provider.start(); makerAddress: '0x6ecbe1db9ef729cbe972c83fb886247691fb6beb', makerAssetData: '0xf47261b0000000000000000000000000871dd7c2b4b25e1aa18728e9d5f2af4c4e431f5c', makerFeeAssetData: '0x', - makerAssetAmount: new BigNumber('100000000000000000000') as any, - makerFee: new BigNumber('0') as any, + makerAssetAmount: new BigNumber('100000000000000000000'), + makerFee: new BigNumber('0'), takerAddress: '0x0000000000000000000000000000000000000000', takerAssetData: '0xf47261b00000000000000000000000000b1ba0af832d7c05fd64161e0db78e85978e8082', takerFeeAssetData: '0x', - takerAssetAmount: new BigNumber('50000000000000000000') as any, - takerFee: new BigNumber('0') as any, + takerAssetAmount: new BigNumber('50000000000000000000'), + takerFee: new BigNumber('0'), senderAddress: '0x0000000000000000000000000000000000000000', exchangeAddress: '0x48bacb9266a570d521063ef5dd96e61686dbe788', feeRecipientAddress: '0xa258b39954cef5cb142fd567a46cddb31a670124', - expirationTimeSeconds: new BigNumber(expirationTime) as any, - salt: new BigNumber('1548619145450') as any, + expirationTimeSeconds: new BigNumber(expirationTime), + salt: new BigNumber('1548619145450'), chainId: 1337, }; const signedOrder = await signatureUtils.ecSignOrderAsync(provider, order, order.makerAddress); diff --git a/integration-tests/browser/yarn.lock b/integration-tests/browser/yarn.lock index d5c958322..b2dce8a42 100644 --- a/integration-tests/browser/yarn.lock +++ b/integration-tests/browser/yarn.lock @@ -165,49 +165,49 @@ ethers "~4.0.4" lodash "^4.17.11" -"@ledgerhq/devices@^4.68.4": - version "4.68.4" - resolved "https://registry.yarnpkg.com/@ledgerhq/devices/-/devices-4.68.4.tgz#237f628442215e2d6fe803c4785d6e15a488b87b" - integrity sha512-eFfwn9g6wnPN0ajlVVqYDN5zVR3jX131SFNERFSjaoYEzqvZS2LronLP8LurLNhd06L0TEM2PADhv1r8gudjEQ== +"@ledgerhq/devices@^4.78.0": + version "4.78.0" + resolved "https://registry.yarnpkg.com/@ledgerhq/devices/-/devices-4.78.0.tgz#149b572f0616096e2bd5eb14ce14d0061c432be6" + integrity sha512-tWKS5WM/UU82czihnVjRwz9SXNTQzWjGJ/7+j/xZ70O86nlnGJ1aaFbs5/WTzfrVKpOKgj1ZoZkAswX67i/JTw== dependencies: - "@ledgerhq/errors" "^4.68.4" - "@ledgerhq/logs" "^4.68.2" - rxjs "^6.5.2" + "@ledgerhq/errors" "^4.78.0" + "@ledgerhq/logs" "^4.72.0" + rxjs "^6.5.3" -"@ledgerhq/errors@^4.68.4": - version "4.68.4" - resolved "https://registry.yarnpkg.com/@ledgerhq/errors/-/errors-4.68.4.tgz#4ad77f76a1065cacf45578073a24255af3332938" - integrity sha512-Iozs0kCGwxOFKX+lbSwrEv2JJ/Kaqg7nS+YHXvRNxA69dNZ+Tv652yfnVs1VWwY2snV4HVC/FM9aw+Drp+L9VA== +"@ledgerhq/errors@^4.78.0": + version "4.78.0" + resolved "https://registry.yarnpkg.com/@ledgerhq/errors/-/errors-4.78.0.tgz#23daf3af54d03b1bda3e616002b555da1bdb705a" + integrity sha512-FX6zHZeiNtegBvXabK6M5dJ+8OV8kQGGaGtuXDeK/Ss5EmG4Ltxc6Lnhe8hiHpm9pCHtktOsnUVL7IFBdHhYUg== "@ledgerhq/hw-app-eth@^4.3.0": - version "4.69.1" - resolved "https://registry.yarnpkg.com/@ledgerhq/hw-app-eth/-/hw-app-eth-4.69.1.tgz#1a8d54240c6d40892f975f88206c06d59b8efc89" - integrity sha512-aFKLN+N4eGMZJX14acOjjpKM4BVHipKpG11tt57m8Ra7pW+CkOomm5BVixRJrjHozIX1XlJ1wNtlenzWtBlKww== - dependencies: - "@ledgerhq/errors" "^4.68.4" - "@ledgerhq/hw-transport" "^4.68.4" - -"@ledgerhq/hw-transport-node-hid-noevents@^4.68.4": - version "4.68.4" - resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport-node-hid-noevents/-/hw-transport-node-hid-noevents-4.68.4.tgz#2a34798f094b8467ca97cb5bd3844f918ccab93e" - integrity sha512-inMj1+fzPduDVZH/UTnJUH/RMr+VzYrN4tklzb2J34YEPemhQpJPz83JtgyXwZpB3einkawN+mWEJjnwGGfeMg== - dependencies: - "@ledgerhq/devices" "^4.68.4" - "@ledgerhq/errors" "^4.68.4" - "@ledgerhq/hw-transport" "^4.68.4" - "@ledgerhq/logs" "^4.68.2" + version "4.78.0" + resolved "https://registry.yarnpkg.com/@ledgerhq/hw-app-eth/-/hw-app-eth-4.78.0.tgz#fbd7ffe7f371d0c32a53f38c5149ab8d13514297" + integrity sha512-m4s4Zhy4lwYJjZB3xPeGV/8mxQcnoui+Eu1KDEl6atsquZHUpbtern/0hZl88+OlFUz0XrX34W3I9cqj61Y6KA== + dependencies: + "@ledgerhq/errors" "^4.78.0" + "@ledgerhq/hw-transport" "^4.78.0" + +"@ledgerhq/hw-transport-node-hid-noevents@^4.78.0": + version "4.78.0" + resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport-node-hid-noevents/-/hw-transport-node-hid-noevents-4.78.0.tgz#6f0dbe1bbfad6516b42ad2d6b6b34a8b07e4cd46" + integrity sha512-CJPVR4wksq+apiXH2GnsttguBxmj9zdM2HjqZ3dHZN8SFW/9Xj3k+baS+pYoUISkECVxDrdfaW3Bd5dWv+jPUg== + dependencies: + "@ledgerhq/devices" "^4.78.0" + "@ledgerhq/errors" "^4.78.0" + "@ledgerhq/hw-transport" "^4.78.0" + "@ledgerhq/logs" "^4.72.0" node-hid "^0.7.9" "@ledgerhq/hw-transport-node-hid@^4.3.0": - version "4.68.4" - resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport-node-hid/-/hw-transport-node-hid-4.68.4.tgz#1ee897f2b1904df5b501faaaeab09c597108e4bd" - integrity sha512-IK/FoXIgbNikhS8utbYPl9BNeoy3Mqi06pCUXYQYnx6fLogC6mFQbJGdPu9wG794MGParB02k/9P0wB0CrGx6w== - dependencies: - "@ledgerhq/devices" "^4.68.4" - "@ledgerhq/errors" "^4.68.4" - "@ledgerhq/hw-transport" "^4.68.4" - "@ledgerhq/hw-transport-node-hid-noevents" "^4.68.4" - "@ledgerhq/logs" "^4.68.2" + version "4.78.0" + resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport-node-hid/-/hw-transport-node-hid-4.78.0.tgz#abd99e0f918b810a61c035e5ab8c2bd8807aff55" + integrity sha512-OMrY2ecfQ1XjMAuuHqu3n3agMPR06HN1s0ENrKc+Twbb5A17jujpv07WzjxfTN2V1G7vgeZpRqrg2ulhowWbdg== + dependencies: + "@ledgerhq/devices" "^4.78.0" + "@ledgerhq/errors" "^4.78.0" + "@ledgerhq/hw-transport" "^4.78.0" + "@ledgerhq/hw-transport-node-hid-noevents" "^4.78.0" + "@ledgerhq/logs" "^4.72.0" lodash "^4.17.15" node-hid "^0.7.9" usb "^1.6.0" @@ -220,19 +220,19 @@ "@ledgerhq/hw-transport" "^4.24.0" u2f-api "0.2.7" -"@ledgerhq/hw-transport@^4.24.0", "@ledgerhq/hw-transport@^4.68.4": - version "4.68.4" - resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport/-/hw-transport-4.68.4.tgz#af369849df332f8a5f0ecf725f848993024b6e77" - integrity sha512-M5HmWmwrqEf+kDFUnGkzdVt45MQu4E0YdhrzyVCO+YtU23j4tszMrMur/qLbyClK3K+dPe/yIaQfdiNN5JjvpQ== +"@ledgerhq/hw-transport@^4.24.0", "@ledgerhq/hw-transport@^4.78.0": + version "4.78.0" + resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport/-/hw-transport-4.78.0.tgz#714786658e1f2fbc0569e06e2abf8d15d310d931" + integrity sha512-xQu16OMPQjFYLjqCysij+8sXtdWv2YLxPrB6FoLvEWGTlQ7yL1nUBRQyzyQtWIYqZd4THQowQmzm1VjxuN6SZw== dependencies: - "@ledgerhq/devices" "^4.68.4" - "@ledgerhq/errors" "^4.68.4" + "@ledgerhq/devices" "^4.78.0" + "@ledgerhq/errors" "^4.78.0" events "^3.0.0" -"@ledgerhq/logs@^4.68.2": - version "4.68.2" - resolved "https://registry.yarnpkg.com/@ledgerhq/logs/-/logs-4.68.2.tgz#3ba74680927807f83d9f0bfd7da45f192d2c0893" - integrity sha512-iFwGIzPmAMDvxVLtTvBUo0DCWz8vVaD0C4IsprNaXbxu+AsDmlc9kO9CKLB5YFEZblKNNKqJMJDfKvg5brIpTw== +"@ledgerhq/logs@^4.72.0": + version "4.72.0" + resolved "https://registry.yarnpkg.com/@ledgerhq/logs/-/logs-4.72.0.tgz#43df23af013ad1135407e5cf33ca6e4c4c7708d5" + integrity sha512-o+TYF8vBcyySRsb2kqBDv/KMeme8a2nwWoG+lAWzbDmWfb2/MrVWYCVYDYvjXdSoI/Cujqy1i0gIDrkdxa9chA== "@sindresorhus/is@^0.14.0": version "0.14.0" @@ -246,7 +246,7 @@ dependencies: defer-to-connect "^1.0.1" -"@types/bn.js@^4.11.0": +"@types/bn.js@^4.11.0", "@types/bn.js@^4.11.3": version "4.11.5" resolved "https://registry.yarnpkg.com/@types/bn.js/-/bn.js-4.11.5.tgz#40e36197433f78f807524ec623afcf0169ac81dc" integrity sha512-AEAZcIZga0JgVMHNtl1CprA/hXX7/wPt79AgR4XqaDt7jyj3QWYw6LPoOiznPtugDmlubUnAahMs2PFxGcQrng== @@ -261,31 +261,31 @@ bignumber.js "7.2.1" "@types/hdkey@^0.7.0": - version "0.7.0" - resolved "https://registry.yarnpkg.com/@types/hdkey/-/hdkey-0.7.0.tgz#6734d138e3c597f241be8fae2e60c2949bc3af87" - integrity sha512-hS/ueljJBb6i7r7VqhgmBVmDqGKMqQg2nlGIaf71CCG6+iGNE7yeaHgtBWR/wveD+o+K0ma0VE/XweUBHHTQFQ== + version "0.7.1" + resolved "https://registry.yarnpkg.com/@types/hdkey/-/hdkey-0.7.1.tgz#9bc63ebbe96b107b277b65ea7a95442a677d0d61" + integrity sha512-4Kkr06hq+R8a9EzVNqXGOY2x1xA7dhY6qlp6OvaZ+IJy1BCca1Cv126RD9X7CMJoXoLo8WvAizy8gQHpqW6K0Q== dependencies: "@types/node" "*" "@types/node@*": - version "12.7.2" - resolved "https://registry.yarnpkg.com/@types/node/-/node-12.7.2.tgz#c4e63af5e8823ce9cc3f0b34f7b998c2171f0c44" - integrity sha512-dyYO+f6ihZEtNPDcWNR1fkoTDf3zAK3lAABDze3mz6POyIercH0lEUawUFXlG8xaQZmm1yEBON/4TsYv/laDYg== + version "12.12.21" + resolved "https://registry.yarnpkg.com/@types/node/-/node-12.12.21.tgz#aa44a6363291c7037111c47e4661ad210aded23f" + integrity sha512-8sRGhbpU+ck1n0PGAUgVrWrWdjSW2aqNeyC15W88GRsMpSwzv6RJGlLhE7s2RhVSOdyDmxbqlWSeThq4/7xqlA== "@types/node@^10.3.2": - version "10.14.16" - resolved "https://registry.yarnpkg.com/@types/node/-/node-10.14.16.tgz#4d690c96cbb7b2728afea0e260d680501b3da5cf" - integrity sha512-/opXIbfn0P+VLt+N8DE4l8Mn8rbhiJgabU96ZJ0p9mxOkIks5gh6RUnpHak7Yh0SFkyjO/ODbxsQQPV2bpMmyA== + version "10.17.11" + resolved "https://registry.yarnpkg.com/@types/node/-/node-10.17.11.tgz#46ba035fb917b31c948280dbea22ab8838f386a4" + integrity sha512-dNd2pp8qTzzNLAs3O8nH3iU9DG9866KHq9L3ISPB7DOGERZN81nW/5/g/KzMJpCU8jrbCiMRBzV9/sCEdRosig== "@types/prop-types@*": - version "15.7.1" - resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.1.tgz#f1a11e7babb0c3cad68100be381d1e064c68f1f6" - integrity sha512-CFzn9idOEpHrgdw8JsoTkaDDyRWk1jrzIV8djzcgpq0y9tG4B4lFT+Nxh52DVpDXV+n4+NPNv7M1Dj5uMp6XFg== + version "15.7.3" + resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.3.tgz#2ab0d5da2e5815f94b0b9d4b95d1e5f243ab2ca7" + integrity sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw== "@types/react@*": - version "16.9.2" - resolved "https://registry.yarnpkg.com/@types/react/-/react-16.9.2.tgz#6d1765431a1ad1877979013906731aae373de268" - integrity sha512-jYP2LWwlh+FTqGd9v7ynUKZzjj98T8x7Yclz479QdRhHfuW9yQ+0jjnD31eXSXutmBpppj5PYNLYLRfnZJvcfg== + version "16.9.17" + resolved "https://registry.yarnpkg.com/@types/react/-/react-16.9.17.tgz#58f0cc0e9ec2425d1441dd7b623421a867aa253e" + integrity sha512-UP27In4fp4sWF5JgyV6pwVPAQM83Fj76JOcg02X5BZcpSu5Wx+fP9RMqc2v0ssBoQIFvD5JdKY41gjJJKmw6Bg== dependencies: "@types/prop-types" "*" csstype "^2.2.0" @@ -453,15 +453,10 @@ resolved "https://registry.yarnpkg.com/@xtuc/long/-/long-4.2.2.tgz#d291c6a4e97989b5c61d9acf396ae4fe133a718d" integrity sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ== -abbrev@1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" - integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q== - abortcontroller-polyfill@^1.1.9: - version "1.3.0" - resolved "https://registry.yarnpkg.com/abortcontroller-polyfill/-/abortcontroller-polyfill-1.3.0.tgz#de69af32ae926c210b7efbcc29bf644ee4838b00" - integrity sha512-lbWQgf+eRvku3va8poBlDBO12FigTQr9Zb7NIjXrePrhxWVKdCP2wbDl1tLDaYa18PWTom3UEWwdH13S46I+yA== + version "1.4.0" + resolved "https://registry.yarnpkg.com/abortcontroller-polyfill/-/abortcontroller-polyfill-1.4.0.tgz#0d5eb58e522a461774af8086414f68e1dda7a6c4" + integrity sha512-3ZFfCRfDzx3GFjO6RAkYx81lPGpUS20ISxux9gLxuKnqafNcFQo59+IoZqpO2WvQlyc287B62HDnDdNYRmlvWA== abstract-leveldown@3.0.0: version "3.0.0" @@ -500,9 +495,9 @@ accepts@~1.3.7: negotiator "0.6.2" acorn@^6.2.1: - version "6.3.0" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.3.0.tgz#0087509119ffa4fc0a0041d1e93a417e68cb856e" - integrity sha512-/czfa8BwS88b9gWQVhc8eknunSA2DoJpJyTQkhheIf5E48u1N0R4q/YxxsAeqRrmK9TQ/uYfgLDfZo91UlANIA== + version "6.4.0" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.4.0.tgz#b659d2ffbafa24baf5db1cdbb2c94a983ecd2784" + integrity sha512-gac8OEcQ2Li1dxIEWGZzsp2BitJxwkwcOm0zHAJLcPJaVvm58FRnk6RkuLRpU1EujipU2ZFODv2P9DLMfnV8mw== aes-js@3.0.0: version "3.0.0" @@ -794,9 +789,9 @@ aws-sign2@~0.7.0: integrity sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg= aws4@^1.8.0: - version "1.8.0" - resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.8.0.tgz#f0e003d9ca9e7f59c7a508945d7b2ef9a04a542f" - integrity sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ== + version "1.9.0" + resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.9.0.tgz#24390e6ad61386b0a747265754d2a17219de862c" + integrity sha512-Uvq6hVe90D0B2WEnUqtdgY1bATGz3mw33nH9Y+dmA+w5DHvUmBgkr5rM/KCHpCsiFNRUfokW/szpPPgMK2hm4A== babel-code-frame@^6.26.0: version "6.26.0" @@ -1345,9 +1340,9 @@ balanced-match@^1.0.0: integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c= base-x@^3.0.2: - version "3.0.6" - resolved "https://registry.yarnpkg.com/base-x/-/base-x-3.0.6.tgz#de047ec95f5f7b99ae63d830a2a894c96538b2cd" - integrity sha512-4PaF8u2+AlViJxRVjurkLTxpp7CaFRD/jo5rPT9ONnKxyhQ8f59yzamEvq7EkriG56yn5On4ONyaG75HLqr46w== + version "3.0.7" + resolved "https://registry.yarnpkg.com/base-x/-/base-x-3.0.7.tgz#1c5a7fafe8f66b4114063e8da102799d4e7c408f" + integrity sha512-zAKJGuQPihXW22fkrfOclUUZXM2g92z5GzlSMHxhO6r6Qj+Nm0ccaGNBzDZojzwOMkpjAv4J0fOv1U4go+a4iw== dependencies: safe-buffer "^5.0.1" @@ -1445,10 +1440,17 @@ bl@^1.0.0: readable-stream "^2.3.5" safe-buffer "^5.1.1" +bl@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/bl/-/bl-3.0.0.tgz#3611ec00579fd18561754360b21e9f784500ff88" + integrity sha512-EUAyP5UHU5hxF8BPT0LKW8gjYLhq1DQIcneOX/pL/m2Alo+OYDQAJlHq+yseMP50Os2nHXOSic6Ss3vSQeyf4A== + dependencies: + readable-stream "^3.0.1" + bluebird@^3.5.0, bluebird@^3.5.5: - version "3.5.5" - resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.5.tgz#a8d0afd73251effbbd5fe384a77d73003c17a71f" - integrity sha512-5am6HnnfN+urzt4yfg7IgTbotDjIT/u8AJpEt0sIU9FtXfVeezXAPKswrG+xKUCOYAINpSdgZVDU6QFh+cuH3w== + version "3.7.2" + resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.7.2.tgz#9f229c15be272454ffa973ace0dbee79a1b0c36f" + integrity sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg== bn.js@4.11.6: version "4.11.6" @@ -1660,18 +1662,18 @@ buffer-xor@^1.0.3: integrity sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk= buffer@^4.3.0: - version "4.9.1" - resolved "https://registry.yarnpkg.com/buffer/-/buffer-4.9.1.tgz#6d1bb601b07a4efced97094132093027c95bc298" - integrity sha1-bRu2AbB6TvztlwlBMgkwJ8lbwpg= + version "4.9.2" + resolved "https://registry.yarnpkg.com/buffer/-/buffer-4.9.2.tgz#230ead344002988644841ab0244af8c44bbe3ef8" + integrity sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg== dependencies: base64-js "^1.0.2" ieee754 "^1.1.4" isarray "^1.0.0" buffer@^5.0.5, buffer@^5.2.1: - version "5.4.2" - resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.4.2.tgz#2012872776206182480eccb2c0fba5f672a2efef" - integrity sha512-iy9koArjAFCzGnx3ZvNA6Z0clIbbFgbdWQ0mKD3hO0krOrZh8UgA6qMKcZvwLJxS+D6iVR76+5/pV56yMNYTag== + version "5.4.3" + resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.4.3.tgz#3fbc9c69eb713d323e3fc1a895eee0710c072115" + integrity sha512-zvj65TkFeIt3i6aj5bIvJDzjjQQGs4o/sNoezg1F1kYap9Nu2jcUdpwzRSJTHMMzG0H7bZkn4rNQpImhuxWX2A== dependencies: base64-js "^1.0.2" ieee754 "^1.1.4" @@ -1769,9 +1771,9 @@ camelcase@^5.0.0: integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== caniuse-lite@^1.0.30000844: - version "1.0.30000989" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000989.tgz#b9193e293ccf7e4426c5245134b8f2a56c0ac4b9" - integrity sha512-vrMcvSuMz16YY6GSVZ0dWDTJP8jqk3iFQ/Aq5iqblPwxSVVZI+zxDyTX0VPqtQsDnfdrBDcsmhgTEOh5R8Lbpw== + version "1.0.30001016" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001016.tgz#16ea48d7d6e8caf3cad3295c2d746fe38c4e7f66" + integrity sha512-yYQ2QfotceRiH4U+h1Us86WJXtVHDmy3nEKIdYPsZCYnOV5/tMgGbmoIlrMzmh2VXlproqYtVaKeGDBkMZifFA== caseless@~0.12.0: version "0.12.0" @@ -1805,7 +1807,7 @@ checkpoint-store@^1.1.0: dependencies: functional-red-black-tree "^1.0.1" -chokidar@^2.0.0: +chokidar@^2.0.0, chokidar@^2.0.2: version "2.1.8" resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-2.1.8.tgz#804b3a7b6a99358c3c5c61e71d8728f041cff917" integrity sha512-ZmZUazfOzf0Nve7duiCKD23PFSCs4JPoYyccjUFF3aQkQadqBhfzhjkwBH2mNOG9cTBwhamM37EIsIkZw3nRgg== @@ -1824,29 +1826,10 @@ chokidar@^2.0.0: optionalDependencies: fsevents "^1.2.7" -chokidar@^2.0.2: - version "2.1.6" - resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-2.1.6.tgz#b6cad653a929e244ce8a834244164d241fa954c5" - integrity sha512-V2jUo67OKkc6ySiRpJrjlpJKl9kDuG+Xb8VgsGzb+aEouhgS1D0weyPU4lEzdAcsCAvrih2J2BqyXqHWvVLw5g== - dependencies: - anymatch "^2.0.0" - async-each "^1.0.1" - braces "^2.3.2" - glob-parent "^3.1.0" - inherits "^2.0.3" - is-binary-path "^1.0.0" - is-glob "^4.0.0" - normalize-path "^3.0.0" - path-is-absolute "^1.0.0" - readdirp "^2.2.1" - upath "^1.1.1" - optionalDependencies: - fsevents "^1.2.7" - -chownr@^1.0.1, chownr@^1.1.1: - version "1.1.2" - resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.1.2.tgz#a18f1e0b269c8a6a5d3c86eb298beb14c3dd7bf6" - integrity sha512-GkfeAQh+QNy3wquu9oIZr6SS5x7wGdSgNQvD10X3r+AZr1Oys22HW8kAmDMvNg2+Dm0TeGaEuO8gFwdBXxwO8A== +chownr@^1.1.1: + version "1.1.3" + resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.1.3.tgz#42d837d5239688d55f303003a508230fa6727142" + integrity sha512-i70fVHhmV3DtTl6nqvZOnIjbY0Pe4kAUjwHj8z0zAdgBtYrJyYwLKCCuRBQ5ppkyL0AkN7HKRnETdmdp1zqNXw== chrome-trace-event@^1.0.2: version "1.0.2" @@ -1977,9 +1960,9 @@ combined-stream@^1.0.6, combined-stream@~1.0.6: delayed-stream "~1.0.0" commander@^2.20.0: - version "2.20.0" - resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.0.tgz#d58bb2b5c1ee8f87b0d340027e9e94e222c5a422" - integrity sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ== + version "2.20.3" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" + integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== commander@~2.8.1: version "2.8.1" @@ -2014,11 +1997,9 @@ concat-stream@^1.5.0, concat-stream@^1.5.1, concat-stream@^1.6.0: typedarray "^0.0.6" console-browserify@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/console-browserify/-/console-browserify-1.1.0.tgz#f0241c45730a9fc6323b206dbf38edc741d0bb10" - integrity sha1-8CQcRXMKn8YyOyBtvzjtx0HQuxA= - dependencies: - date-now "^0.1.4" + version "1.2.0" + resolved "https://registry.yarnpkg.com/console-browserify/-/console-browserify-1.2.0.tgz#67063cef57ceb6cf4993a2ab3a55840ae8c49336" + integrity sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA== console-control-strings@^1.0.0, console-control-strings@~1.1.0: version "1.1.0" @@ -2043,9 +2024,9 @@ content-type@~1.0.4: integrity sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA== convert-source-map@^1.5.0, convert-source-map@^1.5.1: - version "1.6.0" - resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.6.0.tgz#51b537a8c43e0f04dec1993bffcdd504e758ac20" - integrity sha512-eFu7XigvxdZ1ETfbgPBohgyQ/Z++C0eEhTor0qRwBw9unw+L0/6V8wkSuGgzdThkiS5lSpdptOQPD8Ak40a+7A== + version "1.7.0" + resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.7.0.tgz#17a2cb882d7f77d3490585e2ce6c524424a3a442" + integrity sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA== dependencies: safe-buffer "~5.1.1" @@ -2090,14 +2071,14 @@ copy-props@^2.0.1: is-plain-object "^2.0.1" core-js-pure@^3.0.1: - version "3.2.1" - resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.2.1.tgz#879a23699cff46175bfd2d09158b5c50645a3c45" - integrity sha512-+qpvnYrsi/JDeQTArB7NnNc2VoMYLE1YSkziCDHgjexC2KH7OFiGhLUd3urxfyWmNjSwSW7NYXPWHMhuIJx9Ow== + version "3.6.0" + resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.6.0.tgz#c86e14d9316659af04dd54266addc9271f6164f8" + integrity sha512-+YSSo7UFDFuVvMUr1HVFYArb22pYIKRDISBo6V50kRuS0MsXgsuDWmJYFu6dJsJupr77S486xRnDkr/BWQQonw== core-js@^2.4.0, core-js@^2.5.0: - version "2.6.9" - resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.9.tgz#6b4b214620c834152e179323727fc19741b084f2" - integrity sha512-HOpZf6eXmnl7la+cUdMnLvUxKNqLUzJvgIziQ0DiF3JwSImNphIqdGqzj6hIKyX04MmV0poclQ7+wjWvxQyR2A== + version "2.6.11" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.11.tgz#38831469f9922bded8ee21c9dc46985e0399308c" + integrity sha512-5wjnpaT/3dV+XB4borEsnAYQchn00XSgTAWKDkEqv+K8KevjbzmofK6hfJ9TZIlpj2N0xQpazy7PiRQiWHqzWg== core-util-is@1.0.2, core-util-is@~1.0.0: version "1.0.2" @@ -2180,16 +2161,16 @@ crypto-browserify@3.12.0, crypto-browserify@^3.11.0: randomfill "^1.0.3" csstype@^2.2.0: - version "2.6.6" - resolved "https://registry.yarnpkg.com/csstype/-/csstype-2.6.6.tgz#c34f8226a94bbb10c32cc0d714afdf942291fc41" - integrity sha512-RpFbQGUE74iyPgvr46U9t1xoQBM8T4BL8SxrN66Le2xYAPSaDJJKeztV3awugusb3g3G9iL8StmkBBXhcbbXhg== + version "2.6.8" + resolved "https://registry.yarnpkg.com/csstype/-/csstype-2.6.8.tgz#0fb6fc2417ffd2816a418c9336da74d7f07db431" + integrity sha512-msVS9qTuMT5zwAGCVm4mxfrZ18BNc6Csd0oJAtiFMZ1FAx1CCvy2+5MDmYoix63LM/6NDbNtodCiGYGmFgO0dA== -cyclist@~0.2.2: - version "0.2.2" - resolved "https://registry.yarnpkg.com/cyclist/-/cyclist-0.2.2.tgz#1b33792e11e914a2fd6d6ed6447464444e5fa640" - integrity sha1-GzN5LhHpFKL9bW7WRHRkRE5fpkA= +cyclist@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/cyclist/-/cyclist-1.0.1.tgz#596e9698fd0c80e12038c2b82d6eb1b35b6224d9" + integrity sha1-WW6WmP0MgOEgOMK4LW6xs1tiJNk= -d@1: +d@1, d@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/d/-/d-1.0.1.tgz#8698095372d58dbee346ffd0c7093f99f8f9eb5a" integrity sha512-m62ShEObQ39CfralilEQRjH6oAMtNCV1xJyEx5LpRYUVN+EviphDgUc/F3hnYbADmkiNs67Y+3ylmlG7Lnu+FA== @@ -2204,11 +2185,6 @@ dashdash@^1.12.0: dependencies: assert-plus "^1.0.0" -date-now@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b" - integrity sha1-6vQ5/U1ISK105cx9vvIAZyueNFs= - debug@2.6.9, debug@^2.2.0, debug@^2.3.3, debug@^2.6.8, debug@^2.6.9: version "2.6.9" resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" @@ -2216,7 +2192,7 @@ debug@2.6.9, debug@^2.2.0, debug@^2.3.3, debug@^2.6.8, debug@^2.6.9: dependencies: ms "2.0.0" -debug@3.2.6, debug@^3.2.6: +debug@3.2.6: version "3.2.6" resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.6.tgz#e83d17de16d8a7efb7717edbe5fb10135eee629b" integrity sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ== @@ -2240,6 +2216,13 @@ decompress-response@^3.2.0, decompress-response@^3.3.0: dependencies: mimic-response "^1.0.0" +decompress-response@^4.2.0: + version "4.2.1" + resolved "https://registry.yarnpkg.com/decompress-response/-/decompress-response-4.2.1.tgz#414023cc7a302da25ce2ec82d0d5238ccafd8986" + integrity sha512-jOSne2qbyE+/r8G1VU+G/82LBs2Fs4LAsTiLSHOCOMZQl2OKZ6i8i4IyHemTe+/yIXOtTcRQMzPcgyhoFlqPkw== + dependencies: + mimic-response "^2.0.0" + decompress-tar@^4.0.0, decompress-tar@^4.1.0, decompress-tar@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/decompress-tar/-/decompress-tar-4.1.1.tgz#718cbd3fcb16209716e70a26b84e7ba4592e5af1" @@ -2293,10 +2276,17 @@ decompress@^4.0.0: pify "^2.3.0" strip-dirs "^2.0.0" -deep-equal@~1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/deep-equal/-/deep-equal-1.0.1.tgz#f5d260292b660e084eff4cdbc9f08ad3247448b5" - integrity sha1-9dJgKStmDghO/0zbyfCK0yR0SLU= +deep-equal@~1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/deep-equal/-/deep-equal-1.1.1.tgz#b5c98c942ceffaf7cb051e24e1434a25a2e6076a" + integrity sha512-yd9c5AdiqVcR+JjcwUQb9DkhJc8ngNr0MahEBGvDiJw8puWab2yZlh+nkasOnZP+EGTAP6rRp2JzJhJZzvNF8g== + dependencies: + is-arguments "^1.0.4" + is-date-object "^1.0.1" + is-regex "^1.0.4" + object-is "^1.0.1" + object-keys "^1.1.1" + regexp.prototype.flags "^1.2.0" deep-extend@^0.6.0: version "0.6.0" @@ -2316,9 +2306,9 @@ default-resolution@^2.0.0: integrity sha1-vLgrqnKtebQmp2cy8aga1t8m1oQ= defer-to-connect@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/defer-to-connect/-/defer-to-connect-1.0.2.tgz#4bae758a314b034ae33902b5aac25a8dd6a8633e" - integrity sha512-k09hcQcTDY+cwgiwa6PYKLm3jlagNzQ+RSvhjzESOGOx+MNOuXkxTfEvPrO1IOQ81tArCFYQgi631clB70RpQw== + version "1.1.1" + resolved "https://registry.yarnpkg.com/defer-to-connect/-/defer-to-connect-1.1.1.tgz#88ae694b93f67b81815a2c8c769aef6574ac8f2f" + integrity sha512-J7thop4u3mRTkYRQ+Vpfwy2G5Ehoy82I14+14W4YMDLKdWloI9gSzRbV30s/NckQGVJtPkWNcW4oMAUigTdqiQ== deferred-leveldown@~1.2.1: version "1.2.2" @@ -2385,9 +2375,9 @@ depd@~1.1.2: integrity sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak= des.js@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/des.js/-/des.js-1.0.0.tgz#c074d2e2aa6a8a9a07dbd61f9a15c2cd83ec8ecc" - integrity sha1-wHTS4qpqipoH29YfmhXCzYPsjsw= + version "1.0.1" + resolved "https://registry.yarnpkg.com/des.js/-/des.js-1.0.1.tgz#5382142e1bdc53f85d86d53e5f4aa7deb91e0843" + integrity sha512-Q0I4pfFrv2VPd34/vfLrFOoRmlYj3OV50i7fskps1jZWK1kApMWWT9G6RRUeYedLcBDIhnSDaUvJMb3AhUlaEA== dependencies: inherits "^2.0.1" minimalistic-assert "^1.0.0" @@ -2409,7 +2399,7 @@ detect-indent@^4.0.0: dependencies: repeating "^2.0.0" -detect-libc@^1.0.2, detect-libc@^1.0.3: +detect-libc@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-1.0.3.tgz#fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b" integrity sha1-+hN8S9aY7fVc1c0CrFWfkaTEups= @@ -2484,9 +2474,9 @@ ee-first@1.1.1: integrity sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0= electron-to-chromium@^1.3.47: - version "1.3.247" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.247.tgz#ff2332376150436599265b2dfd7a539f214f4ade" - integrity sha512-j/Rzx1FyVTwNifpG/DPQKEMz0mruRwoPpJ6Y1tTVmj6+/zAVzG8/YHZwBMLYCZgQH6seLOqaVxZ3RY3KMrT5IQ== + version "1.3.322" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.322.tgz#a6f7e1c79025c2b05838e8e344f6e89eb83213a8" + integrity sha512-Tc8JQEfGQ1MzfSzI/bTlSr7btJv/FFO7Yh6tanqVmIWOuNCu6/D1MilIEgLtmWqIrsv+o4IjpLAhgMBr/ncNAA== elliptic@6.3.3: version "6.3.3" @@ -2498,10 +2488,10 @@ elliptic@6.3.3: hash.js "^1.0.0" inherits "^2.0.1" -elliptic@^6.0.0, elliptic@^6.4.0, elliptic@^6.4.1: - version "6.5.0" - resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.0.tgz#2b8ed4c891b7de3200e14412a5b8248c7af505ca" - integrity sha512-eFOJTMyCYb7xtE/caJ6JJu+bhi67WCYNbkGSknu20pmM8Ke/bqOfdnZWxyoGN26JgfxTbXrsCkEw4KheCT/KGg== +elliptic@6.5.2, elliptic@^6.0.0, elliptic@^6.4.0, elliptic@^6.5.2: + version "6.5.2" + resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.2.tgz#05c5678d7173c049d8ca433552224a495d0e3762" + integrity sha512-f4x70okzZbIQl/NSRLkI/+tteV/9WqL98zx+SQ69KbXxmVrmjwsNUPn/gYJJ0sHvEak24cZgHIPegRePAtA/xw== dependencies: bn.js "^4.4.0" brorand "^1.0.1" @@ -2544,14 +2534,14 @@ encoding@^0.1.11: dependencies: iconv-lite "~0.4.13" -end-of-stream@^1.0.0, end-of-stream@^1.1.0: - version "1.4.1" - resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.1.tgz#ed29634d19baba463b6ce6b80a37213eab71ec43" - integrity sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q== +end-of-stream@^1.0.0, end-of-stream@^1.1.0, end-of-stream@^1.4.1: + version "1.4.4" + resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0" + integrity sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q== dependencies: once "^1.4.0" -enhanced-resolve@4.1.0, enhanced-resolve@^4.0.0, enhanced-resolve@^4.1.0: +enhanced-resolve@4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-4.1.0.tgz#41c7e0bfdfe74ac1ffe1e57ad6a5c6c9f3742a7f" integrity sha512-F/7vkyTtyc/llOIn8oWclcB25KdRaiPBpZYDgJHgh/UHtpgT2p2eldQgtQnLtUvfMKPKxbRaQM/hHkvLHt1Vng== @@ -2560,6 +2550,15 @@ enhanced-resolve@4.1.0, enhanced-resolve@^4.0.0, enhanced-resolve@^4.1.0: memory-fs "^0.4.0" tapable "^1.0.0" +enhanced-resolve@^4.0.0, enhanced-resolve@^4.1.0: + version "4.1.1" + resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-4.1.1.tgz#2937e2b8066cd0fe7ce0990a98f0d71a35189f66" + integrity sha512-98p2zE+rL7/g/DzMHMTF4zZlCgeVdJ7yr6xzEpJRYwFYrGi9ANdn5DnJURg6RpBkyk60XYDnWIv51VfIhfNGuA== + dependencies: + graceful-fs "^4.1.2" + memory-fs "^0.5.0" + tapable "^1.0.0" + errno@^0.1.3, errno@~0.1.1, errno@~0.1.7: version "0.1.7" resolved "https://registry.yarnpkg.com/errno/-/errno-0.1.7.tgz#4684d71779ad39af177e3f007996f7c67c852618" @@ -2574,51 +2573,40 @@ error-ex@^1.2.0: dependencies: is-arrayish "^0.2.1" -es-abstract@^1.13.0, es-abstract@^1.5.0: - version "1.13.0" - resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.13.0.tgz#ac86145fdd5099d8dd49558ccba2eaf9b88e24e9" - integrity sha512-vDZfg/ykNxQVwup/8E1BZhVzFfBxs9NqMzGcvIJrqg5k2/5Za2bWo40dK2J1pgLngZ7c+Shh8lwYtLGyrwPutg== +es-abstract@^1.17.0-next.1: + version "1.17.0-next.1" + resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.17.0-next.1.tgz#94acc93e20b05a6e96dacb5ab2f1cb3a81fc2172" + integrity sha512-7MmGr03N7Rnuid6+wyhD9sHNE2n4tFSwExnU2lQl3lIo2ShXWGePY80zYaoMOmILWv57H0amMjZGHNzzGG70Rw== dependencies: - es-to-primitive "^1.2.0" + es-to-primitive "^1.2.1" function-bind "^1.1.1" has "^1.0.3" + has-symbols "^1.0.1" is-callable "^1.1.4" is-regex "^1.0.4" - object-keys "^1.0.12" - -es-abstract@^1.5.1: - version "1.15.0" - resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.15.0.tgz#8884928ec7e40a79e3c9bc812d37d10c8b24cc57" - integrity sha512-bhkEqWJ2t2lMeaJDuk7okMkJWI/yqgH/EoGwpcvv0XW9RWQsRspI4wt6xuyuvMvvQE3gg/D9HXppgk21w78GyQ== - dependencies: - es-to-primitive "^1.2.0" - function-bind "^1.1.1" - has "^1.0.3" - has-symbols "^1.0.0" - is-callable "^1.1.4" - is-regex "^1.0.4" - object-inspect "^1.6.0" + object-inspect "^1.7.0" object-keys "^1.1.1" + object.assign "^4.1.0" string.prototype.trimleft "^2.1.0" string.prototype.trimright "^2.1.0" -es-to-primitive@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.0.tgz#edf72478033456e8dda8ef09e00ad9650707f377" - integrity sha512-qZryBOJjV//LaxLTV6UC//WewneB3LcXOL9NP++ozKVXsIIIpm/2c13UDiD9Jp2eThsecw9m3jPqDwTyobcdbg== +es-to-primitive@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.1.tgz#e55cd4c9cdc188bcefb03b366c736323fc5c898a" + integrity sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA== dependencies: is-callable "^1.1.4" is-date-object "^1.0.1" is-symbol "^1.0.2" -es5-ext@^0.10.35, es5-ext@^0.10.46, es5-ext@^0.10.50, es5-ext@~0.10.14: - version "0.10.51" - resolved "https://registry.yarnpkg.com/es5-ext/-/es5-ext-0.10.51.tgz#ed2d7d9d48a12df86e0299287e93a09ff478842f" - integrity sha512-oRpWzM2WcLHVKpnrcyB7OW8j/s67Ba04JCm0WnNv3RiABSvs7mrQlutB8DBv793gKcp0XENR8Il8WxGTlZ73gQ== +es5-ext@^0.10.35, es5-ext@^0.10.46, es5-ext@^0.10.50: + version "0.10.53" + resolved "https://registry.yarnpkg.com/es5-ext/-/es5-ext-0.10.53.tgz#93c5a3acfdbef275220ad72644ad02ee18368de1" + integrity sha512-Xs2Stw6NiNHWypzRTY1MtaG/uJlwCk8kH81920ma8mvN8Xq1gsfhZvpkImLQArw8AHnv8MT2I45J3c0R8slE+Q== dependencies: es6-iterator "~2.0.3" - es6-symbol "~3.1.1" - next-tick "^1.0.0" + es6-symbol "~3.1.3" + next-tick "~1.0.0" es6-iterator@^2.0.1, es6-iterator@^2.0.3, es6-iterator@~2.0.3: version "2.0.3" @@ -2629,13 +2617,13 @@ es6-iterator@^2.0.1, es6-iterator@^2.0.3, es6-iterator@~2.0.3: es5-ext "^0.10.35" es6-symbol "^3.1.1" -es6-symbol@^3.1.1, es6-symbol@~3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/es6-symbol/-/es6-symbol-3.1.1.tgz#bf00ef4fdab6ba1b46ecb7b629b4c7ed5715cc77" - integrity sha1-vwDvT9q2uhtG7Le2KbTH7VcVzHc= +es6-symbol@^3.1.1, es6-symbol@~3.1.3: + version "3.1.3" + resolved "https://registry.yarnpkg.com/es6-symbol/-/es6-symbol-3.1.3.tgz#bad5d3c1bcdac28269f4cb331e431c78ac705d18" + integrity sha512-NJ6Yn3FuDinBaBRWl/q5X/s4koRHBrgKAu+yGI6JCBeiu3qrcbJhwT2GeR/EXVfylRk8dpQVJoLEFhK+Mu31NA== dependencies: - d "1" - es5-ext "~0.10.14" + d "^1.0.1" + ext "^1.1.2" es6-weak-map@^2.0.1: version "2.0.3" @@ -2709,15 +2697,14 @@ eth-ens-namehash@2.0.8: js-sha3 "^0.5.7" eth-json-rpc-infura@^3.1.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/eth-json-rpc-infura/-/eth-json-rpc-infura-3.2.0.tgz#62c3f516b51351038c32a548704467cec113ca8f" - integrity sha512-FLcpdxPRVBCUc7yoE+wHGvyYg2lATedP+/q7PsKvaSzQpJbgTG4ZjLnyrLanxDr6M1k/dSNa6V5QnILwjUKJcw== + version "3.2.1" + resolved "https://registry.yarnpkg.com/eth-json-rpc-infura/-/eth-json-rpc-infura-3.2.1.tgz#26702a821067862b72d979c016fd611502c6057f" + integrity sha512-W7zR4DZvyTn23Bxc0EWsq4XGDdD63+XPUCEhV2zQvQGavDVC4ZpFDK4k99qN7bd7/fjj37+rxmuBOBeIqCA5Mw== dependencies: cross-fetch "^2.1.1" eth-json-rpc-middleware "^1.5.0" json-rpc-engine "^3.4.0" json-rpc-error "^2.0.0" - tape "^4.8.0" eth-json-rpc-middleware@^1.5.0: version "1.6.0" @@ -2748,13 +2735,12 @@ eth-lib@0.2.7: xhr-request-promise "^0.1.2" eth-lib@^0.1.26: - version "0.1.27" - resolved "https://registry.yarnpkg.com/eth-lib/-/eth-lib-0.1.27.tgz#f0b0fd144f865d2d6bf8257a40004f2e75ca1dd6" - integrity sha512-B8czsfkJYzn2UIEMwjc7Mbj+Cy72V+/OXH/tb44LV8jhrjizQJJ325xMOMyk3+ETa6r6oi0jsUY14+om8mQMWA== + version "0.1.29" + resolved "https://registry.yarnpkg.com/eth-lib/-/eth-lib-0.1.29.tgz#0c11f5060d42da9f931eab6199084734f4dbd1d9" + integrity sha512-bfttrr3/7gG4E02HoWTDUcDDslN003OlOoBxk9virpAZQ1ja/jDgwkWB8QfJF7ojuEowrqy+lzp9VcJG7/k5bQ== dependencies: bn.js "^4.11.6" elliptic "^6.4.0" - keccakjs "^0.2.1" nano-json-stream-parser "^0.1.2" servify "^0.1.12" ws "^3.0.0" @@ -2768,10 +2754,10 @@ eth-query@^2.0.2, eth-query@^2.1.0, eth-query@^2.1.2: json-rpc-random-id "^1.0.0" xtend "^4.0.1" -eth-sig-util@2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/eth-sig-util/-/eth-sig-util-2.2.0.tgz#769fa3d296b450f6618dedeefe076642c923a16f" - integrity sha512-bAxW35bL4U2lrtjjV8rFGJ8B27z4Sn5v9eIaNdpPUnPfUAtrvx5j8atfyV+k+JOnbppcvKhWCO1rQSBk4kkAhw== +eth-sig-util@2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/eth-sig-util/-/eth-sig-util-2.3.0.tgz#c54a6ac8e8796f7e25f59cf436982a930e645231" + integrity sha512-ugD1AvaggvKaZDgnS19W5qOfepjGc7qHrt7TrAaL54gJw9SHvgIXJ3r2xOMW30RWJZNP+1GlTOy5oye7yXA4xA== dependencies: buffer "^5.2.1" elliptic "^6.4.0" @@ -2873,7 +2859,7 @@ ethereumjs-account@^2.0.3: rlp "^2.0.0" safe-buffer "^5.1.1" -ethereumjs-block@2.2.0, ethereumjs-block@~2.2.0: +ethereumjs-block@2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/ethereumjs-block/-/ethereumjs-block-2.2.0.tgz#8c6c3ab4a5eff0a16d9785fbeedbe643f4dbcbef" integrity sha512-Ye+uG/L2wrp364Zihdlr/GfC3ft+zG8PdHcRtsBFNNH1CkOhxOwdB8friBU85n89uRZ9eIMAywCq0F4CwT1wAw== @@ -2895,6 +2881,17 @@ ethereumjs-block@^1.2.2, ethereumjs-block@^1.4.1, ethereumjs-block@^1.6.0: ethereumjs-util "^5.0.0" merkle-patricia-tree "^2.1.2" +ethereumjs-block@^2.2.2, ethereumjs-block@~2.2.0, ethereumjs-block@~2.2.2: + version "2.2.2" + resolved "https://registry.yarnpkg.com/ethereumjs-block/-/ethereumjs-block-2.2.2.tgz#c7654be7e22df489fda206139ecd63e2e9c04965" + integrity sha512-2p49ifhek3h2zeg/+da6XpdFR3GlqY3BIEiqxGF8j9aSRIgkb7M1Ky+yULBKJOu8PAZxfhsYA+HxUk2aCQp3vg== + dependencies: + async "^2.0.1" + ethereumjs-common "^1.5.0" + ethereumjs-tx "^2.1.1" + ethereumjs-util "^5.0.0" + merkle-patricia-tree "^2.1.2" + ethereumjs-blockchain@^3.4.0: version "3.4.0" resolved "https://registry.yarnpkg.com/ethereumjs-blockchain/-/ethereumjs-blockchain-3.4.0.tgz#92240da6ecd86b3d8d324df69510b381f26c966b" @@ -2911,15 +2908,15 @@ ethereumjs-blockchain@^3.4.0: safe-buffer "^5.1.2" semaphore "^1.1.0" -ethereumjs-blockchain@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/ethereumjs-blockchain/-/ethereumjs-blockchain-4.0.1.tgz#db113dfed4fcc5197d223391f10adbc5a1b3536b" - integrity sha512-twf2yeyzeBXzCgclLyF9wZEyCKbCweM2KZdZkTsnlqGgaffgnSgY44+z+9BHUIVoWY+gxMj+XsTlTgVcbha8rg== +ethereumjs-blockchain@^4.0.3: + version "4.0.3" + resolved "https://registry.yarnpkg.com/ethereumjs-blockchain/-/ethereumjs-blockchain-4.0.3.tgz#e013034633a30ad2006728e8e2b21956b267b773" + integrity sha512-0nJWbyA+Gu0ZKZr/cywMtB/77aS/4lOVsIKbgUN2sFQYscXO5rPbUfrEe7G2Zhjp86/a0VqLllemDSTHvx3vZA== dependencies: async "^2.6.1" ethashjs "~0.0.7" - ethereumjs-block "~2.2.0" - ethereumjs-common "^1.1.0" + ethereumjs-block "~2.2.2" + ethereumjs-common "^1.5.0" ethereumjs-util "~6.1.0" flow-stoplight "^1.0.0" level-mem "^3.0.1" @@ -2936,15 +2933,10 @@ ethereumjs-blockstream@^7.0.0: source-map-support "0.5.6" uuid "3.2.1" -ethereumjs-common@^1.1.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/ethereumjs-common/-/ethereumjs-common-1.3.1.tgz#a5cffac41beb7ad393283b2e5aa71fadf8a9cc73" - integrity sha512-kexqNgM2q29RKoZPPjehPREeqbr/vhYfT9Ho8FVeH3f7USjBuYp1iZ1qjqklk8FSMvEKPpMJFYSOunikw30Prw== - -ethereumjs-common@^1.3.1, ethereumjs-common@^1.3.2: - version "1.3.2" - resolved "https://registry.yarnpkg.com/ethereumjs-common/-/ethereumjs-common-1.3.2.tgz#5a20831e52199a31ff4b68ef361e34c05c976ed0" - integrity sha512-GkltYRIqBLzaZLmF/K3E+g9lZ4O4FL+TtpisAlD3N+UVlR+mrtoG+TvxavqVa6PwOY4nKIEMe5pl6MrTio3Lww== +ethereumjs-common@^1.1.0, ethereumjs-common@^1.5.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/ethereumjs-common/-/ethereumjs-common-1.5.0.tgz#d3e82fc7c47c0cef95047f431a99485abc9bb1cd" + integrity sha512-SZOjgK1356hIY7MRj3/ma5qtfr/4B5BL+G4rP/XSMYr2z1H5el4RX5GReYCKmQmYI/nSBmRnwrZ17IfHuG0viQ== ethereumjs-tx@1.3.7, ethereumjs-tx@^1.1.1, ethereumjs-tx@^1.2.0, ethereumjs-tx@^1.2.2, ethereumjs-tx@^1.3.3, ethereumjs-tx@^1.3.5: version "1.3.7" @@ -2954,15 +2946,15 @@ ethereumjs-tx@1.3.7, ethereumjs-tx@^1.1.1, ethereumjs-tx@^1.2.0, ethereumjs-tx@^ ethereum-common "^0.0.18" ethereumjs-util "^5.0.0" -ethereumjs-tx@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/ethereumjs-tx/-/ethereumjs-tx-2.1.1.tgz#7d204e2b319156c9bc6cec67e9529424a26e8ccc" - integrity sha512-QtVriNqowCFA19X9BCRPMgdVNJ0/gMBS91TQb1DfrhsbR748g4STwxZptFAwfqehMyrF8rDwB23w87PQwru0wA== +ethereumjs-tx@^2.1.1, ethereumjs-tx@^2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/ethereumjs-tx/-/ethereumjs-tx-2.1.2.tgz#5dfe7688bf177b45c9a23f86cf9104d47ea35fed" + integrity sha512-zZEK1onCeiORb0wyCXUvg94Ve5It/K6GD1K+26KfFKodiBiS6d9lfCXlUKGBBdQ+bv7Day+JK0tj1K+BeNFRAw== dependencies: - ethereumjs-common "^1.3.1" + ethereumjs-common "^1.5.0" ethereumjs-util "^6.0.0" -ethereumjs-util@6.1.0, ethereumjs-util@^6.0.0, ethereumjs-util@^6.1.0, ethereumjs-util@~6.1.0: +ethereumjs-util@6.1.0, ethereumjs-util@~6.1.0: version "6.1.0" resolved "https://registry.yarnpkg.com/ethereumjs-util/-/ethereumjs-util-6.1.0.tgz#e9c51e5549e8ebd757a339cc00f5380507e799c8" integrity sha512-URESKMFbDeJxnAxPppnk2fN6Y3BIatn9fwn76Lm8bQlt+s52TpG8dN9M66MLPuRAiAOIqL3dfwqWJf0sd0fL0Q== @@ -2999,6 +2991,19 @@ ethereumjs-util@^5.0.0, ethereumjs-util@^5.0.1, ethereumjs-util@^5.1.1, ethereum safe-buffer "^5.1.1" secp256k1 "^3.0.1" +ethereumjs-util@^6.0.0, ethereumjs-util@^6.2.0: + version "6.2.0" + resolved "https://registry.yarnpkg.com/ethereumjs-util/-/ethereumjs-util-6.2.0.tgz#23ec79b2488a7d041242f01e25f24e5ad0357960" + integrity sha512-vb0XN9J2QGdZGIEKG2vXM+kUdEivUfU6Wmi5y0cg+LRhDYKnXIZ/Lz7XjFbHRR9VIKq2lVGLzGBkA++y2nOdOQ== + dependencies: + "@types/bn.js" "^4.11.3" + bn.js "^4.11.0" + create-hash "^1.1.2" + ethjs-util "0.1.6" + keccak "^2.0.0" + rlp "^2.2.3" + secp256k1 "^3.0.1" + ethereumjs-util@~6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/ethereumjs-util/-/ethereumjs-util-6.0.0.tgz#f14841c182b918615afefd744207c7932c8536c0" @@ -3048,19 +3053,19 @@ ethereumjs-vm@^2.1.0, ethereumjs-vm@^2.3.4, ethereumjs-vm@^2.6.0: safe-buffer "^5.1.1" ethereumjs-vm@^4.0.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/ethereumjs-vm/-/ethereumjs-vm-4.1.0.tgz#359ed3592636390a5b2909a28d955c908830daa5" - integrity sha512-qvgmKkyF+eZ6NvtqTV74z9oRB7UxUStA0gShEbXftovpukVIYVzhvCl9KvUi64Rpo8jufze6Z0zHhiQpZN0Izw== + version "4.1.2" + resolved "https://registry.yarnpkg.com/ethereumjs-vm/-/ethereumjs-vm-4.1.2.tgz#02c946f54c52be6f124cf74a30a147326ba344d1" + integrity sha512-Zxz/i0u6+74kZ/0UEAbCd2WCSTuS0jPM9LnM9TUGXDbffrkULb1tIBcgHWqYsARGCQJGMDZj5FKDtUJ04Heowg== dependencies: async "^2.1.2" async-eventemitter "^0.2.2" core-js-pure "^3.0.1" ethereumjs-account "^3.0.0" - ethereumjs-block "~2.2.0" - ethereumjs-blockchain "^4.0.1" - ethereumjs-common "^1.3.2" - ethereumjs-tx "^2.1.1" - ethereumjs-util "^6.1.0" + ethereumjs-block "^2.2.2" + ethereumjs-blockchain "^4.0.3" + ethereumjs-common "^1.5.0" + ethereumjs-tx "^2.1.2" + ethereumjs-util "^6.2.0" fake-merkle-patricia-tree "^1.0.1" functional-red-black-tree "^1.0.1" merkle-patricia-tree "^2.3.2" @@ -3100,14 +3105,13 @@ ethers@4.0.0-beta.3: xmlhttprequest "1.8.0" ethers@~4.0.4: - version "4.0.33" - resolved "https://registry.yarnpkg.com/ethers/-/ethers-4.0.33.tgz#f7b88d2419d731a39aefc37843a3f293e396f918" - integrity sha512-lAHkSPzBe0Vj+JrhmkEHLtUEKEheVktIjGDyE9gbzF4zf1vibjYgB57LraDHu4/ItqWVkztgsm8GWqcDMN+6vQ== + version "4.0.40" + resolved "https://registry.yarnpkg.com/ethers/-/ethers-4.0.40.tgz#6e1963d10b5d336a13cd81b519c230cc17624653" + integrity sha512-MC9BtV7Hpq4dgFONEfanx9aU9GhhoWU270F+/wegHZXA7FR+2KXFdt36YIQYLmVY5ykUWswDxd+f9EVkIa7JOA== dependencies: - "@types/node" "^10.3.2" aes-js "3.0.0" bn.js "^4.4.0" - elliptic "6.3.3" + elliptic "6.5.2" hash.js "1.1.3" js-sha3 "0.5.7" scrypt-js "2.0.4" @@ -3223,6 +3227,13 @@ express@^4.14.0: utils-merge "1.0.1" vary "~1.1.2" +ext@^1.1.2: + version "1.4.0" + resolved "https://registry.yarnpkg.com/ext/-/ext-1.4.0.tgz#89ae7a07158f79d35517882904324077e4379244" + integrity sha512-Key5NIsUxdqKg3vIsdw9dSuXpPCQ297y6wBjL30edxwPgt2E44WcWBZey/ZvUc6sERLTxKdyCu4gZFmUbk1Q7A== + dependencies: + type "^2.0.0" + extend-shallow@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f" @@ -3290,9 +3301,9 @@ fast-deep-equal@^2.0.1: integrity sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk= fast-json-stable-stringify@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2" - integrity sha1-1RQsDK7msRifh9OnYREGT4bIu/I= + version "2.1.0" + resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" + integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== fd-slicer@~1.1.0: version "1.1.0" @@ -3436,7 +3447,7 @@ flush-write-stream@^1.0.0, flush-write-stream@^1.0.2: inherits "^2.0.3" readable-stream "^2.3.6" -for-each@^0.3.3, for-each@~0.3.3: +for-each@~0.3.3: version "0.3.3" resolved "https://registry.yarnpkg.com/for-each/-/for-each-0.3.3.tgz#69b447e88a0a5d32c3e7084f3f1710034b21376e" integrity sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw== @@ -3509,11 +3520,11 @@ fs-extra@^4.0.2: universalify "^0.1.0" fs-minipass@^1.2.5: - version "1.2.6" - resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-1.2.6.tgz#2c5cc30ded81282bfe8a0d7c7c1853ddeb102c07" - integrity sha512-crhvyXcMejjv3Z5d2Fa9sf5xLYVCF5O1c71QxbVnbLsmYMBEvDAftewesN/HhY03YRoA7zOMxjNGrF5svGaaeQ== + version "1.2.7" + resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-1.2.7.tgz#ccff8570841e7fe4265693da88936c55aed7f7c7" + integrity sha512-GWSSJGFy4e9GUeCcbIkED+bgAoFyj7XF1mV8rma3QW4NIqX9Kyx79N/PF61H5udOV3aY1IaMLs6pGbH71nlCTA== dependencies: - minipass "^2.2.1" + minipass "^2.6.0" fs-mkdirp-stream@^1.0.0: version "1.0.0" @@ -3539,14 +3550,14 @@ fs.realpath@^1.0.0: integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= fsevents@^1.2.7: - version "1.2.9" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.2.9.tgz#3f5ed66583ccd6f400b5a00db6f7e861363e388f" - integrity sha512-oeyj2H3EjjonWcFjD5NvZNE9Rqe4UW+nQBU2HNeKw0koVLEFIhtyETyAakeAM3de7Z/SW5kcA+fZUait9EApnw== + version "1.2.11" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.2.11.tgz#67bf57f4758f02ede88fb2a1712fef4d15358be3" + integrity sha512-+ux3lx6peh0BpvY0JebGyZoiR4D+oYzdPZMKJwkZ+sFkNJzpL7tXc/wehS49gUAxg3tmMHPHZkA8JU2rhhgDHw== dependencies: + bindings "^1.5.0" nan "^2.12.1" - node-pre-gyp "^0.12.0" -function-bind@^1.0.2, function-bind@^1.1.1, function-bind@~1.1.1: +function-bind@^1.1.1, function-bind@~1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== @@ -3557,9 +3568,9 @@ functional-red-black-tree@^1.0.1, functional-red-black-tree@~1.0.1: integrity sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc= ganache-core@^2.6.0: - version "2.7.0" - resolved "https://registry.yarnpkg.com/ganache-core/-/ganache-core-2.7.0.tgz#9897c7ad6ebe934e92f88e62fcf3c6cc1f1a807f" - integrity sha512-oZBNb2pZlD/uMxHDYJp4SBfavwblcGyqNPiZBgilp2n1fO/rnZwEAcpKE+1Uq1sO27YxuKJosm3Jvr9NarOWGA== + version "2.8.0" + resolved "https://registry.yarnpkg.com/ganache-core/-/ganache-core-2.8.0.tgz#eeadc7f7fc3a0c20d99f8f62021fb80b5a05490c" + integrity sha512-hfXqZGJx700jJqwDHNXrU2BnPYuETn1ekm36oRHuXY3oOuJLFs5C+cFdUFaBlgUxcau1dOgZUUwKqTAy0gTA9Q== dependencies: abstract-leveldown "3.0.0" async "2.6.2" @@ -3568,7 +3579,7 @@ ganache-core@^2.6.0: clone "2.1.2" debug "3.2.6" encoding-down "5.0.4" - eth-sig-util "2.2.0" + eth-sig-util "2.3.0" ethereumjs-abi "0.6.7" ethereumjs-account "3.0.0" ethereumjs-block "2.2.0" @@ -3583,7 +3594,7 @@ ganache-core@^2.6.0: seedrandom "3.0.1" source-map-support "0.5.12" tmp "0.1.0" - web3-provider-engine "14.2.0" + web3-provider-engine "14.2.1" websocket "1.0.29" optionalDependencies: ethereumjs-wallet "0.6.3" @@ -3693,10 +3704,10 @@ glob-watcher@^5.0.3: just-debounce "^1.0.0" object.defaults "^1.1.0" -glob@^7.1.1, glob@^7.1.3, glob@^7.1.4, glob@~7.1.4: - version "7.1.4" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.4.tgz#aa608a2f6c577ad357e1ae5a5c26d9a8d1969255" - integrity sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A== +glob@^7.1.1, glob@^7.1.3, glob@^7.1.4, glob@~7.1.6: + version "7.1.6" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6" + integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA== dependencies: fs.realpath "^1.0.0" inflight "^1.0.4" @@ -3799,9 +3810,9 @@ got@^7.1.0: url-to-options "^1.0.1" graceful-fs@^4.0.0, graceful-fs@^4.1.10, graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.6: - version "4.2.2" - resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.2.tgz#6f0952605d0140c1cfdb138ed005775b92d67b02" - integrity sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q== + version "4.2.3" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.3.tgz#4a12ff1b60376ef09862c2093edd908328be8423" + integrity sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ== "graceful-readlink@>= 1.0.0": version "1.0.1" @@ -3879,10 +3890,10 @@ has-symbol-support-x@^1.4.1: resolved "https://registry.yarnpkg.com/has-symbol-support-x/-/has-symbol-support-x-1.4.2.tgz#1409f98bc00247da45da67cee0a36f282ff26455" integrity sha512-3ToOva++HaW+eCpgqZrCfN51IPB+7bJNVT6CUATzueB5Heb8o6Nam0V3HG5dlDvZU1Gn5QLcbahiKw/XVk5JJw== -has-symbols@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.0.tgz#ba1a8f1af2a0fc39650f5c850367704122063b44" - integrity sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q= +has-symbols@^1.0.0, has-symbols@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.1.tgz#9f5214758a44196c406d9bd76cebf81ec2dd31e8" + integrity sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg== has-to-string-tag-x@^1.2.0: version "1.4.1" @@ -3927,7 +3938,7 @@ has-values@^1.0.0: is-number "^3.0.0" kind-of "^4.0.0" -has@^1.0.1, has@^1.0.3, has@~1.0.3: +has@^1.0.3, has@~1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw== @@ -4005,9 +4016,9 @@ homedir-polyfill@^1.0.1: parse-passwd "^1.0.0" hosted-git-info@^2.1.4: - version "2.8.4" - resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.4.tgz#44119abaf4bc64692a16ace34700fed9c03e2546" - integrity sha512-pzXIvANXEFrc5oFFXRMkbLPQ2rXRoDERwDLyrcUxGhaZhgP54BBSl9Oheh7Vv0T090cszWBxPjkQQ5Sq1PbBRQ== + version "2.8.5" + resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.5.tgz#759cfcf2c4d156ade59b0b2dfabddc42a6b9c70c" + integrity sha512-kssjab8CvdXfcXMXVcvsXum4Hwdq9XGtRD3TteMEvEbq0LXyiNQr6AprqKqfeaDXze7SxWvRxdpwE6ku7ikLkg== http-cache-semantics@^4.0.0: version "4.0.3" @@ -4055,7 +4066,7 @@ https-browserify@^1.0.0: resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-1.0.0.tgz#ec06c10e0a34c0f2faf199f7fd7fc78fffd03c73" integrity sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM= -iconv-lite@0.4.24, iconv-lite@^0.4.4, iconv-lite@~0.4.13: +iconv-lite@0.4.24, iconv-lite@~0.4.13: version "0.4.24" resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== @@ -4079,13 +4090,6 @@ iferr@^0.1.5: resolved "https://registry.yarnpkg.com/iferr/-/iferr-0.1.5.tgz#c60eed69e6d8fdb6b3104a1fcbca1c192dc5b501" integrity sha1-xg7taebY/bazEEofy8ocGS3FtQE= -ignore-walk@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-3.0.1.tgz#a83e62e7d272ac0e3b551aaa82831a19b69f82f8" - integrity sha512-DTVlMx3IYPe0/JJcYP7Gxg7ttZZu3IInhuEhbchuqneY9wWe5Ojy2mXLBaQFUQmo0AW2r3qG7m1mg86js+gnlQ== - dependencies: - minimatch "^3.0.4" - immediate@^3.2.3, immediate@~3.2.3: version "3.2.3" resolved "https://registry.yarnpkg.com/immediate/-/immediate-3.2.3.tgz#d140fa8f614659bd6541233097ddaac25cdd991c" @@ -4122,7 +4126,7 @@ inflight@^1.0.4: once "^1.3.0" wrappy "1" -inherits@2, inherits@2.0.4, inherits@^2.0.1, inherits@^2.0.3, inherits@~2.0.1, inherits@~2.0.3, inherits@~2.0.4: +inherits@2, inherits@2.0.4, inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.1, inherits@~2.0.3, inherits@~2.0.4: version "2.0.4" resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== @@ -4191,6 +4195,11 @@ is-accessor-descriptor@^1.0.0: dependencies: kind-of "^6.0.0" +is-arguments@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-arguments/-/is-arguments-1.0.4.tgz#3faf966c7cba0ff437fb31f6250082fcf0448cf3" + integrity sha512-xPh0Rmt8NE65sNzvyUmWgI1tz3mKq74lGA0mL8LYZcoIzKOzDh6HmrYm3d18k60nHerC8A9Km8kYu87zfSFnLA== + is-arrayish@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" @@ -4209,9 +4218,9 @@ is-buffer@^1.1.5: integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w== is-callable@^1.1.3, is-callable@^1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.4.tgz#1e1adf219e1eeb684d691f9d6a05ff0d30a24d75" - integrity sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA== + version "1.1.5" + resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.5.tgz#f7e46b596890456db74e7f6e976cb3273d06faab" + integrity sha512-ESKv5sMCJB2jnHTWZ3O5itG+O128Hsus4K4Qh1h2/cgn2vbgnLSVqfV46AeJA9D5EeeLa9w81KUXMtn34zhX+Q== is-data-descriptor@^0.1.4: version "0.1.4" @@ -4228,9 +4237,9 @@ is-data-descriptor@^1.0.0: kind-of "^6.0.0" is-date-object@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.1.tgz#9aa20eb6aeebbff77fbd33e74ca01b33581d3a16" - integrity sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY= + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.2.tgz#bda736f2cd8fd06d32844e7743bfa7494c3bfd7e" + integrity sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g== is-descriptor@^0.1.0: version "0.1.6" @@ -4359,12 +4368,12 @@ is-plain-object@^2.0.1, is-plain-object@^2.0.3, is-plain-object@^2.0.4: dependencies: isobject "^3.0.1" -is-regex@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.0.4.tgz#5517489b547091b0930e095654ced25ee97e9491" - integrity sha1-VRdIm1RwkbCTDglWVM7SXul+lJE= +is-regex@^1.0.4, is-regex@~1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.0.5.tgz#39d589a358bf18967f726967120b8fc1aed74eae" + integrity sha512-vlKW17SNq44owv5AQR3Cq0bQPEb8+kF3UKZ2fiZNOWtztYE5i0CzCZxFDwO58qAOWtxdBRVO/V5Qin1wjCqFYQ== dependencies: - has "^1.0.1" + has "^1.0.3" is-relative@^1.0.0: version "1.0.0" @@ -4374,9 +4383,9 @@ is-relative@^1.0.0: is-unc-path "^1.0.0" is-retry-allowed@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-retry-allowed/-/is-retry-allowed-1.1.0.tgz#11a060568b67339444033d0125a61a20d564fb34" - integrity sha1-EaBgVotnM5REAz0BJaYaINVk+zQ= + version "1.2.0" + resolved "https://registry.yarnpkg.com/is-retry-allowed/-/is-retry-allowed-1.2.0.tgz#d778488bd0a4666a3be8a1482b9f2baafedea8b4" + integrity sha512-RUbUeKwvm3XG2VYamhJL1xFktgjvPzL0Hq8C+6yrWIswDy3BIXGqCxhxkc30N9jqK311gVU137K8Ei55/zVJRg== is-stream@^1.0.0, is-stream@^1.0.1, is-stream@^1.1.0: version "1.1.0" @@ -4384,11 +4393,11 @@ is-stream@^1.0.0, is-stream@^1.0.1, is-stream@^1.1.0: integrity sha1-EtSj3U5o4Lec6428hBc66A2RykQ= is-symbol@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.2.tgz#a055f6ae57192caee329e7a860118b497a950f38" - integrity sha512-HS8bZ9ox60yCJLH9snBpIwv9pYUAkcuLhSA1oero1UB5y9aiQpRA8y2ex945AOtCZL1lJDeIk3G5LthswI46Lw== + version "1.0.3" + resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.3.tgz#38e1014b9e6329be0de9d24a414fd7441ec61937" + integrity sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ== dependencies: - has-symbols "^1.0.0" + has-symbols "^1.0.1" is-typedarray@^1.0.0, is-typedarray@~1.0.0: version "1.0.0" @@ -4596,9 +4605,9 @@ jsonify@~0.0.0: integrity sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM= jsonschema@^1.2.0: - version "1.2.4" - resolved "https://registry.yarnpkg.com/jsonschema/-/jsonschema-1.2.4.tgz#a46bac5d3506a254465bc548876e267c6d0d6464" - integrity sha512-lz1nOH69GbsVHeVgEdvyavc/33oymY1AZwtePMiMj4HZPMbP5OIKK3zT9INMWjwua/V4Z4yq7wSlBbSG+g4AEw== + version "1.2.5" + resolved "https://registry.yarnpkg.com/jsonschema/-/jsonschema-1.2.5.tgz#bab69d97fa28946aec0a56a9cc266d23fe80ae61" + integrity sha512-kVTF+08x25PQ0CjuVc0gRM9EUPb0Fe9Ln/utFOgcdxEIOHuU7ooBk/UPTd7t1M91pP35m0MU1T8M5P7vP1bRRw== jsprim@^1.2.2: version "1.4.1" @@ -4625,7 +4634,17 @@ keccak@^1.0.2: nan "^2.2.1" safe-buffer "^5.1.0" -keccakjs@^0.2.0, keccakjs@^0.2.1: +keccak@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/keccak/-/keccak-2.1.0.tgz#734ea53f2edcfd0f42cdb8d5f4c358fef052752b" + integrity sha512-m1wbJRTo+gWbctZWay9i26v5fFnYkOn7D5PCxJ3fZUGUEb49dE1Pm4BREUYCt/aoO6di7jeoGmhvqN9Nzylm3Q== + dependencies: + bindings "^1.5.0" + inherits "^2.0.4" + nan "^2.14.0" + safe-buffer "^5.2.0" + +keccakjs@^0.2.0: version "0.2.3" resolved "https://registry.yarnpkg.com/keccakjs/-/keccakjs-0.2.3.tgz#5e4e969ce39689a3861f445d7752ee3477f9fe72" integrity sha512-BjLkNDcfaZ6l8HBG9tH0tpmDv3sS2mA7FNQxFHpCdzP3Gb2MVruXBSuoM66SnVxKJpAr5dKGdkHD+bDokt8fTg== @@ -5053,6 +5072,14 @@ memory-fs@^0.4.0, memory-fs@^0.4.1: errno "^0.1.3" readable-stream "^2.0.1" +memory-fs@^0.5.0: + version "0.5.0" + resolved "https://registry.yarnpkg.com/memory-fs/-/memory-fs-0.5.0.tgz#324c01288b88652966d161db77838720845a8e3c" + integrity sha512-jA0rdU5KoQMC0e6ppoNRtpp6vjFq6+NY7r8hywnC7V+1Xj/MtHwGIbB1QaK/dunyjWteJzmkpd7ooeWg10T7GA== + dependencies: + errno "^0.1.3" + readable-stream "^2.0.1" + merge-descriptors@1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61" @@ -5112,17 +5139,17 @@ miller-rabin@^4.0.0: bn.js "^4.0.0" brorand "^1.0.1" -mime-db@1.40.0: - version "1.40.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.40.0.tgz#a65057e998db090f732a68f6c276d387d4126c32" - integrity sha512-jYdeOMPy9vnxEqFRRo6ZvTZ8d9oPb+k18PKoYNYUe2stVEBPPwsln/qWzdbmaIvnhZ9v2P+CuecK+fpUfsV2mA== +mime-db@1.42.0: + version "1.42.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.42.0.tgz#3e252907b4c7adb906597b4b65636272cf9e7bac" + integrity sha512-UbfJCR4UAVRNgMpfImz05smAXK7+c+ZntjaA26ANtkXLlOe947Aag5zdIcKQULAiF9Cq4WxBi9jUs5zkA84bYQ== mime-types@^2.1.12, mime-types@^2.1.16, mime-types@~2.1.19, mime-types@~2.1.24: - version "2.1.24" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.24.tgz#b6f8d0b3e951efb77dedeca194cff6d16f676f81" - integrity sha512-WaFHS3MCl5fapm3oLxU4eYDw77IQM2ACcxQ9RIxfaC3ooc6PFuBMGZZsYpvoXS5D5QTWPieo1jjLdAm3TBP3cQ== + version "2.1.25" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.25.tgz#39772d46621f93e2a80a856c53b86a62156a6437" + integrity sha512-5KhStqB5xpTAeGqKBAMgwaYMnQik7teQN4IAzC7npDv6kzeU6prfkR67bc87J1kWMPGkoaZSq1npmexMgkmEVg== dependencies: - mime-db "1.40.0" + mime-db "1.42.0" mime@1.6.0: version "1.6.0" @@ -5139,6 +5166,11 @@ mimic-response@^1.0.0, mimic-response@^1.0.1: resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-1.0.1.tgz#4923538878eef42063cb8a3e3b0798781487ab1b" integrity sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ== +mimic-response@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-2.0.0.tgz#996a51c60adf12cb8a87d7fb8ef24c2f3d5ebb46" + integrity sha512-8ilDoEapqA4uQ3TwS0jakGONKXVJqpy+RpM+3b7pLdOjghCrEiGp9SRkFbUHAmZW9vdnrENWHjaweIoTIJExSQ== + min-document@^2.19.0: version "2.19.0" resolved "https://registry.yarnpkg.com/min-document/-/min-document-2.19.0.tgz#7bd282e3f5842ed295bb748cdd9f1ffa2c824685" @@ -5173,20 +5205,20 @@ minimist@^1.2.0, minimist@~1.2.0: resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" integrity sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ= -minipass@^2.2.1, minipass@^2.3.5: - version "2.3.5" - resolved "https://registry.yarnpkg.com/minipass/-/minipass-2.3.5.tgz#cacebe492022497f656b0f0f51e2682a9ed2d848" - integrity sha512-Gi1W4k059gyRbyVUZQ4mEqLm0YIUiGYfvxhF6SIlk3ui1WVxMTGfGdQ2SInh3PDrRTVvPKgULkpJtT4RH10+VA== +minipass@^2.6.0, minipass@^2.8.6, minipass@^2.9.0: + version "2.9.0" + resolved "https://registry.yarnpkg.com/minipass/-/minipass-2.9.0.tgz#e713762e7d3e32fed803115cf93e04bca9fcc9a6" + integrity sha512-wxfUjg9WebH+CUDX/CdbRlh5SmfZiy/hpkxaRI16Y9W56Pa75sWgd/rvFilSgrauD9NyFymP/+JFV3KwzIsJeg== dependencies: safe-buffer "^5.1.2" yallist "^3.0.0" minizlib@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/minizlib/-/minizlib-1.2.1.tgz#dd27ea6136243c7c880684e8672bb3a45fd9b614" - integrity sha512-7+4oTUOWKg7AuL3vloEWekXY2/D20cevzsrNT2kGWm+39J9hGTCBv8VI5Pm5lXZ/o3/mdR4f8rflAPhnQb8mPA== + version "1.3.3" + resolved "https://registry.yarnpkg.com/minizlib/-/minizlib-1.3.3.tgz#2290de96818a34c29551c8a8d301216bd65a861d" + integrity sha512-6ZYMOEnmVsdCeTJVE0W9ZD+pVnE8h9Hma/iOwwRDsdQoePpoX56/8B6z3P9VNwppJuBKNRuFDRNRqRWexT9G9Q== dependencies: - minipass "^2.2.1" + minipass "^2.9.0" mississippi@^3.0.0: version "3.0.0" @@ -5227,9 +5259,9 @@ mkdirp@*, mkdirp@^0.5.0, mkdirp@^0.5.1: minimist "0.0.8" mock-fs@^4.1.0: - version "4.10.1" - resolved "https://registry.yarnpkg.com/mock-fs/-/mock-fs-4.10.1.tgz#50a07a20114a6cdb119f35762f61f46266a1e323" - integrity sha512-w22rOL5ZYu6HbUehB5deurghGM0hS/xBVyHMGKOuQctkk93J9z9VEOhDsiWrXOprVNQpP9uzGKdl8v9mFspKuw== + version "4.10.4" + resolved "https://registry.yarnpkg.com/mock-fs/-/mock-fs-4.10.4.tgz#4eaa3d6f7da2f44e1f3dd6b462cbbcb7b082e3d4" + integrity sha512-gDfZDLaPIvtOusbusLinfx6YSe2YpQsDT8qdP41P47dQ/NQggtkHukz7hwqgt8QvMBmAv+Z6DGmXPyb5BWX2nQ== move-concurrently@^1.0.1: version "1.0.1" @@ -5300,15 +5332,6 @@ napi-build-utils@^1.0.1: resolved "https://registry.yarnpkg.com/napi-build-utils/-/napi-build-utils-1.0.1.tgz#1381a0f92c39d66bf19852e7873432fc2123e508" integrity sha512-boQj1WFgQH3v4clhu3mTNfP+vOBxorDlE8EKiMjUlLG3C4qAESnn9AxIOkFgTR2c9LtzNjPrjS60cT27ZKBhaA== -needle@^2.2.1: - version "2.4.0" - resolved "https://registry.yarnpkg.com/needle/-/needle-2.4.0.tgz#6833e74975c444642590e15a750288c5f939b57c" - integrity sha512-4Hnwzr3mi5L97hMYeNl8wRW/Onhy4nUKR/lVemJ8gJedxxUyBLm9kkrDColJvoSfwi0jCNhD+xCdOtiGDQiRZg== - dependencies: - debug "^3.2.6" - iconv-lite "^0.4.4" - sax "^1.2.4" - negotiator@0.6.2: version "0.6.2" resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.2.tgz#feacf7ccf525a77ae9634436a64883ffeca346fb" @@ -5319,7 +5342,7 @@ neo-async@^2.5.0, neo-async@^2.6.1: resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.1.tgz#ac27ada66167fa8849a6addd837f6b189ad2081c" integrity sha512-iyam8fBuCUpWeKPGpaNMetEocMt364qkCsfL9JuhjXX6dRnguRVOfk2GZaDpPjcOKiiXCPINZC1GczQ7iTq3Zw== -next-tick@^1.0.0: +next-tick@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/next-tick/-/next-tick-1.0.0.tgz#ca86d1fe8828169b0120208e3dc8424b9db8342c" integrity sha1-yobR/ogoFpsBICCOPchCS524NCw= @@ -5330,9 +5353,9 @@ nice-try@^1.0.4: integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ== node-abi@^2.7.0: - version "2.11.0" - resolved "https://registry.yarnpkg.com/node-abi/-/node-abi-2.11.0.tgz#b7dce18815057544a049be5ae75cd1fdc2e9ea59" - integrity sha512-kuy/aEg75u40v378WRllQ4ZexaXJiCvB68D2scDXclp/I4cRq6togpbOoKhmN07tns9Zldu51NNERo0wehfX9g== + version "2.13.0" + resolved "https://registry.yarnpkg.com/node-abi/-/node-abi-2.13.0.tgz#e2f2ec444d0aca3ea1b3874b6de41d1665828f63" + integrity sha512-9HrZGFVTR5SOu3PZAnAY2hLO36aW1wmA+FDsVkr85BTST32TLCA1H/AEcatVRAsWLyXS3bqUDYCAjq5/QGuSTA== dependencies: semver "^5.4.1" @@ -5387,35 +5410,11 @@ node-libs-browser@^2.2.1: util "^0.11.0" vm-browserify "^1.0.1" -node-pre-gyp@^0.12.0: - version "0.12.0" - resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.12.0.tgz#39ba4bb1439da030295f899e3b520b7785766149" - integrity sha512-4KghwV8vH5k+g2ylT+sLTjy5wmUOb9vPhnM8NHvRf9dHmnW/CndrFXy2aRPaPST6dugXSdHXfeaHQm77PIz/1A== - dependencies: - detect-libc "^1.0.2" - mkdirp "^0.5.1" - needle "^2.2.1" - nopt "^4.0.1" - npm-packlist "^1.1.6" - npmlog "^4.0.2" - rc "^1.2.7" - rimraf "^2.6.1" - semver "^5.3.0" - tar "^4" - noop-logger@^0.1.1: version "0.1.1" resolved "https://registry.yarnpkg.com/noop-logger/-/noop-logger-0.1.1.tgz#94a2b1633c4f1317553007d8966fd0e841b6a4c2" integrity sha1-lKKxYzxPExdVMAfYlm/Q6EG2pMI= -nopt@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/nopt/-/nopt-4.0.1.tgz#d0d4685afd5415193c8c7505602d0d17cd64474d" - integrity sha1-0NRoWv1UFRk8jHUFYC0NF81kR00= - dependencies: - abbrev "1" - osenv "^0.1.4" - normalize-package-data@^2.3.2: version "2.5.0" resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.5.0.tgz#e66db1838b200c1dfc233225d12cb36520e234a8" @@ -5439,9 +5438,9 @@ normalize-path@^3.0.0: integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== normalize-url@^4.1.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-4.3.0.tgz#9c49e10fc1876aeb76dba88bf1b2b5d9fa57b2ee" - integrity sha512-0NLtR71o4k6GLP+mr6Ty34c5GA6CMoEsncKJxvQd8NzPxaHRJNnb5gZE8R1XF4CPIS7QPHLJ74IFszwtNVAHVQ== + version "4.5.0" + resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-4.5.0.tgz#453354087e6ca96957bd8f5baf753f5982142129" + integrity sha512-2s47yzUxdexf1OhyRi4Em83iQk0aPvwTddtFz4hnSSw9dCEsLEGf6SwIO8ss/19S9iBb5sJaOuTvTGDeZI00BQ== now-and-later@^2.0.0: version "2.0.1" @@ -5450,19 +5449,6 @@ now-and-later@^2.0.0: dependencies: once "^1.3.2" -npm-bundled@^1.0.1: - version "1.0.6" - resolved "https://registry.yarnpkg.com/npm-bundled/-/npm-bundled-1.0.6.tgz#e7ba9aadcef962bb61248f91721cd932b3fe6bdd" - integrity sha512-8/JCaftHwbd//k6y2rEWp6k1wxVfpFzB6t1p825+cUb7Ym2XQfhwIC5KwhrvzZRJu+LtDE585zVaS32+CGtf0g== - -npm-packlist@^1.1.6: - version "1.4.4" - resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-1.4.4.tgz#866224233850ac534b63d1a6e76050092b5d2f44" - integrity sha512-zTLo8UcVYtDU3gdeaFu2Xu0n0EvelfHDGuqtNIn5RO7yQj4H1TqNdBc/yZjxnWA0PVB8D3Woyp0i5B43JwQ6Vw== - dependencies: - ignore-walk "^3.0.1" - npm-bundled "^1.0.1" - npm-run-path@^2.0.0: version "2.0.2" resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" @@ -5470,7 +5456,7 @@ npm-run-path@^2.0.0: dependencies: path-key "^2.0.0" -npmlog@^4.0.1, npmlog@^4.0.2: +npmlog@^4.0.1: version "4.1.2" resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b" integrity sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg== @@ -5512,10 +5498,15 @@ object-copy@^0.1.0: define-property "^0.2.5" kind-of "^3.0.3" -object-inspect@^1.6.0, object-inspect@~1.6.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.6.0.tgz#c70b6cbf72f274aab4c34c0c82f5167bf82cf15b" - integrity sha512-GJzfBZ6DgDAmnuaM3104jR4s1Myxr3Y3zfIyN4z3UdqN69oSRacNK8UhnobDdC+7J2AHCjGwxQubNJfE70SXXQ== +object-inspect@^1.7.0, object-inspect@~1.7.0: + version "1.7.0" + resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.7.0.tgz#f4f6bd181ad77f006b5ece60bd0b6f398ff74a67" + integrity sha512-a7pEHdh1xKIAgTySUGgLMx/xwDZskN1Ud6egYYN3EdRW4ZMPNEDUTF+hwy2LUC+Bl+SyLXANnwz/jyh/qutKUw== + +object-is@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/object-is/-/object-is-1.0.2.tgz#6b80eb84fe451498f65007982f035a5b445edec4" + integrity sha512-Epah+btZd5wrrfjkJZq1AOB9O6OxUQto45hzFd7lXGrpHPGE0W1k+426yrZV+k6NJOzLNNW/nVsmZdIWsAqoOQ== object-keys@^1.0.11, object-keys@^1.0.12, object-keys@^1.1.1: version "1.1.1" @@ -5534,7 +5525,7 @@ object-visit@^1.0.0: dependencies: isobject "^3.0.0" -object.assign@^4.0.4: +object.assign@^4.0.4, object.assign@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.0.tgz#968bf1100d7956bb3ca086f006f846b3bc4008da" integrity sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w== @@ -5555,12 +5546,12 @@ object.defaults@^1.0.0, object.defaults@^1.1.0: isobject "^3.0.0" object.getownpropertydescriptors@^2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz#8758c846f5b407adab0f236e0986f14b051caa16" - integrity sha1-h1jIRvW0B62rDyNuCYbxSwUcqhY= + version "2.1.0" + resolved "https://registry.yarnpkg.com/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.0.tgz#369bf1f9592d8ab89d712dced5cb81c7c5352649" + integrity sha512-Z53Oah9A3TdLoblT7VKJaTDdXdT+lQO+cNpKVnya5JDe9uLvzu1YyY1yFDFrcxrlRgWrEFH0jJtD/IbuwjcEVg== dependencies: - define-properties "^1.1.2" - es-abstract "^1.5.1" + define-properties "^1.1.3" + es-abstract "^1.17.0-next.1" object.map@^1.0.0: version "1.0.1" @@ -5618,7 +5609,7 @@ os-browserify@^0.3.0: resolved "https://registry.yarnpkg.com/os-browserify/-/os-browserify-0.3.0.tgz#854373c7f5c2315914fc9bfc6bd8238fdda1ec27" integrity sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc= -os-homedir@^1.0.0, os-homedir@^1.0.1: +os-homedir@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" integrity sha1-/7xJiDNuDoM94MFox+8VISGqf7M= @@ -5639,19 +5630,11 @@ os-locale@^3.1.0: lcid "^2.0.0" mem "^4.0.0" -os-tmpdir@^1.0.0, os-tmpdir@^1.0.1: +os-tmpdir@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" integrity sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ= -osenv@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.5.tgz#85cdfafaeb28e8677f416e287592b5f3f49ea410" - integrity sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g== - dependencies: - os-homedir "^1.0.0" - os-tmpdir "^1.0.0" - p-cancelable@^0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/p-cancelable/-/p-cancelable-0.3.0.tgz#b9e123800bcebb7ac13a479be195b507b98d30fa" @@ -5709,18 +5692,18 @@ pako@^1.0.4, pako@~1.0.5: integrity sha512-0DTvPVU3ed8+HNXOu5Bs+o//Mbdj9VNQMUOe9oKCwh8l0GNwpTDMKCWbRjgtD291AWnkAgkqA/LOnQS8AmS1tw== parallel-transform@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/parallel-transform/-/parallel-transform-1.1.0.tgz#d410f065b05da23081fcd10f28854c29bda33b06" - integrity sha1-1BDwZbBdojCB/NEPKIVMKb2jOwY= + version "1.2.0" + resolved "https://registry.yarnpkg.com/parallel-transform/-/parallel-transform-1.2.0.tgz#9049ca37d6cb2182c3b1d2c720be94d14a5814fc" + integrity sha512-P2vSmIu38uIlvdcU7fDkyrxj33gTUy/ABO5ZUbGowxNCopBq/OoD42bP4UmMrJoPyk4Uqf0mu3mtWBhHCZD8yg== dependencies: - cyclist "~0.2.2" + cyclist "^1.0.1" inherits "^2.0.3" readable-stream "^2.1.5" parse-asn1@^5.0.0: - version "5.1.4" - resolved "https://registry.yarnpkg.com/parse-asn1/-/parse-asn1-5.1.4.tgz#37f6628f823fbdeb2273b4d540434a22f3ef1fcc" - integrity sha512-Qs5duJcuvNExRfFZ99HDD3z4mAi3r9Wl/FOjEOijlxwCZs7E7mW2vjTpgQ4J8LpTF8x5v+1Vn5UQFejmWT11aw== + version "5.1.5" + resolved "https://registry.yarnpkg.com/parse-asn1/-/parse-asn1-5.1.5.tgz#003271343da58dc94cace494faef3d2147ecea0e" + integrity sha512-jkMYn1dcJqF6d5CpU689bq7w/b5ALS9ROVSpQDPrZsqqesUJii9qutvoT5ltGedNXMO2e16YUWIghG9KxaViTQ== dependencies: asn1.js "^4.0.0" browserify-aes "^1.0.0" @@ -5739,12 +5722,9 @@ parse-filepath@^1.0.1: path-root "^0.1.1" parse-headers@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/parse-headers/-/parse-headers-2.0.2.tgz#9545e8a4c1ae5eaea7d24992bca890281ed26e34" - integrity sha512-/LypJhzFmyBIDYP9aDVgeyEb5sQfbfY5mnDq4hVhlQ69js87wXfmEI5V3xI6vvXasqebp0oCytYFLxsBVfCzSg== - dependencies: - for-each "^0.3.3" - string.prototype.trim "^1.1.2" + version "2.0.3" + resolved "https://registry.yarnpkg.com/parse-headers/-/parse-headers-2.0.3.tgz#5e8e7512383d140ba02f0c7aa9f49b4399c92515" + integrity sha512-QhhZ+DCCit2Coi2vmAKbq5RGTRcQUOE2+REgv8vdyu7MnYx2eZztegqtTx99TZ86GTIwqiy3+4nQTWZ2tgmdCA== parse-json@^2.2.0: version "2.2.0" @@ -5858,9 +5838,9 @@ performance-now@^2.1.0: integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns= picomatch@^2.0.5: - version "2.0.7" - resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.0.7.tgz#514169d8c7cd0bdbeecc8a2609e34a7163de69f6" - integrity sha512-oLHIdio3tZ0qH76NybpeneBhYVj0QFTfXEFTc/B3zKQspYfYYkWYgFsmzo+4kvId/bQRcNkVeguI3y+CD22BtA== + version "2.1.1" + resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.1.1.tgz#ecdfbea7704adb5fe6fb47f9866c4c0e15e905c5" + integrity sha512-OYMyqkKzK7blWO/+XZYP6w8hH0LDvkBvdvKukti+7kqYFCiEAk+gI3DWnryapc0Dau05ugGTy0foQ6mqn4AHYA== pify@^2.0.0, pify@^2.3.0: version "2.3.0" @@ -5906,10 +5886,10 @@ posix-character-classes@^0.1.0: resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" integrity sha1-AerA/jta9xoqbAL+q7jB/vfgDqs= -prebuild-install@^5.2.4, prebuild-install@^5.3.0: - version "5.3.0" - resolved "https://registry.yarnpkg.com/prebuild-install/-/prebuild-install-5.3.0.tgz#58b4d8344e03590990931ee088dd5401b03004c8" - integrity sha512-aaLVANlj4HgZweKttFNUVNRxDukytuIuxeK2boIMHjagNJCiVKWFsKF4tCE3ql3GbrD2tExPQ7/pwtEJcHNZeg== +prebuild-install@^5.3.0, prebuild-install@^5.3.3: + version "5.3.3" + resolved "https://registry.yarnpkg.com/prebuild-install/-/prebuild-install-5.3.3.tgz#ef4052baac60d465f5ba6bf003c9c1de79b9da8e" + integrity sha512-GV+nsUXuPW2p8Zy7SarF/2W/oiK8bFQgJcncoJ0d7kRpekEA0ftChjfEaF9/Y+QJEc/wFR7RAEa8lYByuUIe2g== dependencies: detect-libc "^1.0.3" expand-template "^2.0.3" @@ -5920,11 +5900,10 @@ prebuild-install@^5.2.4, prebuild-install@^5.3.0: node-abi "^2.7.0" noop-logger "^0.1.1" npmlog "^4.0.1" - os-homedir "^1.0.1" - pump "^2.0.1" + pump "^3.0.0" rc "^1.2.7" - simple-get "^2.7.0" - tar-fs "^1.13.0" + simple-get "^3.0.3" + tar-fs "^2.0.0" tunnel-agent "^0.6.0" which-pm-runs "^1.0.0" @@ -6000,9 +5979,9 @@ pseudomap@^1.0.1: integrity sha1-8FKijacOYYkX7wqKw0wa5aaChrM= psl@^1.1.24: - version "1.3.0" - resolved "https://registry.yarnpkg.com/psl/-/psl-1.3.0.tgz#e1ebf6a3b5564fa8376f3da2275da76d875ca1bd" - integrity sha512-avHdspHO+9rQTLbv1RO+MPYeP/SzsCoxofjVnHanETfQhTJrmB0HlDoW+EiN/R+C0BZ+gERab9NY0lPN2TxNag== + version "1.6.0" + resolved "https://registry.yarnpkg.com/psl/-/psl-1.6.0.tgz#60557582ee23b6c43719d9890fb4170ecd91e110" + integrity sha512-SYKKmVel98NCOYXpkwUqZqh0ahZeeKfmisiLIcEZdsb+WbLv02g/dI5BUmZnIyOe7RzZtLax81nnb2HbvC2tzA== public-encrypt@^4.0.0: version "4.0.3" @@ -6064,15 +6043,7 @@ pull-window@^2.1.4: dependencies: looper "^2.0.0" -pump@^1.0.0: - version "1.0.3" - resolved "https://registry.yarnpkg.com/pump/-/pump-1.0.3.tgz#5dfe8311c33bbf6fc18261f9f34702c47c08a954" - integrity sha512-8k0JupWme55+9tCVE+FS5ULT3K6AbgqrGa58lTT49RpyfwwcGedHqaC5LlQNdEAumn/wFsu6aPwkuPMioy8kqw== - dependencies: - end-of-stream "^1.1.0" - once "^1.3.1" - -pump@^2.0.0, pump@^2.0.1: +pump@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/pump/-/pump-2.0.1.tgz#12399add6e4cf7526d973cbc8b5ce2e2908b3909" integrity sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA== @@ -6231,6 +6202,15 @@ readable-stream@^1.0.33: isarray "0.0.1" string_decoder "~0.10.x" +readable-stream@^3.0.1, readable-stream@^3.1.1: + version "3.4.0" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.4.0.tgz#a51c26754658e0a3c21dbf59163bd45ba6f447fc" + integrity sha512-jItXPLmrSR8jmTRmRWJXCnGJsfy85mB3Wd/uINMXA65yrnFo0cPClFIUWzo2najVNSl+mx7/4W8ttlLWJe99pQ== + dependencies: + inherits "^2.0.3" + string_decoder "^1.1.1" + util-deprecate "^1.0.1" + readable-stream@~1.0.15: version "1.0.34" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-1.0.34.tgz#125820e34bc842d2f2aaafafe4c2916ee32c157c" @@ -6284,6 +6264,14 @@ regex-not@^1.0.0, regex-not@^1.0.2: extend-shallow "^3.0.2" safe-regex "^1.1.0" +regexp.prototype.flags@^1.2.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.3.0.tgz#7aba89b3c13a64509dabcf3ca8d9fbb9bdf5cb75" + integrity sha512-2+Q0C5g951OlYlJz6yu5/M33IcsESLlLfsyIaLJaG4FA2r4yP8MvVMJUUP/fVBkSpbbbZlS5gynbEWLipiiXiQ== + dependencies: + define-properties "^1.1.3" + es-abstract "^1.17.0-next.1" + regexpu-core@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-2.0.0.tgz#49d038837b8dcf8bfa5b9a42139938e6ea2ae240" @@ -6432,16 +6420,16 @@ resolve-url@^0.2.1: integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo= resolve@^1.1.6, resolve@^1.1.7, resolve@^1.10.0, resolve@^1.4.0: - version "1.12.0" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.12.0.tgz#3fc644a35c84a48554609ff26ec52b66fa577df6" - integrity sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w== + version "1.14.1" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.14.1.tgz#9e018c540fcf0c427d678b9931cbf45e984bcaff" + integrity sha512-fn5Wobh4cxbLzuHaE+nphztHy43/b++4M6SsGFC2gB8uYwf0C8LcarfCz1un7UTW8OFQg9iNjZ4xpcFVGebDPg== dependencies: path-parse "^1.0.6" -resolve@~1.11.1: - version "1.11.1" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.11.1.tgz#ea10d8110376982fef578df8fc30b9ac30a07a3e" - integrity sha512-vIpgF6wfuJOZI7KKKSP+HmiKggadPQAdsp5HiC1mvqnfp0gF1vdwgBWZIdrVft9pgqoMFQN+R7BSWZiBxx+BBw== +resolve@~1.13.1: + version "1.13.1" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.13.1.tgz#be0aa4c06acd53083505abb35f4d66932ab35d16" + integrity sha512-CxqObCX8K8YtAhOBRg+lrcdn+LK+WYOS8tSjqSFbjtrI5PnS63QPhZl4+yKfrU9tdsbMu9Anr/amegT87M9Z6w== dependencies: path-parse "^1.0.6" @@ -6464,7 +6452,7 @@ ret@~0.1.10: resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" integrity sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg== -rimraf@^2.5.4, rimraf@^2.6.1, rimraf@^2.6.3: +rimraf@^2.5.4, rimraf@^2.6.3: version "2.7.1" resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec" integrity sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w== @@ -6486,13 +6474,12 @@ ripemd160@^2.0.0, ripemd160@^2.0.1: hash-base "^3.0.0" inherits "^2.0.1" -rlp@^2.0.0, rlp@^2.2.1, rlp@^2.2.2: - version "2.2.3" - resolved "https://registry.yarnpkg.com/rlp/-/rlp-2.2.3.tgz#7f94aef86cec412df87d5ea1d8cb116a47d45f0e" - integrity sha512-l6YVrI7+d2vpW6D6rS05x2Xrmq8oW7v3pieZOJKBEdjuTF4Kz/iwk55Zyh1Zaz+KOB2kC8+2jZlp2u9L4tTzCQ== +rlp@^2.0.0, rlp@^2.2.1, rlp@^2.2.2, rlp@^2.2.3: + version "2.2.4" + resolved "https://registry.yarnpkg.com/rlp/-/rlp-2.2.4.tgz#d6b0e1659e9285fc509a5d169a9bd06f704951c1" + integrity sha512-fdq2yYCWpAQBhwkZv+Z8o/Z4sPmYm1CUq6P7n6lVTOdb949CnqA0sndXal5C1NleSVSZm6q5F3iEbauyVln/iw== dependencies: bn.js "^4.11.1" - safe-buffer "^5.1.1" run-queue@^1.0.0, run-queue@^1.0.3: version "1.0.3" @@ -6506,10 +6493,10 @@ rustbn.js@~0.2.0: resolved "https://registry.yarnpkg.com/rustbn.js/-/rustbn.js-0.2.0.tgz#8082cb886e707155fd1cb6f23bd591ab8d55d0ca" integrity sha512-4VlvkRUuCJvr2J6Y0ImW7NvTCriMi7ErOAqWk1y69vAdoNIzCF3yPmgeNzx+RQTLEDFq5sHfscn1MwHxP9hNfA== -rxjs@^6.5.2: - version "6.5.2" - resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.5.2.tgz#2e35ce815cd46d84d02a209fb4e5921e051dbec7" - integrity sha512-HUb7j3kvb7p7eCUHE3FqjoDsC1xfZQ4AHFWfTKSpZ+sAhhz5X1WX0ZuUqWbzB2QhSLp3DoLUG+hMdEDKqWo2Zg== +rxjs@^6.5.3: + version "6.5.3" + resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.5.3.tgz#510e26317f4db91a7eb1de77d9dd9ba0a4899a3a" + integrity sha512-wuYsAYYFdWTAnAaPoKGNhfpWwKZbJW+HgAJ+mImp+Epl7BG8oNWBCTyRM8gba9k4lk8BgWdoYm21Mo/RYhhbgA== dependencies: tslib "^1.9.0" @@ -6518,7 +6505,7 @@ safe-buffer@5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== -safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@^5.1.2, safe-buffer@~5.2.0: +safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@^5.1.2, safe-buffer@^5.2.0, safe-buffer@~5.2.0: version "5.2.0" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.0.tgz#b74daec49b1148f88c64b68d49b1e815c1f2f519" integrity sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg== @@ -6542,11 +6529,6 @@ safe-regex@^1.1.0: resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== -sax@^1.2.4: - version "1.2.4" - resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9" - integrity sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw== - schema-utils@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-1.0.0.tgz#0b79a93204d7b600d4b2850d1f66c2a34951c770" @@ -6595,16 +6577,16 @@ scryptsy@^1.2.1: pbkdf2 "^3.0.3" secp256k1@^3.0.1: - version "3.7.1" - resolved "https://registry.yarnpkg.com/secp256k1/-/secp256k1-3.7.1.tgz#12e473e0e9a7c2f2d4d4818e722ad0e14cc1e2f1" - integrity sha512-1cf8sbnRreXrQFdH6qsg2H71Xw91fCCS9Yp021GnUNJzWJS/py96fS4lHbnTnouLp08Xj6jBoBB6V78Tdbdu5g== + version "3.8.0" + resolved "https://registry.yarnpkg.com/secp256k1/-/secp256k1-3.8.0.tgz#28f59f4b01dbee9575f56a47034b7d2e3b3b352d" + integrity sha512-k5ke5avRZbtl9Tqx/SA7CbY3NF6Ro+Sj9cZxezFzuBlLDmyqPiL8hJJ+EmzD8Ig4LUDByHJ3/iPOVoRixs/hmw== dependencies: bindings "^1.5.0" bip66 "^1.1.5" bn.js "^4.11.8" create-hash "^1.2.0" drbg.js "^1.0.1" - elliptic "^6.4.1" + elliptic "^6.5.2" nan "^2.14.0" safe-buffer "^5.1.2" @@ -6676,10 +6658,10 @@ send@0.17.1: range-parser "~1.2.1" statuses "~1.5.0" -serialize-javascript@^1.7.0: - version "1.8.0" - resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-1.8.0.tgz#9515fc687232e2321aea1ca7a529476eb34bb480" - integrity sha512-3tHgtF4OzDmeKYj6V9nSyceRS0UJ3C7VqyD2Yj28vC/z2j6jG5FmFGahOKMD9CrglxTm3tETr87jEypaYV8DUg== +serialize-javascript@^2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-2.1.2.tgz#ecec53b0e0317bdc95ef76ab7074b7384785fa61" + integrity sha512-rs9OggEUF0V4jUSecXazOYsLfu7OGK2qIn3c7IPBiffz32XniEp/TX9Xmc9LQfK2nQ2QKHvZ2oygKUGU0lG4jQ== serve-static@1.14.1: version "1.14.1" @@ -6746,9 +6728,9 @@ sha.js@^2.4.0, sha.js@^2.4.8: safe-buffer "^5.0.1" sha3@^1.2.2: - version "1.2.3" - resolved "https://registry.yarnpkg.com/sha3/-/sha3-1.2.3.tgz#ed5958fa8331df1b1b8529ca9fdf225a340c5418" - integrity sha512-sOWDZi8cDBRkLfWOw18wvJyNblXDHzwMGnRWut8zNNeIeLnmMRO17bjpLc7OzMuj1ASUgx2IyohzUCAl+Kx5vA== + version "1.2.6" + resolved "https://registry.yarnpkg.com/sha3/-/sha3-1.2.6.tgz#102aa3e47dc793e2357902c3cce8760822f9e905" + integrity sha512-KgLGmJGrmNB4JWVsAV11Yk6KbvsAiygWJc7t5IebWva/0NukNrjJqhtKhzy3Eiv2AKuGvhZZt7dt1mDo7HkoiQ== dependencies: nan "2.13.2" @@ -6783,6 +6765,15 @@ simple-get@^2.7.0: once "^1.3.1" simple-concat "^1.0.0" +simple-get@^3.0.3: + version "3.1.0" + resolved "https://registry.yarnpkg.com/simple-get/-/simple-get-3.1.0.tgz#b45be062435e50d159540b576202ceec40b9c6b3" + integrity sha512-bCR6cP+aTdScaQCnQKbPKtJOKDp/hj9EDLJo3Nw4y1QksqaovlW/bnptB6/c1e+qmNIDHRK+oXFDdEqBT8WzUA== + dependencies: + decompress-response "^4.2.0" + once "^1.3.1" + simple-concat "^1.0.0" + slash@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55" @@ -6858,9 +6849,9 @@ source-map-support@^0.4.15: source-map "^0.5.6" source-map-support@~0.5.12: - version "0.5.13" - resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.13.tgz#31b24a9c2e73c2de85066c0feb7d44767ed52932" - integrity sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w== + version "0.5.16" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.16.tgz#0ae069e7fe3ba7538c64c98515e35339eac5a042" + integrity sha512-efyLRJDr68D9hBBNIPWFjhpFzURh+KJykQwvMyW5UiZzYwoF6l4YMMDIJJEyFWxWCqfyxLzz6tSfUFR+kXXsVQ== dependencies: buffer-from "^1.0.0" source-map "^0.6.0" @@ -6991,9 +6982,9 @@ stream-http@^2.7.2: xtend "^4.0.0" stream-shift@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/stream-shift/-/stream-shift-1.0.0.tgz#d5c752825e5367e786f78e18e445ea223a155952" - integrity sha1-1cdSgl5TZ+eG944Y5EXqIjoVWVI= + version "1.0.1" + resolved "https://registry.yarnpkg.com/stream-shift/-/stream-shift-1.0.1.tgz#d7088281559ab2778424279b0877da3c392d5a3d" + integrity sha512-AiisoFqQ0vbGcZgQPY1cdP2I76glaVA/RauYR4G4thNFgkTqr90yXTo4LYX60Jl+sIlPNHHdGSwo01AvbKUSVQ== stream-to-pull-stream@^1.7.1: version "1.7.3" @@ -7034,41 +7025,32 @@ string-width@^3.0.0, string-width@^3.1.0: is-fullwidth-code-point "^2.0.0" strip-ansi "^5.1.0" -string.prototype.trim@^1.1.2: - version "1.2.0" - resolved "https://registry.yarnpkg.com/string.prototype.trim/-/string.prototype.trim-1.2.0.tgz#75a729b10cfc1be439543dae442129459ce61e3d" - integrity sha512-9EIjYD/WdlvLpn987+ctkLf0FfvBefOCuiEr2henD8X+7jfwPnyvTdmW8OJhj5p+M0/96mBdynLWkxUr+rHlpg== +string.prototype.trim@~1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/string.prototype.trim/-/string.prototype.trim-1.2.1.tgz#141233dff32c82bfad80684d7e5f0869ee0fb782" + integrity sha512-MjGFEeqixw47dAMFMtgUro/I0+wNqZB5GKXGt1fFr24u3TzDXCPu7J9Buppzoe3r/LqkSDLDDJzE15RGWDGAVw== dependencies: define-properties "^1.1.3" - es-abstract "^1.13.0" + es-abstract "^1.17.0-next.1" function-bind "^1.1.1" -string.prototype.trim@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/string.prototype.trim/-/string.prototype.trim-1.1.2.tgz#d04de2c89e137f4d7d206f086b5ed2fae6be8cea" - integrity sha1-0E3iyJ4Tf019IG8Ia17S+ua+jOo= - dependencies: - define-properties "^1.1.2" - es-abstract "^1.5.0" - function-bind "^1.0.2" - string.prototype.trimleft@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/string.prototype.trimleft/-/string.prototype.trimleft-2.1.0.tgz#6cc47f0d7eb8d62b0f3701611715a3954591d634" - integrity sha512-FJ6b7EgdKxxbDxc79cOlok6Afd++TTs5szo+zJTUyow3ycrRfJVE2pq3vcN53XexvKZu/DJMDfeI/qMiZTrjTw== + version "2.1.1" + resolved "https://registry.yarnpkg.com/string.prototype.trimleft/-/string.prototype.trimleft-2.1.1.tgz#9bdb8ac6abd6d602b17a4ed321870d2f8dcefc74" + integrity sha512-iu2AGd3PuP5Rp7x2kEZCrB2Nf41ehzh+goo8TV7z8/XDBbsvc6HQIlUl9RjkZ4oyrW1XM5UwlGl1oVEaDjg6Ag== dependencies: define-properties "^1.1.3" function-bind "^1.1.1" string.prototype.trimright@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/string.prototype.trimright/-/string.prototype.trimright-2.1.0.tgz#669d164be9df9b6f7559fa8e89945b168a5a6c58" - integrity sha512-fXZTSV55dNBwv16uw+hh5jkghxSnc5oHq+5K/gXgizHwAvMetdAJlHqqoFC1FSDVPYWLkAKl2cxpUT41sV7nSg== + version "2.1.1" + resolved "https://registry.yarnpkg.com/string.prototype.trimright/-/string.prototype.trimright-2.1.1.tgz#440314b15996c866ce8a0341894d45186200c5d9" + integrity sha512-qFvWL3/+QIgZXVmJBfpHmxLB7xsUXz6HsUmP8+5dRaC3Q7oKUv9Vo6aMCRZC1smrtyECFsIT30PqBJ1gTjAs+g== dependencies: define-properties "^1.1.3" function-bind "^1.1.1" -string_decoder@^1.0.0: +string_decoder@^1.0.0, string_decoder@^1.1.1: version "1.3.0" resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA== @@ -7189,36 +7171,37 @@ tapable@^1.0.0, tapable@^1.1.3: resolved "https://registry.yarnpkg.com/tapable/-/tapable-1.1.3.tgz#a1fccc06b58db61fd7a45da2da44f5f3a3e67ba2" integrity sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA== -tape@^4.4.0, tape@^4.6.3, tape@^4.8.0: - version "4.11.0" - resolved "https://registry.yarnpkg.com/tape/-/tape-4.11.0.tgz#63d41accd95e45a23a874473051c57fdbc58edc1" - integrity sha512-yixvDMX7q7JIs/omJSzSZrqulOV51EC9dK8dM0TzImTIkHWfe2/kFyL5v+d9C+SrCMaICk59ujsqFAVidDqDaA== +tape@^4.4.0, tape@^4.6.3: + version "4.12.0" + resolved "https://registry.yarnpkg.com/tape/-/tape-4.12.0.tgz#eb5382ac5d450f9c858819b2233458e69aeda4a8" + integrity sha512-PWs/TopmfVeYyLNZnfKsoV160xjNq1LvX2SWzZTyhVYsDldR93p5Zp0lfmsY3BCpZdVMXBOkfYZFeScEfsFvKQ== dependencies: - deep-equal "~1.0.1" + deep-equal "~1.1.1" defined "~1.0.0" for-each "~0.3.3" function-bind "~1.1.1" - glob "~7.1.4" + glob "~7.1.6" has "~1.0.3" inherits "~2.0.4" + is-regex "~1.0.5" minimist "~1.2.0" - object-inspect "~1.6.0" - resolve "~1.11.1" + object-inspect "~1.7.0" + resolve "~1.13.1" resumer "~0.0.0" - string.prototype.trim "~1.1.2" + string.prototype.trim "~1.2.1" through "~2.3.8" -tar-fs@^1.13.0: - version "1.16.3" - resolved "https://registry.yarnpkg.com/tar-fs/-/tar-fs-1.16.3.tgz#966a628841da2c4010406a82167cbd5e0c72d509" - integrity sha512-NvCeXpYx7OsmOh8zIOP/ebG55zZmxLE0etfWRbWok+q2Qo8x/vOR/IJT1taADXPe+jsiu9axDb3X4B+iIgNlKw== +tar-fs@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/tar-fs/-/tar-fs-2.0.0.tgz#677700fc0c8b337a78bee3623fdc235f21d7afad" + integrity sha512-vaY0obB6Om/fso8a8vakQBzwholQ7v5+uy+tF3Ozvxv1KNezmVQAiWtcNmMHFSFPqL3dJA8ha6gdtFbfX9mcxA== dependencies: - chownr "^1.0.1" + chownr "^1.1.1" mkdirp "^0.5.1" - pump "^1.0.0" - tar-stream "^1.1.2" + pump "^3.0.0" + tar-stream "^2.0.0" -tar-stream@^1.1.2, tar-stream@^1.5.2: +tar-stream@^1.5.2: version "1.6.2" resolved "https://registry.yarnpkg.com/tar-stream/-/tar-stream-1.6.2.tgz#8ea55dab37972253d9a9af90fdcd559ae435c555" integrity sha512-rzS0heiNf8Xn7/mpdSVVSMAWAoy9bfb1WOTYC78Z0UQKeKa/CWS8FOq0lKGNa8DWKAn9gxjCvMLYc5PGXYlK2A== @@ -7231,38 +7214,49 @@ tar-stream@^1.1.2, tar-stream@^1.5.2: to-buffer "^1.1.1" xtend "^4.0.0" -tar@^4, tar@^4.0.2: - version "4.4.10" - resolved "https://registry.yarnpkg.com/tar/-/tar-4.4.10.tgz#946b2810b9a5e0b26140cf78bea6b0b0d689eba1" - integrity sha512-g2SVs5QIxvo6OLp0GudTqEf05maawKUxXru104iaayWA09551tFCTI8f1Asb4lPfkBr91k07iL4c11XO3/b0tA== +tar-stream@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/tar-stream/-/tar-stream-2.1.0.tgz#d1aaa3661f05b38b5acc9b7020efdca5179a2cc3" + integrity sha512-+DAn4Nb4+gz6WZigRzKEZl1QuJVOLtAwwF+WUxy1fJ6X63CaGaUAxJRD2KEn1OMfcbCjySTYpNC6WmfQoIEOdw== + dependencies: + bl "^3.0.0" + end-of-stream "^1.4.1" + fs-constants "^1.0.0" + inherits "^2.0.3" + readable-stream "^3.1.1" + +tar@^4.0.2: + version "4.4.13" + resolved "https://registry.yarnpkg.com/tar/-/tar-4.4.13.tgz#43b364bc52888d555298637b10d60790254ab525" + integrity sha512-w2VwSrBoHa5BsSyH+KxEqeQBAllHhccyMFVHtGtdMpF4W7IRWfZjFiQceJPChOeTsSDVUpER2T8FA93pr0L+QA== dependencies: chownr "^1.1.1" fs-minipass "^1.2.5" - minipass "^2.3.5" + minipass "^2.8.6" minizlib "^1.2.1" mkdirp "^0.5.0" safe-buffer "^5.1.2" yallist "^3.0.3" -terser-webpack-plugin@^1.4.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-1.4.1.tgz#61b18e40eaee5be97e771cdbb10ed1280888c2b4" - integrity sha512-ZXmmfiwtCLfz8WKZyYUuuHf3dMYEjg8NrjHMb0JqHVHVOSkzp3cW2/XG1fP3tRhqEqSzMwzzRQGtAPbs4Cncxg== +terser-webpack-plugin@^1.4.3: + version "1.4.3" + resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-1.4.3.tgz#5ecaf2dbdc5fb99745fd06791f46fc9ddb1c9a7c" + integrity sha512-QMxecFz/gHQwteWwSo5nTc6UaICqN1bMedC5sMtUc7y3Ha3Q8y6ZO0iCR8pq4RJC8Hjf0FEPEHZqcMB/+DFCrA== dependencies: cacache "^12.0.2" find-cache-dir "^2.1.0" is-wsl "^1.1.0" schema-utils "^1.0.0" - serialize-javascript "^1.7.0" + serialize-javascript "^2.1.2" source-map "^0.6.1" terser "^4.1.2" webpack-sources "^1.4.0" worker-farm "^1.7.0" terser@^4.1.2: - version "4.2.0" - resolved "https://registry.yarnpkg.com/terser/-/terser-4.2.0.tgz#4b1b5f4424b426a7a47e80d6aae45e0d7979aef0" - integrity sha512-6lPt7lZdZ/13icQJp8XasFOwZjFJkxFFIb/N1fhYEQNoNI3Ilo3KABZ9OocZvZoB39r6SiIk/0+v/bt8nZoSeA== + version "4.4.3" + resolved "https://registry.yarnpkg.com/terser/-/terser-4.4.3.tgz#401abc52b88869cf904412503b1eb7da093ae2f0" + integrity sha512-0ikKraVtRDKGzHrzkCv5rUNDzqlhmhowOBqC0XqUHFpW+vJ45+20/IFBcebwKfiS2Z9fJin6Eo+F1zLZsxi8RA== dependencies: commander "^2.20.0" source-map "~0.6.1" @@ -7399,9 +7393,9 @@ trim-right@^1.0.1: integrity sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM= ts-loader@^6.0.4: - version "6.0.4" - resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-6.0.4.tgz#bc331ad91a887a60632d94c9f79448666f2c4b63" - integrity sha512-p2zJYe7OtwR+49kv4gs7v4dMrfYD1IPpOtqiSPCbe8oR+4zEBtdHwzM7A7M91F+suReqgzZrlClk4LRSSp882g== + version "6.2.1" + resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-6.2.1.tgz#67939d5772e8a8c6bdaf6277ca023a4812da02ef" + integrity sha512-Dd9FekWuABGgjE1g0TlQJ+4dFUfYGbYcs52/HQObE0ZmUNjQlmLAS7xXsSzy23AMaMwipsx5sNHvoEpT2CZq1g== dependencies: chalk "^2.3.0" enhanced-resolve "^4.0.0" @@ -7450,9 +7444,14 @@ type-is@~1.6.17, type-is@~1.6.18: mime-types "~2.1.24" type@^1.0.1: - version "1.0.3" - resolved "https://registry.yarnpkg.com/type/-/type-1.0.3.tgz#16f5d39f27a2d28d86e48f8981859e9d3296c179" - integrity sha512-51IMtNfVcee8+9GJvj0spSuFcZHe9vSib6Xtgsny1Km9ugyz2mbS08I3rsUIRYgJohFRFU1160sgRodYz378Hg== + version "1.2.0" + resolved "https://registry.yarnpkg.com/type/-/type-1.2.0.tgz#848dd7698dafa3e54a6c479e759c4bc3f18847a0" + integrity sha512-+5nt5AAniqsCnu2cEQQdpzCAh33kVx8n0VoFidKpB1dVVLAN/F+bgVOqOJqOnEnrhp222clB5p3vUlD+1QAnfg== + +type@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/type/-/type-2.0.0.tgz#5f16ff6ef2eb44f260494dae271033b29c09a9c3" + integrity sha512-KBt58xCHry4Cejnc2ISQAF7QY+ORngsWfxezO68+12hKV6lQY8P/psIkcbjeHWn7MqcgciWJyCCevFMJdIXpow== typedarray-to-buffer@^3.1.5: version "3.1.5" @@ -7467,9 +7466,9 @@ typedarray@^0.0.6: integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= typescript@^3.5.3: - version "3.5.3" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.5.3.tgz#c830f657f93f1ea846819e929092f5fe5983e977" - integrity sha512-ACzBtm/PhXBDId6a6sDJfroT2pOWt/oOnk4/dElG5G33ZL776N3Y6/6bKZJBFpd+b05F3Ct9qDjMeJmRWtE2/g== + version "3.7.3" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.3.tgz#b36840668a16458a7025b9eabfad11b66ab85c69" + integrity sha512-Mcr/Qk7hXqFBXMN7p7Lusj1ktCBydylfQM/FZCk5glCNQJrCUKPkMHdo9R0MTFWsC/4kPFvDS0fDPvukfCkFsw== typewise-core@^1.2, typewise-core@^1.2.0: version "1.2.0" @@ -7592,9 +7591,9 @@ unset-value@^1.0.0: isobject "^3.0.0" upath@^1.1.1: - version "1.1.2" - resolved "https://registry.yarnpkg.com/upath/-/upath-1.1.2.tgz#3db658600edaeeccbe6db5e684d67ee8c2acd068" - integrity sha512-kXpym8nmDmlCBr7nKdIx8P2jNBa+pBpIUFRnKJ4dr8htyYGJFokkr2ZvERRtUN+9SY+JqXouNgUPtv6JQva/2Q== + version "1.2.0" + resolved "https://registry.yarnpkg.com/upath/-/upath-1.2.0.tgz#8f66dbcd55a883acdae4408af8b035a5044c1894" + integrity sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg== uri-js@^4.2.2: version "4.2.2" @@ -7641,13 +7640,13 @@ url@^0.11.0: querystring "0.2.0" usb@^1.6.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/usb/-/usb-1.6.0.tgz#bc5d4decf4ffca32d1136717edcf73366137a789" - integrity sha512-52DyWlCk9K+iw3LnvY95WXSnpHjxJoI++aGkV8HiMNPc4zmvDQlYvWAzrkbJ2JH3oUcx26XfU5sZcG4RAcVkMg== + version "1.6.2" + resolved "https://registry.yarnpkg.com/usb/-/usb-1.6.2.tgz#4ed7f0d8631c70192b33635f6a4e700d9e6bfe62" + integrity sha512-KcovLXRQuH63iEtnqXyDQGOi5dXHpLM5lZBIUsqSJQToua8nL2sVCieQTkzQBfLe5mCuvk40MgKciI61lgevWw== dependencies: bindings "^1.4.0" nan "2.13.2" - prebuild-install "^5.2.4" + prebuild-install "^5.3.3" use@^3.1.0: version "3.1.1" @@ -7659,7 +7658,7 @@ utf8@3.0.0, utf8@^3.0.0: resolved "https://registry.yarnpkg.com/utf8/-/utf8-3.0.0.tgz#f052eed1364d696e769ef058b183df88c87f69d1" integrity sha512-E8VjFIQ/TyQgp+TZfS6l8yp/xWppSAHzidGiRrqe4bK4XP9pTRyKFgGJpO3SN7zdX4DeomTrwaseCHovfpFcqQ== -util-deprecate@~1.0.1: +util-deprecate@^1.0.1, util-deprecate@~1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8= @@ -7804,9 +7803,9 @@ vinyl@^2.0.0: replace-ext "^1.0.0" vm-browserify@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-1.1.0.tgz#bd76d6a23323e2ca8ffa12028dc04559c75f9019" - integrity sha512-iq+S7vZJE60yejDYM0ek6zg308+UZsdtPExWP9VZoCFCz1zkJoXFnAX7aZfd/ZwrkidzdUZL0C/ryW+JwAiIGw== + version "1.1.2" + resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-1.1.2.tgz#78641c488b8e6ca91a75f511e7a3b32a86e5dda0" + integrity sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ== watchpack@^1.6.0: version "1.6.0" @@ -8012,10 +8011,10 @@ web3-provider-engine@14.0.6: xhr "^2.2.0" xtend "^4.0.1" -web3-provider-engine@14.2.0: - version "14.2.0" - resolved "https://registry.yarnpkg.com/web3-provider-engine/-/web3-provider-engine-14.2.0.tgz#2efec157b2c429c5c674c079aea96b0a06de8b3d" - integrity sha512-sfLH5VhGjJrJJT5WcF8aGehcIKRUQ553q9tjQkkLaKU2AaLsRcwffnnWvrgeTkmKSf0y9dwkDTa48RVp+GUCSg== +web3-provider-engine@14.2.1: + version "14.2.1" + resolved "https://registry.yarnpkg.com/web3-provider-engine/-/web3-provider-engine-14.2.1.tgz#ef351578797bf170e08d529cb5b02f8751329b95" + integrity sha512-iSv31h2qXkr9vrL6UZDm4leZMc32SjWJFGOp/D92JXfcEboCqraZyuExDkpxKw8ziTufXieNM7LSXNHzszYdJw== dependencies: async "^2.5.0" backoff "^2.5.0" @@ -8101,9 +8100,9 @@ web3@1.2.1: web3-utils "1.2.1" webpack-cli@^3.3.7: - version "3.3.7" - resolved "https://registry.yarnpkg.com/webpack-cli/-/webpack-cli-3.3.7.tgz#77c8580dd8e92f69d635e0238eaf9d9c15759a91" - integrity sha512-OhTUCttAsr+IZSMVwGROGRHvT+QAs8H6/mHIl4SvhAwYywjiylYjpwybGx7WQ9Hkb45FhjtsymkwiRRbGJ1SZQ== + version "3.3.10" + resolved "https://registry.yarnpkg.com/webpack-cli/-/webpack-cli-3.3.10.tgz#17b279267e9b4fb549023fae170da8e6e766da13" + integrity sha512-u1dgND9+MXaEt74sJR4PR7qkPxXUSQ0RXYq8x1L6Jg1MYVEmGPrH6Ah6C4arD4r0J1P5HKjRqpab36k0eIzPqg== dependencies: chalk "2.4.2" cross-spawn "6.0.5" @@ -8126,9 +8125,9 @@ webpack-sources@^1.4.0, webpack-sources@^1.4.1: source-map "~0.6.1" webpack@^4.39.2: - version "4.39.2" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.39.2.tgz#c9aa5c1776d7c309d1b3911764f0288c8c2816aa" - integrity sha512-AKgTfz3xPSsEibH00JfZ9sHXGUwIQ6eZ9tLN8+VLzachk1Cw2LVmy+4R7ZiwTa9cZZ15tzySjeMui/UnSCAZhA== + version "4.41.4" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.41.4.tgz#4bec4125224bdf50efa8be6226c19047599cd034" + integrity sha512-Lc+2uB6NjpCWsHI3trkoISOI64h9QYIXenbEWj3bn3oyjfB1lEBXjWAfAyY2sM0rZn41oD5V91OLwKRwS6Wp8Q== dependencies: "@webassemblyjs/ast" "1.8.5" "@webassemblyjs/helper-module-context" "1.8.5" @@ -8150,7 +8149,7 @@ webpack@^4.39.2: node-libs-browser "^2.2.1" schema-utils "^1.0.0" tapable "^1.1.3" - terser-webpack-plugin "^1.4.1" + terser-webpack-plugin "^1.4.3" watchpack "^1.6.0" webpack-sources "^1.4.1" @@ -8329,9 +8328,9 @@ yaeti@^0.0.6: integrity sha1-8m9ITXJoTPQr7ft2lwqhYI+/lXc= yallist@^3.0.0, yallist@^3.0.2, yallist@^3.0.3: - version "3.0.3" - resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.0.3.tgz#b4b049e314be545e3ce802236d6cd22cd91c3de9" - integrity sha512-S+Zk8DEWE6oKpV+vI3qWkaK+jSbIK86pCwe2IF/xwIpQ8jEuxpw9NyaGjmp9+BoJv5FV2piqCDcoCtStppiq2A== + version "3.1.1" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd" + integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g== yargs-parser@^13.1.0: version "13.1.1" diff --git a/rpc/clients/typescript/test/ws_client_test.ts b/rpc/clients/typescript/test/ws_client_test.ts index 540136350..f8f5f9305 100644 --- a/rpc/clients/typescript/test/ws_client_test.ts +++ b/rpc/clients/typescript/test/ws_client_test.ts @@ -168,18 +168,18 @@ describe('WSClient', () => { { makerAddress: '0xa3ece5d5b6319fa785efc10d3112769a46c6e149', takerAddress: '0x0000000000000000000000000000000000000000', - makerAssetAmount: new BigNumber('1000000000000000000') as any, - takerAssetAmount: new BigNumber('10000000000000000000000') as any, - expirationTimeSeconds: new BigNumber('1586340602') as any, - makerFee: new BigNumber('0') as any, - takerFee: new BigNumber('0') as any, + makerAssetAmount: new BigNumber('1000000000000000000'), + takerAssetAmount: new BigNumber('10000000000000000000000'), + expirationTimeSeconds: new BigNumber('1586340602'), + makerFee: new BigNumber('0'), + takerFee: new BigNumber('0'), feeRecipientAddress: '0x0000000000000000000000000000000000000000', senderAddress: '0x0000000000000000000000000000000000000000', exchangeAddress: '0x080bf510fcbf18b91105470639e9561022937712', chainId: 1, salt: new BigNumber( '41253767178111694375645046549067933145709740457131351457334397888365956743955', - ) as any, + ), makerAssetData: '0xf47261b0000000000000000000000000e41d2489571d322189246dafa5ebde1f4699f498', makerFeeAssetData: '0x', takerAssetData: '0xf47261b0000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2', diff --git a/rpc/clients/typescript/yarn.lock b/rpc/clients/typescript/yarn.lock index e6e7a3656..c9b943daf 100644 --- a/rpc/clients/typescript/yarn.lock +++ b/rpc/clients/typescript/yarn.lock @@ -231,11 +231,6 @@ dependencies: "@types/node" "*" -"@types/detect-node@2.0.0": - version "2.0.0" - resolved "https://registry.yarnpkg.com/@types/detect-node/-/detect-node-2.0.0.tgz#696e024ddd105c72bbc6a2e3f97902a2886f2c3f" - integrity sha512-+BozjlbPTACYITf1PWf62HLtDV79HbmZosUN1mv1gGrnjDCRwBXkDKka1sf6YQJvspmfPXVcy+X6tFW62KteeQ== - "@types/ethereum-protocol@*": version "1.0.0" resolved "https://registry.yarnpkg.com/@types/ethereum-protocol/-/ethereum-protocol-1.0.0.tgz#416e3827d5fdfa4658b0045b35a008747871b271" From 6e927363dbb67dd1f61355b5451068f55d42d1b2 Mon Sep 17 00:00:00 2001 From: fabioberger Date: Fri, 20 Dec 2019 16:26:13 +0100 Subject: [PATCH 07/50] Revert changes to reference docs --- docs/browser/reference.md | 1056 +------- docs/json_rpc_clients/typescript/reference.md | 2227 +++-------------- 2 files changed, 415 insertions(+), 2868 deletions(-) diff --git a/docs/browser/reference.md b/docs/browser/reference.md index 058963c16..1acf14fb1 100644 --- a/docs/browser/reference.md +++ b/docs/browser/reference.md @@ -14,7 +14,7 @@ sending orders through the 0x Mesh network. \+ **new Mesh**(`config`: [Config](#interface-config)): *[Mesh](#class-mesh)* -*Defined in [index.ts:576](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L576)* +*Defined in [index.ts:212](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L212)* Instantiates a new Mesh instance. @@ -32,9 +32,9 @@ An instance of Mesh ## addOrdersAsync -▸ **addOrdersAsync**(`orders`: SignedOrder[], `pinned`: boolean): *Promise‹[ValidationResults](#interface-validationresults)›* +▸ **addOrdersAsync**(`orders`: Array‹SignedOrder›): *Promise‹[ValidationResults](#interface-validationresults)›* -*Defined in [index.ts:650](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L650)* +*Defined in [index.ts:291](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L291)* Validates and adds the given orders to Mesh. If an order is successfully added, Mesh will share it with any peers in the network and start @@ -45,10 +45,9 @@ results.rejected instead). **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`orders` | SignedOrder[] | - | An array of orders to add. | -`pinned` | boolean | true | Whether or not the orders should be pinned. Pinned orders will not be affected by any DDoS prevention or incentive mechanisms and will always stay in storage until they are no longer fillable. | +Name | Type | Description | +------ | ------ | ------ | +`orders` | Array‹SignedOrder› | An array of orders to add. | **Returns:** *Promise‹[ValidationResults](#interface-validationresults)›* @@ -61,7 +60,7 @@ ___ ▸ **onError**(`handler`: function): *void* -*Defined in [index.ts:596](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L596)* +*Defined in [index.ts:241](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L241)* Registers a handler which will be called in the event of a critical error. Note that the handler will not be called for non-critical errors. @@ -90,7 +89,7 @@ ___ ▸ **onOrderEvents**(`handler`: function): *void* -*Defined in [index.ts:611](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L611)* +*Defined in [index.ts:256](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L256)* Registers a handler which will be called for any incoming order events. Order events are fired whenver an order is added, canceled, expired, or @@ -103,13 +102,13 @@ before startAsync. The handler to be called. -▸ (`events`: [OrderEvent](#interface-orderevent)[]): *void* +▸ (`events`: Array‹[OrderEvent](#interface-orderevent)›): *void* **Parameters:** Name | Type | ------ | ------ | -`events` | [OrderEvent](#interface-orderevent)[] | +`events` | Array‹[OrderEvent](#interface-orderevent)› | **Returns:** *void* @@ -119,7 +118,7 @@ ___ ▸ **startAsync**(): *Promise‹void›* -*Defined in [index.ts:622](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L622)* +*Defined in [index.ts:267](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L267)* Starts the Mesh node in the background. Mesh will automatically find peers in the network and begin receiving orders from them. @@ -128,91 +127,6 @@ peers in the network and begin receiving orders from them.
-# Enumeration: OrderEventEndState - - -### Enumeration members - -## Added - -• **Added**: = "ADDED" - -*Defined in [index.ts:439](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L439)* - -___ - -## Cancelled - -• **Cancelled**: = "CANCELLED" - -*Defined in [index.ts:442](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L442)* - -___ - -## Expired - -• **Expired**: = "EXPIRED" - -*Defined in [index.ts:443](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L443)* - -___ - -## FillabilityIncreased - -• **FillabilityIncreased**: = "FILLABILITY_INCREASED" - -*Defined in [index.ts:446](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L446)* - -___ - -## Filled - -• **Filled**: = "FILLED" - -*Defined in [index.ts:440](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L440)* - -___ - -## FullyFilled - -• **FullyFilled**: = "FULLY_FILLED" - -*Defined in [index.ts:441](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L441)* - -___ - -## Invalid - -• **Invalid**: = "INVALID" - -*Defined in [index.ts:438](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L438)* - -___ - -## StoppedWatching - -• **StoppedWatching**: = "STOPPED_WATCHING" - -*Defined in [index.ts:447](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L447)* - -___ - -## Unexpired - -• **Unexpired**: = "UNEXPIRED" - -*Defined in [index.ts:444](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L444)* - -___ - -## Unfunded - -• **Unfunded**: = "UNFUNDED" - -*Defined in [index.ts:445](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L445)* - -
- # Enumeration: RejectedOrderKind A set of categories for rejected orders. @@ -224,7 +138,7 @@ A set of categories for rejected orders. • **CoordinatorError**: = "COORDINATOR_ERROR" -*Defined in [index.ts:530](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L530)* +*Defined in [index.ts:173](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L173)* ___ @@ -232,7 +146,7 @@ ___ • **MeshError**: = "MESH_ERROR" -*Defined in [index.ts:528](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L528)* +*Defined in [index.ts:171](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L171)* ___ @@ -240,7 +154,7 @@ ___ • **MeshValidation**: = "MESH_VALIDATION" -*Defined in [index.ts:529](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L529)* +*Defined in [index.ts:172](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L172)* ___ @@ -248,68 +162,7 @@ ___ • **ZeroExValidation**: = "ZEROEX_VALIDATION" -*Defined in [index.ts:527](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L527)* - -
- -# Enumeration: Verbosity - - -### Enumeration members - -## Debug - -• **Debug**: = 5 - -*Defined in [index.ts:149](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L149)* - -___ - -## Error - -• **Error**: = 2 - -*Defined in [index.ts:146](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L146)* - -___ - -## Fatal - -• **Fatal**: = 1 - -*Defined in [index.ts:145](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L145)* - -___ - -## Info - -• **Info**: = 4 - -*Defined in [index.ts:148](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L148)* - -___ - -## Panic - -• **Panic**: = 0 - -*Defined in [index.ts:144](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L144)* - -___ - -## Trace - -• **Trace**: = 6 - -*Defined in [index.ts:150](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L150)* - -___ - -## Warn - -• **Warn**: = 3 - -*Defined in [index.ts:147](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L147)* +*Defined in [index.ts:170](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L170)*
@@ -328,7 +181,7 @@ Info for any orders that were accepted. • **fillableTakerAssetAmount**: *BigNumber* -*Defined in [index.ts:508](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L508)* +*Defined in [index.ts:151](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L151)* ___ @@ -336,7 +189,7 @@ ___ • **isNew**: *boolean* -*Defined in [index.ts:509](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L509)* +*Defined in [index.ts:152](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L152)* ___ @@ -344,7 +197,7 @@ ___ • **orderHash**: *string* -*Defined in [index.ts:506](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L506)* +*Defined in [index.ts:149](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L149)* ___ @@ -352,7 +205,7 @@ ___ • **signedOrder**: *SignedOrder* -*Defined in [index.ts:507](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L507)* +*Defined in [index.ts:150](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L150)*
@@ -371,39 +224,15 @@ A set of configuration options for Mesh. • **blockPollingIntervalSeconds**? : *undefined | number* -*Defined in [index.ts:79](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L79)* - -___ - -## `Optional` bootstrapList - -• **bootstrapList**? : *string[]* - -*Defined in [index.ts:72](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L72)* - -___ - -## `Optional` customContractAddresses - -• **customContractAddresses**? : *[ContractAddresses](#class-contractaddresses)* - -*Defined in [index.ts:123](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L123)* - -___ - -## `Optional` enableEthereumRPCRateLimiting - -• **enableEthereumRPCRateLimiting**? : *undefined | false | true* - -*Defined in [index.ts:96](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L96)* +*Defined in [index.ts:47](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L47)* ___ -## ethereumChainID +## ethereumNetworkID -• **ethereumChainID**: *number* +• **ethereumNetworkID**: *number* -*Defined in [index.ts:64](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L64)* +*Defined in [index.ts:33](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L33)* ___ @@ -411,23 +240,7 @@ ___ • **ethereumRPCMaxContentLength**? : *undefined | number* -*Defined in [index.ts:88](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L88)* - -___ - -## `Optional` ethereumRPCMaxRequestsPer24HrUTC - -• **ethereumRPCMaxRequestsPer24HrUTC**? : *undefined | number* - -*Defined in [index.ts:101](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L101)* - -___ - -## `Optional` ethereumRPCMaxRequestsPerSecond - -• **ethereumRPCMaxRequestsPerSecond**? : *undefined | number* - -*Defined in [index.ts:107](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L107)* +*Defined in [index.ts:56](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L56)* ___ @@ -435,15 +248,15 @@ ___ • **ethereumRPCURL**: *string* -*Defined in [index.ts:61](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L61)* +*Defined in [index.ts:31](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L31)* ___ -## `Optional` maxOrdersInStorage +## `Optional` orderExpirationBufferSeconds -• **maxOrdersInStorage**? : *undefined | number* +• **orderExpirationBufferSeconds**? : *undefined | number* -*Defined in [index.ts:128](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L128)* +*Defined in [index.ts:40](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L40)* ___ @@ -451,860 +264,157 @@ ___ • **useBootstrapList**? : *undefined | false | true* -*Defined in [index.ts:67](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L67)* - -___ - -## `Optional` verbosity - -• **verbosity**? : *[Verbosity](#enumeration-verbosity)* - -*Defined in [index.ts:58](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L58)* +*Defined in [index.ts:36](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L36)*
-# Interface: ContractAddresses +# Interface: OrderEvent + +Order events are fired by Mesh whenever an order is added, canceled, expired, +or filled. ### Hierarchy -* **ContractAddresses** +* **OrderEvent** ### Properties -## `Optional` coordinator - -• **coordinator**? : *undefined | string* - -*Defined in [index.ts:137](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L137)* - -___ - -## `Optional` coordinatorRegistry - -• **coordinatorRegistry**? : *undefined | string* - -*Defined in [index.ts:138](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L138)* - -___ - -## devUtils - -• **devUtils**: *string* - -*Defined in [index.ts:133](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L133)* - -___ - -## erc1155Proxy - -• **erc1155Proxy**: *string* - -*Defined in [index.ts:136](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L136)* - -___ - -## erc20Proxy +## fillableTakerAssetAmount -• **erc20Proxy**: *string* +• **fillableTakerAssetAmount**: *BigNumber* -*Defined in [index.ts:134](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L134)* +*Defined in [index.ts:111](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L111)* ___ -## erc721Proxy +## kind -• **erc721Proxy**: *string* +• **kind**: *string* -*Defined in [index.ts:135](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L135)* +*Defined in [index.ts:110](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L110)* ___ -## exchange +## orderHash -• **exchange**: *string* +• **orderHash**: *string* -*Defined in [index.ts:132](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L132)* +*Defined in [index.ts:108](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L108)* ___ -## `Optional` weth9 +## signedOrder -• **weth9**? : *undefined | string* +• **signedOrder**: *SignedOrder* -*Defined in [index.ts:139](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L139)* +*Defined in [index.ts:109](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L109)* ___ -## `Optional` zrxToken +## txHashes -• **zrxToken**? : *undefined | string* +• **txHashes**: *Array‹string›* -*Defined in [index.ts:140](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L140)* +*Defined in [index.ts:112](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L112)*
-# Interface: ContractEvent +# Interface: RejectedOrderInfo + +Info for any orders that were rejected, including the reason they were +rejected. ### Hierarchy -* **ContractEvent** +* **RejectedOrderInfo** ### Properties -## address - -• **address**: *string* - -*Defined in [index.ts:420](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L420)* - -___ - -## blockHash - -• **blockHash**: *string* - -*Defined in [index.ts:415](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L415)* - -___ - -## isRemoved - -• **isRemoved**: *string* - -*Defined in [index.ts:419](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L419)* - -___ - ## kind -• **kind**: *ContractEventKind* - -*Defined in [index.ts:421](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L421)* - -___ - -## logIndex - -• **logIndex**: *number* +• **kind**: *[RejectedOrderKind](#enumeration-rejectedorderkind)* -*Defined in [index.ts:418](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L418)* +*Defined in [index.ts:162](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L162)* ___ -## parameters +## orderHash -• **parameters**: *ContractEventParameters* +• **orderHash**: *string* -*Defined in [index.ts:422](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L422)* +*Defined in [index.ts:160](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L160)* ___ -## txHash +## signedOrder -• **txHash**: *string* +• **signedOrder**: *SignedOrder* -*Defined in [index.ts:416](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L416)* +*Defined in [index.ts:161](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L161)* ___ -## txIndex +## status -• **txIndex**: *number* +• **status**: *[RejectedOrderStatus](#class-rejectedorderstatus)* -*Defined in [index.ts:417](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L417)* +*Defined in [index.ts:163](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L163)*
-# Interface: ERC1155ApprovalForAllEvent - -### Hierarchy - -* **ERC1155ApprovalForAllEvent** - - -### Properties - -## approved - -• **approved**: *boolean* - -*Defined in [index.ts:296](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L296)* - -___ - -## operator - -• **operator**: *string* - -*Defined in [index.ts:295](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L295)* - -___ - -## owner - -• **owner**: *string* - -*Defined in [index.ts:294](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L294)* - -
+# Interface: RejectedOrderStatus -# Interface: ERC1155TransferBatchEvent +Provides more information about why an order was rejected. ### Hierarchy -* **ERC1155TransferBatchEvent** +* **RejectedOrderStatus** ### Properties -## from - -• **from**: *string* - -*Defined in [index.ts:279](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L279)* - -___ - -## ids - -• **ids**: *BigNumber[]* - -*Defined in [index.ts:281](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L281)* - -___ - -## operator - -• **operator**: *string* - -*Defined in [index.ts:278](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L278)* - -___ - -## to +## code -• **to**: *string* +• **code**: *string* -*Defined in [index.ts:280](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L280)* +*Defined in [index.ts:180](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L180)* ___ -## values +## message -• **values**: *BigNumber[]* +• **message**: *string* -*Defined in [index.ts:282](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L282)* +*Defined in [index.ts:181](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L181)*
-# Interface: ERC1155TransferSingleEvent +# Interface: ValidationResults + +Indicates which orders where accepted, which were rejected, and why. ### Hierarchy -* **ERC1155TransferSingleEvent** +* **ValidationResults** ### Properties -## from - -• **from**: *string* - -*Defined in [index.ts:263](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L263)* - -___ - -## id - -• **id**: *BigNumber* - -*Defined in [index.ts:265](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L265)* - -___ - -## operator - -• **operator**: *string* - -*Defined in [index.ts:262](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L262)* - -___ - -## to +## accepted -• **to**: *string* +• **accepted**: *Array‹[AcceptedOrderInfo](#class-acceptedorderinfo)›* -*Defined in [index.ts:264](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L264)* - -___ - -## value - -• **value**: *BigNumber* - -*Defined in [index.ts:266](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L266)* - -
- -# Interface: ERC20ApprovalEvent - -### Hierarchy - -* **ERC20ApprovalEvent** - - -### Properties - -## owner - -• **owner**: *string* - -*Defined in [index.ts:220](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L220)* - -___ - -## spender - -• **spender**: *string* - -*Defined in [index.ts:221](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L221)* - -___ - -## value - -• **value**: *BigNumber* - -*Defined in [index.ts:222](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L222)* - -
- -# Interface: ERC20TransferEvent - -### Hierarchy - -* **ERC20TransferEvent** - - -### Properties - -## from - -• **from**: *string* - -*Defined in [index.ts:208](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L208)* - -___ - -## to - -• **to**: *string* - -*Defined in [index.ts:209](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L209)* - -___ - -## value - -• **value**: *BigNumber* - -*Defined in [index.ts:210](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L210)* - -
- -# Interface: ERC721ApprovalEvent - -### Hierarchy - -* **ERC721ApprovalEvent** - - -### Properties - -## approved - -• **approved**: *string* - -*Defined in [index.ts:245](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L245)* - -___ - -## owner - -• **owner**: *string* - -*Defined in [index.ts:244](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L244)* - -___ - -## tokenId - -• **tokenId**: *BigNumber* - -*Defined in [index.ts:246](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L246)* - -
- -# Interface: ERC721ApprovalForAllEvent - -### Hierarchy - -* **ERC721ApprovalForAllEvent** - - -### Properties - -## approved - -• **approved**: *boolean* - -*Defined in [index.ts:258](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L258)* - -___ - -## operator - -• **operator**: *string* - -*Defined in [index.ts:257](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L257)* - -___ - -## owner - -• **owner**: *string* - -*Defined in [index.ts:256](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L256)* - -
- -# Interface: ERC721TransferEvent - -### Hierarchy - -* **ERC721TransferEvent** - - -### Properties - -## from - -• **from**: *string* - -*Defined in [index.ts:232](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L232)* - -___ - -## to - -• **to**: *string* - -*Defined in [index.ts:233](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L233)* - -___ - -## tokenId - -• **tokenId**: *BigNumber* - -*Defined in [index.ts:234](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L234)* - -
- -# Interface: ExchangeCancelEvent - -### Hierarchy - -* **ExchangeCancelEvent** - - -### Properties - -## feeRecipientAddress - -• **feeRecipientAddress**: *string* - -*Defined in [index.ts:330](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L330)* - -___ - -## makerAddress - -• **makerAddress**: *string* - -*Defined in [index.ts:328](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L328)* - -___ - -## makerAssetData - -• **makerAssetData**: *string* - -*Defined in [index.ts:332](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L332)* - -___ - -## orderHash - -• **orderHash**: *string* - -*Defined in [index.ts:331](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L331)* - -___ - -## senderAddress - -• **senderAddress**: *string* - -*Defined in [index.ts:329](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L329)* - -___ - -## takerAssetData - -• **takerAssetData**: *string* - -*Defined in [index.ts:333](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L333)* - -
- -# Interface: ExchangeCancelUpToEvent - -### Hierarchy - -* **ExchangeCancelUpToEvent** - - -### Properties - -## makerAddress - -• **makerAddress**: *string* - -*Defined in [index.ts:337](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L337)* - -___ - -## orderEpoch - -• **orderEpoch**: *BigNumber* - -*Defined in [index.ts:339](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L339)* - -___ - -## senderAddress - -• **senderAddress**: *string* - -*Defined in [index.ts:338](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L338)* - -
- -# Interface: ExchangeFillEvent - -### Hierarchy - -* **ExchangeFillEvent** - - -### Properties - -## feeRecipientAddress - -• **feeRecipientAddress**: *string* - -*Defined in [index.ts:303](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L303)* - -___ - -## makerAddress - -• **makerAddress**: *string* - -*Defined in [index.ts:300](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L300)* - -___ - -## makerAssetData - -• **makerAssetData**: *string* - -*Defined in [index.ts:309](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L309)* - -___ - -## makerAssetFilledAmount - -• **makerAssetFilledAmount**: *BigNumber* - -*Defined in [index.ts:304](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L304)* - -___ - -## makerFeePaid - -• **makerFeePaid**: *BigNumber* - -*Defined in [index.ts:306](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L306)* - -___ - -## orderHash - -• **orderHash**: *string* - -*Defined in [index.ts:308](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L308)* - -___ - -## senderAddress - -• **senderAddress**: *string* - -*Defined in [index.ts:302](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L302)* - -___ - -## takerAddress - -• **takerAddress**: *string* - -*Defined in [index.ts:301](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L301)* - -___ - -## takerAssetData - -• **takerAssetData**: *string* - -*Defined in [index.ts:310](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L310)* - -___ - -## takerAssetFilledAmount - -• **takerAssetFilledAmount**: *BigNumber* - -*Defined in [index.ts:305](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L305)* - -___ - -## takerFeePaid - -• **takerFeePaid**: *BigNumber* - -*Defined in [index.ts:307](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L307)* - -
- -# Interface: OrderEvent - -Order events are fired by Mesh whenever an order is added, canceled, expired, -or filled. - -### Hierarchy - -* **OrderEvent** - - -### Properties - -## contractEvents - -• **contractEvents**: *[ContractEvent](#class-contractevent)[]* - -*Defined in [index.ts:469](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L469)* - -___ - -## endState - -• **endState**: *[OrderEventEndState](#enumeration-ordereventendstate)* - -*Defined in [index.ts:467](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L467)* - -___ - -## fillableTakerAssetAmount - -• **fillableTakerAssetAmount**: *BigNumber* - -*Defined in [index.ts:468](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L468)* - -___ - -## orderHash - -• **orderHash**: *string* - -*Defined in [index.ts:465](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L465)* - -___ - -## signedOrder - -• **signedOrder**: *SignedOrder* - -*Defined in [index.ts:466](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L466)* - -___ - -## timestampMs - -• **timestampMs**: *number* - -*Defined in [index.ts:464](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L464)* - -
- -# Interface: RejectedOrderInfo - -Info for any orders that were rejected, including the reason they were -rejected. - -### Hierarchy - -* **RejectedOrderInfo** - - -### Properties - -## kind - -• **kind**: *[RejectedOrderKind](#enumeration-rejectedorderkind)* - -*Defined in [index.ts:519](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L519)* - -___ - -## orderHash - -• **orderHash**: *string* - -*Defined in [index.ts:517](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L517)* - -___ - -## signedOrder - -• **signedOrder**: *SignedOrder* - -*Defined in [index.ts:518](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L518)* - -___ - -## status - -• **status**: *[RejectedOrderStatus](#class-rejectedorderstatus)* - -*Defined in [index.ts:520](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L520)* - -
- -# Interface: RejectedOrderStatus - -Provides more information about why an order was rejected. - -### Hierarchy - -* **RejectedOrderStatus** - - -### Properties - -## code - -• **code**: *string* - -*Defined in [index.ts:537](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L537)* - -___ - -## message - -• **message**: *string* - -*Defined in [index.ts:538](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L538)* - -
- -# Interface: ValidationResults - -Indicates which orders where accepted, which were rejected, and why. - -### Hierarchy - -* **ValidationResults** - - -### Properties - -## accepted - -• **accepted**: *[AcceptedOrderInfo](#class-acceptedorderinfo)[]* - -*Defined in [index.ts:498](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L498)* +*Defined in [index.ts:141](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L141)* ___ ## rejected -• **rejected**: *[RejectedOrderInfo](#class-rejectedorderinfo)[]* - -*Defined in [index.ts:499](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L499)* - -
- -# Interface: WethDepositEvent - -### Hierarchy - -* **WethDepositEvent** - - -### Properties - -## owner - -• **owner**: *string* - -*Defined in [index.ts:359](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L359)* - -___ - -## value - -• **value**: *BigNumber* - -*Defined in [index.ts:360](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L360)* - -
- -# Interface: WethWithdrawalEvent - -### Hierarchy - -* **WethWithdrawalEvent** - - -### Properties - -## owner - -• **owner**: *string* - -*Defined in [index.ts:349](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L349)* - -___ - -## value - -• **value**: *BigNumber* +• **rejected**: *Array‹[RejectedOrderInfo](#class-rejectedorderinfo)›* -*Defined in [index.ts:350](https://github.com/0xProject/0x-mesh/blob/dee8353e/browser/ts/index.ts#L350)* +*Defined in [index.ts:142](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L142)*
diff --git a/docs/json_rpc_clients/typescript/reference.md b/docs/json_rpc_clients/typescript/reference.md index 5f8c3d29e..225f02036 100644 --- a/docs/json_rpc_clients/typescript/reference.md +++ b/docs/json_rpc_clients/typescript/reference.md @@ -30,7 +30,7 @@ websocket endpoint. \+ **new WSClient**(`url`: string, `wsOpts?`: [WSOpts](#interface-wsopts)): *[WSClient](#class-wsclient)* -*Defined in [ws_client.ts:252](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/ws_client.ts#L252)* +*Defined in [ws_client.ts:71](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/ws_client.ts#L71)* Instantiates a new WSClient instance @@ -49,18 +49,17 @@ An instance of WSClient ### addOrdersAsync -▸ **addOrdersAsync**(`signedOrders`: `SignedOrder`[], `pinned`: boolean): *`Promise`* +▸ **addOrdersAsync**(`signedOrders`: `SignedOrder`[]): *`Promise`* -*Defined in [ws_client.ts:281](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/ws_client.ts#L281)* +*Defined in [ws_client.ts:96](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/ws_client.ts#L96)* Adds an array of 0x signed orders to the Mesh node. **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`signedOrders` | `SignedOrder`[] | - | signedOrders to add | -`pinned` | boolean | true | Whether or not the orders should be pinned. Pinned orders will not be affected by any DDoS prevention or incentive mechanisms and will always stay in storage until they are no longer fillable. | +Name | Type | Description | +------ | ------ | ------ | +`signedOrders` | `SignedOrder`[] | signedOrders to add | **Returns:** *`Promise`* @@ -72,7 +71,7 @@ ___ ▸ **destroy**(): *void* -*Defined in [ws_client.ts:403](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/ws_client.ts#L403)* +*Defined in [ws_client.ts:213](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/ws_client.ts#L213)* destroy unsubscribes all active subscriptions, closes the websocket connection and stops the internal heartbeat connection liveness check. @@ -83,9 +82,9 @@ ___ ### getOrdersAsync -▸ **getOrdersAsync**(`perPage`: number): *`Promise`* +▸ **getOrdersAsync**(`perPage`: number): *`Promise`* -*Defined in [ws_client.ts:311](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/ws_client.ts#L311)* +*Defined in [ws_client.ts:125](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/ws_client.ts#L125)* Get all 0x signed orders currently stored in the Mesh node @@ -95,7 +94,7 @@ Name | Type | Default | Description | ------ | ------ | ------ | ------ | `perPage` | number | 200 | number of signedOrders to fetch per paginated request | -**Returns:** *`Promise`* +**Returns:** *`Promise`* all orders, their hash and their fillableTakerAssetAmount @@ -105,7 +104,7 @@ ___ ▸ **getStatsAsync**(): *`Promise`* -*Defined in [ws_client.ts:302](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/ws_client.ts#L302)* +*Defined in [ws_client.ts:116](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/ws_client.ts#L116)* **Returns:** *`Promise`* @@ -115,7 +114,7 @@ ___ ▸ **onClose**(`cb`: function): *void* -*Defined in [ws_client.ts:385](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/ws_client.ts#L385)* +*Defined in [ws_client.ts:195](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/ws_client.ts#L195)* Get notified when the underlying WS connection closes normally. If it closes with an error, WSClient automatically attempts to re-connect without emitting a `close` event. @@ -136,7 +135,7 @@ ___ ▸ **onReconnected**(`cb`: function): *void* -*Defined in [ws_client.ts:394](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/ws_client.ts#L394)* +*Defined in [ws_client.ts:204](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/ws_client.ts#L204)* Get notified when a connection to the underlying WS connection is re-established @@ -156,7 +155,7 @@ ___ ▸ **subscribeToOrdersAsync**(`cb`: function): *`Promise`* -*Defined in [ws_client.ts:345](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/ws_client.ts#L345)* +*Defined in [ws_client.ts:156](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/ws_client.ts#L156)* Subscribe to the 'orders' topic and receive order events from Mesh. This method returns a subscriptionId that can be used to `unsubscribe()` from this subscription. @@ -185,7 +184,7 @@ ___ ▸ **unsubscribeAsync**(`subscriptionId`: string): *`Promise`* -*Defined in [ws_client.ts:375](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/ws_client.ts#L375)* +*Defined in [ws_client.ts:185](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/ws_client.ts#L185)* Unsubscribe from a subscription @@ -199,133 +198,7 @@ Name | Type | Description |
-> # Enumeration: ContractEventKind - -## Index - -### Enumeration members - -* [ERC1155ApprovalForAllEvent](#erc1155approvalforallevent) -* [ERC1155TransferBatchEvent](#erc1155transferbatchevent) -* [ERC1155TransferSingleEvent](#erc1155transfersingleevent) -* [ERC20ApprovalEvent](#erc20approvalevent) -* [ERC20TransferEvent](#erc20transferevent) -* [ERC721ApprovalEvent](#erc721approvalevent) -* [ERC721ApprovalForAllEvent](#erc721approvalforallevent) -* [ERC721TransferEvent](#erc721transferevent) -* [ExchangeCancelEvent](#exchangecancelevent) -* [ExchangeCancelUpToEvent](#exchangecanceluptoevent) -* [ExchangeFillEvent](#exchangefillevent) -* [WethDepositEvent](#wethdepositevent) -* [WethWithdrawalEvent](#wethwithdrawalevent) - -## Enumeration members - -### ERC1155ApprovalForAllEvent - -• **ERC1155ApprovalForAllEvent**: = "ERC1155ApprovalForAllEvent" - -*Defined in [types.ts:222](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L222)* - -___ - -### ERC1155TransferBatchEvent - -• **ERC1155TransferBatchEvent**: = "ERC1155TransferBatchEvent" - -*Defined in [types.ts:224](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L224)* - -___ - -### ERC1155TransferSingleEvent - -• **ERC1155TransferSingleEvent**: = "ERC1155TransferSingleEvent" - -*Defined in [types.ts:223](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L223)* - -___ - -### ERC20ApprovalEvent - -• **ERC20ApprovalEvent**: = "ERC20ApprovalEvent" - -*Defined in [types.ts:218](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L218)* - -___ - -### ERC20TransferEvent - -• **ERC20TransferEvent**: = "ERC20TransferEvent" - -*Defined in [types.ts:217](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L217)* - -___ - -### ERC721ApprovalEvent - -• **ERC721ApprovalEvent**: = "ERC721ApprovalEvent" - -*Defined in [types.ts:220](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L220)* - -___ - -### ERC721ApprovalForAllEvent - -• **ERC721ApprovalForAllEvent**: = "ERC721ApprovalForAllEvent" - -*Defined in [types.ts:221](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L221)* - -___ - -### ERC721TransferEvent - -• **ERC721TransferEvent**: = "ERC721TransferEvent" - -*Defined in [types.ts:219](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L219)* - -___ - -### ExchangeCancelEvent - -• **ExchangeCancelEvent**: = "ExchangeCancelEvent" - -*Defined in [types.ts:226](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L226)* - -___ - -### ExchangeCancelUpToEvent - -• **ExchangeCancelUpToEvent**: = "ExchangeCancelUpToEvent" - -*Defined in [types.ts:227](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L227)* - -___ - -### ExchangeFillEvent - -• **ExchangeFillEvent**: = "ExchangeFillEvent" - -*Defined in [types.ts:225](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L225)* - -___ - -### WethDepositEvent - -• **WethDepositEvent**: = "WethDepositEvent" - -*Defined in [types.ts:228](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L228)* - -___ - -### WethWithdrawalEvent - -• **WethWithdrawalEvent**: = "WethWithdrawalEvent" - -*Defined in [types.ts:229](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L229)* - -
- -> # Enumeration: OrderEventEndState +> # Enumeration: OrderEventKind ## Index @@ -338,8 +211,6 @@ ___ * [Filled](#filled) * [FullyFilled](#fullyfilled) * [Invalid](#invalid) -* [StoppedWatching](#stoppedwatching) -* [Unexpired](#unexpired) * [Unfunded](#unfunded) ## Enumeration members @@ -348,7 +219,7 @@ ___ • **Added**: = "ADDED" -*Defined in [types.ts:286](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L286)* +*Defined in [types.ts:55](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L55)* ___ @@ -356,7 +227,7 @@ ___ • **Cancelled**: = "CANCELLED" -*Defined in [types.ts:289](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L289)* +*Defined in [types.ts:58](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L58)* ___ @@ -364,7 +235,7 @@ ___ • **Expired**: = "EXPIRED" -*Defined in [types.ts:290](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L290)* +*Defined in [types.ts:59](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L59)* ___ @@ -372,7 +243,7 @@ ___ • **FillabilityIncreased**: = "FILLABILITY_INCREASED" -*Defined in [types.ts:294](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L294)* +*Defined in [types.ts:61](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L61)* ___ @@ -380,7 +251,7 @@ ___ • **Filled**: = "FILLED" -*Defined in [types.ts:287](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L287)* +*Defined in [types.ts:56](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L56)* ___ @@ -388,7 +259,7 @@ ___ • **FullyFilled**: = "FULLY_FILLED" -*Defined in [types.ts:288](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L288)* +*Defined in [types.ts:57](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L57)* ___ @@ -396,23 +267,7 @@ ___ • **Invalid**: = "INVALID" -*Defined in [types.ts:285](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L285)* - -___ - -### StoppedWatching - -• **StoppedWatching**: = "STOPPED_WATCHING" - -*Defined in [types.ts:292](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L292)* - -___ - -### Unexpired - -• **Unexpired**: = "UNEXPIRED" - -*Defined in [types.ts:291](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L291)* +*Defined in [types.ts:54](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L54)* ___ @@ -420,7 +275,7 @@ ___ • **Unfunded**: = "UNFUNDED" -*Defined in [types.ts:293](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L293)* +*Defined in [types.ts:60](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L60)*
@@ -436,7 +291,7 @@ ___ * [OrderAlreadyStored](#orderalreadystored) * [OrderCancelled](#ordercancelled) * [OrderExpired](#orderexpired) -* [OrderForIncorrectChain](#orderforincorrectchain) +* [OrderForIncorrectNetwork](#orderforincorrectnetwork) * [OrderFullyFilled](#orderfullyfilled) * [OrderHasInvalidMakerAssetAmount](#orderhasinvalidmakerassetamount) * [OrderHasInvalidMakerAssetData](#orderhasinvalidmakerassetdata) @@ -451,7 +306,7 @@ ___ • **InternalError**: = "InternalError" -*Defined in [types.ts:358](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L358)* +*Defined in [types.ts:123](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L123)* ___ @@ -459,7 +314,7 @@ ___ • **MaxOrderSizeExceeded**: = "MaxOrderSizeExceeded" -*Defined in [types.ts:359](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L359)* +*Defined in [types.ts:124](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L124)* ___ @@ -467,7 +322,7 @@ ___ • **NetworkRequestFailed**: = "NetworkRequestFailed" -*Defined in [types.ts:362](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L362)* +*Defined in [types.ts:127](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L127)* ___ @@ -475,7 +330,7 @@ ___ • **OrderAlreadyStored**: = "OrderAlreadyStored" -*Defined in [types.ts:360](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L360)* +*Defined in [types.ts:125](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L125)* ___ @@ -483,7 +338,7 @@ ___ • **OrderCancelled**: = "OrderCancelled" -*Defined in [types.ts:367](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L367)* +*Defined in [types.ts:132](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L132)* ___ @@ -491,15 +346,15 @@ ___ • **OrderExpired**: = "OrderExpired" -*Defined in [types.ts:365](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L365)* +*Defined in [types.ts:130](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L130)* ___ -### OrderForIncorrectChain +### OrderForIncorrectNetwork -• **OrderForIncorrectChain**: = "OrderForIncorrectChain" +• **OrderForIncorrectNetwork**: = "OrderForIncorrectNetwork" -*Defined in [types.ts:361](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L361)* +*Defined in [types.ts:126](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L126)* ___ @@ -507,7 +362,7 @@ ___ • **OrderFullyFilled**: = "OrderFullyFilled" -*Defined in [types.ts:366](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L366)* +*Defined in [types.ts:131](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L131)* ___ @@ -515,7 +370,7 @@ ___ • **OrderHasInvalidMakerAssetAmount**: = "OrderHasInvalidMakerAssetAmount" -*Defined in [types.ts:363](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L363)* +*Defined in [types.ts:128](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L128)* ___ @@ -523,7 +378,7 @@ ___ • **OrderHasInvalidMakerAssetData**: = "OrderHasInvalidMakerAssetData" -*Defined in [types.ts:369](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L369)* +*Defined in [types.ts:134](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L134)* ___ @@ -531,7 +386,7 @@ ___ • **OrderHasInvalidSignature**: = "OrderHasInvalidSignature" -*Defined in [types.ts:371](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L371)* +*Defined in [types.ts:136](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L136)* ___ @@ -539,7 +394,7 @@ ___ • **OrderHasInvalidTakerAssetAmount**: = "OrderHasInvalidTakerAssetAmount" -*Defined in [types.ts:364](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L364)* +*Defined in [types.ts:129](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L129)* ___ @@ -547,7 +402,7 @@ ___ • **OrderHasInvalidTakerAssetData**: = "OrderHasInvalidTakerAssetData" -*Defined in [types.ts:370](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L370)* +*Defined in [types.ts:135](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L135)* ___ @@ -555,7 +410,7 @@ ___ • **OrderUnfunded**: = "OrderUnfunded" -*Defined in [types.ts:368](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L368)* +*Defined in [types.ts:133](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L133)*
@@ -575,7 +430,7 @@ ___ • **MeshError**: = "MESH_ERROR" -*Defined in [types.ts:353](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L353)* +*Defined in [types.ts:118](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L118)* ___ @@ -583,7 +438,7 @@ ___ • **MeshValidation**: = "MESH_VALIDATION" -*Defined in [types.ts:354](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L354)* +*Defined in [types.ts:119](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L119)* ___ @@ -591,7 +446,7 @@ ___ • **ZeroexValidation**: = "ZEROEX_VALIDATION" -*Defined in [types.ts:352](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L352)* +*Defined in [types.ts:117](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L117)*
@@ -616,7 +471,7 @@ ___ • **fillableTakerAssetAmount**: *`BigNumber`* -*Defined in [types.ts:335](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L335)* +*Defined in [types.ts:100](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L100)* ___ @@ -624,7 +479,7 @@ ___ • **isNew**: *boolean* -*Defined in [types.ts:336](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L336)* +*Defined in [types.ts:101](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L101)* ___ @@ -632,7 +487,7 @@ ___ • **orderHash**: *string* -*Defined in [types.ts:333](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L333)* +*Defined in [types.ts:98](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L98)* ___ @@ -640,7 +495,7 @@ ___ • **signedOrder**: *`SignedOrder`* -*Defined in [types.ts:334](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L334)* +*Defined in [types.ts:99](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L99)*
@@ -672,7 +527,7 @@ Source: https://github.com/theturtle32/WebSocket-Node/blob/master/docs/WebSocket • **assembleFragments**? : *undefined | false | true* -*Defined in [types.ts:16](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L16)* +*Defined in [types.ts:14](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L14)* ___ @@ -680,7 +535,7 @@ ___ • **closeTimeout**? : *undefined | number* -*Defined in [types.ts:17](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L17)* +*Defined in [types.ts:15](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L15)* ___ @@ -688,7 +543,7 @@ ___ • **fragmentOutgoingMessages**? : *undefined | false | true* -*Defined in [types.ts:14](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L14)* +*Defined in [types.ts:12](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L12)* ___ @@ -696,7 +551,7 @@ ___ • **fragmentationThreshold**? : *undefined | number* -*Defined in [types.ts:15](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L15)* +*Defined in [types.ts:13](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L13)* ___ @@ -704,7 +559,7 @@ ___ • **maxReceivedFrameSize**? : *undefined | number* -*Defined in [types.ts:12](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L12)* +*Defined in [types.ts:10](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L10)* ___ @@ -712,7 +567,7 @@ ___ • **maxReceivedMessageSize**? : *undefined | number* -*Defined in [types.ts:13](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L13)* +*Defined in [types.ts:11](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L11)* ___ @@ -720,7 +575,7 @@ ___ • **tlsOptions**? : *any* -*Defined in [types.ts:18](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L18)* +*Defined in [types.ts:16](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L16)* ___ @@ -728,1915 +583,621 @@ ___ • **webSocketVersion**? : *undefined | number* -*Defined in [types.ts:11](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L11)* +*Defined in [types.ts:9](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L9)*
-> # Interface: ContractEvent +> # Interface: GetOrdersResponse ## Hierarchy -* **ContractEvent** +* **GetOrdersResponse** ## Index ### Properties -* [address](#address) -* [blockHash](#blockhash) -* [isRemoved](#isremoved) -* [kind](#kind) -* [logIndex](#logindex) -* [parameters](#parameters) -* [txHash](#txhash) -* [txIndex](#txindex) +* [ordersInfos](#ordersinfos) +* [snapshotID](#snapshotid) ## Properties -### address +### ordersInfos -• **address**: *string* +• **ordersInfos**: *[RawAcceptedOrderInfo](#interface-rawacceptedorderinfo)[]* -*Defined in [types.ts:279](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L279)* +*Defined in [types.ts:170](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L170)* ___ -### blockHash - -• **blockHash**: *string* +### snapshotID -*Defined in [types.ts:274](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L274)* +• **snapshotID**: *string* -___ +*Defined in [types.ts:169](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L169)* -### isRemoved +
-• **isRemoved**: *string* +> # Interface: GetStatsResponse -*Defined in [types.ts:278](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L278)* +## Hierarchy -___ +* **GetStatsResponse** -### kind +## Index -• **kind**: *[ContractEventKind](#enumeration-contracteventkind)* +### Properties -*Defined in [types.ts:280](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L280)* +* [EthereumNetworkID](#ethereumnetworkid) +* [LatestBlock](#latestblock) +* [NumOrders](#numorders) +* [NumPeers](#numpeers) +* [PeerID](#peerid) +* [PubSubTopic](#pubsubtopic) +* [Rendezvous](#rendezvous) +* [Version](#version) -___ +## Properties -### logIndex +### EthereumNetworkID -• **logIndex**: *number* +• **EthereumNetworkID**: *number* -*Defined in [types.ts:277](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L277)* +*Defined in [types.ts:188](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L188)* ___ -### parameters +### LatestBlock -• **parameters**: *[ContractEventParameters](#contracteventparameters)* +• **LatestBlock**: *[LatestBlock](#interface-latestblock)* -*Defined in [types.ts:281](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L281)* +*Defined in [types.ts:189](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L189)* ___ -### txHash +### NumOrders -• **txHash**: *string* +• **NumOrders**: *number* -*Defined in [types.ts:275](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L275)* +*Defined in [types.ts:191](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L191)* ___ -### txIndex - -• **txIndex**: *number* - -*Defined in [types.ts:276](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L276)* - -
+### NumPeers -> # Interface: ERC1155ApprovalForAllEvent +• **NumPeers**: *number* -## Hierarchy +*Defined in [types.ts:190](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L190)* -* **ERC1155ApprovalForAllEvent** +___ -## Index +### PeerID -### Properties +• **PeerID**: *string* -* [approved](#approved) -* [operator](#operator) -* [owner](#owner) +*Defined in [types.ts:187](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L187)* -## Properties +___ -### approved +### PubSubTopic -• **approved**: *boolean* +• **PubSubTopic**: *string* -*Defined in [types.ts:144](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L144)* +*Defined in [types.ts:185](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L185)* ___ -### operator +### Rendezvous -• **operator**: *string* +• **Rendezvous**: *string* -*Defined in [types.ts:143](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L143)* +*Defined in [types.ts:186](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L186)* ___ -### owner +### Version -• **owner**: *string* +• **Version**: *string* -*Defined in [types.ts:142](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L142)* +*Defined in [types.ts:184](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L184)*
-> # Interface: ERC1155TransferBatchEvent +> # Interface: HeartbeatEventPayload ## Hierarchy -* **ERC1155TransferBatchEvent** +* **HeartbeatEventPayload** ## Index ### Properties -* [from](#from) -* [ids](#ids) -* [operator](#operator) -* [to](#to) -* [values](#values) +* [result](#result) +* [subscription](#subscription) ## Properties -### from +### result -• **from**: *string* +• **result**: *string* -*Defined in [types.ts:127](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L127)* +*Defined in [types.ts:71](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L71)* ___ -### ids +### subscription -• **ids**: *`BigNumber`[]* +• **subscription**: *string* -*Defined in [types.ts:129](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L129)* +*Defined in [types.ts:70](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L70)* -___ +
-### operator +> # Interface: LatestBlock -• **operator**: *string* +## Hierarchy -*Defined in [types.ts:126](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L126)* +* **LatestBlock** -___ +## Index + +### Properties + +* [hash](#hash) +* [number](#number) + +## Properties -### to +### hash -• **to**: *string* +• **hash**: *string* -*Defined in [types.ts:128](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L128)* +*Defined in [types.ts:180](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L180)* ___ -### values +### number -• **values**: *`BigNumber`[]* +• **number**: *number* -*Defined in [types.ts:130](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L130)* +*Defined in [types.ts:179](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L179)*
-> # Interface: ERC1155TransferSingleEvent +> # Interface: OrderEvent ## Hierarchy -* **ERC1155TransferSingleEvent** +* **OrderEvent** ## Index ### Properties -* [from](#from) -* [id](#id) -* [operator](#operator) -* [to](#to) -* [value](#value) +* [fillableTakerAssetAmount](#fillabletakerassetamount) +* [kind](#kind) +* [orderHash](#orderhash) +* [signedOrder](#signedorder) +* [txHashes](#txhashes) ## Properties -### from +### fillableTakerAssetAmount -• **from**: *string* +• **fillableTakerAssetAmount**: *`BigNumber`* -*Defined in [types.ts:111](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L111)* +*Defined in [types.ts:86](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L86)* ___ -### id +### kind -• **id**: *`BigNumber`* +• **kind**: *[OrderEventKind](#enumeration-ordereventkind)* -*Defined in [types.ts:113](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L113)* +*Defined in [types.ts:85](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L85)* ___ -### operator +### orderHash -• **operator**: *string* +• **orderHash**: *string* -*Defined in [types.ts:110](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L110)* +*Defined in [types.ts:83](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L83)* ___ -### to +### signedOrder -• **to**: *string* +• **signedOrder**: *`SignedOrder`* -*Defined in [types.ts:112](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L112)* +*Defined in [types.ts:84](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L84)* ___ -### value +### txHashes -• **value**: *`BigNumber`* +• **txHashes**: *string[]* -*Defined in [types.ts:114](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L114)* +*Defined in [types.ts:87](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L87)*
-> # Interface: ERC20ApprovalEvent +> # Interface: OrderEventPayload ## Hierarchy -* **ERC20ApprovalEvent** +* **OrderEventPayload** ## Index ### Properties -* [owner](#owner) -* [spender](#spender) -* [value](#value) +* [result](#result) +* [subscription](#subscription) ## Properties -### owner - -• **owner**: *string* - -*Defined in [types.ts:68](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L68)* - -___ - -### spender +### result -• **spender**: *string* +• **result**: *[RawOrderEvent](#interface-raworderevent)[]* -*Defined in [types.ts:69](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L69)* +*Defined in [types.ts:66](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L66)* ___ -### value +### subscription -• **value**: *`BigNumber`* +• **subscription**: *string* -*Defined in [types.ts:70](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L70)* +*Defined in [types.ts:65](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L65)*
-> # Interface: ERC20TransferEvent +> # Interface: OrderInfo ## Hierarchy -* **ERC20TransferEvent** +* **OrderInfo** ## Index ### Properties -* [from](#from) -* [to](#to) -* [value](#value) +* [fillableTakerAssetAmount](#fillabletakerassetamount) +* [orderHash](#orderhash) +* [signedOrder](#signedorder) ## Properties -### from +### fillableTakerAssetAmount -• **from**: *string* +• **fillableTakerAssetAmount**: *`BigNumber`* -*Defined in [types.ts:56](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L56)* +*Defined in [types.ts:113](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L113)* ___ -### to +### orderHash -• **to**: *string* +• **orderHash**: *string* -*Defined in [types.ts:57](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L57)* +*Defined in [types.ts:111](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L111)* ___ -### value +### signedOrder -• **value**: *`BigNumber`* +• **signedOrder**: *`SignedOrder`* -*Defined in [types.ts:58](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L58)* +*Defined in [types.ts:112](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L112)*
-> # Interface: ERC721ApprovalEvent +> # Interface: RawAcceptedOrderInfo ## Hierarchy -* **ERC721ApprovalEvent** +* **RawAcceptedOrderInfo** ## Index ### Properties -* [approved](#approved) -* [owner](#owner) -* [tokenId](#tokenid) +* [fillableTakerAssetAmount](#fillabletakerassetamount) +* [isNew](#isnew) +* [orderHash](#orderhash) +* [signedOrder](#signedorder) ## Properties -### approved +### fillableTakerAssetAmount + +• **fillableTakerAssetAmount**: *string* + +*Defined in [types.ts:93](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L93)* + +___ + +### isNew -• **approved**: *string* +• **isNew**: *boolean* -*Defined in [types.ts:93](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L93)* +*Defined in [types.ts:94](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L94)* ___ -### owner +### orderHash -• **owner**: *string* +• **orderHash**: *string* -*Defined in [types.ts:92](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L92)* +*Defined in [types.ts:91](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L91)* ___ -### tokenId +### signedOrder -• **tokenId**: *`BigNumber`* +• **signedOrder**: *[StringifiedSignedOrder](#interface-stringifiedsignedorder)* -*Defined in [types.ts:94](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L94)* +*Defined in [types.ts:92](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L92)*
-> # Interface: ERC721ApprovalForAllEvent +> # Interface: RawOrderEvent ## Hierarchy -* **ERC721ApprovalForAllEvent** +* **RawOrderEvent** ## Index ### Properties -* [approved](#approved) -* [operator](#operator) -* [owner](#owner) +* [fillableTakerAssetAmount](#fillabletakerassetamount) +* [kind](#kind) +* [orderHash](#orderhash) +* [signedOrder](#signedorder) +* [txHashes](#txhashes) ## Properties -### approved +### fillableTakerAssetAmount + +• **fillableTakerAssetAmount**: *string* + +*Defined in [types.ts:78](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L78)* + +___ + +### kind + +• **kind**: *[OrderEventKind](#enumeration-ordereventkind)* + +*Defined in [types.ts:77](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L77)* -• **approved**: *boolean* +___ + +### orderHash + +• **orderHash**: *string* -*Defined in [types.ts:106](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L106)* +*Defined in [types.ts:75](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L75)* ___ -### operator +### signedOrder -• **operator**: *string* +• **signedOrder**: *[StringifiedSignedOrder](#interface-stringifiedsignedorder)* -*Defined in [types.ts:105](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L105)* +*Defined in [types.ts:76](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L76)* ___ -### owner +### txHashes -• **owner**: *string* +• **txHashes**: *string[]* -*Defined in [types.ts:104](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L104)* +*Defined in [types.ts:79](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L79)*
-> # Interface: ERC721TransferEvent +> # Interface: RawOrderInfo ## Hierarchy -* **ERC721TransferEvent** +* **RawOrderInfo** ## Index ### Properties -* [from](#from) -* [to](#to) -* [tokenId](#tokenid) +* [fillableTakerAssetAmount](#fillabletakerassetamount) +* [orderHash](#orderhash) +* [signedOrder](#signedorder) ## Properties -### from +### fillableTakerAssetAmount -• **from**: *string* +• **fillableTakerAssetAmount**: *string* -*Defined in [types.ts:80](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L80)* +*Defined in [types.ts:107](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L107)* ___ -### to +### orderHash -• **to**: *string* +• **orderHash**: *string* -*Defined in [types.ts:81](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L81)* +*Defined in [types.ts:105](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L105)* ___ -### tokenId +### signedOrder -• **tokenId**: *`BigNumber`* +• **signedOrder**: *[StringifiedSignedOrder](#interface-stringifiedsignedorder)* -*Defined in [types.ts:82](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L82)* +*Defined in [types.ts:106](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L106)*
-> # Interface: ExchangeCancelEvent +> # Interface: RawRejectedOrderInfo ## Hierarchy -* **ExchangeCancelEvent** +* **RawRejectedOrderInfo** ## Index ### Properties -* [feeRecipientAddress](#feerecipientaddress) -* [makerAddress](#makeraddress) -* [makerAssetData](#makerassetdata) +* [kind](#kind) * [orderHash](#orderhash) -* [senderAddress](#senderaddress) -* [takerAssetData](#takerassetdata) +* [signedOrder](#signedorder) +* [status](#status) ## Properties -### feeRecipientAddress +### kind -• **feeRecipientAddress**: *string* +• **kind**: *[RejectedKind](#enumeration-rejectedkind)* -*Defined in [types.ts:178](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L178)* +*Defined in [types.ts:147](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L147)* ___ -### makerAddress +### orderHash -• **makerAddress**: *string* +• **orderHash**: *string* -*Defined in [types.ts:176](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L176)* +*Defined in [types.ts:145](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L145)* ___ -### makerAssetData +### signedOrder -• **makerAssetData**: *string* +• **signedOrder**: *[StringifiedSignedOrder](#interface-stringifiedsignedorder)* -*Defined in [types.ts:180](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L180)* +*Defined in [types.ts:146](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L146)* ___ -### orderHash - -• **orderHash**: *string* - -*Defined in [types.ts:179](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L179)* - -___ - -### senderAddress - -• **senderAddress**: *string* - -*Defined in [types.ts:177](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L177)* - -___ - -### takerAssetData - -• **takerAssetData**: *string* - -*Defined in [types.ts:181](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L181)* - -
- -> # Interface: ExchangeCancelUpToEvent - -## Hierarchy - -* **ExchangeCancelUpToEvent** - -## Index - -### Properties - -* [makerAddress](#makeraddress) -* [orderEpoch](#orderepoch) -* [senderAddress](#senderaddress) - -## Properties - -### makerAddress - -• **makerAddress**: *string* - -*Defined in [types.ts:185](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L185)* - -___ - -### orderEpoch - -• **orderEpoch**: *`BigNumber`* - -*Defined in [types.ts:187](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L187)* - -___ - -### senderAddress - -• **senderAddress**: *string* - -*Defined in [types.ts:186](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L186)* - -
- -> # Interface: ExchangeFillEvent - -## Hierarchy - -* **ExchangeFillEvent** - -## Index - -### Properties - -* [feeRecipientAddress](#feerecipientaddress) -* [makerAddress](#makeraddress) -* [makerAssetData](#makerassetdata) -* [makerAssetFilledAmount](#makerassetfilledamount) -* [makerFeePaid](#makerfeepaid) -* [orderHash](#orderhash) -* [senderAddress](#senderaddress) -* [takerAddress](#takeraddress) -* [takerAssetData](#takerassetdata) -* [takerAssetFilledAmount](#takerassetfilledamount) -* [takerFeePaid](#takerfeepaid) - -## Properties - -### feeRecipientAddress - -• **feeRecipientAddress**: *string* - -*Defined in [types.ts:151](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L151)* - -___ - -### makerAddress - -• **makerAddress**: *string* - -*Defined in [types.ts:148](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L148)* - -___ - -### makerAssetData - -• **makerAssetData**: *string* - -*Defined in [types.ts:157](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L157)* - -___ - -### makerAssetFilledAmount - -• **makerAssetFilledAmount**: *`BigNumber`* - -*Defined in [types.ts:152](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L152)* - -___ - -### makerFeePaid - -• **makerFeePaid**: *`BigNumber`* - -*Defined in [types.ts:154](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L154)* - -___ - -### orderHash - -• **orderHash**: *string* - -*Defined in [types.ts:156](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L156)* - -___ - -### senderAddress - -• **senderAddress**: *string* - -*Defined in [types.ts:150](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L150)* - -___ - -### takerAddress - -• **takerAddress**: *string* - -*Defined in [types.ts:149](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L149)* - -___ - -### takerAssetData - -• **takerAssetData**: *string* - -*Defined in [types.ts:158](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L158)* - -___ - -### takerAssetFilledAmount - -• **takerAssetFilledAmount**: *`BigNumber`* - -*Defined in [types.ts:153](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L153)* - -___ - -### takerFeePaid - -• **takerFeePaid**: *`BigNumber`* - -*Defined in [types.ts:155](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L155)* - -
- -> # Interface: GetOrdersResponse - -## Hierarchy - -* **GetOrdersResponse** - -## Index - -### Properties - -* [ordersInfos](#ordersinfos) -* [snapshotID](#snapshotid) -* [snapshotTimestamp](#snapshottimestamp) - -## Properties - -### ordersInfos - -• **ordersInfos**: *[OrderInfo](#interface-orderinfo)[]* - -*Defined in [types.ts:415](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L415)* - -___ - -### snapshotID - -• **snapshotID**: *string* - -*Defined in [types.ts:413](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L413)* - -___ - -### snapshotTimestamp - -• **snapshotTimestamp**: *number* - -*Defined in [types.ts:414](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L414)* - -
- -> # Interface: GetStatsResponse - -## Hierarchy - -* **GetStatsResponse** - -## Index - -### Properties - -* [ethRPCRateLimitExpiredRequests](#ethrpcratelimitexpiredrequests) -* [ethRPCRequestsSentInCurrentUTCDay](#ethrpcrequestssentincurrentutcday) -* [ethereumChainID](#ethereumchainid) -* [latestBlock](#latestblock) -* [maxExpirationTime](#maxexpirationtime) -* [numOrders](#numorders) -* [numOrdersIncludingRemoved](#numordersincludingremoved) -* [numPeers](#numpeers) -* [numPinnedOrders](#numpinnedorders) -* [peerID](#peerid) -* [pubSubTopic](#pubsubtopic) -* [rendezvous](#rendezvous) -* [startOfCurrentUTCDay](#startofcurrentutcday) -* [version](#version) - -## Properties - -### ethRPCRateLimitExpiredRequests - -• **ethRPCRateLimitExpiredRequests**: *number* - -*Defined in [types.ts:442](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L442)* - -___ - -### ethRPCRequestsSentInCurrentUTCDay - -• **ethRPCRequestsSentInCurrentUTCDay**: *number* - -*Defined in [types.ts:441](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L441)* - -___ - -### ethereumChainID - -• **ethereumChainID**: *number* - -*Defined in [types.ts:433](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L433)* - -___ - -### latestBlock - -• **latestBlock**: *[LatestBlock](#interface-latestblock)* - -*Defined in [types.ts:434](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L434)* - -___ - -### maxExpirationTime - -• **maxExpirationTime**: *string* - -*Defined in [types.ts:439](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L439)* - -___ - -### numOrders - -• **numOrders**: *number* - -*Defined in [types.ts:436](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L436)* - -___ - -### numOrdersIncludingRemoved - -• **numOrdersIncludingRemoved**: *number* - -*Defined in [types.ts:437](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L437)* - -___ - -### numPeers - -• **numPeers**: *number* - -*Defined in [types.ts:435](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L435)* - -___ - -### numPinnedOrders - -• **numPinnedOrders**: *number* - -*Defined in [types.ts:438](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L438)* - -___ - -### peerID - -• **peerID**: *string* - -*Defined in [types.ts:432](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L432)* - -___ - -### pubSubTopic - -• **pubSubTopic**: *string* - -*Defined in [types.ts:430](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L430)* - -___ - -### rendezvous - -• **rendezvous**: *string* - -*Defined in [types.ts:431](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L431)* - -___ - -### startOfCurrentUTCDay - -• **startOfCurrentUTCDay**: *string* - -*Defined in [types.ts:440](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L440)* - -___ - -### version - -• **version**: *string* - -*Defined in [types.ts:429](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L429)* - -
- -> # Interface: HeartbeatEventPayload - -## Hierarchy - -* **HeartbeatEventPayload** - -## Index - -### Properties - -* [result](#result) -* [subscription](#subscription) - -## Properties - -### result - -• **result**: *string* - -*Defined in [types.ts:304](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L304)* - -___ - -### subscription - -• **subscription**: *string* - -*Defined in [types.ts:303](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L303)* - -
- -> # Interface: LatestBlock - -## Hierarchy - -* **LatestBlock** - -## Index - -### Properties - -* [hash](#hash) -* [number](#number) - -## Properties - -### hash - -• **hash**: *string* - -*Defined in [types.ts:425](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L425)* - -___ - -### number - -• **number**: *number* - -*Defined in [types.ts:424](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L424)* - -
- -> # Interface: OrderEvent - -## Hierarchy - -* **OrderEvent** - -## Index - -### Properties - -* [contractEvents](#contractevents) -* [endState](#endstate) -* [fillableTakerAssetAmount](#fillabletakerassetamount) -* [orderHash](#orderhash) -* [signedOrder](#signedorder) -* [timestampMs](#timestampms) - -## Properties - -### contractEvents - -• **contractEvents**: *[ContractEvent](#interface-contractevent)[]* - -*Defined in [types.ts:322](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L322)* - -___ - -### endState - -• **endState**: *[OrderEventEndState](#enumeration-ordereventendstate)* - -*Defined in [types.ts:320](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L320)* - -___ - -### fillableTakerAssetAmount - -• **fillableTakerAssetAmount**: *`BigNumber`* - -*Defined in [types.ts:321](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L321)* - -___ - -### orderHash - -• **orderHash**: *string* - -*Defined in [types.ts:318](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L318)* - -___ - -### signedOrder - -• **signedOrder**: *`SignedOrder`* - -*Defined in [types.ts:319](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L319)* - -___ - -### timestampMs - -• **timestampMs**: *number* - -*Defined in [types.ts:317](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L317)* - -
- -> # Interface: OrderEventPayload - -## Hierarchy - -* **OrderEventPayload** - -## Index - -### Properties - -* [result](#result) -* [subscription](#subscription) - -## Properties - -### result - -• **result**: *[RawOrderEvent](#interface-raworderevent)[]* - -*Defined in [types.ts:299](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L299)* - -___ - -### subscription - -• **subscription**: *string* - -*Defined in [types.ts:298](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L298)* - -
- -> # Interface: OrderInfo - -## Hierarchy - -* **OrderInfo** - -## Index - -### Properties - -* [fillableTakerAssetAmount](#fillabletakerassetamount) -* [orderHash](#orderhash) -* [signedOrder](#signedorder) - -## Properties - -### fillableTakerAssetAmount - -• **fillableTakerAssetAmount**: *`BigNumber`* - -*Defined in [types.ts:348](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L348)* - -___ - -### orderHash - -• **orderHash**: *string* - -*Defined in [types.ts:346](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L346)* - -___ - -### signedOrder - -• **signedOrder**: *`SignedOrder`* - -*Defined in [types.ts:347](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L347)* - -
- -> # Interface: RawAcceptedOrderInfo - -## Hierarchy - -* **RawAcceptedOrderInfo** - -## Index - -### Properties - -* [fillableTakerAssetAmount](#fillabletakerassetamount) -* [isNew](#isnew) -* [orderHash](#orderhash) -* [signedOrder](#signedorder) - -## Properties - -### fillableTakerAssetAmount - -• **fillableTakerAssetAmount**: *string* - -*Defined in [types.ts:328](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L328)* - -___ - -### isNew - -• **isNew**: *boolean* - -*Defined in [types.ts:329](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L329)* - -___ - -### orderHash - -• **orderHash**: *string* - -*Defined in [types.ts:326](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L326)* - -___ - -### signedOrder - -• **signedOrder**: *[StringifiedSignedOrder](#interface-stringifiedsignedorder)* - -*Defined in [types.ts:327](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L327)* - -
- -> # Interface: RawGetOrdersResponse - -## Hierarchy - -* **RawGetOrdersResponse** - -## Index - -### Properties - -* [ordersInfos](#ordersinfos) -* [snapshotID](#snapshotid) -* [snapshotTimestamp](#snapshottimestamp) - -## Properties - -### ordersInfos - -• **ordersInfos**: *[RawAcceptedOrderInfo](#interface-rawacceptedorderinfo)[]* - -*Defined in [types.ts:406](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L406)* - -___ - -### snapshotID - -• **snapshotID**: *string* - -*Defined in [types.ts:404](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L404)* - -___ - -### snapshotTimestamp - -• **snapshotTimestamp**: *string* - -*Defined in [types.ts:405](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L405)* - -
- -> # Interface: RawOrderEvent - -## Hierarchy - -* **RawOrderEvent** - -## Index - -### Properties - -* [contractEvents](#contractevents) -* [endState](#endstate) -* [fillableTakerAssetAmount](#fillabletakerassetamount) -* [orderHash](#orderhash) -* [signedOrder](#signedorder) -* [timestamp](#timestamp) - -## Properties - -### contractEvents - -• **contractEvents**: *[StringifiedContractEvent](#interface-stringifiedcontractevent)[]* - -*Defined in [types.ts:313](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L313)* - -___ - -### endState - -• **endState**: *[OrderEventEndState](#enumeration-ordereventendstate)* - -*Defined in [types.ts:311](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L311)* - -___ - -### fillableTakerAssetAmount - -• **fillableTakerAssetAmount**: *string* - -*Defined in [types.ts:312](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L312)* - -___ - -### orderHash - -• **orderHash**: *string* - -*Defined in [types.ts:309](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L309)* - -___ - -### signedOrder - -• **signedOrder**: *[StringifiedSignedOrder](#interface-stringifiedsignedorder)* - -*Defined in [types.ts:310](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L310)* - -___ - -### timestamp - -• **timestamp**: *string* - -*Defined in [types.ts:308](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L308)* - -
- -> # Interface: RawOrderInfo - -## Hierarchy - -* **RawOrderInfo** - -## Index - -### Properties - -* [fillableTakerAssetAmount](#fillabletakerassetamount) -* [orderHash](#orderhash) -* [signedOrder](#signedorder) - -## Properties - -### fillableTakerAssetAmount - -• **fillableTakerAssetAmount**: *string* - -*Defined in [types.ts:342](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L342)* - -___ - -### orderHash - -• **orderHash**: *string* - -*Defined in [types.ts:340](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L340)* - -___ - -### signedOrder - -• **signedOrder**: *[StringifiedSignedOrder](#interface-stringifiedsignedorder)* - -*Defined in [types.ts:341](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L341)* - -
- -> # Interface: RawRejectedOrderInfo - -## Hierarchy - -* **RawRejectedOrderInfo** - -## Index - -### Properties - -* [kind](#kind) -* [orderHash](#orderhash) -* [signedOrder](#signedorder) -* [status](#status) - -## Properties - -### kind - -• **kind**: *[RejectedKind](#enumeration-rejectedkind)* - -*Defined in [types.ts:382](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L382)* - -___ - -### orderHash - -• **orderHash**: *string* - -*Defined in [types.ts:380](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L380)* - -___ - -### signedOrder - -• **signedOrder**: *[StringifiedSignedOrder](#interface-stringifiedsignedorder)* - -*Defined in [types.ts:381](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L381)* - -___ - -### status - -• **status**: *[RejectedStatus](#interface-rejectedstatus)* - -*Defined in [types.ts:383](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L383)* - -
- -> # Interface: RawValidationResults - -## Hierarchy - -* **RawValidationResults** - -## Index - -### Properties - -* [accepted](#accepted) -* [rejected](#rejected) - -## Properties - -### accepted - -• **accepted**: *[RawAcceptedOrderInfo](#interface-rawacceptedorderinfo)[]* - -*Defined in [types.ts:394](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L394)* - -___ - -### rejected - -• **rejected**: *[RawRejectedOrderInfo](#interface-rawrejectedorderinfo)[]* - -*Defined in [types.ts:395](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L395)* - -
- -> # Interface: RejectedOrderInfo - -## Hierarchy - -* **RejectedOrderInfo** - -## Index - -### Properties - -* [kind](#kind) -* [orderHash](#orderhash) -* [signedOrder](#signedorder) -* [status](#status) - -## Properties - -### kind - -• **kind**: *[RejectedKind](#enumeration-rejectedkind)* - -*Defined in [types.ts:389](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L389)* - -___ - -### orderHash - -• **orderHash**: *string* - -*Defined in [types.ts:387](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L387)* - -___ - -### signedOrder - -• **signedOrder**: *`SignedOrder`* - -*Defined in [types.ts:388](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L388)* - -___ - -### status - -• **status**: *[RejectedStatus](#interface-rejectedstatus)* - -*Defined in [types.ts:390](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L390)* - -
- -> # Interface: RejectedStatus - -## Hierarchy - -* **RejectedStatus** - -## Index - -### Properties - -* [code](#code) -* [message](#message) - -## Properties - -### code - -• **code**: *[RejectedCode](#enumeration-rejectedcode)* - -*Defined in [types.ts:375](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L375)* - -___ - -### message - -• **message**: *string* - -*Defined in [types.ts:376](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L376)* - -
- -> # Interface: StringifiedContractEvent - -## Hierarchy - -* **StringifiedContractEvent** - -## Index - -### Properties - -* [address](#address) -* [blockHash](#blockhash) -* [isRemoved](#isremoved) -* [kind](#kind) -* [logIndex](#logindex) -* [parameters](#parameters) -* [txHash](#txhash) -* [txIndex](#txindex) - -## Properties - -### address - -• **address**: *string* - -*Defined in [types.ts:253](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L253)* - -___ - -### blockHash - -• **blockHash**: *string* - -*Defined in [types.ts:248](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L248)* - -___ - -### isRemoved - -• **isRemoved**: *string* - -*Defined in [types.ts:252](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L252)* - -___ - -### kind - -• **kind**: *string* - -*Defined in [types.ts:254](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L254)* - -___ - -### logIndex - -• **logIndex**: *number* - -*Defined in [types.ts:251](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L251)* - -___ - -### parameters - -• **parameters**: *[StringifiedContractEventParameters](#stringifiedcontracteventparameters)* - -*Defined in [types.ts:255](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L255)* - -___ - -### txHash - -• **txHash**: *string* - -*Defined in [types.ts:249](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L249)* - -___ - -### txIndex - -• **txIndex**: *number* - -*Defined in [types.ts:250](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L250)* - -
- -> # Interface: StringifiedERC1155TransferBatchEvent - -## Hierarchy - -* **StringifiedERC1155TransferBatchEvent** - -## Index - -### Properties - -* [from](#from) -* [ids](#ids) -* [operator](#operator) -* [to](#to) -* [values](#values) - -## Properties - -### from - -• **from**: *string* - -*Defined in [types.ts:135](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L135)* - -___ - -### ids - -• **ids**: *string[]* - -*Defined in [types.ts:137](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L137)* - -___ - -### operator - -• **operator**: *string* - -*Defined in [types.ts:134](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L134)* - -___ - -### to - -• **to**: *string* - -*Defined in [types.ts:136](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L136)* - -___ - -### values - -• **values**: *string[]* - -*Defined in [types.ts:138](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L138)* - -
- -> # Interface: StringifiedERC1155TransferSingleEvent - -## Hierarchy - -* **StringifiedERC1155TransferSingleEvent** - -## Index - -### Properties - -* [from](#from) -* [id](#id) -* [operator](#operator) -* [to](#to) -* [value](#value) - -## Properties - -### from - -• **from**: *string* - -*Defined in [types.ts:119](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L119)* - -___ - -### id - -• **id**: *string* - -*Defined in [types.ts:121](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L121)* - -___ - -### operator - -• **operator**: *string* - -*Defined in [types.ts:118](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L118)* - -___ - -### to - -• **to**: *string* - -*Defined in [types.ts:120](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L120)* - -___ - -### value - -• **value**: *string* - -*Defined in [types.ts:122](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L122)* - -
- -> # Interface: StringifiedERC20ApprovalEvent - -## Hierarchy - -* **StringifiedERC20ApprovalEvent** - -## Index - -### Properties - -* [owner](#owner) -* [spender](#spender) -* [value](#value) - -## Properties - -### owner - -• **owner**: *string* - -*Defined in [types.ts:74](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L74)* - -___ - -### spender - -• **spender**: *string* - -*Defined in [types.ts:75](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L75)* - -___ - -### value - -• **value**: *string* - -*Defined in [types.ts:76](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L76)* - -
- -> # Interface: StringifiedERC20TransferEvent - -## Hierarchy - -* **StringifiedERC20TransferEvent** - -## Index - -### Properties - -* [from](#from) -* [to](#to) -* [value](#value) - -## Properties - -### from - -• **from**: *string* - -*Defined in [types.ts:62](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L62)* - -___ - -### to - -• **to**: *string* - -*Defined in [types.ts:63](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L63)* - -___ - -### value +### status -• **value**: *string* +• **status**: *[RejectedStatus](#interface-rejectedstatus)* -*Defined in [types.ts:64](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L64)* +*Defined in [types.ts:148](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L148)*
-> # Interface: StringifiedERC721ApprovalEvent +> # Interface: RawValidationResults ## Hierarchy -* **StringifiedERC721ApprovalEvent** +* **RawValidationResults** ## Index ### Properties -* [approved](#approved) -* [owner](#owner) -* [tokenId](#tokenid) +* [accepted](#accepted) +* [rejected](#rejected) ## Properties -### approved - -• **approved**: *string* - -*Defined in [types.ts:99](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L99)* - -___ - -### owner +### accepted -• **owner**: *string* +• **accepted**: *[RawAcceptedOrderInfo](#interface-rawacceptedorderinfo)[]* -*Defined in [types.ts:98](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L98)* +*Defined in [types.ts:159](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L159)* ___ -### tokenId +### rejected -• **tokenId**: *string* +• **rejected**: *[RawRejectedOrderInfo](#interface-rawrejectedorderinfo)[]* -*Defined in [types.ts:100](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L100)* +*Defined in [types.ts:160](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L160)*
-> # Interface: StringifiedERC721TransferEvent +> # Interface: RejectedOrderInfo ## Hierarchy -* **StringifiedERC721TransferEvent** +* **RejectedOrderInfo** ## Index ### Properties -* [from](#from) -* [to](#to) -* [tokenId](#tokenid) +* [kind](#kind) +* [orderHash](#orderhash) +* [signedOrder](#signedorder) +* [status](#status) ## Properties -### from - -• **from**: *string* - -*Defined in [types.ts:86](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L86)* - -___ - -### to +### kind -• **to**: *string* +• **kind**: *[RejectedKind](#enumeration-rejectedkind)* -*Defined in [types.ts:87](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L87)* +*Defined in [types.ts:154](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L154)* ___ -### tokenId - -• **tokenId**: *string* - -*Defined in [types.ts:88](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L88)* - -
- -> # Interface: StringifiedExchangeCancelUpToEvent - -## Hierarchy - -* **StringifiedExchangeCancelUpToEvent** - -## Index - -### Properties - -* [makerAddress](#makeraddress) -* [orderEpoch](#orderepoch) -* [senderAddress](#senderaddress) - -## Properties - -### makerAddress +### orderHash -• **makerAddress**: *string* +• **orderHash**: *string* -*Defined in [types.ts:191](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L191)* +*Defined in [types.ts:152](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L152)* ___ -### orderEpoch +### signedOrder -• **orderEpoch**: *string* +• **signedOrder**: *`SignedOrder`* -*Defined in [types.ts:193](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L193)* +*Defined in [types.ts:153](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L153)* ___ -### senderAddress +### status -• **senderAddress**: *string* +• **status**: *[RejectedStatus](#interface-rejectedstatus)* -*Defined in [types.ts:192](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L192)* +*Defined in [types.ts:155](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L155)*
-> # Interface: StringifiedExchangeFillEvent +> # Interface: RejectedStatus ## Hierarchy -* **StringifiedExchangeFillEvent** +* **RejectedStatus** ## Index ### Properties -* [feeRecipientAddress](#feerecipientaddress) -* [makerAddress](#makeraddress) -* [makerAssetData](#makerassetdata) -* [makerAssetFilledAmount](#makerassetfilledamount) -* [makerFeePaid](#makerfeepaid) -* [orderHash](#orderhash) -* [senderAddress](#senderaddress) -* [takerAddress](#takeraddress) -* [takerAssetData](#takerassetdata) -* [takerAssetFilledAmount](#takerassetfilledamount) -* [takerFeePaid](#takerfeepaid) +* [code](#code) +* [message](#message) ## Properties -### feeRecipientAddress - -• **feeRecipientAddress**: *string* - -*Defined in [types.ts:165](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L165)* - -___ - -### makerAddress - -• **makerAddress**: *string* - -*Defined in [types.ts:162](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L162)* - -___ - -### makerAssetData - -• **makerAssetData**: *string* - -*Defined in [types.ts:171](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L171)* - -___ - -### makerAssetFilledAmount - -• **makerAssetFilledAmount**: *string* - -*Defined in [types.ts:166](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L166)* - -___ - -### makerFeePaid - -• **makerFeePaid**: *string* - -*Defined in [types.ts:168](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L168)* - -___ - -### orderHash - -• **orderHash**: *string* - -*Defined in [types.ts:170](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L170)* - -___ - -### senderAddress - -• **senderAddress**: *string* - -*Defined in [types.ts:164](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L164)* - -___ - -### takerAddress - -• **takerAddress**: *string* - -*Defined in [types.ts:163](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L163)* - -___ - -### takerAssetData - -• **takerAssetData**: *string* - -*Defined in [types.ts:172](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L172)* - -___ - -### takerAssetFilledAmount +### code -• **takerAssetFilledAmount**: *string* +• **code**: *[RejectedCode](#enumeration-rejectedcode)* -*Defined in [types.ts:167](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L167)* +*Defined in [types.ts:140](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L140)* ___ -### takerFeePaid +### message -• **takerFeePaid**: *string* +• **message**: *string* -*Defined in [types.ts:169](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L169)* +*Defined in [types.ts:141](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L141)*
@@ -2671,7 +1232,7 @@ ___ • **exchangeAddress**: *string* -*Defined in [types.ts:49](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L49)* +*Defined in [types.ts:47](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L47)* ___ @@ -2679,7 +1240,7 @@ ___ • **expirationTimeSeconds**: *string* -*Defined in [types.ts:51](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L51)* +*Defined in [types.ts:49](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L49)* ___ @@ -2687,7 +1248,7 @@ ___ • **feeRecipientAddress**: *string* -*Defined in [types.ts:50](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L50)* +*Defined in [types.ts:48](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L48)* ___ @@ -2695,7 +1256,7 @@ ___ • **makerAddress**: *string* -*Defined in [types.ts:40](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L40)* +*Defined in [types.ts:38](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L38)* ___ @@ -2703,7 +1264,7 @@ ___ • **makerAssetAmount**: *string* -*Defined in [types.ts:44](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L44)* +*Defined in [types.ts:42](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L42)* ___ @@ -2711,7 +1272,7 @@ ___ • **makerAssetData**: *string* -*Defined in [types.ts:46](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L46)* +*Defined in [types.ts:44](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L44)* ___ @@ -2719,7 +1280,7 @@ ___ • **makerFee**: *string* -*Defined in [types.ts:42](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L42)* +*Defined in [types.ts:40](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L40)* ___ @@ -2727,7 +1288,7 @@ ___ • **salt**: *string* -*Defined in [types.ts:48](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L48)* +*Defined in [types.ts:46](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L46)* ___ @@ -2735,7 +1296,7 @@ ___ • **senderAddress**: *string* -*Defined in [types.ts:39](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L39)* +*Defined in [types.ts:37](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L37)* ___ @@ -2743,7 +1304,7 @@ ___ • **signature**: *string* -*Defined in [types.ts:52](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L52)* +*Defined in [types.ts:50](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L50)* ___ @@ -2751,7 +1312,7 @@ ___ • **takerAddress**: *string* -*Defined in [types.ts:41](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L41)* +*Defined in [types.ts:39](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L39)* ___ @@ -2759,7 +1320,7 @@ ___ • **takerAssetAmount**: *string* -*Defined in [types.ts:45](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L45)* +*Defined in [types.ts:43](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L43)* ___ @@ -2767,7 +1328,7 @@ ___ • **takerAssetData**: *string* -*Defined in [types.ts:47](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L47)* +*Defined in [types.ts:45](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L45)* ___ @@ -2775,69 +1336,7 @@ ___ • **takerFee**: *string* -*Defined in [types.ts:43](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L43)* - -
- -> # Interface: StringifiedWethDepositEvent - -## Hierarchy - -* **StringifiedWethDepositEvent** - -## Index - -### Properties - -* [owner](#owner) -* [value](#value) - -## Properties - -### owner - -• **owner**: *string* - -*Defined in [types.ts:212](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L212)* - -___ - -### value - -• **value**: *string* - -*Defined in [types.ts:213](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L213)* - -
- -> # Interface: StringifiedWethWithdrawalEvent - -## Hierarchy - -* **StringifiedWethWithdrawalEvent** - -## Index - -### Properties - -* [owner](#owner) -* [value](#value) - -## Properties - -### owner - -• **owner**: *string* - -*Defined in [types.ts:202](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L202)* - -___ - -### value - -• **value**: *string* - -*Defined in [types.ts:203](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L203)* +*Defined in [types.ts:41](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L41)*
@@ -2860,7 +1359,7 @@ ___ • **accepted**: *[AcceptedOrderInfo](#interface-acceptedorderinfo)[]* -*Defined in [types.ts:399](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L399)* +*Defined in [types.ts:164](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L164)* ___ @@ -2868,69 +1367,7 @@ ___ • **rejected**: *[RejectedOrderInfo](#interface-rejectedorderinfo)[]* -*Defined in [types.ts:400](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L400)* - -
- -> # Interface: WethDepositEvent - -## Hierarchy - -* **WethDepositEvent** - -## Index - -### Properties - -* [owner](#owner) -* [value](#value) - -## Properties - -### owner - -• **owner**: *string* - -*Defined in [types.ts:207](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L207)* - -___ - -### value - -• **value**: *`BigNumber`* - -*Defined in [types.ts:208](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L208)* - -
- -> # Interface: WethWithdrawalEvent - -## Hierarchy - -* **WethWithdrawalEvent** - -## Index - -### Properties - -* [owner](#owner) -* [value](#value) - -## Properties - -### owner - -• **owner**: *string* - -*Defined in [types.ts:197](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L197)* - -___ - -### value - -• **value**: *`BigNumber`* - -*Defined in [types.ts:198](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L198)* +*Defined in [types.ts:165](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L165)*
@@ -2953,7 +1390,7 @@ ___ • **type**: *string* -*Defined in [types.ts:419](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L419)* +*Defined in [types.ts:174](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L174)* ___ @@ -2961,7 +1398,7 @@ ___ • **utf8Data**: *string* -*Defined in [types.ts:420](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L420)* +*Defined in [types.ts:175](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L175)*
@@ -2973,7 +1410,7 @@ protocol: requestOptions should be either null or an object specifying additiona passed to http.request or https.request. This can be used to pass a custom agent to enable WebSocketClient usage from behind an HTTP or HTTPS proxy server using koichik/node-tunnel or similar. clientConfig: The client configs documented here: https://github.com/theturtle32/WebSocket-Node/blob/master/docs/WebSocketClient.md -reconnectDelay: time in milliseconds after which to attempt to reconnect to WS server after an error occurred (default: 5000) +reconnectAfter: time in milliseconds after which to attempt to reconnect to WS server after an error occurred (default: 5000) ## Hierarchy @@ -2986,7 +1423,7 @@ reconnectDelay: time in milliseconds after which to attempt to reconnect to WS s * [clientConfig](#optional-clientconfig) * [headers](#optional-headers) * [protocol](#optional-protocol) -* [reconnectDelay](#optional-reconnectdelay) +* [reconnectAfter](#optional-reconnectafter) * [timeout](#optional-timeout) ## Properties @@ -2995,7 +1432,7 @@ reconnectDelay: time in milliseconds after which to attempt to reconnect to WS s • **clientConfig**? : *[ClientConfig](#interface-clientconfig)* -*Defined in [types.ts:34](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L34)* +*Defined in [types.ts:32](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L32)* ___ @@ -3003,7 +1440,7 @@ ___ • **headers**? : *undefined | `__type`* -*Defined in [types.ts:32](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L32)* +*Defined in [types.ts:30](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L30)* ___ @@ -3011,15 +1448,15 @@ ___ • **protocol**? : *undefined | string* -*Defined in [types.ts:33](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L33)* +*Defined in [types.ts:31](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L31)* ___ -### `Optional` reconnectDelay +### `Optional` reconnectAfter -• **reconnectDelay**? : *undefined | number* +• **reconnectAfter**? : *undefined | number* -*Defined in [types.ts:35](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L35)* +*Defined in [types.ts:33](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L33)* ___ @@ -3027,7 +1464,7 @@ ___ • **timeout**? : *undefined | number* -*Defined in [types.ts:31](https://github.com/0xProject/0x-mesh/blob/dee8353e/rpc/clients/typescript/src/types.ts#L31)* +*Defined in [types.ts:29](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L29)*
From 14fe1480bcc8f7db10a28de1c1c877144748d2ab Mon Sep 17 00:00:00 2001 From: fabioberger Date: Fri, 20 Dec 2019 16:42:51 +0100 Subject: [PATCH 08/50] Revert version back to 3.0.1-browser since the integration test won't work with version set to `development` (it's considered an invalid version) --- browser/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser/package.json b/browser/package.json index 0fb7311c9..a3426334d 100644 --- a/browser/package.json +++ b/browser/package.json @@ -1,6 +1,6 @@ { "name": "@0x/mesh-browser", - "version": "development", + "version": "3.0.1-beta", "description": "TypeScript and JavaScript bindings for running Mesh directly in the browser.", "main": "./lib/index.js", "license": "Apache-2.0", From 53ff6ac3238c7453bcfdf58011231a616d4ee4cf Mon Sep 17 00:00:00 2001 From: fabioberger Date: Fri, 20 Dec 2019 17:52:14 +0100 Subject: [PATCH 09/50] Reset version of ts-doc-gen --- browser/package.json | 2 +- browser/yarn.lock | 64 ++++++++++++++++++++++++++--- rpc/clients/typescript/package.json | 2 +- rpc/clients/typescript/yarn.lock | 64 ++++++++++++++++++++++++++--- 4 files changed, 118 insertions(+), 14 deletions(-) diff --git a/browser/package.json b/browser/package.json index a3426334d..c8a06a2e7 100644 --- a/browser/package.json +++ b/browser/package.json @@ -16,7 +16,7 @@ "docsPath": "../docs/browser" }, "devDependencies": { - "@0x/ts-doc-gen": "^0.0.23", + "@0x/ts-doc-gen": "^0.0.16", "@0x/tslint-config": "^4.0.0", "@types/base64-arraybuffer": "^0.1.0", "tslint": "5.11.0", diff --git a/browser/yarn.lock b/browser/yarn.lock index 16644d2ba..4a2ed389a 100644 --- a/browser/yarn.lock +++ b/browser/yarn.lock @@ -76,13 +76,13 @@ ethers "~4.0.4" lodash "^4.17.11" -"@0x/ts-doc-gen@^0.0.23": - version "0.0.23" - resolved "https://registry.yarnpkg.com/@0x/ts-doc-gen/-/ts-doc-gen-0.0.23.tgz#0998a5d1de88677e3bacce9b09481b73bd53f4c8" - integrity sha512-z7GuxEYBIWcN2sWFksyptLwt4Sxv+OAKIWyWSCjPfmqKXZKkl0htCC3tUa/Zuio+Er+eZ7aydOv5Qyt2Z61N+Q== +"@0x/ts-doc-gen@^0.0.16": + version "0.0.16" + resolved "https://registry.yarnpkg.com/@0x/ts-doc-gen/-/ts-doc-gen-0.0.16.tgz#9ac03483803c89c5fd774a95d99a4cb0db070f69" + integrity sha512-jE2QPR0257Pa7MURN7NFB6F2bnEWvcHvvYTdSzLvFMmibQEa+5b0jron4NaK7TCseWFnKJD/psTbyXMResTnsQ== dependencies: - "@0x/typescript-typings" "^5.0.1" - "@0x/utils" "^5.1.1" + "@0x/typescript-typings" "^4.2.2" + "@0x/utils" "^4.3.3" glob "^7.1.4" promisify-child-process "^3.1.1" rimraf "^2.6.3" @@ -101,6 +101,15 @@ tslint-react "^3.2.0" tsutils "3.0.0" +"@0x/types@^2.4.3": + version "2.4.3" + resolved "https://registry.yarnpkg.com/@0x/types/-/types-2.4.3.tgz#ea014889789e9013fdf48ce97b79f2c016e10fb3" + integrity sha512-3z4ca9fb9pyTu9lJhTSll5EuEthkA3tLAayyZixCoCnwi4ok6PJ83PnMMsSxlRY2iXr7QGbrQr6nU64YWk2WjA== + dependencies: + "@types/node" "*" + bignumber.js "~8.0.2" + ethereum-types "^2.1.6" + "@0x/types@^3.1.1": version "3.1.1" resolved "https://registry.yarnpkg.com/@0x/types/-/types-3.1.1.tgz#b20ca76e9516201b9c27621f941696f41ffc9fac" @@ -110,6 +119,17 @@ bignumber.js "~9.0.0" ethereum-types "^3.0.0" +"@0x/typescript-typings@^4.2.2", "@0x/typescript-typings@^4.3.0": + version "4.3.0" + resolved "https://registry.yarnpkg.com/@0x/typescript-typings/-/typescript-typings-4.3.0.tgz#4813a996ac5101841d1c22f4aa1738ab56168857" + integrity sha512-6IH2JyKyl33+40tJ5rEhaMPTS2mVuRvoNmoXlCd/F0GPYSsDHMGObIXOkx+Qsw5SyCmqNs/3CTLeeCCqiSUdaw== + dependencies: + "@types/bn.js" "^4.11.0" + "@types/react" "*" + bignumber.js "~8.0.2" + ethereum-types "^2.1.6" + popper.js "1.14.3" + "@0x/typescript-typings@^5.0.1": version "5.0.1" resolved "https://registry.yarnpkg.com/@0x/typescript-typings/-/typescript-typings-5.0.1.tgz#031e291cc506ecd26d3fe10adf618f4f51ff1510" @@ -121,6 +141,25 @@ ethereum-types "^3.0.0" popper.js "1.14.3" +"@0x/utils@^4.3.3": + version "4.5.2" + resolved "https://registry.yarnpkg.com/@0x/utils/-/utils-4.5.2.tgz#6cc89f2d0dda341e0fb4e76049a35abfb67a4ac5" + integrity sha512-NWfNcvyiOhouk662AWxX0ZVe4ednBZJS9WZT/by3DBCY/WvN7WHMpEy9M5rBCxO+JJndLYeB5eBztDp7W+Ytkw== + dependencies: + "@0x/types" "^2.4.3" + "@0x/typescript-typings" "^4.3.0" + "@types/node" "*" + abortcontroller-polyfill "^1.1.9" + bignumber.js "~8.0.2" + chalk "^2.3.0" + detect-node "2.0.3" + ethereum-types "^2.1.6" + ethereumjs-util "^5.1.1" + ethers "~4.0.4" + isomorphic-fetch "2.2.1" + js-sha3 "^0.7.0" + lodash "^4.17.11" + "@0x/utils@^5.1.1": version "5.1.1" resolved "https://registry.yarnpkg.com/@0x/utils/-/utils-5.1.1.tgz#1895529b5ec313f7056819458c8f55fbb19256cb" @@ -301,6 +340,11 @@ base64-arraybuffer@^0.2.0: resolved "https://registry.yarnpkg.com/base64-arraybuffer/-/base64-arraybuffer-0.2.0.tgz#4b944fac0191aa5907afe2d8c999ccc57ce80f45" integrity sha512-7emyCsu1/xiBXgQZrscw/8KPRT44I4Yq9Pe6EGs3aPRTsWuggML1/1DTuZUuIaJPIm1FTDUVXl4x/yW8s0kQDQ== +bignumber.js@~8.0.2: + version "8.0.2" + resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-8.0.2.tgz#d8c4e1874359573b1ef03011a2d861214aeef137" + integrity sha512-EiuvFrnbv0jFixEQ9f58jo7X0qI2lNGIr/MxntmVzQc5JUweDSh8y8hbTCAomFtqwUPIOWcLXP0VEOSZTG7FFw== + bignumber.js@~9.0.0: version "9.0.0" resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-9.0.0.tgz#805880f84a329b5eac6e7cb6f8274b6d82bdf075" @@ -652,6 +696,14 @@ ethashjs@~0.0.7: ethereumjs-util "^4.0.1" miller-rabin "^4.0.0" +ethereum-types@^2.1.6: + version "2.1.6" + resolved "https://registry.yarnpkg.com/ethereum-types/-/ethereum-types-2.1.6.tgz#57d9d515fad86ab987c0f6962c4203be37da8579" + integrity sha512-xaN5TxLvkdFCGjGfUQ5wV00GHzDHStozP1j+K/YdmUeQXVGiD15cogYPhBVWG3pQJM/aBjtYrpMrjywvKkNC4A== + dependencies: + "@types/node" "*" + bignumber.js "~8.0.2" + ethereum-types@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/ethereum-types/-/ethereum-types-3.0.0.tgz#9fa3a98b8b9b64a0fab1864de7bc7fd7b1699fcd" diff --git a/rpc/clients/typescript/package.json b/rpc/clients/typescript/package.json index cf77a8a5a..1215008e8 100644 --- a/rpc/clients/typescript/package.json +++ b/rpc/clients/typescript/package.json @@ -47,7 +47,7 @@ }, "devDependencies": { "@0x/dev-utils": "^3.0.2", - "@0x/ts-doc-gen": "^0.0.23", + "@0x/ts-doc-gen": "^0.0.13", "@0x/tslint-config": "^4.0.0", "@types/mocha": "^2.2.42", "@types/uuid": "^3.4.3", diff --git a/rpc/clients/typescript/yarn.lock b/rpc/clients/typescript/yarn.lock index c9b943daf..a525d2617 100644 --- a/rpc/clients/typescript/yarn.lock +++ b/rpc/clients/typescript/yarn.lock @@ -70,13 +70,13 @@ optionalDependencies: "@ledgerhq/hw-transport-node-hid" "^4.3.0" -"@0x/ts-doc-gen@^0.0.23": - version "0.0.23" - resolved "https://registry.yarnpkg.com/@0x/ts-doc-gen/-/ts-doc-gen-0.0.23.tgz#0998a5d1de88677e3bacce9b09481b73bd53f4c8" - integrity sha512-z7GuxEYBIWcN2sWFksyptLwt4Sxv+OAKIWyWSCjPfmqKXZKkl0htCC3tUa/Zuio+Er+eZ7aydOv5Qyt2Z61N+Q== +"@0x/ts-doc-gen@^0.0.13": + version "0.0.13" + resolved "https://registry.yarnpkg.com/@0x/ts-doc-gen/-/ts-doc-gen-0.0.13.tgz#0f646d03f951db34b0362948b9ff068d55f30672" + integrity sha512-vEOWfWl9qXDnGG9QBamf0pLzYtIo+cppTU/GzhDhetdcU/3ay57kDU+5Ytg6xybsfQ4I4Mk2Dee+Gg5Lhoi5uw== dependencies: - "@0x/typescript-typings" "^5.0.1" - "@0x/utils" "^5.1.1" + "@0x/typescript-typings" "^4.2.2" + "@0x/utils" "^4.3.3" glob "^7.1.4" promisify-child-process "^3.1.1" rimraf "^2.6.3" @@ -95,6 +95,15 @@ tslint-react "^3.2.0" tsutils "3.0.0" +"@0x/types@^2.4.3": + version "2.4.3" + resolved "https://registry.yarnpkg.com/@0x/types/-/types-2.4.3.tgz#ea014889789e9013fdf48ce97b79f2c016e10fb3" + integrity sha512-3z4ca9fb9pyTu9lJhTSll5EuEthkA3tLAayyZixCoCnwi4ok6PJ83PnMMsSxlRY2iXr7QGbrQr6nU64YWk2WjA== + dependencies: + "@types/node" "*" + bignumber.js "~8.0.2" + ethereum-types "^2.1.6" + "@0x/types@^3.1.1": version "3.1.1" resolved "https://registry.yarnpkg.com/@0x/types/-/types-3.1.1.tgz#b20ca76e9516201b9c27621f941696f41ffc9fac" @@ -104,6 +113,17 @@ bignumber.js "~9.0.0" ethereum-types "^3.0.0" +"@0x/typescript-typings@^4.2.2", "@0x/typescript-typings@^4.3.0": + version "4.3.0" + resolved "https://registry.yarnpkg.com/@0x/typescript-typings/-/typescript-typings-4.3.0.tgz#4813a996ac5101841d1c22f4aa1738ab56168857" + integrity sha512-6IH2JyKyl33+40tJ5rEhaMPTS2mVuRvoNmoXlCd/F0GPYSsDHMGObIXOkx+Qsw5SyCmqNs/3CTLeeCCqiSUdaw== + dependencies: + "@types/bn.js" "^4.11.0" + "@types/react" "*" + bignumber.js "~8.0.2" + ethereum-types "^2.1.6" + popper.js "1.14.3" + "@0x/typescript-typings@^5.0.1": version "5.0.1" resolved "https://registry.yarnpkg.com/@0x/typescript-typings/-/typescript-typings-5.0.1.tgz#031e291cc506ecd26d3fe10adf618f4f51ff1510" @@ -115,6 +135,25 @@ ethereum-types "^3.0.0" popper.js "1.14.3" +"@0x/utils@^4.3.3": + version "4.5.2" + resolved "https://registry.yarnpkg.com/@0x/utils/-/utils-4.5.2.tgz#6cc89f2d0dda341e0fb4e76049a35abfb67a4ac5" + integrity sha512-NWfNcvyiOhouk662AWxX0ZVe4ednBZJS9WZT/by3DBCY/WvN7WHMpEy9M5rBCxO+JJndLYeB5eBztDp7W+Ytkw== + dependencies: + "@0x/types" "^2.4.3" + "@0x/typescript-typings" "^4.3.0" + "@types/node" "*" + abortcontroller-polyfill "^1.1.9" + bignumber.js "~8.0.2" + chalk "^2.3.0" + detect-node "2.0.3" + ethereum-types "^2.1.6" + ethereumjs-util "^5.1.1" + ethers "~4.0.4" + isomorphic-fetch "2.2.1" + js-sha3 "^0.7.0" + lodash "^4.17.11" + "@0x/utils@^5.1.1": version "5.1.1" resolved "https://registry.yarnpkg.com/@0x/utils/-/utils-5.1.1.tgz#1895529b5ec313f7056819458c8f55fbb19256cb" @@ -1057,6 +1096,11 @@ bignumber.js@7.2.1: resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-7.2.1.tgz#80c048759d826800807c4bfd521e50edbba57a5f" integrity sha512-S4XzBk5sMB+Rcb/LNcpzXr57VRTxgAvaAEDAl1AwRx27j00hT84O6OkteE7u8UB3NuaaygCRrEpqox4uDOrbdQ== +bignumber.js@~8.0.2: + version "8.0.2" + resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-8.0.2.tgz#d8c4e1874359573b1ef03011a2d861214aeef137" + integrity sha512-EiuvFrnbv0jFixEQ9f58jo7X0qI2lNGIr/MxntmVzQc5JUweDSh8y8hbTCAomFtqwUPIOWcLXP0VEOSZTG7FFw== + bignumber.js@~9.0.0: version "9.0.0" resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-9.0.0.tgz#805880f84a329b5eac6e7cb6f8274b6d82bdf075" @@ -2168,6 +2212,14 @@ ethereum-common@^0.0.18: resolved "https://registry.yarnpkg.com/ethereum-common/-/ethereum-common-0.0.18.tgz#2fdc3576f232903358976eb39da783213ff9523f" integrity sha1-L9w1dvIykDNYl26znaeDIT/5Uj8= +ethereum-types@^2.1.6: + version "2.1.6" + resolved "https://registry.yarnpkg.com/ethereum-types/-/ethereum-types-2.1.6.tgz#57d9d515fad86ab987c0f6962c4203be37da8579" + integrity sha512-xaN5TxLvkdFCGjGfUQ5wV00GHzDHStozP1j+K/YdmUeQXVGiD15cogYPhBVWG3pQJM/aBjtYrpMrjywvKkNC4A== + dependencies: + "@types/node" "*" + bignumber.js "~8.0.2" + ethereum-types@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/ethereum-types/-/ethereum-types-3.0.0.tgz#9fa3a98b8b9b64a0fab1864de7bc7fd7b1699fcd" From 8553c7ab35a5eed398005101522c5c2e46d75110 Mon Sep 17 00:00:00 2001 From: Alex Towle Date: Thu, 19 Dec 2019 00:24:13 -0800 Subject: [PATCH 10/50] Added utils for running mesh in ts Prior to this commit, the typescript tests used a fake RPC server to test the client. This commit marks the beginning of a refactor that makes these tests integration tests that interact with a real mesh node. Two utilities were created in this commit: - startStandaloneMeshNode - Creates and returns a child process that is executing the mesh executable. - waitForPatternAsync - Attaches to a child process running mesh and return a promise that resolves either because a timeout is exceeded or a log containing the pattern has been found. --- rpc/clients/typescript/package.json | 2 +- .../typescript/test/utils/ws_server.ts | 44 ++++++++++++++ rpc/clients/typescript/test/ws_client_test.ts | 58 ++++++++++++++++--- 3 files changed, 94 insertions(+), 10 deletions(-) create mode 100644 rpc/clients/typescript/test/utils/ws_server.ts diff --git a/rpc/clients/typescript/package.json b/rpc/clients/typescript/package.json index 1215008e8..46b9b2d33 100644 --- a/rpc/clients/typescript/package.json +++ b/rpc/clients/typescript/package.json @@ -19,7 +19,7 @@ "build": "tsc -b", "clean": "shx rm -rf lib", "lint": "tslint --format stylish --project .", - "test": "mocha --require source-map-support/register --require make-promises-safe lib/test/**/*_test.js --exit", + "test": "mocha --require source-map-support/register --require make-promises-safe lib/test/**/*_test.js --timeout 200000 --exit", "s3:sync": "aws s3 sync ${npm_package_config_docsPath} s3://docs-markdown/${npm_package_name}/v${npm_package_version} --profile 0xproject --region us-east-1 --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers", "docs:md": "ts-doc-gen --sourceDir=./src --output=${npm_package_config_docsPath}" }, diff --git a/rpc/clients/typescript/test/utils/ws_server.ts b/rpc/clients/typescript/test/utils/ws_server.ts new file mode 100644 index 000000000..2e1bd0328 --- /dev/null +++ b/rpc/clients/typescript/test/utils/ws_server.ts @@ -0,0 +1,44 @@ +import {logUtils} from '@0x/utils'; +import {ChildProcessWithoutNullStreams, spawn} from 'child_process'; + +export const SERVER_PORT = 64321; + +// 1 second +const DEFAULT_TIMEOUT = 1000; + +/** + * Setup a mesh node with an associated RPC server. + */ +/* tslint:disable:custom-no-magic-numbers */ +export async function setupMeshNodeAsync(): Promise { + // Spawn a child process running the mesh executable with an rpc server. + const env = Object.create(process.env); + env.ETHEREUM_RPC_URL = 'http://localhost:8545'; + env.ETHEREUM_CHAIN_ID = 1337; + env.VERBOSITY = 5; + env.RPC_ADDR = 'localhost:'.concat(SERVER_PORT.toString()); + return spawn('mesh', [], {env}); +} +/* tslint:enable:custom-no-magic-numbers */ + +/** + * Given a child process running a mesh node, wait for a log on stderr that + * matches the given regex pattern. + * @param mesh The mesh process to scrape for logs. + * @param pattern The regex pattern to use when testing incoming logs. + * @param timeout An optional timeout parameter to schedule an end to waiting on the logs. + */ +export async function waitForPatternLogAsync( + mesh: ChildProcessWithoutNullStreams, + pattern: RegExp, + timeout?: number, +): Promise { + return new Promise((resolve, reject) => { + mesh.stderr.on('data', async data => { + if (pattern.test(data.toString())) { + resolve(data.toString()); + } + }); + setTimeout(reject, timeout || DEFAULT_TIMEOUT); + }); +} diff --git a/rpc/clients/typescript/test/ws_client_test.ts b/rpc/clients/typescript/test/ws_client_test.ts index f8f5f9305..40fb347c4 100644 --- a/rpc/clients/typescript/test/ws_client_test.ts +++ b/rpc/clients/typescript/test/ws_client_test.ts @@ -1,22 +1,60 @@ -import { callbackErrorReporter } from '@0x/dev-utils'; -import { DoneCallback } from '@0x/types'; +import {callbackErrorReporter} from '@0x/dev-utils'; +import {DoneCallback} from '@0x/types'; import * as chai from 'chai'; +import {ChildProcessWithoutNullStreams, spawn} from 'child_process'; +import {} from 'fs'; import 'mocha'; import * as WebSocket from 'websocket'; -import { BigNumber, OrderEvent, WSClient } from '../src/index'; -import { WSMessage } from '../src/types'; +import {BigNumber, OrderEvent, WSClient} from '../src/index'; +import {WSMessage} from '../src/types'; -import { chaiSetup } from './utils/chai_setup'; -import { SERVER_PORT, setupServerAsync, stopServer } from './utils/mock_ws_server'; +import {chaiSetup} from './utils/chai_setup'; +import {SERVER_PORT, setupMeshNodeAsync, waitForPatternLogAsync} from './utils/ws_server'; chaiSetup.configure(); const expect = chai.expect; describe('WSClient', () => { - afterEach(() => { - stopServer(); + describe('example test', () => { + it('test', done => { + (async () => { + const cleanup = spawn('rm', ['-r', './0x_mesh']); + + await new Promise((resolve, reject) => { + cleanup.on('close', code => { + code === 0 ? resolve() : reject(); + }); + }); + + const env = Object.create(process.env); + env.ETHEREUM_RPC_URL = 'http://localhost:8545'; + + /* tslint:disable:custom-no-magic-numbers */ + env.ETHEREUM_CHAIN_ID = 1337; + env.VERBOSITY = 5; + /* tslint:enable:custom-no-magic-numbers */ + + env.RPC_ADDR = 'localhost:64321'; + + // Start the mesh node and wait for the RPC server to start. + const mesh = spawn('mesh', [], {env}); + + mesh.stderr.on('data', data => { + console.log(data.toString()); + }); + + await waitForPatternLogAsync(mesh, /started RPC server/); + const client = new WSClient('http://localhost:64321'); + const validationResults = await client.addOrdersAsync([]); + console.log(validationResults); + const getOrdersResponse = await client.getOrdersAsync(5); + console.log(getOrdersResponse); + done(); + })(); + }); }); + /* describe('#getOrdersAsync', async () => { it('properly makes multiple paginated requests under-the-hood and returns all signedOrders', async () => { const wsServer = await setupServerAsync(); @@ -500,8 +538,10 @@ describe('WSClient', () => { })().catch(done); }); }); + */ }); async function sleepAsync(ms: number): Promise { return new Promise(resolve => setTimeout(resolve, ms)); -} // tslint:disable:max-file-line-count +} +// tslint:disable-line:max-file-line-count From b3645e54e77ddd6d006fdde0731bd5a2a85bd8e6 Mon Sep 17 00:00:00 2001 From: Alex Towle Date: Thu, 19 Dec 2019 17:33:13 -0800 Subject: [PATCH 11/50] Improved the ws server utils --- .../typescript/test/utils/ws_server.ts | 123 +++++++++++++----- rpc/clients/typescript/test/ws_client_test.ts | 14 +- 2 files changed, 99 insertions(+), 38 deletions(-) diff --git a/rpc/clients/typescript/test/utils/ws_server.ts b/rpc/clients/typescript/test/utils/ws_server.ts index 2e1bd0328..c28e82edb 100644 --- a/rpc/clients/typescript/test/utils/ws_server.ts +++ b/rpc/clients/typescript/test/utils/ws_server.ts @@ -1,44 +1,99 @@ -import {logUtils} from '@0x/utils'; import {ChildProcessWithoutNullStreams, spawn} from 'child_process'; +import {join} from 'path'; -export const SERVER_PORT = 64321; +import {WSClient} from '../../src'; -// 1 second -const DEFAULT_TIMEOUT = 1000; +async function buildBinaryAsync(): Promise { + const cwd = join(__dirname, '../../../../../../').normalize(); + const build = spawn('make', ['mesh'], {cwd}); + await new Promise((resolve, reject) => { + build.on('close', code => { + code === 0 ? resolve() : reject(); + }); + }); +} -/** - * Setup a mesh node with an associated RPC server. - */ -/* tslint:disable:custom-no-magic-numbers */ -export async function setupMeshNodeAsync(): Promise { - // Spawn a child process running the mesh executable with an rpc server. - const env = Object.create(process.env); - env.ETHEREUM_RPC_URL = 'http://localhost:8545'; - env.ETHEREUM_CHAIN_ID = 1337; - env.VERBOSITY = 5; - env.RPC_ADDR = 'localhost:'.concat(SERVER_PORT.toString()); - return spawn('mesh', [], {env}); +async function cleanupAsync(): Promise { + const cleanup = spawn('rm', ['-r', './0x_mesh']); + await new Promise((resolve, reject) => { + cleanup.on('close', code => { + // NOTE(jalextowle): In the event that the 0x_mesh files + // are not in this directory, the "cleanup" command will + // fail. We want to allow this so that the rest of the + // program can execute. + code === 0 || code === 1 ? resolve() : reject(); + }); + }); +} + +export interface MeshDeployment { + client: WSClient; + mesh: MeshManager; + peerID: string; } -/* tslint:enable:custom-no-magic-numbers */ /** - * Given a child process running a mesh node, wait for a log on stderr that - * matches the given regex pattern. - * @param mesh The mesh process to scrape for logs. - * @param pattern The regex pattern to use when testing incoming logs. - * @param timeout An optional timeout parameter to schedule an end to waiting on the logs. + * Start a RPC client connected to a RPC server that is ready for use. + * @return A mesh deployment including a RPC client, mesh manager, and the + * peer ID of the mesh process that is running in the mesh manager. */ -export async function waitForPatternLogAsync( - mesh: ChildProcessWithoutNullStreams, - pattern: RegExp, - timeout?: number, -): Promise { - return new Promise((resolve, reject) => { - mesh.stderr.on('data', async data => { - if (pattern.test(data.toString())) { - resolve(data.toString()); - } +export async function startServerAndClientAsync(): Promise { + await cleanupAsync(); + await buildBinaryAsync(); + + const mesh = new MeshManager(); + const log = await mesh.waitForPatternAsync(/started RPC server/); + const peerID = JSON.parse(log.toString()).myPeerID; + const client = new WSClient(`http://localhost:${mesh.port}`); + return { + client, + mesh, + peerID, + }; +} + +export class MeshManager { + public static readonly DEFAULT_TIMEOUT = 1000; + protected static _serverPort = 64321; + + public readonly port: number; + private readonly _mesh: ChildProcessWithoutNullStreams; + private _killed = false; + + /** + * Wait for a log on the mesh process's stderr that matches the given regex pattern. + * @param pattern The regex pattern to use when testing incoming logs. + * @param timeout An optional timeout parameter to schedule an end to waiting on the logs. + */ + public async waitForPatternAsync(pattern: RegExp, timeout?: number): Promise { + if (this._killed) { + throw new Error('mesh instance has already been killed'); + } + return new Promise((resolve, reject) => { + this._mesh.stderr.on('data', async data => { + if (pattern.test(data.toString())) { + resolve(data.toString()); + } + }); + setTimeout(reject, timeout || MeshManager.DEFAULT_TIMEOUT); }); - setTimeout(reject, timeout || DEFAULT_TIMEOUT); - }); + } + + /** + * Kill the mesh process of this mesh instance. + */ + public stopMesh(): void { + this._killed = true; + this._mesh.kill(); + } + + public constructor() { + const env = Object.create(process.env); + this.port = MeshManager._serverPort++; + env.ETHEREUM_RPC_URL = 'http://localhost:8545'; + env.ETHEREUM_CHAIN_ID = '1337'; + env.VERBOSITY = '5'; + env.RPC_ADDR = `localhost:${this.port}`; + this._mesh = spawn('mesh', [], {env}); + } } diff --git a/rpc/clients/typescript/test/ws_client_test.ts b/rpc/clients/typescript/test/ws_client_test.ts index 40fb347c4..a817da368 100644 --- a/rpc/clients/typescript/test/ws_client_test.ts +++ b/rpc/clients/typescript/test/ws_client_test.ts @@ -2,7 +2,6 @@ import {callbackErrorReporter} from '@0x/dev-utils'; import {DoneCallback} from '@0x/types'; import * as chai from 'chai'; import {ChildProcessWithoutNullStreams, spawn} from 'child_process'; -import {} from 'fs'; import 'mocha'; import * as WebSocket from 'websocket'; @@ -10,12 +9,20 @@ import {BigNumber, OrderEvent, WSClient} from '../src/index'; import {WSMessage} from '../src/types'; import {chaiSetup} from './utils/chai_setup'; -import {SERVER_PORT, setupMeshNodeAsync, waitForPatternLogAsync} from './utils/ws_server'; +import {startServerAndClientAsync} from './utils/ws_server'; chaiSetup.configure(); const expect = chai.expect; describe('WSClient', () => { + describe('#getStats', () => { + it.only('', async () => { + const deployment = await startServerAndClientAsync(); + const stats = await deployment.client.getStatsAsync(); + console.log(stats); + }); + }); + /* describe('example test', () => { it('test', done => { (async () => { @@ -30,10 +37,8 @@ describe('WSClient', () => { const env = Object.create(process.env); env.ETHEREUM_RPC_URL = 'http://localhost:8545'; - /* tslint:disable:custom-no-magic-numbers */ env.ETHEREUM_CHAIN_ID = 1337; env.VERBOSITY = 5; - /* tslint:enable:custom-no-magic-numbers */ env.RPC_ADDR = 'localhost:64321'; @@ -54,6 +59,7 @@ describe('WSClient', () => { })(); }); }); + */ /* describe('#getOrdersAsync', async () => { it('properly makes multiple paginated requests under-the-hood and returns all signedOrders', async () => { From 4b6c6767c6d9eac976354320d31e8d949ee2d9dc Mon Sep 17 00:00:00 2001 From: Alex Towle Date: Thu, 19 Dec 2019 18:07:26 -0800 Subject: [PATCH 12/50] Fixed a typo in the rpc client --- docs/rpc_api.md | 2 +- rpc/client.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/rpc_api.md b/docs/rpc_api.md index fa796ac5a..36c6555b2 100644 --- a/docs/rpc_api.md +++ b/docs/rpc_api.md @@ -204,7 +204,7 @@ Gets certain configurations and stats about a Mesh node. "result": { "version": "development", "pubSubTopic": "/0x-orders/network/1/version/1", - "rendervous": "/0x-mesh/network/1/version/1", + "rendezvous": "/0x-mesh/network/1/version/1", "peerID": "16Uiu2HAmGx8Z6gdq5T5AQE54GMtqDhDFhizywTy1o28NJbAMMumF", "ethereumChainID": 1, "latestBlock": { diff --git a/rpc/client.go b/rpc/client.go index e572af67c..b7dccaf3b 100644 --- a/rpc/client.go +++ b/rpc/client.go @@ -98,7 +98,7 @@ type LatestBlock struct { type GetStatsResponse struct { Version string `json:"version"` PubSubTopic string `json:"pubSubTopic"` - Rendezvous string `json:"rendervous"` + Rendezvous string `json:"rendezvous"` PeerID string `json:"peerID"` EthereumChainID int `json:"ethereumChainID"` LatestBlock LatestBlock `json:"latestBlock"` From 06a88ae0281e036aeb9821695c8ee47ba0cc3d73 Mon Sep 17 00:00:00 2001 From: Alex Towle Date: Thu, 19 Dec 2019 19:04:00 -0800 Subject: [PATCH 13/50] Converted more tests to integration tests It's worth noting that the `mock_ws_server.ts` module continues to be used for tests like `#onClose`, `#onReconnect`, etc. There may be a way to close the connection through the mesh node directly, but it seems like that would require a shim without digging into it too much. --- rpc/clients/typescript/test/ws_client_test.ts | 314 ++++++++---------- 1 file changed, 132 insertions(+), 182 deletions(-) diff --git a/rpc/clients/typescript/test/ws_client_test.ts b/rpc/clients/typescript/test/ws_client_test.ts index a817da368..68b8b896a 100644 --- a/rpc/clients/typescript/test/ws_client_test.ts +++ b/rpc/clients/typescript/test/ws_client_test.ts @@ -9,67 +9,21 @@ import {BigNumber, OrderEvent, WSClient} from '../src/index'; import {WSMessage} from '../src/types'; import {chaiSetup} from './utils/chai_setup'; -import {startServerAndClientAsync} from './utils/ws_server'; +import {SERVER_PORT, setupServerAsync, stopServer} from './utils/mock_ws_server'; +import {MeshDeployment, startServerAndClientAsync} from './utils/ws_server'; chaiSetup.configure(); const expect = chai.expect; describe('WSClient', () => { - describe('#getStats', () => { - it.only('', async () => { - const deployment = await startServerAndClientAsync(); - const stats = await deployment.client.getStatsAsync(); - console.log(stats); - }); - }); - /* - describe('example test', () => { - it('test', done => { - (async () => { - const cleanup = spawn('rm', ['-r', './0x_mesh']); - - await new Promise((resolve, reject) => { - cleanup.on('close', code => { - code === 0 ? resolve() : reject(); - }); - }); - - const env = Object.create(process.env); - env.ETHEREUM_RPC_URL = 'http://localhost:8545'; - - env.ETHEREUM_CHAIN_ID = 1337; - env.VERBOSITY = 5; - - env.RPC_ADDR = 'localhost:64321'; - - // Start the mesh node and wait for the RPC server to start. - const mesh = spawn('mesh', [], {env}); - - mesh.stderr.on('data', data => { - console.log(data.toString()); - }); - - await waitForPatternLogAsync(mesh, /started RPC server/); - const client = new WSClient('http://localhost:64321'); - const validationResults = await client.addOrdersAsync([]); - console.log(validationResults); - const getOrdersResponse = await client.getOrdersAsync(5); - console.log(getOrdersResponse); - done(); - })(); - }); - }); - */ /* - describe('#getOrdersAsync', async () => { - it('properly makes multiple paginated requests under-the-hood and returns all signedOrders', async () => { + describe('#addOrdersAsync', async () => { + it('sends a mesh_addOrders request and converts all numerical fields to BigNumbers in returned signedOrders', async () => { const wsServer = await setupServerAsync(); wsServer.on('connect', ((connection: WebSocket.connection) => { let requestNum = 0; connection.on('message', ((message: WSMessage) => { const jsonRpcRequest = JSON.parse(message.utf8Data); - const snapshotID = '123'; - const snapshotTimestamp = '2009-11-10T23:00:00Z'; const responses = [ // Heartbeat subscription (under-the-hood) ` @@ -79,15 +33,13 @@ describe('WSClient', () => { "result": "0xab1a3e8af590364c09d0fa6a12103ada" } `, - // First paginated request + // mesh_addOrders response ` { "id": "${jsonRpcRequest.id}", "jsonrpc": "2.0", "result": { - "snapshotID": "${snapshotID}", - "snapshotTimestamp": "${snapshotTimestamp}", - "ordersInfos": [ + "accepted": [ { "orderHash": "0xa0fcb54919f0b3823aa14b3f511146f6ac087ab333a70f9b24bbb1ba657a4250", "signedOrder": { @@ -111,53 +63,65 @@ describe('WSClient', () => { }, "fillableTakerAssetAmount": "10000000000000000000000" } - ] + ], + "rejected": [] } } - `, - // Second paginated request - ` - { - "id": "${jsonRpcRequest.id}", - "jsonrpc": "2.0", - "result": { - "snapshotID": "${snapshotID}", - "snapshotTimestamp": "${snapshotTimestamp}", - "ordersInfos": [] - } - } - `, + `, ]; connection.sendUTF(responses[requestNum]); requestNum++; }) as any); }) as any); + const signedOrders = [ + { + makerAddress: '0xa3ece5d5b6319fa785efc10d3112769a46c6e149', + takerAddress: '0x0000000000000000000000000000000000000000', + makerAssetAmount: new BigNumber('1000000000000000000'), + takerAssetAmount: new BigNumber('10000000000000000000000'), + expirationTimeSeconds: new BigNumber('1586340602'), + makerFee: new BigNumber('0'), + takerFee: new BigNumber('0'), + feeRecipientAddress: '0x0000000000000000000000000000000000000000', + senderAddress: '0x0000000000000000000000000000000000000000', + salt: new BigNumber( + '41253767178111694375645046549067933145709740457131351457334397888365956743955', + ), + makerAssetData: '0xf47261b0000000000000000000000000e41d2489571d322189246dafa5ebde1f4699f498', + takerAssetData: '0xf47261b0000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2', + exchangeAddress: '0x080bf510fcbf18b91105470639e9561022937712', + signature: + '0x1c0827552a3bde2c72560362950a69f581ae7a1e6fa8c160bb437f3a61002bb96c22b646edd3b103b976db4aa4840a11c13306b2a02a0bb6ce647806c858c238ec02', + }, + ]; const client = new WSClient(`ws://localhost:${SERVER_PORT}`); - const perPage = 1; - const getOrdersResponse = await client.getOrdersAsync(perPage); - const orderInfos = getOrdersResponse.ordersInfos; - expect(orderInfos).to.have.length(1); - expect(getOrdersResponse.snapshotID).to.equal('123'); - // tslint:disable-next-line:custom-no-magic-numbers - expect(getOrdersResponse.snapshotTimestamp).to.equal(1257894000); - expect(BigNumber.isBigNumber(orderInfos[0].signedOrder.makerAssetAmount)).to.equal(true); - expect(BigNumber.isBigNumber(orderInfos[0].signedOrder.takerAssetAmount)).to.equal(true); - expect(BigNumber.isBigNumber(orderInfos[0].signedOrder.makerFee)).to.equal(true); - expect(BigNumber.isBigNumber(orderInfos[0].signedOrder.takerFee)).to.equal(true); - expect(BigNumber.isBigNumber(orderInfos[0].signedOrder.salt)).to.equal(true); - expect(BigNumber.isBigNumber(orderInfos[0].signedOrder.expirationTimeSeconds)).to.equal(true); + const validationResults = await client.addOrdersAsync(signedOrders); + expect(typeof validationResults === 'object').to.equal(true); + expect(validationResults.accepted).to.have.length(1); + expect(validationResults.rejected).to.have.length(0); + expect(BigNumber.isBigNumber(validationResults.accepted[0].signedOrder.makerAssetAmount)).to.equal(true); + expect(BigNumber.isBigNumber(validationResults.accepted[0].signedOrder.takerAssetAmount)).to.equal(true); + expect(BigNumber.isBigNumber(validationResults.accepted[0].signedOrder.makerFee)).to.equal(true); + expect(BigNumber.isBigNumber(validationResults.accepted[0].signedOrder.takerFee)).to.equal(true); + expect(BigNumber.isBigNumber(validationResults.accepted[0].signedOrder.salt)).to.equal(true); + expect(BigNumber.isBigNumber(validationResults.accepted[0].signedOrder.expirationTimeSeconds)).to.equal( + true, + ); + expect(BigNumber.isBigNumber(validationResults.accepted[0].fillableTakerAssetAmount)).to.equal(true); client.destroy(); }); }); - describe('#addOrdersAsync', async () => { - it('sends a mesh_addOrders request and converts all numerical fields to BigNumbers in returned signedOrders', async () => { + describe('#getOrdersAsync', async () => { + it('properly makes multiple paginated requests under-the-hood and returns all signedOrders', async () => { const wsServer = await setupServerAsync(); wsServer.on('connect', ((connection: WebSocket.connection) => { let requestNum = 0; connection.on('message', ((message: WSMessage) => { const jsonRpcRequest = JSON.parse(message.utf8Data); + const snapshotID = '123'; + const snapshotTimestamp = '2009-11-10T23:00:00Z'; const responses = [ // Heartbeat subscription (under-the-hood) ` @@ -167,13 +131,15 @@ describe('WSClient', () => { "result": "0xab1a3e8af590364c09d0fa6a12103ada" } `, - // mesh_addOrders response + // First paginated request ` { "id": "${jsonRpcRequest.id}", "jsonrpc": "2.0", "result": { - "accepted": [ + "snapshotID": "${snapshotID}", + "snapshotTimestamp": "${snapshotTimestamp}", + "ordersInfos": [ { "orderHash": "0xa0fcb54919f0b3823aa14b3f511146f6ac087ab333a70f9b24bbb1ba657a4250", "signedOrder": { @@ -197,127 +163,107 @@ describe('WSClient', () => { }, "fillableTakerAssetAmount": "10000000000000000000000" } - ], - "rejected": [] + ] } } - `, + `, + // Second paginated request + ` + { + "id": "${jsonRpcRequest.id}", + "jsonrpc": "2.0", + "result": { + "snapshotID": "${snapshotID}", + "snapshotTimestamp": "${snapshotTimestamp}", + "ordersInfos": [] + } + } + `, ]; connection.sendUTF(responses[requestNum]); requestNum++; }) as any); }) as any); - const signedOrders = [ - { - makerAddress: '0xa3ece5d5b6319fa785efc10d3112769a46c6e149', - takerAddress: '0x0000000000000000000000000000000000000000', - makerAssetAmount: new BigNumber('1000000000000000000'), - takerAssetAmount: new BigNumber('10000000000000000000000'), - expirationTimeSeconds: new BigNumber('1586340602'), - makerFee: new BigNumber('0'), - takerFee: new BigNumber('0'), - feeRecipientAddress: '0x0000000000000000000000000000000000000000', - senderAddress: '0x0000000000000000000000000000000000000000', - exchangeAddress: '0x080bf510fcbf18b91105470639e9561022937712', - chainId: 1, - salt: new BigNumber( - '41253767178111694375645046549067933145709740457131351457334397888365956743955', - ), - makerAssetData: '0xf47261b0000000000000000000000000e41d2489571d322189246dafa5ebde1f4699f498', - makerFeeAssetData: '0x', - takerAssetData: '0xf47261b0000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2', - takerFeeAssetData: '0xf47261b0000000000000000000000000e41d2489571d322189246dafa5ebde1f4699f498', - signature: - '0x1c0827552a3bde2c72560362950a69f581ae7a1e6fa8c160bb437f3a61002bb96c22b646edd3b103b976db4aa4840a11c13306b2a02a0bb6ce647806c858c238ec02', - }, - ]; const client = new WSClient(`ws://localhost:${SERVER_PORT}`); - const validationResults = await client.addOrdersAsync(signedOrders); - expect(typeof validationResults === 'object').to.equal(true); - expect(validationResults.accepted).to.have.length(1); - expect(validationResults.rejected).to.have.length(0); - expect(BigNumber.isBigNumber(validationResults.accepted[0].signedOrder.makerAssetAmount)).to.equal(true); - expect(BigNumber.isBigNumber(validationResults.accepted[0].signedOrder.takerAssetAmount)).to.equal(true); - expect(BigNumber.isBigNumber(validationResults.accepted[0].signedOrder.makerFee)).to.equal(true); - expect(BigNumber.isBigNumber(validationResults.accepted[0].signedOrder.takerFee)).to.equal(true); - expect(BigNumber.isBigNumber(validationResults.accepted[0].signedOrder.salt)).to.equal(true); - expect(BigNumber.isBigNumber(validationResults.accepted[0].signedOrder.expirationTimeSeconds)).to.equal( - true, - ); - expect(BigNumber.isBigNumber(validationResults.accepted[0].fillableTakerAssetAmount)).to.equal(true); + const perPage = 1; + const getOrdersResponse = await client.getOrdersAsync(perPage); + const orderInfos = getOrdersResponse.ordersInfos; + expect(orderInfos).to.have.length(1); + expect(getOrdersResponse.snapshotID).to.equal('123'); + // tslint:disable-next-line:custom-no-magic-numbers + expect(getOrdersResponse.snapshotTimestamp).to.equal(1257894000); + expect(BigNumber.isBigNumber(orderInfos[0].signedOrder.makerAssetAmount)).to.equal(true); + expect(BigNumber.isBigNumber(orderInfos[0].signedOrder.takerAssetAmount)).to.equal(true); + expect(BigNumber.isBigNumber(orderInfos[0].signedOrder.makerFee)).to.equal(true); + expect(BigNumber.isBigNumber(orderInfos[0].signedOrder.takerFee)).to.equal(true); + expect(BigNumber.isBigNumber(orderInfos[0].signedOrder.salt)).to.equal(true); + expect(BigNumber.isBigNumber(orderInfos[0].signedOrder.expirationTimeSeconds)).to.equal(true); client.destroy(); }); }); - describe('#_subscribeToHeartbeatAsync', async () => { - it('should receive subscription updates', (done: DoneCallback) => { - (async () => { - const wsServer = await setupServerAsync(); - wsServer.on('connect', ((connection: WebSocket.connection) => { - let requestNum = 0; - connection.on('message', (async (message: WSMessage) => { - const jsonRpcRequest = JSON.parse(message.utf8Data); - const responses = [ - // Heartbeat subscription (under-the-hood) - ` - { - "id": "${jsonRpcRequest.id}", - "jsonrpc": "2.0", - "result": "0xab1a3e8af590364c09d0fa6a12103ada" - } - `, - // Requested heartbeat subscription - ` - { - "id": "${jsonRpcRequest.id}", - "jsonrpc": "2.0", - "result": "0xab1a3e8af590364c09d0fa6a12103ada" - } - `, - // Response to unsubscribe - ` - { - "id": "${jsonRpcRequest.id}", - "jsonrpc":"2.0", - "result":true, - } - `, - ]; - connection.sendUTF(responses[requestNum]); - requestNum++; + */ - if (requestNum === 2) { - // tslint:disable-next-line:custom-no-magic-numbers - await sleepAsync(100); + describe('#getStats', () => { + it('Ensure that the stats are correct when no orders have been added', async () => { + const deployment = await startServerAndClientAsync(); + const stats = await deployment.client.getStatsAsync(); - const eventResponse = ` - { - "jsonrpc":"2.0", - "method":"mesh_subscription", - "params": { - "subscription":"0xab1a3e8af590364c09d0fa6a12103ada", - "result":"tick" - } - } - `; - connection.sendUTF(eventResponse); - } - }) as any); - }) as any); + expect(stats.latestBlock).to.not.be.undefined(); + expect(stats.latestBlock.number).to.be.greaterThan(0); - const client = new WSClient(`ws://localhost:${SERVER_PORT}`); + stats.version = ''; + stats.latestBlock = { + number: 0, + hash: '', + }; + + const now = new Date(Date.now()); + const expectedStartOfCurrentUTCDay = `${now.getUTCFullYear()}-${now.getUTCMonth() + + 1}-${now.getUTCDate()}T00:00:00Z`; + + const expectedStats = { + version: '', + pubSubTopic: '/0x-orders/network/1337/version/1', + rendezvous: '/0x-mesh/network/1337/version/1', + peerID: deployment.peerID, + ethereumChainID: 1337, + latestBlock: { + number: 0, + hash: '', + }, + numPeers: 0, + numOrders: 0, + numOrdersIncludingRemoved: 0, + numPinnedOrders: 0, + maxExpirationTime: '115792089237316195423570985008687907853269984665640564039457584007913129639935', + startOfCurrentUTCDay: expectedStartOfCurrentUTCDay, + ethRPCRequestsSentInCurrentUTCDay: 0, + ethRPCRateLimitExpiredRequests: 0, + }; + expect(stats).to.be.deep.eq(expectedStats); + deployment.client.destroy(); + deployment.mesh.stopMesh(); + }); + }); + describe('#_subscribeToHeartbeatAsync', async () => { + it('should receive subscription updates', (done: DoneCallback) => { + (async () => { + const deployment = await startServerAndClientAsync(); const expectToBeCalledOnce = true; const callback = callbackErrorReporter.reportNoErrorCallbackErrors(done, expectToBeCalledOnce)( async (ack: string) => { expect(ack).to.be.equal('tick'); - client.destroy(); + deployment.client.destroy(); + deployment.mesh.stopMesh(); }, ); - await (client as any)._subscribeToHeartbeatAsync(callback); + await (deployment.client as any)._subscribeToHeartbeatAsync(callback); })().catch(done); }); }); + /* describe('#subscribeToOrdersAsync', async () => { it('should receive subscription updates', (done: DoneCallback) => { const timestamp = '2009-11-10T23:00:00Z'; @@ -442,6 +388,7 @@ describe('WSClient', () => { })().catch(done); }); }); + */ describe('#onClose', () => { it('should trigger when connection is closed', (done: DoneCallback) => { // tslint:disable-next-line:no-floating-promises @@ -456,6 +403,7 @@ describe('WSClient', () => { const client = new WSClient(`ws://localhost:${SERVER_PORT}`); client.onClose(() => { client.destroy(); + stopServer(); done(); }); })(); @@ -493,18 +441,20 @@ describe('WSClient', () => { }) as any); }); - const client = new WSClient(`ws://localhost:${SERVER_PORT}`, { reconnectDelay: 100 }); + const client = new WSClient(`ws://localhost:${SERVER_PORT}`, {reconnectDelay: 100}); client.onReconnected(async () => { // We need to add a sleep here so that we leave time for the client // to get connected before destroying it. // tslint:disable-next-line:custom-no-magic-numbers await sleepAsync(100); client.destroy(); + stopServer(); done(); }); })(); }); }); + /* describe('#destroy', async () => { it('should unsubscribe and trigger onClose when close() is called', (done: DoneCallback) => { // tslint:disable-next-line:no-floating-promises From 8218096b6c9d3686352a0c16b848d35207a7a3ab Mon Sep 17 00:00:00 2001 From: Alex Towle Date: Fri, 20 Dec 2019 11:09:36 -0800 Subject: [PATCH 14/50] Brought in some tools to help make valid orders --- rpc/clients/typescript/package.json | 2 + rpc/clients/typescript/test/ws_client_test.ts | 79 +- rpc/clients/typescript/yarn.lock | 1152 ++++++++++++++++- 3 files changed, 1196 insertions(+), 37 deletions(-) diff --git a/rpc/clients/typescript/package.json b/rpc/clients/typescript/package.json index 46b9b2d33..55492c6a3 100644 --- a/rpc/clients/typescript/package.json +++ b/rpc/clients/typescript/package.json @@ -47,6 +47,8 @@ }, "devDependencies": { "@0x/dev-utils": "^3.0.2", + "@0x/contracts-erc20": "^3.0.2", + "@0x/contracts-test-utils": "^5.0.1", "@0x/ts-doc-gen": "^0.0.13", "@0x/tslint-config": "^4.0.0", "@types/mocha": "^2.2.42", diff --git a/rpc/clients/typescript/test/ws_client_test.ts b/rpc/clients/typescript/test/ws_client_test.ts index 68b8b896a..1fa601b58 100644 --- a/rpc/clients/typescript/test/ws_client_test.ts +++ b/rpc/clients/typescript/test/ws_client_test.ts @@ -1,21 +1,88 @@ +import {getContractAddressesForNetworkOrThrow} from '@0x/contract-addresses'; +import {artifacts, DummyERC20TokenContract} from '@0x/contracts-erc20'; +import {blockchainTests, constants, expect, getLatestBlockTimestampAsync, OrderFactory} from '@0x/contracts-test-utils'; import {callbackErrorReporter} from '@0x/dev-utils'; -import {DoneCallback} from '@0x/types'; -import * as chai from 'chai'; +import {assetDataUtils} from '@0x/order-utils'; +import {DoneCallback, SignedOrder} from '@0x/types'; +import {BigNumber} from '@0x/utils'; import {ChildProcessWithoutNullStreams, spawn} from 'child_process'; import 'mocha'; import * as WebSocket from 'websocket'; -import {BigNumber, OrderEvent, WSClient} from '../src/index'; +import {OrderEvent, SignedOrder as MeshSignedOrder, WSClient} from '../src/index'; import {WSMessage} from '../src/types'; import {chaiSetup} from './utils/chai_setup'; import {SERVER_PORT, setupServerAsync, stopServer} from './utils/mock_ws_server'; import {MeshDeployment, startServerAndClientAsync} from './utils/ws_server'; -chaiSetup.configure(); -const expect = chai.expect; +blockchainTests('WSClient', env => { + let orderFactory: OrderFactory; + + async function deployErc20TokenAsync(name: string, symbol: string): Promise { + return DummyERC20TokenContract.deployFrom0xArtifactAsync( + artifacts.DummyERC20Token, + env.provider, + env.txDefaults, + artifacts, + name, + symbol, + new BigNumber(18), + new BigNumber('100e18'), + ); + } + + before(async () => { + const chainId = await env.getChainIdAsync(); + const accounts = await env.getAccountAddressesAsync(); + const [makerAddress] = accounts; + // NOTE(jalextowle): We seem to have an old dependency for `@0x:contract-addresses. + // If possible this should be updated so that we can use `chainId` + // instead of `networkId`. + const networkId = 50; + const exchangeAddress = getContractAddressesForNetworkOrThrow(networkId).exchange; + const erc20ProxyAddress = getContractAddressesForNetworkOrThrow(networkId).erc20Proxy; + const txDefaults = { + ...env.txDefaults, + from: makerAddress, + }; + + const makerToken = await deployErc20TokenAsync('MakerToken', 'MKT'); + const feeToken = await deployErc20TokenAsync('FeeToken', 'FEE'); + + await makerToken.approve(erc20ProxyAddress, new BigNumber('100e18')).awaitTransactionSuccessAsync({ from: makerAddress }); + await feeToken.approve(erc20ProxyAddress, new BigNumber('100e18')).awaitTransactionSuccessAsync({ from: makerAddress }); + + orderFactory = new OrderFactory( + constants.TESTRPC_PRIVATE_KEYS[accounts.indexOf(makerAddress)], + { + ...constants.STATIC_ORDER_PARAMS, + feeRecipientAddress: constants.NULL_ADDRESS, + makerAddress, + exchangeAddress, + chainId, + makerAssetData: assetDataUtils.encodeERC20AssetData(makerToken.address), + takerAssetData: assetDataUtils.encodeERC20AssetData(makerToken.address), + makerFeeAssetData: assetDataUtils.encodeERC20AssetData(feeToken.address), + takerFeeAssetData: assetDataUtils.encodeERC20AssetData(feeToken.address), + }, + ); + }); + + describe('#addOrdersAsync', async () => { + it.only('', async () => { + const deployment = await startServerAndClientAsync(); + // HACK(jalextowle): I'm using the "as any" type loop-hole here because there + // is a conflicting BigNumber dependency between this package and the monorepo. + const order = await orderFactory.newSignedOrderAsync({}); + console.log(order); + const validationResults = await deployment.client.addOrdersAsync([ order as any ]); + console.log(validationResults); + deployment.mesh.stopMesh(); + deployment.client.destroy(); + }); + }); -describe('WSClient', () => { /* describe('#addOrdersAsync', async () => { it('sends a mesh_addOrders request and converts all numerical fields to BigNumbers in returned signedOrders', async () => { diff --git a/rpc/clients/typescript/yarn.lock b/rpc/clients/typescript/yarn.lock index a525d2617..13f42b924 100644 --- a/rpc/clients/typescript/yarn.lock +++ b/rpc/clients/typescript/yarn.lock @@ -13,6 +13,90 @@ lodash "^4.17.11" valid-url "^1.0.9" +"@0x/base-contract@^6.0.2": + version "6.0.2" + resolved "https://registry.yarnpkg.com/@0x/base-contract/-/base-contract-6.0.2.tgz#198bad06398bdb58da1b98a93bf41f4322e9a6cd" + integrity sha512-UR6A0KTOqkOLjzaHRy0++WDaWl3Xn6WuaIoAPk9/LD7vnKTCK+NzohCh3pBRbgkkEylng2000jldbDMZkM5FXA== + dependencies: + "@0x/assert" "^3.0.2" + "@0x/json-schemas" "^5.0.2" + "@0x/utils" "^5.1.1" + "@0x/web3-wrapper" "^7.0.2" + ethereumjs-account "^3.0.0" + ethereumjs-blockstream "^7.0.0" + ethereumjs-util "^5.1.1" + ethereumjs-vm "^4.0.0" + ethers "~4.0.4" + js-sha3 "^0.7.0" + uuid "^3.3.2" + +"@0x/contract-addresses@^4.1.0": + version "4.1.0" + resolved "https://registry.yarnpkg.com/@0x/contract-addresses/-/contract-addresses-4.1.0.tgz#baa09961e9773457adca6988051412937b985cb9" + integrity sha512-scx2Gv6//fBj1Gb3AuqiH6s3qTw1mlcUW6YPp1RnjEGtBPH44cc0PvWmyIeOcCAcEZSVGk8glgTR25QrBAPJnw== + dependencies: + lodash "^4.17.11" + +"@0x/contract-wrappers@^13.2.0": + version "13.2.0" + resolved "https://registry.yarnpkg.com/@0x/contract-wrappers/-/contract-wrappers-13.2.0.tgz#d03e3fd3e70a2b9223ab0409c576378e61dd7ed9" + integrity sha512-XvQFdLIleba6CApbvEzFuHwvvBESzerniWecUjf+1imxOZkqRuxOR8XuvWFSp7XZcU37rRgICABmyK3Csu8Cmw== + dependencies: + "@0x/assert" "^3.0.2" + "@0x/base-contract" "^6.0.2" + "@0x/contract-addresses" "^4.1.0" + "@0x/json-schemas" "^5.0.2" + "@0x/types" "^3.1.1" + "@0x/utils" "^5.1.1" + "@0x/web3-wrapper" "^7.0.2" + ethereum-types "^3.0.0" + ethers "~4.0.4" + +"@0x/contracts-erc20@^3.0.2": + version "3.0.2" + resolved "https://registry.yarnpkg.com/@0x/contracts-erc20/-/contracts-erc20-3.0.2.tgz#46f977997e833ff34e590f51f66784f4e62e0359" + integrity sha512-Y+kJy6abPz6Olho/8Wyi15qshoISS4Kv2KdSqwrhIn/vJUK9SBHoPUoudhDWjt4031H5mz3ccL1GbAkYTJ03eA== + dependencies: + "@0x/base-contract" "^6.0.2" + +"@0x/contracts-test-utils@^5.0.1": + version "5.0.1" + resolved "https://registry.yarnpkg.com/@0x/contracts-test-utils/-/contracts-test-utils-5.0.1.tgz#d61cf2fceefe2931110276f87acf5fa5c26ec0b3" + integrity sha512-jppwcoie7MF+tzrTh02KkPDeEdn4WR/Ih/KOdsbtDzRWxe8GvpP3SVk4eY/g2Ju79elouQXDw+2+opTD/Qq+xw== + dependencies: + "@0x/assert" "^3.0.2" + "@0x/base-contract" "^6.0.2" + "@0x/contract-addresses" "^4.1.0" + "@0x/dev-utils" "^3.0.2" + "@0x/json-schemas" "^5.0.2" + "@0x/order-utils" "^10.0.1" + "@0x/sol-coverage" "^4.0.2" + "@0x/sol-profiler" "^4.0.2" + "@0x/sol-trace" "^3.0.2" + "@0x/subproviders" "^6.0.2" + "@0x/types" "^3.1.1" + "@0x/typescript-typings" "^5.0.1" + "@0x/utils" "^5.1.1" + "@0x/web3-wrapper" "^7.0.2" + "@types/bn.js" "^4.11.0" + "@types/js-combinatorics" "^0.5.29" + "@types/lodash" "4.14.104" + "@types/mocha" "^5.2.7" + "@types/node" "*" + bn.js "^4.11.8" + chai "^4.0.1" + chai-as-promised "^7.1.0" + chai-bignumber "^3.0.0" + decimal.js "^10.2.0" + dirty-chai "^2.0.1" + ethereum-types "^3.0.0" + ethereumjs-util "^5.1.1" + ethers "~4.0.4" + js-combinatorics "^0.5.3" + lodash "^4.17.11" + make-promises-safe "^1.1.0" + mocha "^6.2.0" + "@0x/dev-utils@^3.0.2": version "3.0.2" resolved "https://registry.yarnpkg.com/@0x/dev-utils/-/dev-utils-3.0.2.tgz#23aef789cb24cc4488078b400bea84a53a5befb3" @@ -42,6 +126,126 @@ jsonschema "^1.2.0" lodash.values "^4.3.0" +"@0x/order-utils@^10.0.1": + version "10.0.1" + resolved "https://registry.yarnpkg.com/@0x/order-utils/-/order-utils-10.0.1.tgz#5cd887e70e76df3117051582a01c74087c4cb9fa" + integrity sha512-NZsDciNSQtn3ARPmWc+pNK62GK2miELKryhPwwQzqpQs7bi8RSCTf26TmTMtYeXUg3t0gVfhfRD8FGBur53N9A== + dependencies: + "@0x/assert" "^3.0.2" + "@0x/contract-wrappers" "^13.2.0" + "@0x/json-schemas" "^5.0.2" + "@0x/utils" "^5.1.1" + "@0x/web3-wrapper" "^7.0.2" + ethereumjs-util "^5.1.1" + ethers "~4.0.4" + lodash "^4.17.11" + +"@0x/sol-compiler@^4.0.2": + version "4.0.2" + resolved "https://registry.yarnpkg.com/@0x/sol-compiler/-/sol-compiler-4.0.2.tgz#187268fdf1140f4f4613996663f349e7abe62cd3" + integrity sha512-ZoQRajpevMkf/XHtxXheHG7f9+VV8wiqnBF99B9suSFGLifD/0teUZMjuuSnyTdCmwygmzymb5OrSc2v00hXLg== + dependencies: + "@0x/assert" "^3.0.2" + "@0x/json-schemas" "^5.0.2" + "@0x/sol-resolver" "^3.0.2" + "@0x/types" "^3.1.1" + "@0x/typescript-typings" "^5.0.1" + "@0x/utils" "^5.1.1" + "@0x/web3-wrapper" "^7.0.2" + "@types/yargs" "^11.0.0" + chalk "^2.3.0" + chokidar "^3.0.2" + ethereum-types "^3.0.0" + ethereumjs-util "^5.1.1" + lodash "^4.17.11" + mkdirp "^0.5.1" + pluralize "^7.0.0" + require-from-string "^2.0.1" + semver "5.5.0" + solc "^0.5.5" + source-map-support "^0.5.0" + web3-eth-abi "^1.0.0-beta.24" + yargs "^10.0.3" + +"@0x/sol-coverage@^4.0.2": + version "4.0.2" + resolved "https://registry.yarnpkg.com/@0x/sol-coverage/-/sol-coverage-4.0.2.tgz#c1465abb8e7d3a9000ed2c49f77a1f3aa0604ba1" + integrity sha512-cQd2PTYhwtCuXQx0LxtQroEkb5aYAsEaZowa+Bmuqvxo+kcd8pFA6yyfp7H+S2mArwyFkhjWEa77mdpcIb4qqA== + dependencies: + "@0x/sol-tracing-utils" "^7.0.2" + "@0x/subproviders" "^6.0.2" + "@0x/typescript-typings" "^5.0.1" + "@types/minimatch" "^3.0.3" + ethereum-types "^3.0.0" + lodash "^4.17.11" + minimatch "^3.0.4" + web3-provider-engine "14.0.6" + +"@0x/sol-profiler@^4.0.2": + version "4.0.2" + resolved "https://registry.yarnpkg.com/@0x/sol-profiler/-/sol-profiler-4.0.2.tgz#58f7dcc9d45efc3408bc982f5faf19b0d88cdebc" + integrity sha512-76Hi+ZfG72av1EFJKyhZSLS/52MDXs0S1kX1CJTybE8TPer+zIHjMNg8FTxllBAAyjzDFUw4nP7t9l0QiN9q+Q== + dependencies: + "@0x/sol-tracing-utils" "^7.0.2" + "@0x/subproviders" "^6.0.2" + "@0x/typescript-typings" "^5.0.1" + "@0x/utils" "^5.1.1" + ethereum-types "^3.0.0" + ethereumjs-util "^5.1.1" + lodash "^4.17.11" + web3-provider-engine "14.0.6" + +"@0x/sol-resolver@^3.0.2": + version "3.0.2" + resolved "https://registry.yarnpkg.com/@0x/sol-resolver/-/sol-resolver-3.0.2.tgz#2f89df2f049d5ea8501ee1fc2a1d0866a0b3c761" + integrity sha512-+FseY6gmifzrrtnHt70hNezmCDavVd69MqT/r2uyxXtgz2F3oegkPBTBYo4/sxrdiSA+2tYFcqGHNiMDtx6ELA== + dependencies: + "@0x/types" "^3.1.1" + "@0x/typescript-typings" "^5.0.1" + lodash "^4.17.11" + +"@0x/sol-trace@^3.0.2": + version "3.0.2" + resolved "https://registry.yarnpkg.com/@0x/sol-trace/-/sol-trace-3.0.2.tgz#a2c29201a6991f272a125422f82fd97a8f3164e1" + integrity sha512-OW9Zy3NhFZ2myg+uuyFb6ApHIHMcXj6bs5//pwojM20zKygakLxg89WTUN2xa4BVkP/FKgz6rLjrPGrdAQmziQ== + dependencies: + "@0x/sol-tracing-utils" "^7.0.2" + "@0x/subproviders" "^6.0.2" + "@0x/typescript-typings" "^5.0.1" + chalk "^2.3.0" + ethereum-types "^3.0.0" + ethereumjs-util "^5.1.1" + lodash "^4.17.11" + loglevel "^1.6.1" + web3-provider-engine "14.0.6" + +"@0x/sol-tracing-utils@^7.0.2": + version "7.0.2" + resolved "https://registry.yarnpkg.com/@0x/sol-tracing-utils/-/sol-tracing-utils-7.0.2.tgz#12f008b2b680586cd44f2d6b5f993a57604fbca3" + integrity sha512-xuY9ttOpnjVt8LYQKPMZfn2D67vby/o43znjBLgSbWtZDRaZ43yBd3PQe1mZS6oxM8PmnW6S9O74fLWqol0rtg== + dependencies: + "@0x/dev-utils" "^3.0.2" + "@0x/sol-compiler" "^4.0.2" + "@0x/sol-resolver" "^3.0.2" + "@0x/subproviders" "^6.0.2" + "@0x/typescript-typings" "^5.0.1" + "@0x/utils" "^5.1.1" + "@0x/web3-wrapper" "^7.0.2" + "@types/solidity-parser-antlr" "^0.2.3" + chalk "^2.3.0" + ethereum-types "^3.0.0" + ethereumjs-util "^5.1.1" + ethers "~4.0.4" + glob "^7.1.2" + istanbul "^0.4.5" + lodash "^4.17.11" + loglevel "^1.6.1" + mkdirp "^0.5.1" + rimraf "^2.6.2" + semaphore-async-await "^1.5.1" + solc "^0.5.5" + solidity-parser-antlr "^0.4.2" + "@0x/subproviders@^6.0.2": version "6.0.2" resolved "https://registry.yarnpkg.com/@0x/subproviders/-/subproviders-6.0.2.tgz#2d00a62d0db81d865dedd0ae43d7594c061e033e" @@ -113,7 +317,18 @@ bignumber.js "~9.0.0" ethereum-types "^3.0.0" -"@0x/typescript-typings@^4.2.2", "@0x/typescript-typings@^4.3.0": +"@0x/typescript-typings@^4.2.2": + version "4.2.4" + resolved "https://registry.yarnpkg.com/@0x/typescript-typings/-/typescript-typings-4.2.4.tgz#0858639ddfdf7e9e1a3f9fd8f7d8f2e8ebfdce85" + integrity sha512-yIg8q/bj9+Y0OzNuq59D3JDe4OoQR3bU2QKy+7d8NV6CIfA0GqfWWS+JFdUB45S45qT5P0EmThh/szQ7zuW4oQ== + dependencies: + "@types/bn.js" "^4.11.0" + "@types/react" "*" + bignumber.js "~8.0.2" + ethereum-types "^2.1.4" + popper.js "1.14.3" + +"@0x/typescript-typings@^4.3.0": version "4.3.0" resolved "https://registry.yarnpkg.com/@0x/typescript-typings/-/typescript-typings-4.3.0.tgz#4813a996ac5101841d1c22f4aa1738ab56168857" integrity sha512-6IH2JyKyl33+40tJ5rEhaMPTS2mVuRvoNmoXlCd/F0GPYSsDHMGObIXOkx+Qsw5SyCmqNs/3CTLeeCCqiSUdaw== @@ -136,18 +351,18 @@ popper.js "1.14.3" "@0x/utils@^4.3.3": - version "4.5.2" - resolved "https://registry.yarnpkg.com/@0x/utils/-/utils-4.5.2.tgz#6cc89f2d0dda341e0fb4e76049a35abfb67a4ac5" - integrity sha512-NWfNcvyiOhouk662AWxX0ZVe4ednBZJS9WZT/by3DBCY/WvN7WHMpEy9M5rBCxO+JJndLYeB5eBztDp7W+Ytkw== + version "4.4.2" + resolved "https://registry.yarnpkg.com/@0x/utils/-/utils-4.4.2.tgz#8c7899f0f768859a92e805cfa93e57f921cf6122" + integrity sha512-kR0KncZP/m+V5HDUlNNOgcQXmnLA2e7lfovUxNI1XWB8djXDlB42ukqK8A4KRtxlt+A8CsXR64OcXvO8c6wQgA== dependencies: - "@0x/types" "^2.4.3" - "@0x/typescript-typings" "^4.3.0" + "@0x/types" "^2.4.1" + "@0x/typescript-typings" "^4.2.4" "@types/node" "*" abortcontroller-polyfill "^1.1.9" bignumber.js "~8.0.2" chalk "^2.3.0" detect-node "2.0.3" - ethereum-types "^2.1.6" + ethereum-types "^2.1.4" ethereumjs-util "^5.1.1" ethers "~4.0.4" isomorphic-fetch "2.2.1" @@ -289,7 +504,17 @@ dependencies: "@types/node" "*" -"@types/minimatch@3.0.3": +"@types/js-combinatorics@^0.5.29": + version "0.5.31" + resolved "https://registry.yarnpkg.com/@types/js-combinatorics/-/js-combinatorics-0.5.31.tgz#a61a3f625009e2e693492c158ac8afb243efecad" + integrity sha512-0JGeWYJdHIpX2gttyxqnzpKwK3KmyFZysWI8+fnXdiOo/kEFxDMdo/pwhrtBrHvYgRAsDNJCSQzgA+m8vbHvFw== + +"@types/lodash@4.14.104": + version "4.14.104" + resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.104.tgz#53ee2357fa2e6e68379341d92eb2ecea4b11bb80" + integrity sha512-ufQcVg4daO8xQ5kopxRHanqFdL4AI7ondQkV+2f+7mz3gvp0LkBx2zBRC6hfs3T87mzQFmf5Fck7Fi145Ul6NQ== + +"@types/minimatch@3.0.3", "@types/minimatch@^3.0.3": version "3.0.3" resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d" integrity sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA== @@ -299,6 +524,11 @@ resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-2.2.48.tgz#3523b126a0b049482e1c3c11877460f76622ffab" integrity sha512-nlK/iyETgafGli8Zh9zJVCTicvU3iajSkRwOh3Hhiva598CMqNJ4NcVCGMTGKpGpTYj/9R8RLzS9NAykSSCqGw== +"@types/mocha@^5.2.7": + version "5.2.7" + resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-5.2.7.tgz#315d570ccb56c53452ff8638738df60726d5b6ea" + integrity sha512-NYrtPht0wGzhwe9+/idPaBB+TqkY9AhTvOLMkThm0IoEfLaiVQZwBwyJ5puCkO3AUCWrmcoePjp2mbFocKy4SQ== + "@types/node@*": version "12.6.8" resolved "https://registry.yarnpkg.com/@types/node/-/node-12.6.8.tgz#e469b4bf9d1c9832aee4907ba8a051494357c12c" @@ -327,6 +557,11 @@ "@types/prop-types" "*" csstype "^2.2.0" +"@types/solidity-parser-antlr@^0.2.3": + version "0.2.3" + resolved "https://registry.yarnpkg.com/@types/solidity-parser-antlr/-/solidity-parser-antlr-0.2.3.tgz#bb2d9c6511bf483afe4fc3e2714da8a924e59e3f" + integrity sha512-FoSyZT+1TTaofbEtGW1oC9wHND1YshvVeHerME/Jh6gIdHbBAWFW8A97YYqO/dpHcFjIwEPEepX0Efl2ckJgwA== + "@types/uuid@^3.4.3": version "3.4.5" resolved "https://registry.yarnpkg.com/@types/uuid/-/uuid-3.4.5.tgz#d4dc10785b497a1474eae0ba7f0cb09c0ddfd6eb" @@ -349,6 +584,21 @@ "@types/events" "*" "@types/node" "*" +"@types/yargs@^11.0.0": + version "11.1.3" + resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-11.1.3.tgz#33c8ebf05f78f1edeb249c1cde1a42ae57f5664e" + integrity sha512-moBUF6X8JsK5MbLZGP3vCfG/TVHZHsaePj3EimlLKp8+ESUjGjpXalxyn90a2L9fTM2ZGtW4swb6Am1DvVRNGA== + +abbrev@1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" + integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q== + +abbrev@1.0.x: + version "1.0.9" + resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.0.9.tgz#91b4792588a7738c25f35dd6f63752a2f8776135" + integrity sha1-kbR5JYinc4wl813W9jdSovh3YTU= + abortcontroller-polyfill@^1.1.9: version "1.3.0" resolved "https://registry.yarnpkg.com/abortcontroller-polyfill/-/abortcontroller-polyfill-1.3.0.tgz#de69af32ae926c210b7efbcc29bf644ee4838b00" @@ -410,6 +660,16 @@ ajv@^6.5.5: json-schema-traverse "^0.4.1" uri-js "^4.2.2" +amdefine@>=0.0.4: + version "1.0.1" + resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5" + integrity sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU= + +ansi-colors@3.2.3: + version "3.2.3" + resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-3.2.3.tgz#57d35b8686e851e2cc04c403f1c00203976a1813" + integrity sha512-LEHHyuhlPY3TmuUYMh2oz89lTShfvgbmzaBcxve9t/9Wuy7Dwf4yoAKcND7KFT1HAQfqZ12qtc+DUrBMeKF9nw== + ansi-regex@^2.0.0: version "2.1.1" resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" @@ -420,12 +680,17 @@ ansi-regex@^3.0.0: resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998" integrity sha1-7QMXwyIGT3lGbAKWa922Bas32Zg= +ansi-regex@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.0.tgz#8b9f8f08cf1acb843756a839ca8c7e3168c51997" + integrity sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg== + ansi-styles@^2.2.1: version "2.2.1" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" integrity sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4= -ansi-styles@^3.2.1: +ansi-styles@^3.2.0, ansi-styles@^3.2.1: version "3.2.1" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== @@ -437,6 +702,14 @@ any-promise@1.3.0, any-promise@^1.0.0, any-promise@^1.3.0: resolved "https://registry.yarnpkg.com/any-promise/-/any-promise-1.3.0.tgz#abc6afeedcea52e809cdc0376aed3ce39635d17f" integrity sha1-q8av7tzqUugJzcA3au0845Y10X8= +anymatch@~3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.1.tgz#c55ecf02185e2469259399310c173ce31233b142" + integrity sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg== + dependencies: + normalize-path "^3.0.0" + picomatch "^2.0.4" + aproba@^1.0.3: version "1.2.0" resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a" @@ -500,6 +773,11 @@ async-limiter@~1.0.0: resolved "https://registry.yarnpkg.com/async-limiter/-/async-limiter-1.0.0.tgz#78faed8c3d074ab81f22b4e985d79e8738f720f8" integrity sha512-jp/uFnooOiO+L211eZOoSyzpOITMXx1rBITauYykG3BRYPu8h0UcxsPNB04RR5vo4Tyz3+ay17tR6JVf9qzYWg== +async@1.x, async@^1.4.2: + version "1.5.2" + resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a" + integrity sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo= + async@2.6.2: version "2.6.2" resolved "https://registry.yarnpkg.com/async/-/async-2.6.2.tgz#18330ea7e6e313887f5d2f2a904bac6fe4dd5381" @@ -507,11 +785,6 @@ async@2.6.2: dependencies: lodash "^4.17.11" -async@^1.4.2: - version "1.5.2" - resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a" - integrity sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo= - async@^2.0.1, async@^2.1.2, async@^2.4.0, async@^2.5.0, async@^2.6.1: version "2.6.3" resolved "https://registry.yarnpkg.com/async/-/async-2.6.3.tgz#d72625e2344a3656e3a3ad4fa749fa83299d82ff" @@ -1106,6 +1379,11 @@ bignumber.js@~9.0.0: resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-9.0.0.tgz#805880f84a329b5eac6e7cb6f8274b6d82bdf075" integrity sha512-t/OYhhJ2SD+YGBQcjY8GzzDHEk9f3nerxjtfa6tlMXfe7frs/WozhvCNoGvpM0P3bNf3Gq5ZRMlGr5f3r4/N8A== +binary-extensions@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.0.0.tgz#23c0df14f6a88077f5f986c0d167ec03c3d5537c" + integrity sha512-Phlt0plgpIIBOGTT/ehfFnbNlfsDEiqmzE2KRXoX1bLIlir4X/MR+zSyBEkL05ffWgnRSf/DXv+WrUAVr93/ow== + bindings@^1.2.1, bindings@^1.4.0, bindings@^1.5.0: version "1.5.0" resolved "https://registry.yarnpkg.com/bindings/-/bindings-1.5.0.tgz#10353c9e945334bc0511a6d90b38fbc7c9c504df" @@ -1201,6 +1479,13 @@ brace-expansion@^1.1.7: balanced-match "^1.0.0" concat-map "0.0.1" +braces@~3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" + integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== + dependencies: + fill-range "^7.0.1" + brorand@^1.0.1: version "1.1.0" resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" @@ -1211,6 +1496,11 @@ browser-stdout@1.3.0: resolved "https://registry.yarnpkg.com/browser-stdout/-/browser-stdout-1.3.0.tgz#f351d32969d32fa5d7a5567154263d928ae3bd1f" integrity sha1-81HTKWnTL6XXpVZxVCY9korjvR8= +browser-stdout@1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/browser-stdout/-/browser-stdout-1.3.1.tgz#baa559ee14ced73452229bad7326467c61fabd60" + integrity sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw== + browserify-aes@^1.0.0, browserify-aes@^1.0.4, browserify-aes@^1.0.6: version "1.2.0" resolved "https://registry.yarnpkg.com/browserify-aes/-/browserify-aes-1.2.0.tgz#326734642f403dabc3003209853bb70ad428ef48" @@ -1384,6 +1674,11 @@ camelcase@^4.1.0: resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd" integrity sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0= +camelcase@^5.0.0: + version "5.3.1" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" + integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== + caniuse-lite@^1.0.30000844: version "1.0.30000984" resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000984.tgz#dc96c3c469e9bcfc6ad5bdd24c77ec918ea76fe0" @@ -1429,7 +1724,7 @@ chalk@^1.1.3: strip-ansi "^3.0.0" supports-color "^2.0.0" -chalk@^2.3.0: +chalk@^2.0.1, chalk@^2.3.0: version "2.4.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== @@ -1450,6 +1745,21 @@ checkpoint-store@^1.1.0: dependencies: functional-red-black-tree "^1.0.1" +chokidar@^3.0.2: + version "3.3.1" + resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.3.1.tgz#c84e5b3d18d9a4d77558fef466b1bf16bbeb3450" + integrity sha512-4QYCEWOcK3OJrxwvyyAOxFuhpvOVCYkr33LPfFNBjAD/w3sEzWsp2BUOkI4l9bHvWioAd0rc6NlHUOEaWkTeqg== + dependencies: + anymatch "~3.1.1" + braces "~3.0.2" + glob-parent "~5.1.0" + is-binary-path "~2.1.0" + is-glob "~4.0.1" + normalize-path "~3.0.0" + readdirp "~3.3.0" + optionalDependencies: + fsevents "~2.1.2" + chownr@^1.0.1: version "1.1.2" resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.1.2.tgz#a18f1e0b269c8a6a5d3c86eb298beb14c3dd7bf6" @@ -1472,6 +1782,15 @@ cliui@^4.0.0: strip-ansi "^4.0.0" wrap-ansi "^2.0.0" +cliui@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-5.0.0.tgz#deefcfdb2e800784aa34f46fa08e06851c7bbbc5" + integrity sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA== + dependencies: + string-width "^3.1.0" + strip-ansi "^5.2.0" + wrap-ansi "^5.1.0" + clone@2.1.2, clone@^2.0.0: version "2.1.2" resolved "https://registry.yarnpkg.com/clone/-/clone-2.1.2.tgz#1b7f4b9f591f1e8f83670401600345a02887435f" @@ -1509,11 +1828,21 @@ combined-stream@^1.0.6, combined-stream@~1.0.6: dependencies: delayed-stream "~1.0.0" +command-exists@^1.2.8: + version "1.2.8" + resolved "https://registry.yarnpkg.com/command-exists/-/command-exists-1.2.8.tgz#715acefdd1223b9c9b37110a149c6392c2852291" + integrity sha512-PM54PkseWbiiD/mMsbvW351/u+dafwTJ0ye2qB60G1aGQP9j3xK2gmMDc+R34L3nDtx4qMCitXT75mkbkGJDLw== + commander@2.11.0: version "2.11.0" resolved "https://registry.yarnpkg.com/commander/-/commander-2.11.0.tgz#157152fd1e7a6c8d98a5b715cf376df928004563" integrity sha512-b0553uYA5YAEGgyYIGYROzKQ7X5RAqedkfjiZxwi0kL1g3bOaBNNZfYkzt/CL0umgD5wc9Jec2FbB98CjkMRvQ== +commander@3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/commander/-/commander-3.0.2.tgz#6837c3fb677ad9933d1cfba42dd14d5117d6b39e" + integrity sha512-Gar0ASD4BDyKC4hl4DwHqDrmvjoxWKZigVnAbn5H1owvm4CxCPdb0HQDehwNYMJpla5+M2tPmPARzhtYuwpHow== + commander@^2.12.1, commander@^2.8.1, commander@~2.20.0: version "2.20.0" resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.0.tgz#d58bb2b5c1ee8f87b0d340027e9e94e222c5a422" @@ -1580,6 +1909,11 @@ cookiejar@^2.1.1: resolved "https://registry.yarnpkg.com/cookiejar/-/cookiejar-2.1.2.tgz#dd8a235530752f988f9a0844f3fc589e3111125c" integrity sha512-Mw+adcfzPxcPeI+0WlvRrr/3lGVO0bD75SxX6811cxSh1Wbxx7xZBGK1eVtDf6si8rg2lhnUjsVLMFMfbRIuwA== +core-js-pure@^3.0.1: + version "3.6.0" + resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.6.0.tgz#c86e14d9316659af04dd54266addc9271f6164f8" + integrity sha512-+YSSo7UFDFuVvMUr1HVFYArb22pYIKRDISBo6V50kRuS0MsXgsuDWmJYFu6dJsJupr77S486xRnDkr/BWQQonw== + core-js@^2.4.0, core-js@^2.5.0: version "2.6.9" resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.9.tgz#6b4b214620c834152e179323727fc19741b084f2" @@ -1704,11 +2038,16 @@ debug@3.2.6: dependencies: ms "^2.1.1" -decamelize@^1.1.1: +decamelize@^1.1.1, decamelize@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" integrity sha1-9lNNFRSCabIDUue+4m9QH5oZEpA= +decimal.js@^10.2.0: + version "10.2.0" + resolved "https://registry.yarnpkg.com/decimal.js/-/decimal.js-10.2.0.tgz#39466113a9e036111d02f82489b5fd6b0b5ed231" + integrity sha512-vDPw+rDgn3bZe1+F/pyEwb1oMG2XTlRVgAa6B4KccTEpYgF8w6eQllVbQcfIJnZyvzFtFpxnpGtx8dd7DJp/Rw== + decode-uri-component@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" @@ -1791,6 +2130,11 @@ deep-extend@^0.6.0: resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac" integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA== +deep-is@~0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" + integrity sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ= + deferred-leveldown@~1.2.1: version "1.2.2" resolved "https://registry.yarnpkg.com/deferred-leveldown/-/deferred-leveldown-1.2.2.tgz#3acd2e0b75d1669924bc0a4b642851131173e1eb" @@ -1806,7 +2150,7 @@ deferred-leveldown@~4.0.0: abstract-leveldown "~5.0.0" inherits "^2.0.3" -define-properties@^1.1.2: +define-properties@^1.1.2, define-properties@^1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.3.tgz#cf88da6cbee26fe6db7094f61d870cbd84cee9f1" integrity sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ== @@ -1868,7 +2212,7 @@ diff@3.3.1: resolved "https://registry.yarnpkg.com/diff/-/diff-3.3.1.tgz#aa8567a6eed03c531fc89d3f711cd0e5259dec75" integrity sha512-MKPHZDMB0o6yHyDryUOScqZibp914ksXwAMYMTHj6KO8UeKsRYNJD3oNCKjTqZon+V488P7N/HzXF8t7ZR95ww== -diff@^3.2.0: +diff@3.5.0, diff@^3.2.0: version "3.5.0" resolved "https://registry.yarnpkg.com/diff/-/diff-3.5.0.tgz#800c0dd1e0a8bfbc95835c202ad220fe317e5a12" integrity sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA== @@ -1955,6 +2299,11 @@ elliptic@^6.0.0, elliptic@^6.4.0, elliptic@^6.4.1: minimalistic-assert "^1.0.0" minimalistic-crypto-utils "^1.0.0" +emoji-regex@^7.0.1: + version "7.0.3" + resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-7.0.3.tgz#933a04052860c85e83c122479c4748a8e4c72156" + integrity sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA== + encodeurl@~1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" @@ -1992,6 +2341,23 @@ errno@~0.1.1: dependencies: prr "~1.0.1" +es-abstract@^1.17.0-next.1: + version "1.17.0-next.1" + resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.17.0-next.1.tgz#94acc93e20b05a6e96dacb5ab2f1cb3a81fc2172" + integrity sha512-7MmGr03N7Rnuid6+wyhD9sHNE2n4tFSwExnU2lQl3lIo2ShXWGePY80zYaoMOmILWv57H0amMjZGHNzzGG70Rw== + dependencies: + es-to-primitive "^1.2.1" + function-bind "^1.1.1" + has "^1.0.3" + has-symbols "^1.0.1" + is-callable "^1.1.4" + is-regex "^1.0.4" + object-inspect "^1.7.0" + object-keys "^1.1.1" + object.assign "^4.1.0" + string.prototype.trimleft "^2.1.0" + string.prototype.trimright "^2.1.0" + es-abstract@^1.5.0: version "1.13.0" resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.13.0.tgz#ac86145fdd5099d8dd49558ccba2eaf9b88e24e9" @@ -2013,6 +2379,15 @@ es-to-primitive@^1.2.0: is-date-object "^1.0.1" is-symbol "^1.0.2" +es-to-primitive@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.1.tgz#e55cd4c9cdc188bcefb03b366c736323fc5c898a" + integrity sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA== + dependencies: + is-callable "^1.1.4" + is-date-object "^1.0.1" + is-symbol "^1.0.2" + es5-ext@^0.10.35, es5-ext@^0.10.50, es5-ext@~0.10.14: version "0.10.50" resolved "https://registry.yarnpkg.com/es5-ext/-/es5-ext-0.10.50.tgz#6d0e23a0abdb27018e5ac4fd09b412bc5517a778" @@ -2054,11 +2429,33 @@ escape-string-regexp@1.0.5, escape-string-regexp@^1.0.2, escape-string-regexp@^1 resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= +escodegen@1.8.x: + version "1.8.1" + resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.8.1.tgz#5a5b53af4693110bebb0867aa3430dd3b70a1018" + integrity sha1-WltTr0aTEQvrsIZ6o0MN07cKEBg= + dependencies: + esprima "^2.7.1" + estraverse "^1.9.1" + esutils "^2.0.2" + optionator "^0.8.1" + optionalDependencies: + source-map "~0.2.0" + +esprima@2.7.x, esprima@^2.7.1: + version "2.7.3" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-2.7.3.tgz#96e3b70d5779f6ad49cd032673d1c312767ba581" + integrity sha1-luO3DVd59q1JzQMmc9HDEnZ7pYE= + esprima@^4.0.0: version "4.0.1" resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== +estraverse@^1.9.1: + version "1.9.3" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-1.9.3.tgz#af67f2dc922582415950926091a4005d29c9bb44" + integrity sha1-r2fy3JIlgkFZUJJgkaQAXSnJu0Q= + esutils@^1.1.6: version "1.1.6" resolved "https://registry.yarnpkg.com/esutils/-/esutils-1.1.6.tgz#c01ccaa9ae4b897c6d0c3e210ae52f3c7a844375" @@ -2202,6 +2599,13 @@ ethashjs@~0.0.7: ethereumjs-util "^4.0.1" miller-rabin "^4.0.0" +ethereum-bloom-filters@^1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/ethereum-bloom-filters/-/ethereum-bloom-filters-1.0.6.tgz#9cdebb3ec20de96ec4a434c6bad6ea5a513037aa" + integrity sha512-dE9CGNzgOOsdh7msZirvv8qjHtnHpvBlKe2647kM8v+yeF71IRso55jpojemvHV+jMjr48irPWxMRaHuOWzAFA== + dependencies: + js-sha3 "^0.8.0" + ethereum-common@0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/ethereum-common/-/ethereum-common-0.2.0.tgz#13bf966131cce1eeade62a1b434249bb4cb120ca" @@ -2243,7 +2647,7 @@ ethereumjs-abi@0.6.7, "ethereumjs-abi@git+https://github.com/ethereumjs/ethereum bn.js "^4.11.8" ethereumjs-util "^6.0.0" -ethereumjs-account@3.0.0: +ethereumjs-account@3.0.0, ethereumjs-account@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/ethereumjs-account/-/ethereumjs-account-3.0.0.tgz#728f060c8e0c6e87f1e987f751d3da25422570a9" integrity sha512-WP6BdscjiiPkQfF9PVfMcwx/rDvfZTjFKY0Uwc09zSQr9JfIVH87dYIJu0gNhBhpmovV4yq295fdllS925fnBA== @@ -2283,6 +2687,17 @@ ethereumjs-block@^1.2.2, ethereumjs-block@^1.4.1, ethereumjs-block@^1.6.0: ethereumjs-util "^5.0.0" merkle-patricia-tree "^2.1.2" +ethereumjs-block@^2.2.1, ethereumjs-block@~2.2.2: + version "2.2.2" + resolved "https://registry.yarnpkg.com/ethereumjs-block/-/ethereumjs-block-2.2.2.tgz#c7654be7e22df489fda206139ecd63e2e9c04965" + integrity sha512-2p49ifhek3h2zeg/+da6XpdFR3GlqY3BIEiqxGF8j9aSRIgkb7M1Ky+yULBKJOu8PAZxfhsYA+HxUk2aCQp3vg== + dependencies: + async "^2.0.1" + ethereumjs-common "^1.5.0" + ethereumjs-tx "^2.1.1" + ethereumjs-util "^5.0.0" + merkle-patricia-tree "^2.1.2" + ethereumjs-blockchain@^3.4.0: version "3.4.0" resolved "https://registry.yarnpkg.com/ethereumjs-blockchain/-/ethereumjs-blockchain-3.4.0.tgz#92240da6ecd86b3d8d324df69510b381f26c966b" @@ -2299,11 +2714,41 @@ ethereumjs-blockchain@^3.4.0: safe-buffer "^5.1.2" semaphore "^1.1.0" +ethereumjs-blockchain@^4.0.2: + version "4.0.3" + resolved "https://registry.yarnpkg.com/ethereumjs-blockchain/-/ethereumjs-blockchain-4.0.3.tgz#e013034633a30ad2006728e8e2b21956b267b773" + integrity sha512-0nJWbyA+Gu0ZKZr/cywMtB/77aS/4lOVsIKbgUN2sFQYscXO5rPbUfrEe7G2Zhjp86/a0VqLllemDSTHvx3vZA== + dependencies: + async "^2.6.1" + ethashjs "~0.0.7" + ethereumjs-block "~2.2.2" + ethereumjs-common "^1.5.0" + ethereumjs-util "~6.1.0" + flow-stoplight "^1.0.0" + level-mem "^3.0.1" + lru-cache "^5.1.1" + rlp "^2.2.2" + semaphore "^1.1.0" + +ethereumjs-blockstream@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/ethereumjs-blockstream/-/ethereumjs-blockstream-7.0.0.tgz#b8d7b6257dd1100bc6ddb36d6bef58c2490f9999" + integrity sha512-lt3uLKDEfNHEqqnl/+W0aC7xp2y7JEsgZsJMZ958CNrYIJH9tZ7oa8npwV2M0KhGlfzmJsyJIpvV/Lvb2mh0tA== + dependencies: + immutable "3.8.2" + source-map-support "0.5.6" + uuid "3.2.1" + ethereumjs-common@^1.1.0: version "1.3.0" resolved "https://registry.yarnpkg.com/ethereumjs-common/-/ethereumjs-common-1.3.0.tgz#ca7d152b615d5e1851fcf184d062bf14c62c18e6" integrity sha512-/jdFHyHOIS3FiAnunwRZ+oNulFtNNSHyWii3PaNHReOUmBAxij7KMyZLKh0tE16JEsJtXOVz1ceYuq++ILzv+g== +ethereumjs-common@^1.3.2, ethereumjs-common@^1.5.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/ethereumjs-common/-/ethereumjs-common-1.5.0.tgz#d3e82fc7c47c0cef95047f431a99485abc9bb1cd" + integrity sha512-SZOjgK1356hIY7MRj3/ma5qtfr/4B5BL+G4rP/XSMYr2z1H5el4RX5GReYCKmQmYI/nSBmRnwrZ17IfHuG0viQ== + ethereumjs-tx@1.3.7, ethereumjs-tx@^1.1.1, ethereumjs-tx@^1.2.0, ethereumjs-tx@^1.2.2, ethereumjs-tx@^1.3.3, ethereumjs-tx@^1.3.5: version "1.3.7" resolved "https://registry.yarnpkg.com/ethereumjs-tx/-/ethereumjs-tx-1.3.7.tgz#88323a2d875b10549b8347e09f4862b546f3d89a" @@ -2312,7 +2757,15 @@ ethereumjs-tx@1.3.7, ethereumjs-tx@^1.1.1, ethereumjs-tx@^1.2.0, ethereumjs-tx@^ ethereum-common "^0.0.18" ethereumjs-util "^5.0.0" -ethereumjs-util@6.1.0, ethereumjs-util@^6.0.0: +ethereumjs-tx@^2.1.1: + version "2.1.2" + resolved "https://registry.yarnpkg.com/ethereumjs-tx/-/ethereumjs-tx-2.1.2.tgz#5dfe7688bf177b45c9a23f86cf9104d47ea35fed" + integrity sha512-zZEK1onCeiORb0wyCXUvg94Ve5It/K6GD1K+26KfFKodiBiS6d9lfCXlUKGBBdQ+bv7Day+JK0tj1K+BeNFRAw== + dependencies: + ethereumjs-common "^1.5.0" + ethereumjs-util "^6.0.0" + +ethereumjs-util@6.1.0, ethereumjs-util@^6.0.0, ethereumjs-util@~6.1.0: version "6.1.0" resolved "https://registry.yarnpkg.com/ethereumjs-util/-/ethereumjs-util-6.1.0.tgz#e9c51e5549e8ebd757a339cc00f5380507e799c8" integrity sha512-URESKMFbDeJxnAxPppnk2fN6Y3BIatn9fwn76Lm8bQlt+s52TpG8dN9M66MLPuRAiAOIqL3dfwqWJf0sd0fL0Q== @@ -2397,6 +2850,27 @@ ethereumjs-vm@^2.1.0, ethereumjs-vm@^2.3.4, ethereumjs-vm@^2.6.0: rustbn.js "~0.2.0" safe-buffer "^5.1.1" +ethereumjs-vm@^4.0.0: + version "4.1.1" + resolved "https://registry.yarnpkg.com/ethereumjs-vm/-/ethereumjs-vm-4.1.1.tgz#ba6f565fd7788a0e7db494fa2096d45f9ea0802b" + integrity sha512-Bh2avDY9Hyon9TvJ/fmkdyd5JDnmTudLJ5oKhmTfXn0Jjq7UzP4YRNp7e5PWoWXSmdXAGXU9W0DXK5TV9Qy/NQ== + dependencies: + async "^2.1.2" + async-eventemitter "^0.2.2" + core-js-pure "^3.0.1" + ethereumjs-account "^3.0.0" + ethereumjs-block "^2.2.1" + ethereumjs-blockchain "^4.0.2" + ethereumjs-common "^1.3.2" + ethereumjs-tx "^2.1.1" + ethereumjs-util "~6.1.0" + fake-merkle-patricia-tree "^1.0.1" + functional-red-black-tree "^1.0.1" + merkle-patricia-tree "^2.3.2" + rustbn.js "~0.2.0" + safe-buffer "^5.1.1" + util.promisify "^1.0.0" + ethereumjs-wallet@0.6.3: version "0.6.3" resolved "https://registry.yarnpkg.com/ethereumjs-wallet/-/ethereumjs-wallet-0.6.3.tgz#b0eae6f327637c2aeb9ccb9047b982ac542e6ab1" @@ -2412,6 +2886,22 @@ ethereumjs-wallet@0.6.3: utf8 "^3.0.0" uuid "^3.3.2" +ethers@4.0.0-beta.3: + version "4.0.0-beta.3" + resolved "https://registry.yarnpkg.com/ethers/-/ethers-4.0.0-beta.3.tgz#15bef14e57e94ecbeb7f9b39dd0a4bd435bc9066" + integrity sha512-YYPogooSknTwvHg3+Mv71gM/3Wcrx+ZpCzarBj3mqs9njjRkrOo2/eufzhHloOCo3JSoNI4TQJJ6yU5ABm3Uog== + dependencies: + "@types/node" "^10.3.2" + aes-js "3.0.0" + bn.js "^4.4.0" + elliptic "6.3.3" + hash.js "1.1.3" + js-sha3 "0.5.7" + scrypt-js "2.0.3" + setimmediate "1.0.4" + uuid "2.0.1" + xmlhttprequest "1.8.0" + ethers@~4.0.4: version "4.0.33" resolved "https://registry.yarnpkg.com/ethers/-/ethers-4.0.33.tgz#f7b88d2419d731a39aefc37843a3f293e396f918" @@ -2558,6 +3048,11 @@ fast-json-stable-stringify@^2.0.0: resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2" integrity sha1-1RQsDK7msRifh9OnYREGT4bIu/I= +fast-levenshtein@~2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" + integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc= + fd-slicer@~1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/fd-slicer/-/fd-slicer-1.1.0.tgz#25c7c89cb1f9077f8891bbe61d8f390eae256f1e" @@ -2592,6 +3087,13 @@ file-uri-to-path@1.0.0: resolved "https://registry.yarnpkg.com/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz#553a7b8446ff6f684359c445f1e37a05dacc33dd" integrity sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw== +fill-range@^7.0.1: + version "7.0.1" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40" + integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ== + dependencies: + to-regex-range "^5.0.1" + finalhandler@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.1.2.tgz#b7e7d000ffd11938d0fdb053506f6ebabe9f587d" @@ -2605,6 +3107,13 @@ finalhandler@~1.1.2: statuses "~1.5.0" unpipe "~1.0.0" +find-up@3.0.0, find-up@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-3.0.0.tgz#49169f1d7993430646da61ecc5ae355c21c97b73" + integrity sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg== + dependencies: + locate-path "^3.0.0" + find-up@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" @@ -2612,6 +3121,13 @@ find-up@^2.1.0: dependencies: locate-path "^2.0.0" +flat@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/flat/-/flat-4.1.0.tgz#090bec8b05e39cba309747f1d588f04dbaf98db2" + integrity sha512-Px/TiLIznH7gEDlPXcUD4KnBusa6kR6ayRUVcnEAbreRIuhkqow/mun59BuRXwoYk7ZQOLW1ZM05ilIvK38hFw== + dependencies: + is-buffer "~2.0.3" + flow-stoplight@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/flow-stoplight/-/flow-stoplight-1.0.0.tgz#4a292c5bcff8b39fa6cc0cb1a853d86f27eeff7b" @@ -2653,6 +3169,17 @@ fs-constants@^1.0.0: resolved "https://registry.yarnpkg.com/fs-constants/-/fs-constants-1.0.0.tgz#6be0de9be998ce16af8afc24497b9ee9b7ccd9ad" integrity sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow== +fs-extra@^0.30.0: + version "0.30.0" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-0.30.0.tgz#f233ffcc08d4da7d432daa449776989db1df93f0" + integrity sha1-8jP/zAjU2n1DLapEl3aYnbHfk/A= + dependencies: + graceful-fs "^4.1.2" + jsonfile "^2.1.0" + klaw "^1.0.0" + path-is-absolute "^1.0.0" + rimraf "^2.2.8" + fs-extra@^2.0.0, fs-extra@^2.1.2: version "2.1.2" resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-2.1.2.tgz#046c70163cef9aad46b0e4a7fa467fb22d71de35" @@ -2685,6 +3212,11 @@ fs.realpath@^1.0.0: resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= +fsevents@~2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.1.2.tgz#4c0a1fb34bc68e543b4b82a9ec392bfbda840805" + integrity sha512-R4wDiBwZ0KzpgOWetKDug1FZcYhqYnUYKtfZYt4mD5SBz76q0KR4Q9o7GIPamsVPGmW3EYPPJ0dOOjvx32ldZA== + fstream@^1.0.12, fstream@^1.0.8: version "1.0.12" resolved "https://registry.yarnpkg.com/fstream/-/fstream-1.0.12.tgz#4e8ba8ee2d48be4f7d0de505455548eae5932045" @@ -2757,6 +3289,11 @@ get-caller-file@^1.0.1: resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.3.tgz#f978fa4c90d1dfe7ff2d6beda2a515e713bdcf4a" integrity sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w== +get-caller-file@^2.0.1: + version "2.0.5" + resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" + integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== + get-func-name@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/get-func-name/-/get-func-name-2.0.0.tgz#ead774abee72e20409433a066366023dd6887a41" @@ -2787,6 +3324,13 @@ github-from-package@0.0.0: resolved "https://registry.yarnpkg.com/github-from-package/-/github-from-package-0.0.0.tgz#97fb5d96bfde8973313f20e8288ef9a167fa64ce" integrity sha1-l/tdlr/eiXMxPyDoKI75oWf6ZM4= +glob-parent@~5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.0.tgz#5f4c1d1e748d30cd73ad2944b3577a81b081e8c2" + integrity sha512-qjtRgnIVmOfnKUE3NJAQEdk+lKrxfw8t5ke7SXtfMTHcjsBfOfWXCQfdb30zfDoZQ2IRSIiidmjtbHZPZ++Ihw== + dependencies: + is-glob "^4.0.1" + glob@7.1.2: version "7.1.2" resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15" @@ -2799,6 +3343,29 @@ glob@7.1.2: once "^1.3.0" path-is-absolute "^1.0.0" +glob@7.1.3: + version "7.1.3" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.3.tgz#3960832d3f1574108342dafd3a67b332c0969df1" + integrity sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.0.4" + once "^1.3.0" + path-is-absolute "^1.0.0" + +glob@^5.0.15: + version "5.0.15" + resolved "https://registry.yarnpkg.com/glob/-/glob-5.0.15.tgz#1bc936b9e02f4a603fcc222ecf7633d30b8b93b1" + integrity sha1-G8k2ueAvSmA/zCIuz3Yz0wuLk7E= + dependencies: + inflight "^1.0.4" + inherits "2" + minimatch "2 || 3" + once "^1.3.0" + path-is-absolute "^1.0.0" + glob@^7.0.0, glob@^7.1.1, glob@^7.1.3, glob@^7.1.4, glob@~7.1.4: version "7.1.4" resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.4.tgz#aa608a2f6c577ad357e1ae5a5c26d9a8d1969255" @@ -2811,6 +3378,18 @@ glob@^7.0.0, glob@^7.1.1, glob@^7.1.3, glob@^7.1.4, glob@~7.1.4: once "^1.3.0" path-is-absolute "^1.0.0" +glob@^7.1.2: + version "7.1.6" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6" + integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.0.4" + once "^1.3.0" + path-is-absolute "^1.0.0" + global@~4.3.0: version "4.3.2" resolved "https://registry.yarnpkg.com/global/-/global-4.3.2.tgz#e76989268a6c74c38908b1305b10fc0e394e9d0f" @@ -2849,6 +3428,11 @@ graceful-fs@^4.1.10, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0: resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.0.tgz#8d8fdc73977cb04104721cb53666c1ca64cd328b" integrity sha512-jpSvDPV4Cq/bgtpndIWbI5hmYxhQGHPC4d4cqBPb4DLniCfhJokdXhwhaDuLBGLQdvvRum/UiX6ECVIPvDXqdg== +graceful-fs@^4.1.9: + version "4.2.3" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.3.tgz#4a12ff1b60376ef09862c2093edd908328be8423" + integrity sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ== + "graceful-readlink@>= 1.0.0": version "1.0.1" resolved "https://registry.yarnpkg.com/graceful-readlink/-/graceful-readlink-1.0.1.tgz#4cafad76bc62f02fa039b2f94e9a3dd3a391a725" @@ -2859,6 +3443,22 @@ growl@1.10.3: resolved "https://registry.yarnpkg.com/growl/-/growl-1.10.3.tgz#1926ba90cf3edfe2adb4927f5880bc22c66c790f" integrity sha512-hKlsbA5Vu3xsh1Cg3J7jSmX/WaW6A5oBeqzM88oNbCRQFz+zUaXm6yxS4RVytp1scBoJzSYl4YAEOQIt6O8V1Q== +growl@1.10.5: + version "1.10.5" + resolved "https://registry.yarnpkg.com/growl/-/growl-1.10.5.tgz#f2735dc2283674fa67478b10181059355c369e5e" + integrity sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA== + +handlebars@^4.0.1: + version "4.5.3" + resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.5.3.tgz#5cf75bd8714f7605713511a56be7c349becb0482" + integrity sha512-3yPecJoJHK/4c6aZhSvxOyG4vJKDshV36VHp0iVCDVh7o9w2vwi3NSnL2MMPj3YdduqaBcu7cGbggJQM0br9xA== + dependencies: + neo-async "^2.6.0" + optimist "^0.6.1" + source-map "^0.6.1" + optionalDependencies: + uglify-js "^3.1.4" + handlebars@^4.1.2: version "4.1.2" resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.1.2.tgz#b6b37c1ced0306b221e094fc7aca3ec23b131b67" @@ -2890,6 +3490,11 @@ has-ansi@^2.0.0: dependencies: ansi-regex "^2.0.0" +has-flag@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-1.0.0.tgz#9d9e793165ce017a00f00418c43f942a7b1d11fa" + integrity sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo= + has-flag@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-2.0.0.tgz#e8207af1cc7b30d446cc70b734b5e8be18f88d51" @@ -2910,6 +3515,11 @@ has-symbols@^1.0.0: resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.0.tgz#ba1a8f1af2a0fc39650f5c850367704122063b44" integrity sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q= +has-symbols@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.1.tgz#9f5214758a44196c406d9bd76cebf81ec2dd31e8" + integrity sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg== + has-to-string-tag-x@^1.2.0: version "1.4.1" resolved "https://registry.yarnpkg.com/has-to-string-tag-x/-/has-to-string-tag-x-1.4.1.tgz#a045ab383d7b4b2012a00148ab0aa5f290044d4d" @@ -2975,6 +3585,11 @@ he@1.1.1: resolved "https://registry.yarnpkg.com/he/-/he-1.1.1.tgz#93410fd21b009735151f8868c2f271f3427e23fd" integrity sha1-k0EP0hsAlzUVH4howvJx80J+I/0= +he@1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f" + integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw== + heap@0.2.6: version "0.2.6" resolved "https://registry.yarnpkg.com/heap/-/heap-0.2.6.tgz#087e1f10b046932fc8594dd9e6d378afc9d1e5ac" @@ -3055,6 +3670,11 @@ immediate@^3.2.3, immediate@~3.2.3: resolved "https://registry.yarnpkg.com/immediate/-/immediate-3.2.3.tgz#d140fa8f614659bd6541233097ddaac25cdd991c" integrity sha1-0UD6j2FGWb1lQSMwl92qwlzdmRw= +immutable@3.8.2: + version "3.8.2" + resolved "https://registry.yarnpkg.com/immutable/-/immutable-3.8.2.tgz#c2439951455bb39913daf281376f1530e104adf3" + integrity sha1-wkOZUUVbs5kT2vKBN28VMOEErfM= + inflight@^1.0.4: version "1.0.6" resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" @@ -3100,6 +3720,18 @@ ipaddr.js@1.9.0: resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.9.0.tgz#37df74e430a0e47550fe54a2defe30d8acd95f65" integrity sha512-M4Sjn6N/+O6/IXSJseKqHoFc+5FdGJ22sXqnjTpdZweHK64MzEPAyQZyEU3R/KRv2GLoa7nNtg/C2Ev6m7z+eA== +is-binary-path@~2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09" + integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw== + dependencies: + binary-extensions "^2.0.0" + +is-buffer@~2.0.3: + version "2.0.4" + resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-2.0.4.tgz#3e572f23c8411a5cfd9557c849e3665e0b290623" + integrity sha512-Kq1rokWXOPXWuaMAqZiJW4XxsmD9zGx9q4aePabbn3qCRGedtH7Cm+zV8WETitMfu1wdh+Rvd6w5egwSngUX2A== + is-callable@^1.1.3, is-callable@^1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.4.tgz#1e1adf219e1eeb684d691f9d6a05ff0d30a24d75" @@ -3110,6 +3742,11 @@ is-date-object@^1.0.1: resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.1.tgz#9aa20eb6aeebbff77fbd33e74ca01b33581d3a16" integrity sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY= +is-extglob@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" + integrity sha1-qIwCU1eR8C7TfHahueqXc8gz+MI= + is-finite@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.0.2.tgz#cc6677695602be550ef11e8b4aa6305342b6d0aa" @@ -3139,6 +3776,13 @@ is-function@^1.0.1: resolved "https://registry.yarnpkg.com/is-function/-/is-function-1.0.1.tgz#12cfb98b65b57dd3d193a3121f5f6e2f437602b5" integrity sha1-Es+5i2W1fdPRk6MSH19uL0N2ArU= +is-glob@^4.0.1, is-glob@~4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.1.tgz#7567dbe9f2f5e2467bc77ab83c4a29482407a5dc" + integrity sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg== + dependencies: + is-extglob "^2.1.1" + is-hex-prefixed@1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/is-hex-prefixed/-/is-hex-prefixed-1.0.0.tgz#7d8d37e6ad77e5d127148913c573e082d777f554" @@ -3149,6 +3793,11 @@ is-natural-number@^4.0.1: resolved "https://registry.yarnpkg.com/is-natural-number/-/is-natural-number-4.0.1.tgz#ab9d76e1db4ced51e35de0c72ebecf09f734cde8" integrity sha1-q5124dtM7VHjXeDHLr7PCfc0zeg= +is-number@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" + integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== + is-object@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/is-object/-/is-object-1.0.1.tgz#8952688c5ec2ffd6b03ecc85e769e02903083470" @@ -3216,6 +3865,26 @@ isstream@~0.1.2: resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" integrity sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo= +istanbul@^0.4.5: + version "0.4.5" + resolved "https://registry.yarnpkg.com/istanbul/-/istanbul-0.4.5.tgz#65c7d73d4c4da84d4f3ac310b918fb0b8033733b" + integrity sha1-ZcfXPUxNqE1POsMQuRj7C4Azczs= + dependencies: + abbrev "1.0.x" + async "1.x" + escodegen "1.8.x" + esprima "2.7.x" + glob "^5.0.15" + handlebars "^4.0.1" + js-yaml "3.x" + mkdirp "0.5.x" + nopt "3.x" + once "1.x" + resolve "1.1.x" + supports-color "^3.1.0" + which "^1.1.1" + wordwrap "^1.0.0" + isurl@^1.0.0-alpha5: version "1.0.0" resolved "https://registry.yarnpkg.com/isurl/-/isurl-1.0.0.tgz#b27f4f49f3cdaa3ea44a0a5b7f3462e6edc39d67" @@ -3229,11 +3898,21 @@ jquery@^3.4.1: resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.4.1.tgz#714f1f8d9dde4bdfa55764ba37ef214630d80ef2" integrity sha512-36+AdBzCL+y6qjw5Tx7HgzeGCzC81MDDgaUP8ld2zhx58HdqXGoBd+tHdrBMiyjGQs0Hxs/MLZTu/eHNJJuWPw== +js-combinatorics@^0.5.3: + version "0.5.4" + resolved "https://registry.yarnpkg.com/js-combinatorics/-/js-combinatorics-0.5.4.tgz#c92916b8f8171b64ecd7c4435b72cfabc803c756" + integrity sha512-PCqUIKGqv/Kjao1G4GE/Yni6QkCP2nWW3KnxL+8IGWPlP18vQpT8ufGMf4XUAAY8JHEryUCJbf51zG8329ntMg== + js-sha3@0.5.7: version "0.5.7" resolved "https://registry.yarnpkg.com/js-sha3/-/js-sha3-0.5.7.tgz#0d4ffd8002d5333aabaf4a23eed2f6374c9f28e7" integrity sha1-DU/9gALVMzqrr0oj7tL2N0yfKOc= +js-sha3@0.8.0, js-sha3@^0.8.0: + version "0.8.0" + resolved "https://registry.yarnpkg.com/js-sha3/-/js-sha3-0.8.0.tgz#b9b7a5da73afad7dedd0f8c463954cbde6818840" + integrity sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q== + js-sha3@^0.6.1: version "0.6.1" resolved "https://registry.yarnpkg.com/js-sha3/-/js-sha3-0.6.1.tgz#5b89f77a7477679877f58c4a075240934b1f95c0" @@ -3254,7 +3933,7 @@ js-tokens@^3.0.2: resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b" integrity sha1-mGbfOVECEw449/mWvOtlRDIJwls= -js-yaml@^3.7.0: +js-yaml@3.13.1, js-yaml@3.x, js-yaml@^3.7.0: version "3.13.1" resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.13.1.tgz#aff151b30bfdfa8e49e05da22e7415e9dfa37847" integrity sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw== @@ -3380,6 +4059,13 @@ keccakjs@^0.2.0, keccakjs@^0.2.1: browserify-sha3 "^0.0.4" sha3 "^1.2.2" +klaw@^1.0.0: + version "1.3.1" + resolved "https://registry.yarnpkg.com/klaw/-/klaw-1.3.1.tgz#4088433b46b3b1ba259d78785d8e96f73ba02439" + integrity sha1-QIhDO0azsbolnXh4XY6W9zugJDk= + optionalDependencies: + graceful-fs "^4.1.9" + lcid@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/lcid/-/lcid-1.0.0.tgz#308accafa0bc483a3867b4b6f2b9506251d1b835" @@ -3516,6 +4202,14 @@ levelup@^1.2.1: semver "~5.4.1" xtend "~4.0.0" +levn@~0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" + integrity sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4= + dependencies: + prelude-ls "~1.1.2" + type-check "~0.3.2" + locate-path@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" @@ -3524,6 +4218,14 @@ locate-path@^2.0.0: p-locate "^2.0.0" path-exists "^3.0.0" +locate-path@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-3.0.0.tgz#dbec3b3ab759758071b58fe59fc41871af21400e" + integrity sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A== + dependencies: + p-locate "^3.0.0" + path-exists "^3.0.0" + lodash.values@^4.3.0: version "4.3.0" resolved "https://registry.yarnpkg.com/lodash.values/-/lodash.values-4.3.0.tgz#a3a6c2b0ebecc5c2cba1c17e6e620fe81b53d347" @@ -3539,6 +4241,18 @@ lodash@^4.17.15: resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548" integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A== +log-symbols@2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-2.2.0.tgz#5740e1c5d6f0dfda4ad9323b5332107ef6b4c40a" + integrity sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg== + dependencies: + chalk "^2.0.1" + +loglevel@^1.6.1: + version "1.6.6" + resolved "https://registry.yarnpkg.com/loglevel/-/loglevel-1.6.6.tgz#0ee6300cc058db6b3551fa1c4bf73b83bb771312" + integrity sha512-Sgr5lbboAUBo3eXCSPL4/KoVz3ROKquOjcctxmHIt+vol2DrqTQe3SwkKKuYhEiWB5kYa13YyopJ69deJ1irzQ== + looper@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/looper/-/looper-2.0.0.tgz#66cd0c774af3d4fedac53794f742db56da8f09ec" @@ -3660,6 +4374,11 @@ memdown@~3.0.0: ltgt "~2.2.0" safe-buffer "~5.1.1" +memorystream@^0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/memorystream/-/memorystream-0.3.1.tgz#86d7090b30ce455d63fbae12dda51a47ddcaf9b2" + integrity sha1-htcJCzDORV1j+64S3aUaR93K+bI= + merge-descriptors@1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61" @@ -3736,7 +4455,7 @@ minimalistic-crypto-utils@^1.0.0, minimalistic-crypto-utils@^1.0.1: resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a" integrity sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo= -minimatch@^3.0.0, minimatch@^3.0.4: +"minimatch@2 || 3", minimatch@3.0.4, minimatch@^3.0.0, minimatch@^3.0.4: version "3.0.4" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== @@ -3765,7 +4484,7 @@ mkdirp-promise@^5.0.1: dependencies: mkdirp "*" -mkdirp@*, mkdirp@0.5.1, "mkdirp@>=0.5 0", mkdirp@^0.5.1: +mkdirp@*, mkdirp@0.5.1, mkdirp@0.5.x, "mkdirp@>=0.5 0", mkdirp@^0.5.1: version "0.5.1" resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" integrity sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM= @@ -3788,6 +4507,35 @@ mocha@^4.1.0: mkdirp "0.5.1" supports-color "4.4.0" +mocha@^6.2.0: + version "6.2.2" + resolved "https://registry.yarnpkg.com/mocha/-/mocha-6.2.2.tgz#5d8987e28940caf8957a7d7664b910dc5b2fea20" + integrity sha512-FgDS9Re79yU1xz5d+C4rv1G7QagNGHZ+iXF81hO8zY35YZZcLEsJVfFolfsqKFWunATEvNzMK0r/CwWd/szO9A== + dependencies: + ansi-colors "3.2.3" + browser-stdout "1.3.1" + debug "3.2.6" + diff "3.5.0" + escape-string-regexp "1.0.5" + find-up "3.0.0" + glob "7.1.3" + growl "1.10.5" + he "1.2.0" + js-yaml "3.13.1" + log-symbols "2.2.0" + minimatch "3.0.4" + mkdirp "0.5.1" + ms "2.1.1" + node-environment-flags "1.0.5" + object.assign "4.1.0" + strip-json-comments "2.0.1" + supports-color "6.0.0" + which "1.3.1" + wide-align "1.1.3" + yargs "13.3.0" + yargs-parser "13.1.1" + yargs-unparser "1.6.0" + mock-fs@^4.1.0: version "4.10.1" resolved "https://registry.yarnpkg.com/mock-fs/-/mock-fs-4.10.1.tgz#50a07a20114a6cdb119f35762f61f46266a1e323" @@ -3864,6 +4612,14 @@ node-abi@^2.7.0: dependencies: semver "^5.4.1" +node-environment-flags@1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/node-environment-flags/-/node-environment-flags-1.0.5.tgz#fa930275f5bf5dae188d6192b24b4c8bbac3d76a" + integrity sha512-VNYPRfGfmZLx0Ye20jWzHUjyTW/c+6Wq+iLhDzUI4XmhrDd9l/FozXV3F2xOaXjvp0co0+v1YSR3CMP6g+VvLQ== + dependencies: + object.getownpropertydescriptors "^2.0.3" + semver "^5.7.0" + node-fetch@2.1.2: version "2.1.2" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.1.2.tgz#ab884e8e7e57e38a944753cec706f788d1768bb5" @@ -3891,6 +4647,18 @@ noop-logger@^0.1.1: resolved "https://registry.yarnpkg.com/noop-logger/-/noop-logger-0.1.1.tgz#94a2b1633c4f1317553007d8966fd0e841b6a4c2" integrity sha1-lKKxYzxPExdVMAfYlm/Q6EG2pMI= +nopt@3.x: + version "3.0.6" + resolved "https://registry.yarnpkg.com/nopt/-/nopt-3.0.6.tgz#c6465dbf08abcd4db359317f79ac68a646b28ff9" + integrity sha1-xkZdvwirzU2zWTF/eaxopkayj/k= + dependencies: + abbrev "1" + +normalize-path@^3.0.0, normalize-path@~3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" + integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== + npm-run-path@^2.0.0: version "2.0.2" resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" @@ -3931,12 +4699,17 @@ object-assign@^4, object-assign@^4.0.0, object-assign@^4.0.1, object-assign@^4.1 resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM= +object-inspect@^1.7.0: + version "1.7.0" + resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.7.0.tgz#f4f6bd181ad77f006b5ece60bd0b6f398ff74a67" + integrity sha512-a7pEHdh1xKIAgTySUGgLMx/xwDZskN1Ud6egYYN3EdRW4ZMPNEDUTF+hwy2LUC+Bl+SyLXANnwz/jyh/qutKUw== + object-inspect@~1.6.0: version "1.6.0" resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.6.0.tgz#c70b6cbf72f274aab4c34c0c82f5167bf82cf15b" integrity sha512-GJzfBZ6DgDAmnuaM3104jR4s1Myxr3Y3zfIyN4z3UdqN69oSRacNK8UhnobDdC+7J2AHCjGwxQubNJfE70SXXQ== -object-keys@^1.0.12: +object-keys@^1.0.11, object-keys@^1.0.12, object-keys@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e" integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== @@ -3946,6 +4719,24 @@ object-keys@~0.4.0: resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-0.4.0.tgz#28a6aae7428dd2c3a92f3d95f21335dd204e0336" integrity sha1-KKaq50KN0sOpLz2V8hM13SBOAzY= +object.assign@4.1.0, object.assign@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.0.tgz#968bf1100d7956bb3ca086f006f846b3bc4008da" + integrity sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w== + dependencies: + define-properties "^1.1.2" + function-bind "^1.1.1" + has-symbols "^1.0.0" + object-keys "^1.0.11" + +object.getownpropertydescriptors@^2.0.3: + version "2.1.0" + resolved "https://registry.yarnpkg.com/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.0.tgz#369bf1f9592d8ab89d712dced5cb81c7c5352649" + integrity sha512-Z53Oah9A3TdLoblT7VKJaTDdXdT+lQO+cNpKVnya5JDe9uLvzu1YyY1yFDFrcxrlRgWrEFH0jJtD/IbuwjcEVg== + dependencies: + define-properties "^1.1.3" + es-abstract "^1.17.0-next.1" + oboe@2.1.3: version "2.1.3" resolved "https://registry.yarnpkg.com/oboe/-/oboe-2.1.3.tgz#2b4865dbd46be81225713f4e9bfe4bcf4f680a4f" @@ -3960,7 +4751,7 @@ on-finished@~2.3.0: dependencies: ee-first "1.1.1" -once@^1.3.0, once@^1.3.1, once@^1.4.0: +once@1.x, once@^1.3.0, once@^1.3.1, once@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= @@ -3975,6 +4766,18 @@ optimist@^0.6.1: minimist "~0.0.1" wordwrap "~0.0.2" +optionator@^0.8.1: + version "0.8.3" + resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.3.tgz#84fa1d036fe9d3c7e21d99884b601167ec8fb495" + integrity sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA== + dependencies: + deep-is "~0.1.3" + fast-levenshtein "~2.0.6" + levn "~0.3.0" + prelude-ls "~1.1.2" + type-check "~0.3.2" + word-wrap "~1.2.3" + os-homedir@^1.0.0, os-homedir@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" @@ -3989,7 +4792,7 @@ os-locale@^2.0.0: lcid "^1.0.0" mem "^1.1.0" -os-tmpdir@^1.0.1: +os-tmpdir@^1.0.1, os-tmpdir@~1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" integrity sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ= @@ -4011,6 +4814,13 @@ p-limit@^1.1.0: dependencies: p-try "^1.0.0" +p-limit@^2.0.0: + version "2.2.1" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.2.1.tgz#aa07a788cc3151c939b5131f63570f0dd2009537" + integrity sha512-85Tk+90UCVWvbDavCLKPOLC9vvY8OwEX/RtKF+/1OADJMVlFfEHOiMTPVyxg7mk/dKa+ipdHm0OUkTvCpMTuwg== + dependencies: + p-try "^2.0.0" + p-locate@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43" @@ -4018,6 +4828,13 @@ p-locate@^2.0.0: dependencies: p-limit "^1.1.0" +p-locate@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-3.0.0.tgz#322d69a05c0264b25997d9f40cd8a891ab0064a4" + integrity sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ== + dependencies: + p-limit "^2.0.0" + p-timeout@^1.1.1: version "1.2.1" resolved "https://registry.yarnpkg.com/p-timeout/-/p-timeout-1.2.1.tgz#5eb3b353b7fce99f101a1038880bb054ebbea386" @@ -4030,6 +4847,11 @@ p-try@^1.0.0: resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" integrity sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M= +p-try@^2.0.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" + integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== + parse-asn1@^5.0.0: version "5.1.4" resolved "https://registry.yarnpkg.com/parse-asn1/-/parse-asn1-5.1.4.tgz#37f6628f823fbdeb2273b4d540434a22f3ef1fcc" @@ -4106,6 +4928,11 @@ performance-now@^2.1.0: resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns= +picomatch@^2.0.4, picomatch@^2.0.7: + version "2.1.1" + resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.1.1.tgz#ecdfbea7704adb5fe6fb47f9866c4c0e15e905c5" + integrity sha512-OYMyqkKzK7blWO/+XZYP6w8hH0LDvkBvdvKukti+7kqYFCiEAk+gI3DWnryapc0Dau05ugGTy0foQ6mqn4AHYA== + pify@^2.3.0: version "2.3.0" resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" @@ -4128,6 +4955,11 @@ pinkie@^2.0.0: resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" integrity sha1-clVrgM+g1IqXToDnckjoDtT3+HA= +pluralize@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-7.0.0.tgz#298b89df8b93b0221dbf421ad2b1b1ea23fc6777" + integrity sha512-ARhBOdzS3e41FbkW/XWrTEtukqqLoK5+Z/4UeDaLuSW+39JPeFgs4gCGqsrJHVZX0fUrx//4OF0K1CUGwlIFow== + popper.js@1.14.3: version "1.14.3" resolved "https://registry.yarnpkg.com/popper.js/-/popper.js-1.14.3.tgz#1438f98d046acf7b4d78cd502bf418ac64d4f095" @@ -4160,6 +4992,11 @@ precond@0.2: resolved "https://registry.yarnpkg.com/precond/-/precond-0.2.3.tgz#aa9591bcaa24923f1e0f4849d240f47efc1075ac" integrity sha1-qpWRvKokkj8eD0hJ0kD0fvwQdaw= +prelude-ls@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" + integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ= + prepend-http@^1.0.1: version "1.0.4" resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc" @@ -4411,6 +5248,13 @@ readable-stream@~1.0.15: isarray "0.0.1" string_decoder "~0.10.x" +readdirp@~3.3.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.3.0.tgz#984458d13a1e42e2e9f5841b129e162f369aff17" + integrity sha512-zz0pAkSPOXXm1viEwygWIPSPkcBYjW1xU5j/JBh5t9bGCJwa6f9+BJa6VaB2g+b55yVrmXzqkyLf4xaWYM0IkQ== + dependencies: + picomatch "^2.0.7" + rechoir@^0.6.2: version "0.6.2" resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.6.2.tgz#85204b54dba82d5742e28c96756ef43af50e3384" @@ -4501,16 +5345,31 @@ require-directory@^2.1.1: resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= +require-from-string@^2.0.0, require-from-string@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909" + integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== + require-main-filename@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1" integrity sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE= +require-main-filename@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b" + integrity sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg== + requires-port@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff" integrity sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8= +resolve@1.1.x: + version "1.1.7" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b" + integrity sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs= + resolve@^1.1.6, resolve@^1.3.2, resolve@~1.11.1: version "1.11.1" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.11.1.tgz#ea10d8110376982fef578df8fc30b9ac30a07a3e" @@ -4532,6 +5391,13 @@ rimraf@2, rimraf@^2.6.3: dependencies: glob "^7.1.3" +rimraf@^2.2.8, rimraf@^2.6.2: + version "2.7.1" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec" + integrity sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w== + dependencies: + glob "^7.1.3" + ripemd160@^2.0.0, ripemd160@^2.0.1: version "2.0.2" resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c" @@ -4548,6 +5414,13 @@ rlp@^2.0.0, rlp@^2.2.1: bn.js "^4.11.1" safe-buffer "^5.1.1" +rlp@^2.2.2: + version "2.2.4" + resolved "https://registry.yarnpkg.com/rlp/-/rlp-2.2.4.tgz#d6b0e1659e9285fc509a5d169a9bd06f704951c1" + integrity sha512-fdq2yYCWpAQBhwkZv+Z8o/Z4sPmYm1CUq6P7n6lVTOdb949CnqA0sndXal5C1NleSVSZm6q5F3iEbauyVln/iw== + dependencies: + bn.js "^4.11.1" + rustbn.js@~0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/rustbn.js/-/rustbn.js-0.2.0.tgz#8082cb886e707155fd1cb6f23bd591ab8d55d0ca" @@ -4582,6 +5455,11 @@ safe-event-emitter@^1.0.1: resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== +scrypt-js@2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/scrypt-js/-/scrypt-js-2.0.3.tgz#bb0040be03043da9a012a2cea9fc9f852cfc87d4" + integrity sha1-uwBAvgMEPamgEqLOqfyfhSz8h9Q= + scrypt-js@2.0.4: version "2.0.4" resolved "https://registry.yarnpkg.com/scrypt-js/-/scrypt-js-2.0.4.tgz#32f8c5149f0797672e551c07e230f834b6af5f16" @@ -4654,11 +5532,21 @@ semaphore@>=1.0.1, semaphore@^1.0.3, semaphore@^1.1.0: resolved "https://registry.yarnpkg.com/semaphore/-/semaphore-1.1.0.tgz#aaad8b86b20fe8e9b32b16dc2ee682a8cd26a8aa" integrity sha512-O4OZEaNtkMd/K0i6js9SL+gqy0ZCBMgUvlSqHKi4IBdjhe7wB8pwztUk1BbZ1fmrvpwFrPbHzqd2w5pTcJH6LA== +semver@5.5.0: + version "5.5.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.0.tgz#dc4bbc7a6ca9d916dee5d43516f0092b58f7b8ab" + integrity sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA== + semver@^5.3.0, semver@^5.4.1: version "5.7.0" resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.0.tgz#790a7cf6fea5459bac96110b29b60412dc8ff96b" integrity sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA== +semver@^5.5.0, semver@^5.7.0: + version "5.7.1" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" + integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== + semver@~5.4.1: version "5.4.1" resolved "https://registry.yarnpkg.com/semver/-/semver-5.4.1.tgz#e059c09d8571f0540823733433505d3a2f00b18e" @@ -4807,6 +5695,25 @@ slash@^1.0.0: resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55" integrity sha1-xB8vbDn8FtHNF61LXYlhFK5HDVU= +solc@^0.5.5: + version "0.5.15" + resolved "https://registry.yarnpkg.com/solc/-/solc-0.5.15.tgz#f674ce93d4d04a86b65a4393657edf03b2f26028" + integrity sha512-uI+7XtBu/0CXRc8IMjzxbh0haLwaBF32VxAkkks06zEk+mVcsQbHdjvojXX6zQYtZVuXdVYPVccoIjEhvvqKnQ== + dependencies: + command-exists "^1.2.8" + commander "3.0.2" + fs-extra "^0.30.0" + js-sha3 "0.8.0" + memorystream "^0.3.1" + require-from-string "^2.0.0" + semver "^5.5.0" + tmp "0.0.33" + +solidity-parser-antlr@^0.4.2: + version "0.4.11" + resolved "https://registry.yarnpkg.com/solidity-parser-antlr/-/solidity-parser-antlr-0.4.11.tgz#af43e1f13b3b88309a875455f5d6e565b05ee5f1" + integrity sha512-4jtxasNGmyC0midtjH/lTFPZYvTTUMy6agYcF+HoMnzW8+cqo3piFrINb4ZCzpPW+7tTVFCGa5ubP34zOzeuMg== + source-map-support@0.5.12: version "0.5.12" resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.12.tgz#b4f3b10d51857a5af0138d3ce8003b201613d599" @@ -4815,6 +5722,14 @@ source-map-support@0.5.12: buffer-from "^1.0.0" source-map "^0.6.0" +source-map-support@0.5.6: + version "0.5.6" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.6.tgz#4435cee46b1aab62b8e8610ce60f788091c51c13" + integrity sha512-N4KXEz7jcKqPf2b2vZF11lQIz9W5ZMuUcIOGj243lduidkf2fjkVKJS9vNxVWn3u/uxX38AcE8U9nnH9FPcq+g== + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + source-map-support@^0.4.15: version "0.4.18" resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.18.tgz#0286a6de8be42641338594e97ccea75f0a2c585f" @@ -4822,6 +5737,14 @@ source-map-support@^0.4.15: dependencies: source-map "^0.5.6" +source-map-support@^0.5.0: + version "0.5.16" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.16.tgz#0ae069e7fe3ba7538c64c98515e35339eac5a042" + integrity sha512-efyLRJDr68D9hBBNIPWFjhpFzURh+KJykQwvMyW5UiZzYwoF6l4YMMDIJJEyFWxWCqfyxLzz6tSfUFR+kXXsVQ== + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + source-map@^0.5.6, source-map@^0.5.7: version "0.5.7" resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" @@ -4832,6 +5755,13 @@ source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1: resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== +source-map@~0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.2.0.tgz#dab73fbcfc2ba819b4de03bd6f6eaa48164b3f9d" + integrity sha1-2rc/vPwrqBm03gO9b26qSBZLP50= + dependencies: + amdefine ">=0.0.4" + sprintf-js@~1.0.2: version "1.0.3" resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" @@ -4887,6 +5817,15 @@ string-width@^1.0.1: is-fullwidth-code-point "^2.0.0" strip-ansi "^4.0.0" +string-width@^3.0.0, string-width@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-3.1.0.tgz#22767be21b62af1081574306f69ac51b62203961" + integrity sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w== + dependencies: + emoji-regex "^7.0.1" + is-fullwidth-code-point "^2.0.0" + strip-ansi "^5.1.0" + string.prototype.trim@^1.1.2, string.prototype.trim@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/string.prototype.trim/-/string.prototype.trim-1.1.2.tgz#d04de2c89e137f4d7d206f086b5ed2fae6be8cea" @@ -4896,6 +5835,22 @@ string.prototype.trim@^1.1.2, string.prototype.trim@~1.1.2: es-abstract "^1.5.0" function-bind "^1.0.2" +string.prototype.trimleft@^2.1.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/string.prototype.trimleft/-/string.prototype.trimleft-2.1.1.tgz#9bdb8ac6abd6d602b17a4ed321870d2f8dcefc74" + integrity sha512-iu2AGd3PuP5Rp7x2kEZCrB2Nf41ehzh+goo8TV7z8/XDBbsvc6HQIlUl9RjkZ4oyrW1XM5UwlGl1oVEaDjg6Ag== + dependencies: + define-properties "^1.1.3" + function-bind "^1.1.1" + +string.prototype.trimright@^2.1.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/string.prototype.trimright/-/string.prototype.trimright-2.1.1.tgz#440314b15996c866ce8a0341894d45186200c5d9" + integrity sha512-qFvWL3/+QIgZXVmJBfpHmxLB7xsUXz6HsUmP8+5dRaC3Q7oKUv9Vo6aMCRZC1smrtyECFsIT30PqBJ1gTjAs+g== + dependencies: + define-properties "^1.1.3" + function-bind "^1.1.1" + string_decoder@~0.10.x: version "0.10.31" resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94" @@ -4922,6 +5877,13 @@ strip-ansi@^4.0.0: dependencies: ansi-regex "^3.0.0" +strip-ansi@^5.0.0, strip-ansi@^5.1.0, strip-ansi@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-5.2.0.tgz#8c9a536feb6afc962bdfa5b104a5091c1ad9c0ae" + integrity sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA== + dependencies: + ansi-regex "^4.1.0" + strip-dirs@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/strip-dirs/-/strip-dirs-2.1.0.tgz#4987736264fc344cf20f6c34aca9d13d1d4ed6c5" @@ -4941,7 +5903,7 @@ strip-hex-prefix@1.0.0: dependencies: is-hex-prefixed "1.0.0" -strip-json-comments@~2.0.1: +strip-json-comments@2.0.1, strip-json-comments@~2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" integrity sha1-PFMZQukIwml8DsNEhYwobHygpgo= @@ -4953,11 +5915,25 @@ supports-color@4.4.0: dependencies: has-flag "^2.0.0" +supports-color@6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-6.0.0.tgz#76cfe742cf1f41bb9b1c29ad03068c05b4c0e40a" + integrity sha512-on9Kwidc1IUQo+bQdhi8+Tijpo0e1SS6RoGo2guUwn5vdaxw8RXOF9Vb2ws+ihWOmh4JnCJOvaziZWP1VABaLg== + dependencies: + has-flag "^3.0.0" + supports-color@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" integrity sha1-U10EXOa2Nj+kARcIRimZXp3zJMc= +supports-color@^3.1.0: + version "3.2.3" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-3.2.3.tgz#65ac0504b3954171d8a64946b2ae3cbb8a5f54f6" + integrity sha1-ZawFBLOVQXHYpklGsq48u4pfVPY= + dependencies: + has-flag "^1.0.0" + supports-color@^5.3.0: version "5.5.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" @@ -5078,6 +6054,13 @@ timed-out@^4.0.0, timed-out@^4.0.1: resolved "https://registry.yarnpkg.com/timed-out/-/timed-out-4.0.1.tgz#f32eacac5a175bea25d7fab565ab3ed8741ef56f" integrity sha1-8y6srFoXW+ol1/q1Zas+2HQe9W8= +tmp@0.0.33: + version "0.0.33" + resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9" + integrity sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw== + dependencies: + os-tmpdir "~1.0.2" + tmp@0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.1.0.tgz#ee434a4e22543082e294ba6201dcc6eafefa2877" @@ -5095,6 +6078,13 @@ to-fast-properties@^1.0.3: resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz#b83571fa4d8c25b82e231b06e3a3055de4ca1a47" integrity sha1-uDVx+k2MJbguIxsG46MFXeTKGkc= +to-regex-range@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" + integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ== + dependencies: + is-number "^7.0.0" + toidentifier@1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.0.tgz#7e1be3470f1e77948bc43d94a3c8f4d7752ba553" @@ -5200,6 +6190,13 @@ tweetnacl@^1.0.0: resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-1.0.1.tgz#2594d42da73cd036bd0d2a54683dd35a6b55ca17" integrity sha512-kcoMoKTPYnoeS50tzoqjPY3Uv9axeuuFAZY9M/9zFnhoVvRfxz9K29IMPD7jGmt2c8SW7i3gT9WqDl2+nV7p4A== +type-check@~0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" + integrity sha1-WITKtRLPHTVeP7eE8wgEsrUg23I= + dependencies: + prelude-ls "~1.1.2" + type-detect@^4.0.0, type-detect@^4.0.5: version "4.0.8" resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c" @@ -5320,7 +6317,7 @@ underscore@1.8.3: resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.8.3.tgz#4f3fb53b106e6097fcf9cb4109f2a5e9bdfa5022" integrity sha1-Tz+1OxBuYJf8+ctBCfKl6b36UCI= -underscore@>=1.8.3, underscore@^1.9.1: +underscore@1.9.1, underscore@>=1.8.3, underscore@^1.9.1: version "1.9.1" resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.9.1.tgz#06dce34a0e68a7babc29b365b8e74b8925203961" integrity sha512-5/4etnCkd9c8gwgowi5/om/mYO5ajCaOgdzj/oW+0eQV9WxKBDZw5+ycmKmeaTXjInS/W0BzpGLo2xR2aBwZdg== @@ -5386,7 +6383,7 @@ utf8@2.1.1: resolved "https://registry.yarnpkg.com/utf8/-/utf8-2.1.1.tgz#2e01db02f7d8d0944f77104f1609eb0c304cf768" integrity sha1-LgHbAvfY0JRPdxBPFgnrDDBM92g= -utf8@^3.0.0: +utf8@3.0.0, utf8@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/utf8/-/utf8-3.0.0.tgz#f052eed1364d696e769ef058b183df88c87f69d1" integrity sha512-E8VjFIQ/TyQgp+TZfS6l8yp/xWppSAHzidGiRrqe4bK4XP9pTRyKFgGJpO3SN7zdX4DeomTrwaseCHovfpFcqQ== @@ -5396,6 +6393,14 @@ util-deprecate@~1.0.1: resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8= +util.promisify@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/util.promisify/-/util.promisify-1.0.0.tgz#440f7165a459c9a16dc145eb8e72f35687097030" + integrity sha512-i+6qA2MPhvoKLuxnJNpXAGhg7HphQOSUq2LKMZD0m15EiskXUkMvKdF4Uui0WYeCUGea+o2cw/ZuwehtfsrNkA== + dependencies: + define-properties "^1.1.2" + object.getownpropertydescriptors "^2.0.3" + utils-merge@1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" @@ -5406,6 +6411,11 @@ uuid@2.0.1: resolved "https://registry.yarnpkg.com/uuid/-/uuid-2.0.1.tgz#c2a30dedb3e535d72ccf82e343941a50ba8533ac" integrity sha1-wqMN7bPlNdcsz4LjQ5QaULqFM6w= +uuid@3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.2.1.tgz#12c528bb9d58d0b9265d9a2f6f0fe8be17ff1f14" + integrity sha512-jZnMwlb9Iku/O3smGWvZhauCf6cvvpKi4BKRiliS3cxnI+Gz9j5MEpTz2UFuXiKPJocb7gnsLHwiS05ige5BEA== + uuid@^3.3.2: version "3.3.2" resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.2.tgz#1b4af4955eb3077c501c23872fc6513811587131" @@ -5554,6 +6564,15 @@ web3-eth-abi@1.0.0-beta.35: web3-core-helpers "1.0.0-beta.35" web3-utils "1.0.0-beta.35" +web3-eth-abi@^1.0.0-beta.24: + version "1.2.4" + resolved "https://registry.yarnpkg.com/web3-eth-abi/-/web3-eth-abi-1.2.4.tgz#5b73e5ef70b03999227066d5d1310b168845e2b8" + integrity sha512-8eLIY4xZKoU3DSVu1pORluAw9Ru0/v4CGdw5so31nn+7fR8zgHMgwbFe0aOqWQ5VU42PzMMXeIJwt4AEi2buFg== + dependencies: + ethers "4.0.0-beta.3" + underscore "1.9.1" + web3-utils "1.2.4" + web3-eth-accounts@1.0.0-beta.35: version "1.0.0-beta.35" resolved "https://registry.yarnpkg.com/web3-eth-accounts/-/web3-eth-accounts-1.0.0-beta.35.tgz#7d0e5a69f510dc93874471599eb7abfa9ddf3e63" @@ -5758,6 +6777,20 @@ web3-utils@1.0.0-beta.35: underscore "1.8.3" utf8 "2.1.1" +web3-utils@1.2.4: + version "1.2.4" + resolved "https://registry.yarnpkg.com/web3-utils/-/web3-utils-1.2.4.tgz#96832a39a66b05bf8862a5b0bdad2799d709d951" + integrity sha512-+S86Ip+jqfIPQWvw2N/xBQq5JNqCO0dyvukGdJm8fEWHZbckT4WxSpHbx+9KLEWY4H4x9pUwnoRkK87pYyHfgQ== + dependencies: + bn.js "4.11.8" + eth-lib "0.2.7" + ethereum-bloom-filters "^1.0.6" + ethjs-unit "0.1.6" + number-to-bn "1.7.0" + randombytes "^2.1.0" + underscore "1.9.1" + utf8 "3.0.0" + web3-utils@2.0.0-alpha.1: version "2.0.0-alpha.1" resolved "https://registry.yarnpkg.com/web3-utils/-/web3-utils-2.0.0-alpha.1.tgz#231442adea3b58bca0c7185ee5b7743c01938682" @@ -5826,20 +6859,30 @@ which-pm-runs@^1.0.0: resolved "https://registry.yarnpkg.com/which-pm-runs/-/which-pm-runs-1.0.0.tgz#670b3afbc552e0b55df6b7780ca74615f23ad1cb" integrity sha1-Zws6+8VS4LVd9rd4DKdGFfI60cs= -which@^1.2.9: +which@1.3.1, which@^1.1.1, which@^1.2.9: version "1.3.1" resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ== dependencies: isexe "^2.0.0" -wide-align@^1.1.0: +wide-align@1.1.3, wide-align@^1.1.0: version "1.1.3" resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.3.tgz#ae074e6bdc0c14a431e804e624549c633b000457" integrity sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA== dependencies: string-width "^1.0.2 || 2" +word-wrap@~1.2.3: + version "1.2.3" + resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c" + integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ== + +wordwrap@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" + integrity sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus= + wordwrap@~0.0.2: version "0.0.3" resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107" @@ -5853,6 +6896,15 @@ wrap-ansi@^2.0.0: string-width "^1.0.1" strip-ansi "^3.0.1" +wrap-ansi@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-5.1.0.tgz#1fd1f67235d5b6d0fee781056001bfb694c03b09" + integrity sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q== + dependencies: + ansi-styles "^3.2.0" + string-width "^3.0.0" + strip-ansi "^5.0.0" + wrappy@1: version "1.0.2" resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" @@ -5933,6 +6985,11 @@ y18n@^3.2.1: resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41" integrity sha1-bRX7qITAhnnA136I53WegR4H+kE= +y18n@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.0.tgz#95ef94f85ecc81d007c264e190a120f0a3c8566b" + integrity sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w== + yaeti@^0.0.6: version "0.0.6" resolved "https://registry.yarnpkg.com/yaeti/-/yaeti-0.0.6.tgz#f26f484d72684cf42bedfb76970aa1608fbf9577" @@ -5948,6 +7005,14 @@ yallist@^3.0.2: resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.0.3.tgz#b4b049e314be545e3ce802236d6cd22cd91c3de9" integrity sha512-S+Zk8DEWE6oKpV+vI3qWkaK+jSbIK86pCwe2IF/xwIpQ8jEuxpw9NyaGjmp9+BoJv5FV2piqCDcoCtStppiq2A== +yargs-parser@13.1.1, yargs-parser@^13.1.1: + version "13.1.1" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-13.1.1.tgz#d26058532aa06d365fe091f6a1fc06b2f7e5eca0" + integrity sha512-oVAVsHz6uFrg3XQheFII8ESO2ssAf9luWuAd6Wexsu4F3OtIW0o8IribPXYrD4WC24LWtPrJlGy87y5udK+dxQ== + dependencies: + camelcase "^5.0.0" + decamelize "^1.2.0" + yargs-parser@^8.1.0: version "8.1.0" resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-8.1.0.tgz#f1376a33b6629a5d063782944da732631e966950" @@ -5955,6 +7020,31 @@ yargs-parser@^8.1.0: dependencies: camelcase "^4.1.0" +yargs-unparser@1.6.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/yargs-unparser/-/yargs-unparser-1.6.0.tgz#ef25c2c769ff6bd09e4b0f9d7c605fb27846ea9f" + integrity sha512-W9tKgmSn0DpSatfri0nx52Joq5hVXgeLiqR/5G0sZNDoLZFOr/xjBUDcShCOGNsBnEMNo1KAMBkTej1Hm62HTw== + dependencies: + flat "^4.1.0" + lodash "^4.17.15" + yargs "^13.3.0" + +yargs@13.3.0, yargs@^13.3.0: + version "13.3.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-13.3.0.tgz#4c657a55e07e5f2cf947f8a366567c04a0dedc83" + integrity sha512-2eehun/8ALW8TLoIl7MVaRUrg+yCnenu8B4kBlRxj3GJGDKU1Og7sMXPNm1BYyM1DOJmTZ4YeN/Nwxv+8XJsUA== + dependencies: + cliui "^5.0.0" + find-up "^3.0.0" + get-caller-file "^2.0.1" + require-directory "^2.1.1" + require-main-filename "^2.0.0" + set-blocking "^2.0.0" + string-width "^3.0.0" + which-module "^2.0.0" + y18n "^4.0.0" + yargs-parser "^13.1.1" + yargs@^10.0.3: version "10.1.2" resolved "https://registry.yarnpkg.com/yargs/-/yargs-10.1.2.tgz#454d074c2b16a51a43e2fb7807e4f9de69ccb5c5" From c260f19c9a1c68ff44565283eddad880fff51d71 Mon Sep 17 00:00:00 2001 From: Alex Towle Date: Fri, 20 Dec 2019 11:19:51 -0800 Subject: [PATCH 15/50] Started to use a custom provider to interact with the same ganache instance as mesh --- rpc/clients/typescript/test/ws_client_test.ts | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/rpc/clients/typescript/test/ws_client_test.ts b/rpc/clients/typescript/test/ws_client_test.ts index 1fa601b58..b3cecd9a9 100644 --- a/rpc/clients/typescript/test/ws_client_test.ts +++ b/rpc/clients/typescript/test/ws_client_test.ts @@ -1,8 +1,9 @@ import {getContractAddressesForNetworkOrThrow} from '@0x/contract-addresses'; import {artifacts, DummyERC20TokenContract} from '@0x/contracts-erc20'; import {blockchainTests, constants, expect, getLatestBlockTimestampAsync, OrderFactory} from '@0x/contracts-test-utils'; -import {callbackErrorReporter} from '@0x/dev-utils'; +import {callbackErrorReporter, devConstants, EnvVars, Web3Config, web3Factory} from '@0x/dev-utils'; import {assetDataUtils} from '@0x/order-utils'; +import { prependSubprovider, Web3ProviderEngine } from '@0x/subproviders'; import {DoneCallback, SignedOrder} from '@0x/types'; import {BigNumber} from '@0x/utils'; import {ChildProcessWithoutNullStreams, spawn} from 'child_process'; @@ -18,11 +19,12 @@ import {MeshDeployment, startServerAndClientAsync} from './utils/ws_server'; blockchainTests('WSClient', env => { let orderFactory: OrderFactory; + let provider: Web3ProviderEngine; async function deployErc20TokenAsync(name: string, symbol: string): Promise { return DummyERC20TokenContract.deployFrom0xArtifactAsync( artifacts.DummyERC20Token, - env.provider, + provider, env.txDefaults, artifacts, name, @@ -36,6 +38,17 @@ blockchainTests('WSClient', env => { const chainId = await env.getChainIdAsync(); const accounts = await env.getAccountAddressesAsync(); const [makerAddress] = accounts; + + const providerConfigs: Web3Config = { + total_accounts: constants.NUM_TEST_ACCOUNTS, + shouldUseInProcessGanache: false, + shouldAllowUnlimitedContractSize: true, + unlocked_accounts: [ + makerAddress, + ], + }; + provider = web3Factory.getRpcProvider(providerConfigs); + // NOTE(jalextowle): We seem to have an old dependency for `@0x:contract-addresses. // If possible this should be updated so that we can use `chainId` // instead of `networkId`. From fe9f190d7aa1960ebcc8fedb38ff48366d770eb4 Mon Sep 17 00:00:00 2001 From: Alex Towle Date: Fri, 20 Dec 2019 17:07:55 -0800 Subject: [PATCH 16/50] Completed writing the new ts tests --- .gitignore | 2 + rpc/clients/typescript/package.json | 8 +- rpc/clients/typescript/test/ws_client_test.ts | 812 +++++++----------- rpc/clients/typescript/yarn.lock | 163 +++- 4 files changed, 465 insertions(+), 520 deletions(-) diff --git a/.gitignore b/.gitignore index ffde1fb86..13529b4eb 100644 --- a/.gitignore +++ b/.gitignore @@ -5,9 +5,11 @@ TODO.md 0x_mesh/ examples/javascript_websocket_client/node_modules examples/javascript_websocket_client/lib +rpc/clients/typescript/0x_mesh rpc/clients/typescript/node_modules rpc/clients/typescript/lib rpc/clients/typescript/yarn-error.log +rpc/clients/typescript/ganache.log *.wasm browser/lib browser/ts/generated diff --git a/rpc/clients/typescript/package.json b/rpc/clients/typescript/package.json index 55492c6a3..e8a03769e 100644 --- a/rpc/clients/typescript/package.json +++ b/rpc/clients/typescript/package.json @@ -46,14 +46,20 @@ "websocket": "^1.0.29" }, "devDependencies": { - "@0x/dev-utils": "^3.0.2", + "@0x/contract-addresses": "^4.1.0", + "@0x/contracts-dev-utils": "^1.0.2", "@0x/contracts-erc20": "^3.0.2", + "@0x/contracts-exchange": "^3.0.2", "@0x/contracts-test-utils": "^5.0.1", + "@0x/dev-utils": "^3.0.2", + "@0x/order-utils": "^8.2.4", + "@0x/subproviders": "^6.0.2", "@0x/ts-doc-gen": "^0.0.13", "@0x/tslint-config": "^4.0.0", "@types/mocha": "^2.2.42", "@types/uuid": "^3.4.3", "@types/websocket": "^0.0.40", + "bignumber.js": "~9.0.0", "chai": "^4.0.1", "chai-as-promised": "^7.1.0", "chai-bignumber": "^3.0.0", diff --git a/rpc/clients/typescript/test/ws_client_test.ts b/rpc/clients/typescript/test/ws_client_test.ts index b3cecd9a9..803ae4837 100644 --- a/rpc/clients/typescript/test/ws_client_test.ts +++ b/rpc/clients/typescript/test/ws_client_test.ts @@ -1,582 +1,362 @@ -import {getContractAddressesForNetworkOrThrow} from '@0x/contract-addresses'; +import {getContractAddressesForChainOrThrow} from '@0x/contract-addresses'; import {artifacts, DummyERC20TokenContract} from '@0x/contracts-erc20'; -import {blockchainTests, constants, expect, getLatestBlockTimestampAsync, OrderFactory} from '@0x/contracts-test-utils'; -import {callbackErrorReporter, devConstants, EnvVars, Web3Config, web3Factory} from '@0x/dev-utils'; +import {blockchainTests, constants, expect, OrderFactory, orderHashUtils} from '@0x/contracts-test-utils'; +import {callbackErrorReporter, Web3Config, web3Factory} from '@0x/dev-utils'; import {assetDataUtils} from '@0x/order-utils'; -import { prependSubprovider, Web3ProviderEngine } from '@0x/subproviders'; +import {Web3ProviderEngine} from '@0x/subproviders'; import {DoneCallback, SignedOrder} from '@0x/types'; import {BigNumber} from '@0x/utils'; -import {ChildProcessWithoutNullStreams, spawn} from 'child_process'; import 'mocha'; import * as WebSocket from 'websocket'; -import {OrderEvent, SignedOrder as MeshSignedOrder, WSClient} from '../src/index'; +import {OrderEvent, OrderEventEndState, WSClient} from '../src/index'; import {WSMessage} from '../src/types'; -import {chaiSetup} from './utils/chai_setup'; import {SERVER_PORT, setupServerAsync, stopServer} from './utils/mock_ws_server'; import {MeshDeployment, startServerAndClientAsync} from './utils/ws_server'; -blockchainTests('WSClient', env => { - let orderFactory: OrderFactory; - let provider: Web3ProviderEngine; +blockchainTests.resets('WSClient', env => { + describe('integration tests', () => { + let orderFactory: OrderFactory; + let provider: Web3ProviderEngine; + let deployment: MeshDeployment; - async function deployErc20TokenAsync(name: string, symbol: string): Promise { - return DummyERC20TokenContract.deployFrom0xArtifactAsync( - artifacts.DummyERC20Token, - provider, - env.txDefaults, - artifacts, - name, - symbol, - new BigNumber(18), - new BigNumber('100e18'), - ); - } + const oneSecondInMs = 1000; - before(async () => { - const chainId = await env.getChainIdAsync(); - const accounts = await env.getAccountAddressesAsync(); - const [makerAddress] = accounts; + beforeEach(async () => { + deployment = await startServerAndClientAsync(); + }); - const providerConfigs: Web3Config = { - total_accounts: constants.NUM_TEST_ACCOUNTS, - shouldUseInProcessGanache: false, - shouldAllowUnlimitedContractSize: true, - unlocked_accounts: [ - makerAddress, - ], - }; - provider = web3Factory.getRpcProvider(providerConfigs); + afterEach(async () => { + deployment.client.destroy(); + deployment.mesh.stopMesh(); + }); - // NOTE(jalextowle): We seem to have an old dependency for `@0x:contract-addresses. - // If possible this should be updated so that we can use `chainId` - // instead of `networkId`. - const networkId = 50; - const exchangeAddress = getContractAddressesForNetworkOrThrow(networkId).exchange; - const erc20ProxyAddress = getContractAddressesForNetworkOrThrow(networkId).erc20Proxy; - const txDefaults = { - ...env.txDefaults, - from: makerAddress, - }; + async function deployErc20TokenAsync(name: string, symbol: string): Promise { + return DummyERC20TokenContract.deployFrom0xArtifactAsync( + artifacts.DummyERC20Token, + provider, + env.txDefaults, + artifacts, + name, + symbol, + new BigNumber(18), + new BigNumber('100e18'), + ); + } - const makerToken = await deployErc20TokenAsync('MakerToken', 'MKT'); - const feeToken = await deployErc20TokenAsync('FeeToken', 'FEE'); + before(async () => { + const chainId = await env.getChainIdAsync(); + const accounts = await env.getAccountAddressesAsync(); + const [makerAddress] = accounts; - await makerToken.approve(erc20ProxyAddress, new BigNumber('100e18')).awaitTransactionSuccessAsync({ from: makerAddress }); - await feeToken.approve(erc20ProxyAddress, new BigNumber('100e18')).awaitTransactionSuccessAsync({ from: makerAddress }); + // Create a new provider so that the ganache instance running on port + // 8545 will be used instead of the in-process ganache instance. + const providerConfigs: Web3Config = { + total_accounts: constants.NUM_TEST_ACCOUNTS, + shouldUseInProcessGanache: false, + shouldAllowUnlimitedContractSize: true, + unlocked_accounts: [makerAddress], + }; + provider = web3Factory.getRpcProvider(providerConfigs); + + const exchangeAddress = getContractAddressesForChainOrThrow(chainId).exchange; + const erc20ProxyAddress = getContractAddressesForChainOrThrow(chainId).erc20Proxy; - orderFactory = new OrderFactory( - constants.TESTRPC_PRIVATE_KEYS[accounts.indexOf(makerAddress)], - { + // Configure two tokens and an order factory with a maker address so + // that valid orders can be created easily in the tests. + const makerToken = await deployErc20TokenAsync('MakerToken', 'MKT'); + const feeToken = await deployErc20TokenAsync('FeeToken', 'FEE'); + await makerToken + .approve(erc20ProxyAddress, new BigNumber('100e18')) + .awaitTransactionSuccessAsync({from: makerAddress}); + await feeToken + .approve(erc20ProxyAddress, new BigNumber('100e18')) + .awaitTransactionSuccessAsync({from: makerAddress}); + orderFactory = new OrderFactory(constants.TESTRPC_PRIVATE_KEYS[accounts.indexOf(makerAddress)], { ...constants.STATIC_ORDER_PARAMS, feeRecipientAddress: constants.NULL_ADDRESS, makerAddress, exchangeAddress, - chainId, + chainId: 1337, makerAssetData: assetDataUtils.encodeERC20AssetData(makerToken.address), takerAssetData: assetDataUtils.encodeERC20AssetData(makerToken.address), makerFeeAssetData: assetDataUtils.encodeERC20AssetData(feeToken.address), takerFeeAssetData: assetDataUtils.encodeERC20AssetData(feeToken.address), - }, - ); - }); + }); + }); - describe('#addOrdersAsync', async () => { - it.only('', async () => { - const deployment = await startServerAndClientAsync(); - // HACK(jalextowle): I'm using the "as any" type loop-hole here because there - // is a conflicting BigNumber dependency between this package and the monorepo. - const order = await orderFactory.newSignedOrderAsync({}); - console.log(order); - const validationResults = await deployment.client.addOrdersAsync([ order as any ]); - console.log(validationResults); - deployment.mesh.stopMesh(); - deployment.client.destroy(); + describe('#addOrdersAsync', async () => { + it('correctly validates a v3 order signed by OrderFactory `addOrdersAsync`', async () => { + const order = await orderFactory.newSignedOrderAsync({}); + const validationResults = await deployment.client.addOrdersAsync([order]); + expect(validationResults).to.be.deep.eq({ + accepted: [{ + fillableTakerAssetAmount: order.takerAssetAmount, + isNew: true, + orderHash: orderHashUtils.getOrderHashHex(order), + signedOrder: order, + }], + rejected: [], + }); + }); }); - }); - /* - describe('#addOrdersAsync', async () => { - it('sends a mesh_addOrders request and converts all numerical fields to BigNumbers in returned signedOrders', async () => { - const wsServer = await setupServerAsync(); - wsServer.on('connect', ((connection: WebSocket.connection) => { - let requestNum = 0; - connection.on('message', ((message: WSMessage) => { - const jsonRpcRequest = JSON.parse(message.utf8Data); - const responses = [ - // Heartbeat subscription (under-the-hood) - ` - { - "id": "${jsonRpcRequest.id}", - "jsonrpc": "2.0", - "result": "0xab1a3e8af590364c09d0fa6a12103ada" - } - `, - // mesh_addOrders response - ` - { - "id": "${jsonRpcRequest.id}", - "jsonrpc": "2.0", - "result": { - "accepted": [ - { - "orderHash": "0xa0fcb54919f0b3823aa14b3f511146f6ac087ab333a70f9b24bbb1ba657a4250", - "signedOrder": { - "makerAddress": "0xa3eCE5D5B6319Fa785EfC10D3112769a46C6E149", - "makerAssetData": "0xf47261b0000000000000000000000000e41d2489571d322189246dafa5ebde1f4699f498", - "makerFeeAssetData": "0x", - "makerAssetAmount": "1000000000000000000", - "makerFee": "0", - "takerAddress": "0x0000000000000000000000000000000000000000", - "takerAssetData": "0xf47261b0000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", - "takerFeeAssetData": "0x", - "takerAssetAmount": "10000000000000000000000", - "takerFee": "0", - "senderAddress": "0x0000000000000000000000000000000000000000", - "exchangeAddress": "0x080bf510fcbf18b91105470639e9561022937712", - "chainId": 1, - "feeRecipientAddress": "0x0000000000000000000000000000000000000000", - "expirationTimeSeconds": "1586340602", - "salt": "41253767178111694375645046549067933145709740457131351457334397888365956743955", - "signature": "0x1c0827552a3bde2c72560362950a69f581ae7a1e6fa8c160bb437f3a61002bb96c22b646edd3b103b976db4aa4840a11c13306b2a02a0bb6ce647806c858c238ec02" - }, - "fillableTakerAssetAmount": "10000000000000000000000" - } - ], - "rejected": [] - } - } - `, - ]; - connection.sendUTF(responses[requestNum]); - requestNum++; - }) as any); - }) as any); + describe('#getStats', () => { + it('Ensure that the stats are correct when no orders have been added', async () => { + const stats = await deployment.client.getStatsAsync(); - const signedOrders = [ - { - makerAddress: '0xa3ece5d5b6319fa785efc10d3112769a46c6e149', - takerAddress: '0x0000000000000000000000000000000000000000', - makerAssetAmount: new BigNumber('1000000000000000000'), - takerAssetAmount: new BigNumber('10000000000000000000000'), - expirationTimeSeconds: new BigNumber('1586340602'), - makerFee: new BigNumber('0'), - takerFee: new BigNumber('0'), - feeRecipientAddress: '0x0000000000000000000000000000000000000000', - senderAddress: '0x0000000000000000000000000000000000000000', - salt: new BigNumber( - '41253767178111694375645046549067933145709740457131351457334397888365956743955', - ), - makerAssetData: '0xf47261b0000000000000000000000000e41d2489571d322189246dafa5ebde1f4699f498', - takerAssetData: '0xf47261b0000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2', - exchangeAddress: '0x080bf510fcbf18b91105470639e9561022937712', - signature: - '0x1c0827552a3bde2c72560362950a69f581ae7a1e6fa8c160bb437f3a61002bb96c22b646edd3b103b976db4aa4840a11c13306b2a02a0bb6ce647806c858c238ec02', - }, - ]; - const client = new WSClient(`ws://localhost:${SERVER_PORT}`); - const validationResults = await client.addOrdersAsync(signedOrders); - expect(typeof validationResults === 'object').to.equal(true); - expect(validationResults.accepted).to.have.length(1); - expect(validationResults.rejected).to.have.length(0); - expect(BigNumber.isBigNumber(validationResults.accepted[0].signedOrder.makerAssetAmount)).to.equal(true); - expect(BigNumber.isBigNumber(validationResults.accepted[0].signedOrder.takerAssetAmount)).to.equal(true); - expect(BigNumber.isBigNumber(validationResults.accepted[0].signedOrder.makerFee)).to.equal(true); - expect(BigNumber.isBigNumber(validationResults.accepted[0].signedOrder.takerFee)).to.equal(true); - expect(BigNumber.isBigNumber(validationResults.accepted[0].signedOrder.salt)).to.equal(true); - expect(BigNumber.isBigNumber(validationResults.accepted[0].signedOrder.expirationTimeSeconds)).to.equal( - true, - ); - expect(BigNumber.isBigNumber(validationResults.accepted[0].fillableTakerAssetAmount)).to.equal(true); + // NOTE(jalextowle): Ensure that the latest block of the returned + // stats is valid and then clear the field since we don't know + // the block number of the stats in this test a priori. + expect(stats.latestBlock).to.not.be.undefined(); + expect(stats.latestBlock.number).to.be.greaterThan(0); + stats.version = ''; + stats.latestBlock = { + number: 0, + hash: '', + }; - client.destroy(); + const now = new Date(Date.now()); + const expectedStartOfCurrentUTCDay = `${now.getUTCFullYear()}-${now.getUTCMonth() + + 1}-${now.getUTCDate()}T00:00:00Z`; + const expectedStats = { + version: '', + pubSubTopic: '/0x-orders/network/1337/version/2', + rendezvous: '/0x-mesh/network/1337/version/2', + peerID: deployment.peerID, + ethereumChainID: 1337, + latestBlock: { + number: 0, + hash: '', + }, + numPeers: 0, + numOrders: 0, + numOrdersIncludingRemoved: 0, + numPinnedOrders: 0, + maxExpirationTime: constants.MAX_UINT256.toString(), + startOfCurrentUTCDay: expectedStartOfCurrentUTCDay, + ethRPCRequestsSentInCurrentUTCDay: 0, + ethRPCRateLimitExpiredRequests: 0, + }; + expect(stats).to.be.deep.eq(expectedStats); + }); }); - }); - describe('#getOrdersAsync', async () => { - it('properly makes multiple paginated requests under-the-hood and returns all signedOrders', async () => { - const wsServer = await setupServerAsync(); - wsServer.on('connect', ((connection: WebSocket.connection) => { - let requestNum = 0; - connection.on('message', ((message: WSMessage) => { - const jsonRpcRequest = JSON.parse(message.utf8Data); - const snapshotID = '123'; - const snapshotTimestamp = '2009-11-10T23:00:00Z'; - const responses = [ - // Heartbeat subscription (under-the-hood) - ` - { - "id": "${jsonRpcRequest.id}", - "jsonrpc": "2.0", - "result": "0xab1a3e8af590364c09d0fa6a12103ada" - } - `, - // First paginated request - ` - { - "id": "${jsonRpcRequest.id}", - "jsonrpc": "2.0", - "result": { - "snapshotID": "${snapshotID}", - "snapshotTimestamp": "${snapshotTimestamp}", - "ordersInfos": [ - { - "orderHash": "0xa0fcb54919f0b3823aa14b3f511146f6ac087ab333a70f9b24bbb1ba657a4250", - "signedOrder": { - "makerAddress": "0xa3eCE5D5B6319Fa785EfC10D3112769a46C6E149", - "makerAssetData": "0xf47261b0000000000000000000000000e41d2489571d322189246dafa5ebde1f4699f498", - "makerFeeAssetData": "0x", - "makerAssetAmount": "1000000000000000000", - "makerFee": "0", - "takerAddress": "0x0000000000000000000000000000000000000000", - "takerAssetData": "0xf47261b0000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", - "takerFeeAssetData": "0x", - "takerAssetAmount": "10000000000000000000000", - "takerFee": "0", - "senderAddress": "0x0000000000000000000000000000000000000000", - "exchangeAddress": "0x080bf510fcbf18b91105470639e9561022937712", - "chainId": 1, - "feeRecipientAddress": "0x0000000000000000000000000000000000000000", - "expirationTimeSeconds": "1586340602", - "salt": "41253767178111694375645046549067933145709740457131351457334397888365956743955", - "signature": "0x1c0827552a3bde2c72560362950a69f581ae7a1e6fa8c160bb437f3a61002bb96c22b646edd3b103b976db4aa4840a11c13306b2a02a0bb6ce647806c858c238ec02" - }, - "fillableTakerAssetAmount": "10000000000000000000000" - } - ] - } - } - `, - // Second paginated request - ` - { - "id": "${jsonRpcRequest.id}", - "jsonrpc": "2.0", - "result": { - "snapshotID": "${snapshotID}", - "snapshotTimestamp": "${snapshotTimestamp}", - "ordersInfos": [] - } - } - `, - ]; - connection.sendUTF(responses[requestNum]); - requestNum++; - }) as any); - }) as any); - const client = new WSClient(`ws://localhost:${SERVER_PORT}`); - const perPage = 1; - const getOrdersResponse = await client.getOrdersAsync(perPage); - const orderInfos = getOrdersResponse.ordersInfos; - expect(orderInfos).to.have.length(1); - expect(getOrdersResponse.snapshotID).to.equal('123'); - // tslint:disable-next-line:custom-no-magic-numbers - expect(getOrdersResponse.snapshotTimestamp).to.equal(1257894000); - expect(BigNumber.isBigNumber(orderInfos[0].signedOrder.makerAssetAmount)).to.equal(true); - expect(BigNumber.isBigNumber(orderInfos[0].signedOrder.takerAssetAmount)).to.equal(true); - expect(BigNumber.isBigNumber(orderInfos[0].signedOrder.makerFee)).to.equal(true); - expect(BigNumber.isBigNumber(orderInfos[0].signedOrder.takerFee)).to.equal(true); - expect(BigNumber.isBigNumber(orderInfos[0].signedOrder.salt)).to.equal(true); - expect(BigNumber.isBigNumber(orderInfos[0].signedOrder.expirationTimeSeconds)).to.equal(true); + // This pattern will only match strings with the following pattern: + // [ 8 digits or letters ]-[ 4 digits or letters ]-[ 4 digits or letters ]-[ 4 digits or letters ]-[ 12 digits or letters ] + const ganacheSnapshotIdPattern = /^([0-9]|[a-z]){8}-([0-9]|[a-z]){4}-([0-9]|[a-z]){4}-([0-9]|[a-z]){4}-([0-9]|[a-z]){12}$/; + + describe('#getOrdersAsync', async () => { + it('properly makes multiple paginated requests under-the-hood and returns all signedOrders', async () => { + const ordersLength = 10; + const orders = []; + for (let i = 0; i < ordersLength; i++) { + orders[i] = await orderFactory.newSignedOrderAsync({}); + } + const validationResults = await deployment.client.addOrdersAsync(orders); + expect(validationResults.accepted.length).to.be.eq(ordersLength); + + // NOTE(jalextowle): The time returned by Date uses milliseconds, but + // the mesh timestamp only uses second. Multiplying the seconds timestamp + // by 1000 gives us a comparable value. We only try to ensure that this + // timestamp is approximately equal (within 1 second) because the server + // will receive the request slightly after it is sent. + const now = new Date(Date.now()).getTime(); + const perPage = 10; + const response = await deployment.client.getOrdersAsync(perPage); + assertRoughlyEquals(now, response.snapshotTimestamp * oneSecondInMs, oneSecondInMs); - client.destroy(); + // Verify that all of the orders that were added to the mesh node + // were returned in the `getOrders` rpc response, and that the + // ganache snapshot ID in the response meets the expected schema. + expect(ganacheSnapshotIdPattern.test(response.snapshotID)); + for (const order of orders) { + let hasSeenMatch = false; + for (const responseOrder of response.ordersInfos) { + if (orderHashUtils.getOrderHashHex(order) === responseOrder.orderHash) { + hasSeenMatch = true; + expect(order).to.be.deep.eq(responseOrder.signedOrder); + break; + } + } + expect(hasSeenMatch).to.be.true(); + } + }); }); - }); - */ - describe('#getStats', () => { - it('Ensure that the stats are correct when no orders have been added', async () => { - const deployment = await startServerAndClientAsync(); - const stats = await deployment.client.getStatsAsync(); + describe('#_subscribeToHeartbeatAsync', async () => { + it('should receive subscription updates', (done: DoneCallback) => { + (async () => { + const expectToBeCalledOnce = true; + const callback = callbackErrorReporter.reportNoErrorCallbackErrors(done, expectToBeCalledOnce)( + async (ack: string) => { + expect(ack).to.be.equal('tick'); + }, + ); + await (deployment.client as any)._subscribeToHeartbeatAsync(callback); + })().catch(done); + }); + }); - expect(stats.latestBlock).to.not.be.undefined(); - expect(stats.latestBlock.number).to.be.greaterThan(0); + describe('#subscribeToOrdersAsync', async () => { + it('should receive subscription updates', (done: DoneCallback) => { + (async () => { + // Create the subscription with a testing callback. + const orders = [] as SignedOrder[]; + const now = new Date(Date.now()).getTime(); + const callback = (orderEvents: OrderEvent[]) => { + expect(orderEvents.length).to.be.eq(orders.length); + for (const orderEvent of orderEvents) { + expect(orderEvent.endState).to.be.eq(OrderEventEndState.Added); + assertRoughlyEquals(now, orderEvent.timestampMs, oneSecondInMs); + } - stats.version = ''; - stats.latestBlock = { - number: 0, - hash: '', - }; + // Ensure that all of the orders that were added had an associated order event emitted. + for (const order of orders) { + const orderHash = orderHashUtils.getOrderHashHex(order); + let hasSeenMatch = false; + for (const orderEvent of orderEvents) { + if (orderHash === orderEvent.orderHash) { + hasSeenMatch = true; + expect(orderEvent.signedOrder).to.be.deep.eq(order); + expect(orderEvent.fillableTakerAssetAmount).to.be.bignumber.eq(order.takerAssetAmount); + break; + } + } + expect(hasSeenMatch).to.be.true(); + } - const now = new Date(Date.now()); - const expectedStartOfCurrentUTCDay = `${now.getUTCFullYear()}-${now.getUTCMonth() + - 1}-${now.getUTCDate()}T00:00:00Z`; + done(); + }; + const subscription = deployment.client.subscribeToOrdersAsync(callback); - const expectedStats = { - version: '', - pubSubTopic: '/0x-orders/network/1337/version/1', - rendezvous: '/0x-mesh/network/1337/version/1', - peerID: deployment.peerID, - ethereumChainID: 1337, - latestBlock: { - number: 0, - hash: '', - }, - numPeers: 0, - numOrders: 0, - numOrdersIncludingRemoved: 0, - numPinnedOrders: 0, - maxExpirationTime: '115792089237316195423570985008687907853269984665640564039457584007913129639935', - startOfCurrentUTCDay: expectedStartOfCurrentUTCDay, - ethRPCRequestsSentInCurrentUTCDay: 0, - ethRPCRateLimitExpiredRequests: 0, - }; - expect(stats).to.be.deep.eq(expectedStats); - deployment.client.destroy(); - deployment.mesh.stopMesh(); - }); - }); - describe('#_subscribeToHeartbeatAsync', async () => { - it('should receive subscription updates', (done: DoneCallback) => { - (async () => { - const deployment = await startServerAndClientAsync(); - const expectToBeCalledOnce = true; - const callback = callbackErrorReporter.reportNoErrorCallbackErrors(done, expectToBeCalledOnce)( - async (ack: string) => { - expect(ack).to.be.equal('tick'); - deployment.client.destroy(); - deployment.mesh.stopMesh(); - }, - ); - await (deployment.client as any)._subscribeToHeartbeatAsync(callback); - })().catch(done); + // Add orders to the mesh node. + const ordersLength = 10; + for (let i = 0; i < ordersLength; i++) { + orders[i] = await orderFactory.newSignedOrderAsync({}); + } + const validationResults = await deployment.client.addOrdersAsync(orders); + expect(validationResults.accepted.length).to.be.eq(ordersLength); + + await subscription; + })().catch(done); + }); }); }); - /* - describe('#subscribeToOrdersAsync', async () => { - it('should receive subscription updates', (done: DoneCallback) => { - const timestamp = '2009-11-10T23:00:00Z'; - (async () => { - const wsServer = await setupServerAsync(); - wsServer.on('connect', ((connection: WebSocket.connection) => { - let requestNum = 0; - connection.on('message', (async (message: WSMessage) => { - const jsonRpcRequest = JSON.parse(message.utf8Data); - const responses = [ - ` - { - "id": "${jsonRpcRequest.id}", - "jsonrpc": "2.0", - "result": "0xab1a3e8af590364c09d0fa6a12103ada" - } - `, - ` - { - "id": "${jsonRpcRequest.id}", - "jsonrpc": "2.0", - "result": "0xc2ba3e8af590364c09d0fa6a12103adb" - } - `, - // Response to unsubscribe - ` - { - "id": "${jsonRpcRequest.id}", - "jsonrpc":"2.0", - "result":true, - } - `, - ]; - connection.sendUTF(responses[requestNum]); - requestNum++; - if (requestNum === 2) { - // tslint:disable-next-line:custom-no-magic-numbers - await sleepAsync(100); + describe('unit tests', () => { + describe('#onClose', () => { + it('should trigger when connection is closed', (done: DoneCallback) => { + // tslint:disable-next-line:no-floating-promises + (async () => { + const wsServer = await setupServerAsync(); + wsServer.on('connect', async (connection: WebSocket.connection) => { + // tslint:disable-next-line:custom-no-magic-numbers + await sleepAsync(100); + connection.close(); + }); - const eventResponse = ` - { - "jsonrpc":"2.0", - "method":"mesh_subscription", - "params": { - "subscription":"0xc2ba3e8af590364c09d0fa6a12103adb", - "result": [ - { - "timestamp": "${timestamp}", - "orderHash": "0x96e6eb6174dbf0458686bdae44c9a330d9a9eb563962512a7be545c4ecc13fd4", - "signedOrder": { - "makerAddress": "0x50f84bbee6fb250d6f49e854fa280445369d64d9", - "makerAssetData": "0xf47261b00000000000000000000000000f5d2fb29fb7d3cfee444a200298f468908cc942", - "makerFeeAssetData": "0x", - "makerAssetAmount": "4424020538752105500000", - "makerFee": "0", - "takerAddress": "0x0000000000000000000000000000000000000000", - "takerAssetData": "0xf47261b0000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", - "takerFeeAssetData": "0x", - "takerAssetAmount": "1000000000000000061", - "takerFee": "0", - "senderAddress": "0x0000000000000000000000000000000000000000", - "exchangeAddress": "0x080bf510fcbf18b91105470639e9561022937712", - "chainId": 1, - "feeRecipientAddress": "0xa258b39954cef5cb142fd567a46cddb31a670124", - "expirationTimeSeconds": "1559422407", - "salt": "1559422141994", - "signature": "0x1cf16c2f3a210965b5e17f51b57b869ba4ddda33df92b0017b4d8da9dacd3152b122a73844eaf50ccde29a42950239ba36a525ed7f1698a8a5e1896cf7d651aed203" - }, - "endState": "CANCELLED", - "fillableTakerAssetAmount": 0, - "contractEvents": [ - { - "blockHash": "0x1be2eb6174dbf0458686bdae44c9a330d9a9eb563962512a7be545c4ec11a4d2", - "txHash": "0xbcce172374dbf0458686bdae44c9a330d9a9eb563962512a7be545c4ec232e3a", - "txIndex": 23, - "logIndex": 0, - "isRemoved": false, - "address": "0x4f833a24e1f95d70f028921e27040ca56e09ab0b", - "kind": "ExchangeCancelEvent", - "parameters": { - "makerAddress": "0x50f84bbee6fb250d6f49e854fa280445369d64d9", - "senderAddress": "0x0000000000000000000000000000000000000000", - "feeRecipientAddress": "0xa258b39954cef5cb142fd567a46cddb31a670124", - "orderHash": "0x96e6eb6174dbf0458686bdae44c9a330d9a9eb563962512a7be545c4ecc13fd4", - "makerAssetData": "0xf47261b00000000000000000000000000f5d2fb29fb7d3cfee444a200298f468908cc942", - "makerFeeAssetData": "0xf47261b00000000000000000000000000f5d2fb29fb7d3cfee444a200298f468908cc942", - "takerAssetData": "0xf47261b0000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", - "takerFeeAssetData": "0xf47261b0000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2" - } - } - ] - } - ] + const client = new WSClient(`ws://localhost:${SERVER_PORT}`); + client.onClose(() => { + client.destroy(); + stopServer(); + done(); + }); + })(); + }); + }); + describe('#onReconnected', async () => { + it('should trigger the callback when reconnected', (done: DoneCallback) => { + // tslint:disable-next-line:no-floating-promises + (async () => { + const wsServer = await setupServerAsync(); + let connectionNum = 0; + wsServer.on('connect', async (connection: WebSocket.connection) => { + let requestNum = 0; + connectionNum++; + connection.on('message', (async (message: WSMessage) => { + const jsonRpcRequest = JSON.parse(message.utf8Data); + if (requestNum === 0) { + const response = ` + { + "id": "${jsonRpcRequest.id}", + "jsonrpc": "2.0", + "result": "0xab1a3e8af590364c09d0fa6a12103ada" } + `; + connection.sendUTF(response); + if (connectionNum === 1) { + // tslint:disable-next-line:custom-no-magic-numbers + await sleepAsync(100); + const reasonCode = WebSocket.connection.CLOSE_REASON_PROTOCOL_ERROR; + const description = (WebSocket.connection as any).CLOSE_DESCRIPTIONS[reasonCode]; + connection.drop(reasonCode, description); } - `; - connection.sendUTF(eventResponse); - } - }) as any); - }) as any); + } + requestNum++; + }) as any); + }); - const client = new WSClient(`ws://localhost:${SERVER_PORT}`); - const expectToBeCalledOnce = true; - const callback = callbackErrorReporter.reportNoErrorCallbackErrors(done, expectToBeCalledOnce)( - async (orderEvents: OrderEvent[]) => { - expect(orderEvents).to.have.length(1); - expect(BigNumber.isBigNumber(orderEvents[0].signedOrder.makerAssetAmount)).to.equal(true); - expect(BigNumber.isBigNumber(orderEvents[0].signedOrder.takerAssetAmount)).to.equal(true); - expect(BigNumber.isBigNumber(orderEvents[0].signedOrder.makerFee)).to.equal(true); - expect(BigNumber.isBigNumber(orderEvents[0].signedOrder.takerFee)).to.equal(true); - expect(BigNumber.isBigNumber(orderEvents[0].signedOrder.salt)).to.equal(true); - expect(BigNumber.isBigNumber(orderEvents[0].signedOrder.expirationTimeSeconds)).to.equal(true); - expect(BigNumber.isBigNumber(orderEvents[0].fillableTakerAssetAmount)).to.equal(true); + const client = new WSClient(`ws://localhost:${SERVER_PORT}`, {reconnectDelay: 100}); + client.onReconnected(async () => { + // We need to add a sleep here so that we leave time for the client + // to get connected before destroying it. // tslint:disable-next-line:custom-no-magic-numbers - expect(orderEvents[0].timestampMs).to.equal(new Date(timestamp).getTime()); - + await sleepAsync(100); client.destroy(); - }, - ); - await client.subscribeToOrdersAsync(callback); - })().catch(done); + stopServer(); + done(); + }); + })(); + }); }); - }); - */ - describe('#onClose', () => { - it('should trigger when connection is closed', (done: DoneCallback) => { - // tslint:disable-next-line:no-floating-promises - (async () => { - const wsServer = await setupServerAsync(); - wsServer.on('connect', async (connection: WebSocket.connection) => { - // tslint:disable-next-line:custom-no-magic-numbers - await sleepAsync(100); - connection.close(); - }); - - const client = new WSClient(`ws://localhost:${SERVER_PORT}`); - client.onClose(() => { - client.destroy(); - stopServer(); - done(); - }); - })(); - }); - }); - describe('#onReconnected', async () => { - it('should trigger the callback when reconnected', (done: DoneCallback) => { - // tslint:disable-next-line:no-floating-promises - (async () => { - const wsServer = await setupServerAsync(); - let connectionNum = 0; - wsServer.on('connect', async (connection: WebSocket.connection) => { - let requestNum = 0; - connectionNum++; - connection.on('message', (async (message: WSMessage) => { - const jsonRpcRequest = JSON.parse(message.utf8Data); - if (requestNum === 0) { - const response = ` - { - "id": "${jsonRpcRequest.id}", - "jsonrpc": "2.0", - "result": "0xab1a3e8af590364c09d0fa6a12103ada" - } - `; - connection.sendUTF(response); - if (connectionNum === 1) { - // tslint:disable-next-line:custom-no-magic-numbers - await sleepAsync(100); - const reasonCode = WebSocket.connection.CLOSE_REASON_PROTOCOL_ERROR; - const description = (WebSocket.connection as any).CLOSE_DESCRIPTIONS[reasonCode]; - connection.drop(reasonCode, description); + describe('#destroy', async () => { + it('should unsubscribe and trigger onClose when close() is called', (done: DoneCallback) => { + // tslint:disable-next-line:no-floating-promises + (async () => { + const wsServer = await setupServerAsync(); + let numMessages = 0; + wsServer.on('connect', ((connection: WebSocket.connection) => { + connection.on('message', (async (message: WSMessage) => { + const jsonRpcRequest = JSON.parse(message.utf8Data); + if (numMessages === 0) { + expect(jsonRpcRequest.method).to.be.equal('mesh_subscribe'); + const response = ` + { + "id": "${jsonRpcRequest.id}", + "jsonrpc": "2.0", + "result": "0xab1a3e8af590364c09d0fa6a12103ada" + } + `; + connection.sendUTF(response); + numMessages++; + return; } - } - requestNum++; + numMessages++; + }) as any); }) as any); - }); - const client = new WSClient(`ws://localhost:${SERVER_PORT}`, {reconnectDelay: 100}); - client.onReconnected(async () => { + const client = new WSClient(`ws://localhost:${SERVER_PORT}`); + client.onClose(() => { + expect(numMessages).to.be.equal(2); + done(); + }); // We need to add a sleep here so that we leave time for the client // to get connected before destroying it. // tslint:disable-next-line:custom-no-magic-numbers await sleepAsync(100); client.destroy(); - stopServer(); - done(); - }); - })(); + })().catch(done); + }); }); }); - /* - describe('#destroy', async () => { - it('should unsubscribe and trigger onClose when close() is called', (done: DoneCallback) => { - // tslint:disable-next-line:no-floating-promises - (async () => { - const wsServer = await setupServerAsync(); - let numMessages = 0; - wsServer.on('connect', ((connection: WebSocket.connection) => { - connection.on('message', (async (message: WSMessage) => { - const jsonRpcRequest = JSON.parse(message.utf8Data); - if (numMessages === 0) { - expect(jsonRpcRequest.method).to.be.equal('mesh_subscribe'); - const response = ` - { - "id": "${jsonRpcRequest.id}", - "jsonrpc": "2.0", - "result": "0xab1a3e8af590364c09d0fa6a12103ada" - } - `; - connection.sendUTF(response); - numMessages++; - return; - } - numMessages++; - }) as any); - }) as any); - - const client = new WSClient(`ws://localhost:${SERVER_PORT}`); - client.onClose(() => { - expect(numMessages).to.be.equal(2); - done(); - }); - // We need to add a sleep here so that we leave time for the client - // to get connected before destroying it. - // tslint:disable-next-line:custom-no-magic-numbers - await sleepAsync(100); - client.destroy(); - })().catch(done); - }); - }); - */ }); +function assertRoughlyEquals(a: number, b: number, delta: number): void { + expect(Math.abs(a - b)).to.be.lessThan(delta); +} + async function sleepAsync(ms: number): Promise { return new Promise(resolve => setTimeout(resolve, ms)); } diff --git a/rpc/clients/typescript/yarn.lock b/rpc/clients/typescript/yarn.lock index 13f42b924..fc3ce05dc 100644 --- a/rpc/clients/typescript/yarn.lock +++ b/rpc/clients/typescript/yarn.lock @@ -2,6 +2,26 @@ # yarn lockfile v1 +"@0x/abi-gen-wrappers@^5.3.2": + version "5.3.2" + resolved "https://registry.yarnpkg.com/@0x/abi-gen-wrappers/-/abi-gen-wrappers-5.3.2.tgz#bf7d1942f56916b7d13fae627f6455f309c5c8b5" + integrity sha512-zf5RDhdmPal06exhavdjpHknYxFJ9CJc6Fsc39Ju3hFhRUn57duQozKcFSwnpPHSqUq+gddZnRTfsSRfgpRplQ== + dependencies: + "@0x/base-contract" "^5.4.0" + "@0x/contract-addresses" "^3.2.0" + "@0x/contract-artifacts" "^2.2.2" + +"@0x/assert@^2.1.6": + version "2.1.6" + resolved "https://registry.yarnpkg.com/@0x/assert/-/assert-2.1.6.tgz#61c5854b555bca1f1f0503754f2fd0169bee0ef1" + integrity sha512-Gu8eBnFdEuIAH2GubWYOSVz/BIoRccKof68AziduYDHxh4nSPM6NUH52xtfUGk4nXljiOXU1XHZJhcjTObI+8Q== + dependencies: + "@0x/json-schemas" "^4.0.2" + "@0x/typescript-typings" "^4.3.0" + "@0x/utils" "^4.5.2" + lodash "^4.17.11" + valid-url "^1.0.9" + "@0x/assert@^3.0.2": version "3.0.2" resolved "https://registry.yarnpkg.com/@0x/assert/-/assert-3.0.2.tgz#412c6d06807b59d8a7747d32e87ba56c76a4bac8" @@ -13,6 +33,26 @@ lodash "^4.17.11" valid-url "^1.0.9" +"@0x/base-contract@^5.4.0": + version "5.4.0" + resolved "https://registry.yarnpkg.com/@0x/base-contract/-/base-contract-5.4.0.tgz#466ea98af22d7e629a21a7d16211c825664e2a48" + integrity sha512-YYkv8NwoOFCPqYS4xHAhdhYzM9PrkS03E2L4EaTJmUGOwYkfoRkbzun26Ml1fh4co7NWCfYyBqq9gfeO+wYXrA== + dependencies: + "@0x/assert" "^2.1.6" + "@0x/json-schemas" "^4.0.2" + "@0x/typescript-typings" "^4.3.0" + "@0x/utils" "^4.5.2" + "@0x/web3-wrapper" "^6.0.13" + ethereum-types "^2.1.6" + ethereumjs-account "^3.0.0" + ethereumjs-blockstream "^7.0.0" + ethereumjs-util "^5.1.1" + ethereumjs-vm "^4.0.0" + ethers "~4.0.4" + js-sha3 "^0.7.0" + lodash "^4.17.11" + uuid "^3.3.2" + "@0x/base-contract@^6.0.2": version "6.0.2" resolved "https://registry.yarnpkg.com/@0x/base-contract/-/base-contract-6.0.2.tgz#198bad06398bdb58da1b98a93bf41f4322e9a6cd" @@ -30,6 +70,13 @@ js-sha3 "^0.7.0" uuid "^3.3.2" +"@0x/contract-addresses@^3.2.0": + version "3.2.0" + resolved "https://registry.yarnpkg.com/@0x/contract-addresses/-/contract-addresses-3.2.0.tgz#606307696d9622764220a34e9d4638b899093eec" + integrity sha512-jCVEOgXPa3his4h2qm+O7tn9A2r8UJDgSzDhqhk+za237XxFc2No8TnnMP6qjew3l9ElNM1L+exZHxSd06xB/w== + dependencies: + lodash "^4.17.11" + "@0x/contract-addresses@^4.1.0": version "4.1.0" resolved "https://registry.yarnpkg.com/@0x/contract-addresses/-/contract-addresses-4.1.0.tgz#baa09961e9773457adca6988051412937b985cb9" @@ -37,6 +84,11 @@ dependencies: lodash "^4.17.11" +"@0x/contract-artifacts@^2.2.2": + version "2.2.2" + resolved "https://registry.yarnpkg.com/@0x/contract-artifacts/-/contract-artifacts-2.2.2.tgz#e6d771afb58d0b59c19c5364af5a42a3dfd17219" + integrity sha512-sbFnSXE6PlmYsbPXpKtEOR3YdVlSn63HhbPgQB3J5jm27wwQtnZ2Lf21I7BdiRBsHwwbf75C/s2pjNqafaRrgQ== + "@0x/contract-wrappers@^13.2.0": version "13.2.0" resolved "https://registry.yarnpkg.com/@0x/contract-wrappers/-/contract-wrappers-13.2.0.tgz#d03e3fd3e70a2b9223ab0409c576378e61dd7ed9" @@ -52,6 +104,24 @@ ethereum-types "^3.0.0" ethers "~4.0.4" +"@0x/contracts-dev-utils@^1.0.2": + version "1.0.2" + resolved "https://registry.yarnpkg.com/@0x/contracts-dev-utils/-/contracts-dev-utils-1.0.2.tgz#3803acf86ff0ea22120e1aca29d339994a7c0689" + integrity sha512-5mN1qKcjauNgyxqecVEcc1q7VLT+sMHcX9ilVP3fSAMgahsrezeE8xcqX7Wj1HX7iT46WBEO2Rfvf88OqzBg3w== + dependencies: + "@0x/base-contract" "^6.0.2" + +"@0x/contracts-erc1155@^2.0.2": + version "2.0.2" + resolved "https://registry.yarnpkg.com/@0x/contracts-erc1155/-/contracts-erc1155-2.0.2.tgz#60041d753c2fc76b6da43c914f0296cdae3e9c7c" + integrity sha512-jhVMx1oEwA2t6QsS7s4tLhFjyFAo+kZP0BOXczBLXGIzsW6VL43bJBi5mVY0gTPODQQaHxhc8Sy8Sp7JmhxH8Q== + dependencies: + "@0x/base-contract" "^6.0.2" + "@0x/contracts-test-utils" "^5.0.1" + "@0x/utils" "^5.1.1" + "@0x/web3-wrapper" "^7.0.2" + lodash "^4.17.11" + "@0x/contracts-erc20@^3.0.2": version "3.0.2" resolved "https://registry.yarnpkg.com/@0x/contracts-erc20/-/contracts-erc20-3.0.2.tgz#46f977997e833ff34e590f51f66784f4e62e0359" @@ -59,6 +129,27 @@ dependencies: "@0x/base-contract" "^6.0.2" +"@0x/contracts-erc721@^3.0.2": + version "3.0.2" + resolved "https://registry.yarnpkg.com/@0x/contracts-erc721/-/contracts-erc721-3.0.2.tgz#269ccb866230380fc0b0fd861ba7357fd1f1ea18" + integrity sha512-svGZPGMCriMcqAGjSqBxgMIAagt3dB2iiuaSw+G89G032LawdGnmlIvDIQSlKjAsFZu8+J1wwP0G515XpsPXRA== + dependencies: + "@0x/base-contract" "^6.0.2" + +"@0x/contracts-exchange@^3.0.2": + version "3.0.2" + resolved "https://registry.yarnpkg.com/@0x/contracts-exchange/-/contracts-exchange-3.0.2.tgz#f2696d07242e6cd7ad36e6c84a8fef306cd13958" + integrity sha512-YEZ1k5GKjPhW1x3ehXQvjJBeYbbpcwv0jYz54B+gZfLGHV6+gLykL1pQZr4oGuJW6A6TE2kkdoMdHTVC38ZrYw== + dependencies: + "@0x/base-contract" "^6.0.2" + "@0x/contracts-dev-utils" "^1.0.2" + "@0x/contracts-erc1155" "^2.0.2" + "@0x/contracts-erc20" "^3.0.2" + "@0x/contracts-erc721" "^3.0.2" + "@0x/order-utils" "^10.0.1" + "@0x/utils" "^5.1.1" + lodash "^4.17.11" + "@0x/contracts-test-utils@^5.0.1": version "5.0.1" resolved "https://registry.yarnpkg.com/@0x/contracts-test-utils/-/contracts-test-utils-5.0.1.tgz#d61cf2fceefe2931110276f87acf5fa5c26ec0b3" @@ -116,6 +207,16 @@ lodash "^4.17.11" web3-provider-engine "14.0.6" +"@0x/json-schemas@^4.0.2": + version "4.0.2" + resolved "https://registry.yarnpkg.com/@0x/json-schemas/-/json-schemas-4.0.2.tgz#6f7c1dcde04d3acc3e8ca2f24177b9705c10e772" + integrity sha512-JHOwESZeWKAzT5Z42ZNvOvQUQ5vuRIFQWS0FNjYwV8Cv4/dRlLHd7kwxxsvlm9NxgXnOW0ddEDBbVGxhVSYNIg== + dependencies: + "@0x/typescript-typings" "^4.3.0" + "@types/node" "*" + jsonschema "^1.2.0" + lodash.values "^4.3.0" + "@0x/json-schemas@^5.0.2": version "5.0.2" resolved "https://registry.yarnpkg.com/@0x/json-schemas/-/json-schemas-5.0.2.tgz#70d1804141d2b66126ad180e77dc25249819ca74" @@ -140,6 +241,29 @@ ethers "~4.0.4" lodash "^4.17.11" +"@0x/order-utils@^8.2.4": + version "8.4.0" + resolved "https://registry.yarnpkg.com/@0x/order-utils/-/order-utils-8.4.0.tgz#f7fe9c73f9fd82ab05ec3c04951049e904aab46a" + integrity sha512-EQh/YpfSKZSbfxetgN6RQmYuc2EpbpWF4f6WUAzm/JjXkCNAK429cMgofVr6Zy4U9ldj89zcODsnK6y6gnNIZQ== + dependencies: + "@0x/abi-gen-wrappers" "^5.3.2" + "@0x/assert" "^2.1.6" + "@0x/base-contract" "^5.4.0" + "@0x/contract-addresses" "^3.2.0" + "@0x/contract-artifacts" "^2.2.2" + "@0x/json-schemas" "^4.0.2" + "@0x/types" "^2.4.3" + "@0x/typescript-typings" "^4.3.0" + "@0x/utils" "^4.5.2" + "@0x/web3-wrapper" "^6.0.13" + "@types/node" "*" + bn.js "^4.11.8" + ethereum-types "^2.1.6" + ethereumjs-abi "0.6.5" + ethereumjs-util "^5.1.1" + ethers "~4.0.4" + lodash "^4.17.11" + "@0x/sol-compiler@^4.0.2": version "4.0.2" resolved "https://registry.yarnpkg.com/@0x/sol-compiler/-/sol-compiler-4.0.2.tgz#187268fdf1140f4f4613996663f349e7abe62cd3" @@ -299,7 +423,7 @@ tslint-react "^3.2.0" tsutils "3.0.0" -"@0x/types@^2.4.3": +"@0x/types@^2.4.1", "@0x/types@^2.4.3": version "2.4.3" resolved "https://registry.yarnpkg.com/@0x/types/-/types-2.4.3.tgz#ea014889789e9013fdf48ce97b79f2c016e10fb3" integrity sha512-3z4ca9fb9pyTu9lJhTSll5EuEthkA3tLAayyZixCoCnwi4ok6PJ83PnMMsSxlRY2iXr7QGbrQr6nU64YWk2WjA== @@ -328,7 +452,7 @@ ethereum-types "^2.1.4" popper.js "1.14.3" -"@0x/typescript-typings@^4.3.0": +"@0x/typescript-typings@^4.2.4", "@0x/typescript-typings@^4.3.0": version "4.3.0" resolved "https://registry.yarnpkg.com/@0x/typescript-typings/-/typescript-typings-4.3.0.tgz#4813a996ac5101841d1c22f4aa1738ab56168857" integrity sha512-6IH2JyKyl33+40tJ5rEhaMPTS2mVuRvoNmoXlCd/F0GPYSsDHMGObIXOkx+Qsw5SyCmqNs/3CTLeeCCqiSUdaw== @@ -369,6 +493,25 @@ js-sha3 "^0.7.0" lodash "^4.17.11" +"@0x/utils@^4.5.2": + version "4.5.2" + resolved "https://registry.yarnpkg.com/@0x/utils/-/utils-4.5.2.tgz#6cc89f2d0dda341e0fb4e76049a35abfb67a4ac5" + integrity sha512-NWfNcvyiOhouk662AWxX0ZVe4ednBZJS9WZT/by3DBCY/WvN7WHMpEy9M5rBCxO+JJndLYeB5eBztDp7W+Ytkw== + dependencies: + "@0x/types" "^2.4.3" + "@0x/typescript-typings" "^4.3.0" + "@types/node" "*" + abortcontroller-polyfill "^1.1.9" + bignumber.js "~8.0.2" + chalk "^2.3.0" + detect-node "2.0.3" + ethereum-types "^2.1.6" + ethereumjs-util "^5.1.1" + ethers "~4.0.4" + isomorphic-fetch "2.2.1" + js-sha3 "^0.7.0" + lodash "^4.17.11" + "@0x/utils@^5.1.1": version "5.1.1" resolved "https://registry.yarnpkg.com/@0x/utils/-/utils-5.1.1.tgz#1895529b5ec313f7056819458c8f55fbb19256cb" @@ -388,6 +531,20 @@ js-sha3 "^0.7.0" lodash "^4.17.11" +"@0x/web3-wrapper@^6.0.13": + version "6.0.13" + resolved "https://registry.yarnpkg.com/@0x/web3-wrapper/-/web3-wrapper-6.0.13.tgz#2e666221bd44ceebe02762028214d4aa41ad7247" + integrity sha512-LQjKBCCNdkJuhcJld+/sy+G0+sJu5qp9VDNNwJGLDxWIJpgoshhUpBPi7vUnZ79UY4SYuNcC4yM9yI61cs7ZiA== + dependencies: + "@0x/assert" "^2.1.6" + "@0x/json-schemas" "^4.0.2" + "@0x/typescript-typings" "^4.3.0" + "@0x/utils" "^4.5.2" + ethereum-types "^2.1.6" + ethereumjs-util "^5.1.1" + ethers "~4.0.4" + lodash "^4.17.11" + "@0x/web3-wrapper@^7.0.2": version "7.0.2" resolved "https://registry.yarnpkg.com/@0x/web3-wrapper/-/web3-wrapper-7.0.2.tgz#afdd12a3c2518207d56372397ae91e4a90634f46" @@ -2616,7 +2773,7 @@ ethereum-common@^0.0.18: resolved "https://registry.yarnpkg.com/ethereum-common/-/ethereum-common-0.0.18.tgz#2fdc3576f232903358976eb39da783213ff9523f" integrity sha1-L9w1dvIykDNYl26znaeDIT/5Uj8= -ethereum-types@^2.1.6: +ethereum-types@^2.1.4, ethereum-types@^2.1.6: version "2.1.6" resolved "https://registry.yarnpkg.com/ethereum-types/-/ethereum-types-2.1.6.tgz#57d9d515fad86ab987c0f6962c4203be37da8579" integrity sha512-xaN5TxLvkdFCGjGfUQ5wV00GHzDHStozP1j+K/YdmUeQXVGiD15cogYPhBVWG3pQJM/aBjtYrpMrjywvKkNC4A== From 3bf47d1b58cb5ce0f2c457767aab43afdfb3b901 Mon Sep 17 00:00:00 2001 From: Alex Towle Date: Mon, 23 Dec 2019 23:09:21 -0800 Subject: [PATCH 17/50] Improved the ts client tests - Added a rejection test to '#addOrdersAsync' - Added a cancel event test to '#subscribeToOrders' --- rpc/clients/typescript/package.json | 2 +- rpc/clients/typescript/test/ws_client_test.ts | 99 ++++++++++++-- rpc/clients/typescript/yarn.lock | 122 +----------------- 3 files changed, 88 insertions(+), 135 deletions(-) diff --git a/rpc/clients/typescript/package.json b/rpc/clients/typescript/package.json index e8a03769e..39905c790 100644 --- a/rpc/clients/typescript/package.json +++ b/rpc/clients/typescript/package.json @@ -52,7 +52,7 @@ "@0x/contracts-exchange": "^3.0.2", "@0x/contracts-test-utils": "^5.0.1", "@0x/dev-utils": "^3.0.2", - "@0x/order-utils": "^8.2.4", + "@0x/order-utils": "^10.0.1", "@0x/subproviders": "^6.0.2", "@0x/ts-doc-gen": "^0.0.13", "@0x/tslint-config": "^4.0.0", diff --git a/rpc/clients/typescript/test/ws_client_test.ts b/rpc/clients/typescript/test/ws_client_test.ts index 803ae4837..dd3a0af29 100644 --- a/rpc/clients/typescript/test/ws_client_test.ts +++ b/rpc/clients/typescript/test/ws_client_test.ts @@ -1,27 +1,32 @@ import {getContractAddressesForChainOrThrow} from '@0x/contract-addresses'; import {artifacts, DummyERC20TokenContract} from '@0x/contracts-erc20'; +import {ExchangeContract} from '@0x/contracts-exchange'; import {blockchainTests, constants, expect, OrderFactory, orderHashUtils} from '@0x/contracts-test-utils'; import {callbackErrorReporter, Web3Config, web3Factory} from '@0x/dev-utils'; import {assetDataUtils} from '@0x/order-utils'; import {Web3ProviderEngine} from '@0x/subproviders'; import {DoneCallback, SignedOrder} from '@0x/types'; -import {BigNumber} from '@0x/utils'; +import {BigNumber, hexUtils} from '@0x/utils'; import 'mocha'; import * as WebSocket from 'websocket'; import {OrderEvent, OrderEventEndState, WSClient} from '../src/index'; -import {WSMessage} from '../src/types'; +import {ContractEventKind, ExchangeCancelEvent, RejectedKind, WSMessage} from '../src/types'; import {SERVER_PORT, setupServerAsync, stopServer} from './utils/mock_ws_server'; import {MeshDeployment, startServerAndClientAsync} from './utils/ws_server'; blockchainTests.resets('WSClient', env => { describe('integration tests', () => { + let deployment: MeshDeployment; + let exchange: ExchangeContract; + let exchangeAddress: string; + let makerAddress: string; let orderFactory: OrderFactory; let provider: Web3ProviderEngine; - let deployment: MeshDeployment; const oneSecondInMs = 1000; + const twoSecondsInMs = 2000; beforeEach(async () => { deployment = await startServerAndClientAsync(); @@ -48,7 +53,7 @@ blockchainTests.resets('WSClient', env => { before(async () => { const chainId = await env.getChainIdAsync(); const accounts = await env.getAccountAddressesAsync(); - const [makerAddress] = accounts; + [makerAddress] = accounts; // Create a new provider so that the ganache instance running on port // 8545 will be used instead of the in-process ganache instance. @@ -60,7 +65,8 @@ blockchainTests.resets('WSClient', env => { }; provider = web3Factory.getRpcProvider(providerConfigs); - const exchangeAddress = getContractAddressesForChainOrThrow(chainId).exchange; + exchangeAddress = getContractAddressesForChainOrThrow(chainId).exchange; + exchange = new ExchangeContract(exchangeAddress, provider); const erc20ProxyAddress = getContractAddressesForChainOrThrow(chainId).erc20Proxy; // Configure two tokens and an order factory with a maker address so @@ -87,7 +93,7 @@ blockchainTests.resets('WSClient', env => { }); describe('#addOrdersAsync', async () => { - it('correctly validates a v3 order signed by OrderFactory `addOrdersAsync`', async () => { + it('accepts valid order', async () => { const order = await orderFactory.newSignedOrderAsync({}); const validationResults = await deployment.client.addOrdersAsync([order]); expect(validationResults).to.be.deep.eq({ @@ -100,6 +106,26 @@ blockchainTests.resets('WSClient', env => { rejected: [], }); }); + + it('rejects order with invalid signature', async () => { + const invalidOrder = { + ...(await orderFactory.newSignedOrderAsync({})), + signature: hexUtils.hash('0x0'), + }; + const validationResults = await deployment.client.addOrdersAsync([invalidOrder]); + expect(validationResults).to.be.deep.eq({ + accepted: [], + rejected: [{ + kind: RejectedKind.ZeroexValidation, + orderHash: orderHashUtils.getOrderHashHex(invalidOrder), + signedOrder: invalidOrder, + status: { + code: 'OrderHasInvalidSignature', + message: 'order signature must be valid', + }, + }], + }); + }); }); describe('#getStats', () => { @@ -165,7 +191,7 @@ blockchainTests.resets('WSClient', env => { const now = new Date(Date.now()).getTime(); const perPage = 10; const response = await deployment.client.getOrdersAsync(perPage); - assertRoughlyEquals(now, response.snapshotTimestamp * oneSecondInMs, oneSecondInMs); + assertRoughlyEquals(now, response.snapshotTimestamp * oneSecondInMs, twoSecondsInMs); // Verify that all of the orders that were added to the mesh node // were returned in the `getOrders` rpc response, and that the @@ -200,16 +226,15 @@ blockchainTests.resets('WSClient', env => { }); describe('#subscribeToOrdersAsync', async () => { - it('should receive subscription updates', (done: DoneCallback) => { + it('should receive subscription updates about added orders', (done: DoneCallback) => { (async () => { - // Create the subscription with a testing callback. const orders = [] as SignedOrder[]; - const now = new Date(Date.now()).getTime(); - const callback = (orderEvents: OrderEvent[]) => { + let now: number; + const subscription = deployment.client.subscribeToOrdersAsync((orderEvents: OrderEvent[]) => { expect(orderEvents.length).to.be.eq(orders.length); for (const orderEvent of orderEvents) { expect(orderEvent.endState).to.be.eq(OrderEventEndState.Added); - assertRoughlyEquals(now, orderEvent.timestampMs, oneSecondInMs); + assertRoughlyEquals(now, orderEvent.timestampMs, twoSecondsInMs); } // Ensure that all of the orders that were added had an associated order event emitted. @@ -228,20 +253,66 @@ blockchainTests.resets('WSClient', env => { } done(); - }; - const subscription = deployment.client.subscribeToOrdersAsync(callback); + }); // Add orders to the mesh node. const ordersLength = 10; for (let i = 0; i < ordersLength; i++) { orders[i] = await orderFactory.newSignedOrderAsync({}); } + now = new Date(Date.now()).getTime(); const validationResults = await deployment.client.addOrdersAsync(orders); expect(validationResults.accepted.length).to.be.eq(ordersLength); await subscription; })().catch(done); }); + + it('should receive subscription updates about cancelled orders', (done: DoneCallback) => { + (async () => { + // Add an order and then cancel it. + const order = await orderFactory.newSignedOrderAsync({}); + const validationResults = await deployment.client.addOrdersAsync([ order ]); + expect(validationResults.accepted.length).to.be.eq(1); + await exchange.cancelOrder(order).awaitTransactionSuccessAsync({ from: makerAddress }); + + // Subscribe to order events and assert that only a single cancel event was received. + const now = new Date(Date.now()).getTime(); + await deployment.client.subscribeToOrdersAsync((orderEvents: OrderEvent[]) => { + // Ensure that the correct cancel event was logged. + expect(orderEvents.length).to.be.eq(1); + const [orderEvent] = orderEvents; + expect(orderEvent.endState).to.be.eq(OrderEventEndState.Cancelled); + expect(orderEvent.fillableTakerAssetAmount).to.be.bignumber.eq(constants.ZERO_AMOUNT); + expect(orderEvent.signedOrder).to.be.deep.eq(order); + assertRoughlyEquals(orderEvent.timestampMs, now, twoSecondsInMs); + expect(orderEvent.contractEvents.length).to.be.eq(1); + + // Ensure that the contract event is correct. + const [contractEvent] = orderEvent.contractEvents; + expect(contractEvent.address).to.be.eq(exchangeAddress); + expect(contractEvent.kind).to.be.equal(ContractEventKind.ExchangeCancelEvent); + expect(contractEvent.logIndex).to.be.eq(0); + expect(contractEvent.isRemoved).to.be.false(); + expect(contractEvent.txIndex).to.be.eq(0); + const hashLength = 66; + expect(contractEvent.blockHash.length).to.be.eq(hashLength); + expect(contractEvent.blockHash).to.not.be.eq(constants.NULL_BYTES32); + expect(contractEvent.txHash.length).to.be.eq(hashLength); + expect(contractEvent.txHash.length).to.be.eq(hashLength); + const parameters = contractEvent.parameters as ExchangeCancelEvent; + parameters.makerAddress = parameters.makerAddress.toLowerCase(); + parameters.senderAddress = parameters.makerAddress; + expect(parameters.feeRecipientAddress.toLowerCase()).to.be.eq(order.feeRecipientAddress); + expect(parameters.makerAddress.toLowerCase()).to.be.eq(makerAddress); + expect(parameters.makerAssetData).to.be.eq(order.makerAssetData); + expect(parameters.orderHash).to.be.eq(orderHashUtils.getOrderHashHex(order)); + expect(parameters.senderAddress.toLowerCase()).to.be.eq(makerAddress); + expect(parameters.takerAssetData).to.be.eq(order.takerAssetData); + done(); + }); + })().catch(done); + }); }); }); diff --git a/rpc/clients/typescript/yarn.lock b/rpc/clients/typescript/yarn.lock index fc3ce05dc..99cd619a7 100644 --- a/rpc/clients/typescript/yarn.lock +++ b/rpc/clients/typescript/yarn.lock @@ -2,26 +2,6 @@ # yarn lockfile v1 -"@0x/abi-gen-wrappers@^5.3.2": - version "5.3.2" - resolved "https://registry.yarnpkg.com/@0x/abi-gen-wrappers/-/abi-gen-wrappers-5.3.2.tgz#bf7d1942f56916b7d13fae627f6455f309c5c8b5" - integrity sha512-zf5RDhdmPal06exhavdjpHknYxFJ9CJc6Fsc39Ju3hFhRUn57duQozKcFSwnpPHSqUq+gddZnRTfsSRfgpRplQ== - dependencies: - "@0x/base-contract" "^5.4.0" - "@0x/contract-addresses" "^3.2.0" - "@0x/contract-artifacts" "^2.2.2" - -"@0x/assert@^2.1.6": - version "2.1.6" - resolved "https://registry.yarnpkg.com/@0x/assert/-/assert-2.1.6.tgz#61c5854b555bca1f1f0503754f2fd0169bee0ef1" - integrity sha512-Gu8eBnFdEuIAH2GubWYOSVz/BIoRccKof68AziduYDHxh4nSPM6NUH52xtfUGk4nXljiOXU1XHZJhcjTObI+8Q== - dependencies: - "@0x/json-schemas" "^4.0.2" - "@0x/typescript-typings" "^4.3.0" - "@0x/utils" "^4.5.2" - lodash "^4.17.11" - valid-url "^1.0.9" - "@0x/assert@^3.0.2": version "3.0.2" resolved "https://registry.yarnpkg.com/@0x/assert/-/assert-3.0.2.tgz#412c6d06807b59d8a7747d32e87ba56c76a4bac8" @@ -33,26 +13,6 @@ lodash "^4.17.11" valid-url "^1.0.9" -"@0x/base-contract@^5.4.0": - version "5.4.0" - resolved "https://registry.yarnpkg.com/@0x/base-contract/-/base-contract-5.4.0.tgz#466ea98af22d7e629a21a7d16211c825664e2a48" - integrity sha512-YYkv8NwoOFCPqYS4xHAhdhYzM9PrkS03E2L4EaTJmUGOwYkfoRkbzun26Ml1fh4co7NWCfYyBqq9gfeO+wYXrA== - dependencies: - "@0x/assert" "^2.1.6" - "@0x/json-schemas" "^4.0.2" - "@0x/typescript-typings" "^4.3.0" - "@0x/utils" "^4.5.2" - "@0x/web3-wrapper" "^6.0.13" - ethereum-types "^2.1.6" - ethereumjs-account "^3.0.0" - ethereumjs-blockstream "^7.0.0" - ethereumjs-util "^5.1.1" - ethereumjs-vm "^4.0.0" - ethers "~4.0.4" - js-sha3 "^0.7.0" - lodash "^4.17.11" - uuid "^3.3.2" - "@0x/base-contract@^6.0.2": version "6.0.2" resolved "https://registry.yarnpkg.com/@0x/base-contract/-/base-contract-6.0.2.tgz#198bad06398bdb58da1b98a93bf41f4322e9a6cd" @@ -70,13 +30,6 @@ js-sha3 "^0.7.0" uuid "^3.3.2" -"@0x/contract-addresses@^3.2.0": - version "3.2.0" - resolved "https://registry.yarnpkg.com/@0x/contract-addresses/-/contract-addresses-3.2.0.tgz#606307696d9622764220a34e9d4638b899093eec" - integrity sha512-jCVEOgXPa3his4h2qm+O7tn9A2r8UJDgSzDhqhk+za237XxFc2No8TnnMP6qjew3l9ElNM1L+exZHxSd06xB/w== - dependencies: - lodash "^4.17.11" - "@0x/contract-addresses@^4.1.0": version "4.1.0" resolved "https://registry.yarnpkg.com/@0x/contract-addresses/-/contract-addresses-4.1.0.tgz#baa09961e9773457adca6988051412937b985cb9" @@ -84,11 +37,6 @@ dependencies: lodash "^4.17.11" -"@0x/contract-artifacts@^2.2.2": - version "2.2.2" - resolved "https://registry.yarnpkg.com/@0x/contract-artifacts/-/contract-artifacts-2.2.2.tgz#e6d771afb58d0b59c19c5364af5a42a3dfd17219" - integrity sha512-sbFnSXE6PlmYsbPXpKtEOR3YdVlSn63HhbPgQB3J5jm27wwQtnZ2Lf21I7BdiRBsHwwbf75C/s2pjNqafaRrgQ== - "@0x/contract-wrappers@^13.2.0": version "13.2.0" resolved "https://registry.yarnpkg.com/@0x/contract-wrappers/-/contract-wrappers-13.2.0.tgz#d03e3fd3e70a2b9223ab0409c576378e61dd7ed9" @@ -207,16 +155,6 @@ lodash "^4.17.11" web3-provider-engine "14.0.6" -"@0x/json-schemas@^4.0.2": - version "4.0.2" - resolved "https://registry.yarnpkg.com/@0x/json-schemas/-/json-schemas-4.0.2.tgz#6f7c1dcde04d3acc3e8ca2f24177b9705c10e772" - integrity sha512-JHOwESZeWKAzT5Z42ZNvOvQUQ5vuRIFQWS0FNjYwV8Cv4/dRlLHd7kwxxsvlm9NxgXnOW0ddEDBbVGxhVSYNIg== - dependencies: - "@0x/typescript-typings" "^4.3.0" - "@types/node" "*" - jsonschema "^1.2.0" - lodash.values "^4.3.0" - "@0x/json-schemas@^5.0.2": version "5.0.2" resolved "https://registry.yarnpkg.com/@0x/json-schemas/-/json-schemas-5.0.2.tgz#70d1804141d2b66126ad180e77dc25249819ca74" @@ -241,29 +179,6 @@ ethers "~4.0.4" lodash "^4.17.11" -"@0x/order-utils@^8.2.4": - version "8.4.0" - resolved "https://registry.yarnpkg.com/@0x/order-utils/-/order-utils-8.4.0.tgz#f7fe9c73f9fd82ab05ec3c04951049e904aab46a" - integrity sha512-EQh/YpfSKZSbfxetgN6RQmYuc2EpbpWF4f6WUAzm/JjXkCNAK429cMgofVr6Zy4U9ldj89zcODsnK6y6gnNIZQ== - dependencies: - "@0x/abi-gen-wrappers" "^5.3.2" - "@0x/assert" "^2.1.6" - "@0x/base-contract" "^5.4.0" - "@0x/contract-addresses" "^3.2.0" - "@0x/contract-artifacts" "^2.2.2" - "@0x/json-schemas" "^4.0.2" - "@0x/types" "^2.4.3" - "@0x/typescript-typings" "^4.3.0" - "@0x/utils" "^4.5.2" - "@0x/web3-wrapper" "^6.0.13" - "@types/node" "*" - bn.js "^4.11.8" - ethereum-types "^2.1.6" - ethereumjs-abi "0.6.5" - ethereumjs-util "^5.1.1" - ethers "~4.0.4" - lodash "^4.17.11" - "@0x/sol-compiler@^4.0.2": version "4.0.2" resolved "https://registry.yarnpkg.com/@0x/sol-compiler/-/sol-compiler-4.0.2.tgz#187268fdf1140f4f4613996663f349e7abe62cd3" @@ -423,7 +338,7 @@ tslint-react "^3.2.0" tsutils "3.0.0" -"@0x/types@^2.4.1", "@0x/types@^2.4.3": +"@0x/types@^2.4.1": version "2.4.3" resolved "https://registry.yarnpkg.com/@0x/types/-/types-2.4.3.tgz#ea014889789e9013fdf48ce97b79f2c016e10fb3" integrity sha512-3z4ca9fb9pyTu9lJhTSll5EuEthkA3tLAayyZixCoCnwi4ok6PJ83PnMMsSxlRY2iXr7QGbrQr6nU64YWk2WjA== @@ -452,7 +367,7 @@ ethereum-types "^2.1.4" popper.js "1.14.3" -"@0x/typescript-typings@^4.2.4", "@0x/typescript-typings@^4.3.0": +"@0x/typescript-typings@^4.2.4": version "4.3.0" resolved "https://registry.yarnpkg.com/@0x/typescript-typings/-/typescript-typings-4.3.0.tgz#4813a996ac5101841d1c22f4aa1738ab56168857" integrity sha512-6IH2JyKyl33+40tJ5rEhaMPTS2mVuRvoNmoXlCd/F0GPYSsDHMGObIXOkx+Qsw5SyCmqNs/3CTLeeCCqiSUdaw== @@ -493,25 +408,6 @@ js-sha3 "^0.7.0" lodash "^4.17.11" -"@0x/utils@^4.5.2": - version "4.5.2" - resolved "https://registry.yarnpkg.com/@0x/utils/-/utils-4.5.2.tgz#6cc89f2d0dda341e0fb4e76049a35abfb67a4ac5" - integrity sha512-NWfNcvyiOhouk662AWxX0ZVe4ednBZJS9WZT/by3DBCY/WvN7WHMpEy9M5rBCxO+JJndLYeB5eBztDp7W+Ytkw== - dependencies: - "@0x/types" "^2.4.3" - "@0x/typescript-typings" "^4.3.0" - "@types/node" "*" - abortcontroller-polyfill "^1.1.9" - bignumber.js "~8.0.2" - chalk "^2.3.0" - detect-node "2.0.3" - ethereum-types "^2.1.6" - ethereumjs-util "^5.1.1" - ethers "~4.0.4" - isomorphic-fetch "2.2.1" - js-sha3 "^0.7.0" - lodash "^4.17.11" - "@0x/utils@^5.1.1": version "5.1.1" resolved "https://registry.yarnpkg.com/@0x/utils/-/utils-5.1.1.tgz#1895529b5ec313f7056819458c8f55fbb19256cb" @@ -531,20 +427,6 @@ js-sha3 "^0.7.0" lodash "^4.17.11" -"@0x/web3-wrapper@^6.0.13": - version "6.0.13" - resolved "https://registry.yarnpkg.com/@0x/web3-wrapper/-/web3-wrapper-6.0.13.tgz#2e666221bd44ceebe02762028214d4aa41ad7247" - integrity sha512-LQjKBCCNdkJuhcJld+/sy+G0+sJu5qp9VDNNwJGLDxWIJpgoshhUpBPi7vUnZ79UY4SYuNcC4yM9yI61cs7ZiA== - dependencies: - "@0x/assert" "^2.1.6" - "@0x/json-schemas" "^4.0.2" - "@0x/typescript-typings" "^4.3.0" - "@0x/utils" "^4.5.2" - ethereum-types "^2.1.6" - ethereumjs-util "^5.1.1" - ethers "~4.0.4" - lodash "^4.17.11" - "@0x/web3-wrapper@^7.0.2": version "7.0.2" resolved "https://registry.yarnpkg.com/@0x/web3-wrapper/-/web3-wrapper-7.0.2.tgz#afdd12a3c2518207d56372397ae91e4a90634f46" From 08ed20d0d400beec391da42329cb24ff39500521 Mon Sep 17 00:00:00 2001 From: Alex Browne Date: Tue, 31 Dec 2019 19:55:32 -0500 Subject: [PATCH 18/50] Switch to Go Modules for managing dependencies --- .circleci/config.yml | 9 +- CONTRIBUTING.md | 19 +- Gopkg.lock | 1458 ------------------------------------------ Gopkg.toml | 149 ----- Makefile | 14 +- go.mod | 162 +++++ go.sum | 764 ++++++++++++++++++++++ 7 files changed, 941 insertions(+), 1634 deletions(-) delete mode 100644 Gopkg.lock delete mode 100644 Gopkg.toml create mode 100644 go.mod create mode 100644 go.sum diff --git a/.circleci/config.yml b/.circleci/config.yml index a6a62ecf6..8f2e8e9e4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -9,12 +9,8 @@ jobs: environment: VERSION: 4.3.3 resource_class: large - working_directory: /go/src/github.com/0xProject/0x-mesh steps: - checkout - - run: - name: Install dep - command: curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh - run: name: Install nvm command: curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash @@ -31,9 +27,12 @@ jobs: - run: name: Install dependencies command: make deps-no-lockfile + - run: + name: Vendor Go dependencies as a workaround for https://github.com/golangci/golangci-lint/issues/865 + command: go mod vendor - run: name: Install Go linter - command: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.16.0 + command: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.22.2 - run: name: Run linters command: make lint diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 45ed1f53b..d9641b5b0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,14 +1,12 @@ # 0x Mesh Development and Contribution Guide -## Directory Location - -If you are working on 0x-mesh, the root directory for the project must be at -**\$GOPATH/src/github.com/0xProject/0x-mesh**. 0x Mesh uses -[Dep](https://golang.github.io/dep/docs/installation.html) for dependency -management and does not support Go modules. - ## Cloning the Repository and Opening PRs +Clone the repository with `git clone git@github.com:0xProject/0x-mesh.git`. Mesh +uses [Go Modules](https://github.com/golang/go/wiki/Modules) for dependency +management, so depending on your settings you might need to clone the repository +_outside_ of your `GOPATH`. + 0x Mesh uses two main branches: 1. The `development` branch contains the latest (possibly unreleased) changes @@ -33,10 +31,9 @@ the dropdown menu in the GitHub UI to select `development`. - [GNU Make](https://www.gnu.org/software/make/) If you are using a Unix-like OS, you probably already have this. - [Go version 1.12.x](https://golang.org/dl/) (or use [the version manager called "g"](https://github.com/stefanmaric/g)). Go 1.13 is not supported yet (see https://github.com/0xProject/0x-mesh/issues/480). -- [Dep package manager](https://golang.github.io/dep/docs/installation.html) - [Node.js version >=11](https://nodejs.org/en/download/) (or use the [nvm version manager](https://github.com/creationix/nvm)) - [Yarn package manager](https://yarnpkg.com/en/) -- [golangci-lint version 1.16.0](https://github.com/golangci/golangci-lint#install) +- [golangci-lint version 1.22.2](https://github.com/golangci/golangci-lint#install) ## Installing Dependencies @@ -101,7 +98,9 @@ make lint ## Managing Dependencies -See https://golang.github.io/dep/docs/daily-dep.html. +Mesh uses [Go Modules](https://github.com/golang/go/wiki/Modules) for managing +Go dependencies and [Yarn](https://yarnpkg.com/lang/en/) for managing +TypeScript/JavaScript dependencies. ## Editor Configuration diff --git a/Gopkg.lock b/Gopkg.lock deleted file mode 100644 index bbca4ef74..000000000 --- a/Gopkg.lock +++ /dev/null @@ -1,1458 +0,0 @@ -# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. - - -[[projects]] - digest = "1:a8a7b3ab27d90a3c63b5d2fe6e23c80a79d2b68708490b90bb160ccc7836c831" - name = "github.com/albrow/stringset" - packages = ["."] - pruneopts = "UT" - revision = "5cbcec770ff3993feab398d47a8c0ca9f0a812de" - version = "v2.1.0" - -[[projects]] - digest = "1:d99d7505ed692718d6b2d0e5ed3aac6c0a0bca4f8892c8989776dcefdb529dc7" - name = "github.com/allegro/bigcache" - packages = [ - ".", - "queue", - ] - pruneopts = "UT" - revision = "69ea0af04088faa57adb9ac683934277141e92a5" - version = "v2.0.0" - -[[projects]] - branch = "master" - digest = "1:7d191fd0c54ff370eaf6116a14dafe2a328df487baea280699f597aae858d00d" - name = "github.com/aristanetworks/goarista" - packages = ["monotime"] - pruneopts = "UT" - revision = "ed1100a1c0154be237da0078e86b19c523c8c661" - -[[projects]] - branch = "master" - digest = "1:0ad5484a25fbd88409bae8b8b19134135fe73d3cb00e45d3255280b2ab975fcc" - name = "github.com/benbjohnson/clock" - packages = ["."] - pruneopts = "UT" - revision = "7dc76406b6d3c05b5f71a86293cbcf3c4ea03b19" - -[[projects]] - branch = "master" - digest = "1:9e7c5138114ff9c51a60731b3a425c319305013c6ea8b3f60fd2435baba1a0db" - name = "github.com/btcsuite/btcd" - packages = ["btcec"] - pruneopts = "UT" - revision = "4063feeff79a0da1b08cc857e89d4602e91a294c" - -[[projects]] - branch = "master" - digest = "1:70df0bb21a1a4847f05c0cdfaadc39468f13cdabf0bdfde01bc89b1ae4c074eb" - name = "github.com/chromedp/cdproto" - packages = [ - ".", - "accessibility", - "animation", - "applicationcache", - "audits", - "backgroundservice", - "browser", - "cachestorage", - "cast", - "cdp", - "css", - "database", - "debugger", - "deviceorientation", - "dom", - "domdebugger", - "domsnapshot", - "domstorage", - "emulation", - "fetch", - "headlessexperimental", - "heapprofiler", - "indexeddb", - "input", - "inspector", - "io", - "layertree", - "log", - "media", - "memory", - "network", - "overlay", - "page", - "performance", - "profiler", - "runtime", - "security", - "serviceworker", - "storage", - "systeminfo", - "target", - "tethering", - "tracing", - "webaudio", - "webauthn", - ] - pruneopts = "UT" - revision = "b5ac1e37ce90b05a556d6d6ce1f4beee5e8cd23e" - -[[projects]] - digest = "1:2e5122f1f956687cbebd5e652857b28a593a26eef899ac14c5c3437b6f640cf6" - name = "github.com/chromedp/chromedp" - packages = [ - ".", - "device", - "kb", - ] - pruneopts = "UT" - revision = "c956994840a529a4f213d4b27346bfeee1beec05" - version = "v0.4.0" - -[[projects]] - digest = "1:05ffeeed3f0f05520de0679f6aa3219ffee69cfd6d9fb6c194879d4c818ad670" - name = "github.com/coreos/go-semver" - packages = ["semver"] - pruneopts = "UT" - revision = "e214231b295a8ea9479f11b70b35d5acf3556d9b" - version = "v0.3.0" - -[[projects]] - digest = "1:ffe9824d294da03b391f44e1ae8281281b4afc1bdaa9588c9097785e3af10cec" - name = "github.com/davecgh/go-spew" - packages = ["spew"] - pruneopts = "UT" - revision = "8991bc29aa16c548c550c7ff78260e27b9ab7c73" - version = "v1.1.1" - -[[projects]] - digest = "1:e47d51dab652d26c3fba6f8cba403f922d02757a82abdc77e90df7948daf296e" - name = "github.com/deckarep/golang-set" - packages = ["."] - pruneopts = "UT" - revision = "cbaa98ba5575e67703b32b4b19f73c91f3c4159e" - version = "v1.7.1" - -[[projects]] - digest = "1:edb569dd02419a41ddd98768cc0e7aec922ef19dae139731e5ca750afcf6f4c5" - name = "github.com/edsrzf/mmap-go" - packages = ["."] - pruneopts = "UT" - revision = "188cc3b666ba704534fa4f96e9e61f21f1e1ba7c" - version = "v1.0.0" - -[[projects]] - digest = "1:2b2daa41f40acd66f4aa0ae213bfd286096663c999a26deb773127b7864c6bd0" - name = "github.com/elastic/gosigar" - packages = [ - ".", - "sys/windows", - ] - pruneopts = "UT" - revision = "7aef3366157f2bfdf3e068f73ce7193573e88e0c" - version = "v0.10.5" - -[[projects]] - branch = "wasm_signer_core_2" - digest = "1:bbc4486af33869a4e70dc531efe493b62705df27f89251c8917b92b32ca8cb1e" - name = "github.com/ethereum/go-ethereum" - packages = [ - ".", - "accounts", - "accounts/abi", - "accounts/abi/bind", - "accounts/external", - "accounts/keystore", - "accounts/scwallet", - "accounts/usbwallet", - "accounts/usbwallet/trezor", - "common", - "common/bitutil", - "common/hexutil", - "common/math", - "common/mclock", - "common/prque", - "consensus", - "consensus/clique", - "consensus/ethash", - "consensus/misc", - "core", - "core/bloombits", - "core/rawdb", - "core/state", - "core/types", - "core/vm", - "crypto", - "crypto/blake2b", - "crypto/bn256", - "crypto/bn256/cloudflare", - "crypto/bn256/google", - "crypto/ecies", - "crypto/secp256k1", - "eth/downloader", - "ethclient", - "ethdb", - "ethdb/leveldb", - "ethdb/memorydb", - "event", - "internal/ethapi", - "log", - "metrics", - "p2p", - "p2p/discover", - "p2p/discv5", - "p2p/enode", - "p2p/enr", - "p2p/nat", - "p2p/netutil", - "params", - "rlp", - "rpc", - "signer/core", - "signer/storage", - "trie", - ] - pruneopts = "T" - revision = "9d5c202240bebe50324e4bbe8d6fc0759e0a9cdd" - source = "github.com/0xProject/go-ethereum" - -[[projects]] - digest = "1:488fd8ad8e2a40f5a4dc76dd1fc8e90f850bc481d2991f34b4b9720f48fd2f48" - name = "github.com/gballet/go-libpcsclite" - packages = ["."] - pruneopts = "UT" - revision = "2fd9b619dd3c5d74acbd975f997a6441984d74a7" - -[[projects]] - digest = "1:586ea76dbd0374d6fb649a91d70d652b7fe0ccffb8910a77468e7702e7901f3d" - name = "github.com/go-stack/stack" - packages = ["."] - pruneopts = "UT" - revision = "2fee6af1a9795aafbe0253a0cfbdf668e1fb8a9a" - version = "v1.8.0" - -[[projects]] - branch = "master" - digest = "1:368ba96ddacaae2fe265afcac3062a199908f7dc0c6569d6e05a7a13042cccf1" - name = "github.com/gobwas/httphead" - packages = ["."] - pruneopts = "UT" - revision = "2c6c146eadee0b69f856f87e3e9f1d0cd6aad2f5" - -[[projects]] - digest = "1:bdfe3b97ff03e4f7252c74cfaefb20050a360c8fb760701014ebf99c9540abd1" - name = "github.com/gobwas/pool" - packages = [ - ".", - "internal/pmath", - "pbufio", - "pbytes", - ] - pruneopts = "UT" - revision = "fa3125c39d7eca32e1387bb69b1b38dcb31b1e0b" - version = "v0.2.0" - -[[projects]] - digest = "1:aea6697202cefa9365797c4c8ad0a1dbdf15ba21600ddc599a9000629a2ecb6f" - name = "github.com/gobwas/ws" - packages = [ - ".", - "wsutil", - ] - pruneopts = "UT" - revision = "05baaea2bbcfe8963301c62d9931c882d59595cd" - version = "v1.0.2" - -[[projects]] - digest = "1:9964b22a5a8ffdb200ecc7c4abedb338f16408eb2ccc46e8e5a68a25e52037dd" - name = "github.com/gogo/protobuf" - packages = [ - "gogoproto", - "io", - "proto", - "protoc-gen-gogo/descriptor", - ] - pruneopts = "UT" - revision = "5628607bb4c51c3157aacc3a50f0ab707582b805" - version = "v1.3.1" - -[[projects]] - digest = "1:500eb6e1e42991b51d2cc0c5bc9e47043f7eec8fe4a9b100b85abf49cfb910db" - name = "github.com/golang/protobuf" - packages = [ - "proto", - "protoc-gen-go/descriptor", - ] - pruneopts = "UT" - revision = "6c65a5562fc06764971b7c5d05c76c75e84bdbf7" - version = "v1.3.2" - -[[projects]] - digest = "1:e4f5819333ac698d294fe04dbf640f84719658d5c7ce195b10060cc37292ce79" - name = "github.com/golang/snappy" - packages = ["."] - pruneopts = "UT" - revision = "2a8bb927dd31d8daada140a5d09578521ce5c36a" - version = "v0.0.1" - -[[projects]] - digest = "1:582b704bebaa06b48c29b0cec224a6058a09c86883aaddabde889cd1a5f73e1b" - name = "github.com/google/uuid" - packages = ["."] - pruneopts = "UT" - revision = "0cd6bf5da1e1c83f8b45653022c74f71af0538a4" - version = "v1.1.1" - -[[projects]] - digest = "1:7b5c6e2eeaa9ae5907c391a91c132abfd5c9e8a784a341b5625e750c67e6825d" - name = "github.com/gorilla/websocket" - packages = ["."] - pruneopts = "UT" - revision = "66b9c49e59c6c48f0ffce28c2d8b8a5678502c6d" - version = "v1.4.0" - -[[projects]] - digest = "1:c77361e611524ec8f2ad37c408c3c916111a70b6acf806a1200855696bf8fa4d" - name = "github.com/hashicorp/golang-lru" - packages = [ - ".", - "simplelru", - ] - pruneopts = "UT" - revision = "7f827b33c0f158ec5dfbba01bb0b14a4541fd81d" - version = "v0.5.3" - -[[projects]] - digest = "1:c00cc6d95a674b4b923ac069d364445043bc67836e9bd8aeff8440cfbe6a2cc7" - name = "github.com/huin/goupnp" - packages = [ - ".", - "dcps/internetgateway1", - "dcps/internetgateway2", - "httpu", - "scpd", - "soap", - "ssdp", - ] - pruneopts = "UT" - revision = "656e61dfadd241c7cbdd22a023fa81ecb6860ea8" - version = "v1.0.0" - -[[projects]] - digest = "1:19585338f4a1bde53952e23367e0c613513524a76f3b5de0ea5f1793dc0cedec" - name = "github.com/ipfs/go-cid" - packages = ["."] - pruneopts = "UT" - revision = "9bb7ea69202c6c9553479eb355ab8a8a97d43a2e" - version = "v0.0.3" - -[[projects]] - digest = "1:cfea9f0d7922f624c9cc312a6fed0bd5a0fe63f5ec728df09b796484b3696d0a" - name = "github.com/ipfs/go-datastore" - packages = [ - ".", - "autobatch", - "query", - "sync", - ] - pruneopts = "UT" - revision = "aa9190c18f1576be98e974359fd08c64ca0b5a94" - version = "v0.0.5" - -[[projects]] - digest = "1:ab70bd10c780d127a66393a14061ae69ae0145027e7207b7c43db68524f3f64a" - name = "github.com/ipfs/go-ds-leveldb" - packages = ["."] - pruneopts = "UT" - revision = "47a9627082eeb3e52570a75eb4fdfaff8b2f19a9" - version = "v0.0.2" - -[[projects]] - digest = "1:0b4439ae69776549e6489b261f66894a1390140dad53f1c3b1fbfc074478590d" - name = "github.com/ipfs/go-ipfs-util" - packages = ["."] - pruneopts = "UT" - revision = "a4bb5361e49427531f9a716ead2ce4bd9bdd7959" - version = "v0.0.1" - -[[projects]] - digest = "1:e8c78569402b8dcf846924dea6eb27b1de135c9a53d7adbd2629250ef66c021a" - name = "github.com/ipfs/go-log" - packages = [ - ".", - "tracer", - "tracer/wire", - "writer", - ] - pruneopts = "UT" - revision = "91b837264c0f35dd4e2be341d711316b91d3573d" - version = "v0.0.1" - -[[projects]] - digest = "1:5d5961815f8e4f1fbad28f6c7ff5e42fcd9527aa823a5daa19b622b9cc41d1ed" - name = "github.com/ipfs/go-todocounter" - packages = ["."] - pruneopts = "UT" - revision = "bc75efcf13e6e50fbba27679ba5451585d70c954" - version = "v0.0.1" - -[[projects]] - digest = "1:b352ae8b1a77cc6b48fc8e314e34a522cfc76d6ca3a06c93b29c9cde5de6771e" - name = "github.com/jackpal/gateway" - packages = ["."] - pruneopts = "UT" - revision = "cbcf4e3f3baee7952fc386c8b2534af4d267c875" - version = "v1.0.5" - -[[projects]] - digest = "1:32b82e71cf24f8b78323e0d7903c4b90278486283965aa2a19b1ea13763b8f34" - name = "github.com/jackpal/go-nat-pmp" - packages = ["."] - pruneopts = "UT" - revision = "c9cfead9f2a36ddf3daa40ba269aa7f4bbba6b62" - version = "v1.0.1" - -[[projects]] - branch = "master" - digest = "1:8f4aedc183dc8dfef9a7a1f1ba205dc87ecd2675eea350a736bda889e3bcf8ea" - name = "github.com/jbenet/go-temp-err-catcher" - packages = ["."] - pruneopts = "UT" - revision = "aac704a3f4f27190b4ccc05f303a4931fd1241ff" - -[[projects]] - digest = "1:ee4b434dc3622e5c25a611ce314d40dd724495f27968797a2589a4d89eeed7eb" - name = "github.com/jbenet/goprocess" - packages = [ - ".", - "context", - "periodic", - "ratelimit", - ] - pruneopts = "UT" - revision = "7f9d9ed286badffcf2122cfeb383ec37daf92508" - version = "v0.1.3" - -[[projects]] - digest = "1:b6bbd2f9e0724bd81890c8644259f920c6d61c08453978faff0bebd25f3e7d3e" - name = "github.com/jpillora/backoff" - packages = ["."] - pruneopts = "UT" - revision = "8eab2debe79d12b7bd3d10653910df25fa9552ba" - version = "1.0.0" - -[[projects]] - branch = "master" - digest = "1:07344d622b6b60cd844956753e51e6029ce340ac763709b433a2b717fef7d817" - name = "github.com/karalabe/usb" - packages = ["."] - pruneopts = "NT" - revision = "911d15fe12a9c411cf5d0dd5635231c759399bed" - -[[projects]] - digest = "1:9642c35dd8d4b8981d58327a917f178898baf9b331373748dd50439aec5c2628" - name = "github.com/karlseguin/ccache" - packages = ["."] - pruneopts = "UT" - revision = "ec06cd93a07565b373789b0078ba88fe697fddd9" - version = "v2.0.3" - -[[projects]] - branch = "master" - digest = "1:8cb15b21828b36ad568850d0ecb9340e22b148c8c6755f4a3d7918021bfc38a2" - name = "github.com/knq/sysutil" - packages = ["."] - pruneopts = "UT" - revision = "f05b59f0f3075ba1bc5701ef0df4393a05ebd0e7" - -[[projects]] - digest = "1:31e761d97c76151dde79e9d28964a812c46efc5baee4085b86f68f0c654450de" - name = "github.com/konsorten/go-windows-terminal-sequences" - packages = ["."] - pruneopts = "UT" - revision = "f55edac94c9bbba5d6182a4be46d86a2c9b5b50e" - version = "v1.0.2" - -[[projects]] - digest = "1:58ad79834dc097c36a857a8c325d646af0a8bbd73375a6958a639507c5399a61" - name = "github.com/koron/go-ssdp" - packages = ["."] - pruneopts = "UT" - revision = "6d1709049dead37ead37808479f88c9bffa2c4d6" - version = "v0.1" - -[[projects]] - digest = "1:12cb143f2148bf54bcd9fe622abac17325e85eeb1d84b8ec6caf1c80232108fd" - name = "github.com/lib/pq" - packages = [ - ".", - "oid", - "scram", - ] - pruneopts = "UT" - revision = "3427c32cb71afc948325f299f040e53c1dd78979" - version = "v1.2.0" - -[[projects]] - digest = "1:483fcb9b21a758b47501f8880628b85aa3c4e99e33166867d06fa278965c66b2" - name = "github.com/libp2p/go-addr-util" - packages = ["."] - pruneopts = "UT" - revision = "4cd36c0f325f9e38f1e31ff7a10b9d94d53a11cf" - version = "v0.0.1" - -[[projects]] - digest = "1:b18a269f11ff51135d6f82987dbb53288f4d66098a6639b429f4f494a910155b" - name = "github.com/libp2p/go-buffer-pool" - packages = ["."] - pruneopts = "UT" - revision = "c4a5988a1e475884367015e1a2d0bd5fa4c491f4" - version = "v0.0.2" - -[[projects]] - digest = "1:041a5219e2f0c1fa2af5d25aee6970600ba2ac055ba386c18cfe960d392df3db" - name = "github.com/libp2p/go-conn-security-multistream" - packages = ["."] - pruneopts = "UT" - revision = "09b4134a655b5fc883a5bdd62ea12db6e0a1b095" - version = "v0.1.0" - -[[projects]] - digest = "1:b4832a8b2e39da71a088a001c25e5e2cf5298519b0bcdfb26f04ac43da406437" - name = "github.com/libp2p/go-eventbus" - packages = ["."] - pruneopts = "UT" - revision = "d34a18eba211bd65b32a4a7a06390fc441257cbd" - version = "v0.1.0" - -[[projects]] - digest = "1:1ffb29b986b15f06b10cab31b35ed95833425231da824467c4798763b56ffdfd" - name = "github.com/libp2p/go-flow-metrics" - packages = ["."] - pruneopts = "UT" - revision = "45424fab0a7cfaae9c5bdda0e590ee844c12b904" - -[[projects]] - digest = "1:03c4382bfd9f7af55959d5cb0199aead9a6200cffbb0f6e64217c64d552d45c6" - name = "github.com/libp2p/go-libp2p" - packages = [ - ".", - "config", - "p2p/host/basic", - "p2p/host/relay", - "p2p/host/routed", - "p2p/protocol/identify", - "p2p/protocol/identify/pb", - "p2p/protocol/ping", - ] - pruneopts = "UT" - revision = "071f7de0736eda0f57cc3b5643ca65af364cd01f" - version = "v0.3.0" - -[[projects]] - digest = "1:9a8251be38a87690510affa2e2fb04799a066b8ef49edc25a6acd30760d40792" - name = "github.com/libp2p/go-libp2p-autonat" - packages = [ - ".", - "pb", - ] - pruneopts = "UT" - revision = "3464f9b4f7bfbd7bb008813eacb626c7ab7fb9a3" - version = "v0.1.0" - -[[projects]] - digest = "1:04832a4429ccc5e9d793c6c27a5807c5854a79d44a893c80cb72d0bf8dfc157f" - name = "github.com/libp2p/go-libp2p-autonat-svc" - packages = ["."] - pruneopts = "UT" - revision = "51a8fe550623e6ebae91c9b43755e2ee9c310549" - version = "v0.1.0" - -[[projects]] - digest = "1:b46e5cfd6d2637c24ec445b7d915e99a29be97ebcf9b08ea0bf05380f0e45c98" - name = "github.com/libp2p/go-libp2p-circuit" - packages = [ - ".", - "pb", - ] - pruneopts = "UT" - revision = "61af9db0dd78e01e53b9fb044be44dcc7255667e" - version = "v0.1.4" - -[[projects]] - digest = "1:791094f50065b4fb4cfd27ef423594e31d11c8205267355191a06becaefccb67" - name = "github.com/libp2p/go-libp2p-connmgr" - packages = ["."] - pruneopts = "UT" - revision = "b46e9bdbcd8436b4fe4b30a53ec913c07e5e09c9" - version = "v0.1.1" - -[[projects]] - digest = "1:db0e57655b61643c357c14999b6fba19b10c3b6c9b866fd712ca8deb490bcb2f" - name = "github.com/libp2p/go-libp2p-core" - packages = [ - "connmgr", - "crypto", - "crypto/pb", - "discovery", - "event", - "helpers", - "host", - "metrics", - "mux", - "network", - "peer", - "peerstore", - "pnet", - "protocol", - "routing", - "sec", - "sec/insecure", - "sec/insecure/pb", - "test", - "transport", - ] - pruneopts = "UT" - revision = "d204016fc64589d0ec2ba965dd686d768d7ab34a" - version = "v0.2.2" - -[[projects]] - digest = "1:35caf66f415bddda628d9410a20a6bcd8ac3deebbda33de1220d3f7ee3a14ccd" - name = "github.com/libp2p/go-libp2p-crypto" - packages = ["."] - pruneopts = "UT" - revision = "ddb6d72b5ad0ae81bf1ee77b628eac1d7237536a" - version = "v0.1.0" - -[[projects]] - digest = "1:0333065da4682126d7c1aa07dd11d94accc3b93b48945ebb7f6a921e2f6b0db2" - name = "github.com/libp2p/go-libp2p-discovery" - packages = ["."] - pruneopts = "UT" - revision = "d248d63b0af8c023307da18ad7000a12020e06f0" - version = "v0.1.0" - -[[projects]] - digest = "1:76120e78893593ad83f0c202f699da54b1eafb967cdb1bfe318279087086c1cc" - name = "github.com/libp2p/go-libp2p-kad-dht" - packages = [ - ".", - "metrics", - "opts", - "pb", - "providers", - ] - pruneopts = "UT" - revision = "8ecf9380a4f75200f628339883acdf56c2b85a5a" - version = "v0.3.0" - -[[projects]] - digest = "1:a8e19025329b4b8c5d406856dcaee8e4a503c7d33a2d61dfa2e7921303eddc8b" - name = "github.com/libp2p/go-libp2p-kbucket" - packages = [ - ".", - "keyspace", - ] - pruneopts = "UT" - revision = "8b77351e0f784a5f71749d23000897c8aee71a76" - version = "v0.2.1" - -[[projects]] - digest = "1:645c5ab1429b06141e0d22852df9561e04b3759380f6657f0b510a30eef83665" - name = "github.com/libp2p/go-libp2p-loggables" - packages = ["."] - pruneopts = "UT" - revision = "814642b01726ff6f9302e8ce9eeeb00d25409520" - version = "v0.1.0" - -[[projects]] - digest = "1:714ce7cff748910cfc250713300d24ece7d4832156ba7a245e7ac5fc810c7319" - name = "github.com/libp2p/go-libp2p-mplex" - packages = ["."] - pruneopts = "UT" - revision = "811729f15f0af13fe3f0d9e410c22f6a4bc5c686" - version = "v0.2.1" - -[[projects]] - digest = "1:4614c7d351b9cc24ef6457107fad9830664615bb7d7de91de10c4a4ab1919545" - name = "github.com/libp2p/go-libp2p-nat" - packages = ["."] - pruneopts = "UT" - revision = "c50c291a61bceccb914366d93eb24f58594e9134" - version = "v0.0.4" - -[[projects]] - digest = "1:79d1cf3e88f9ae667c30039cc37a6ad0be8bf0fa9b5359b572253de74b24c644" - name = "github.com/libp2p/go-libp2p-peer" - packages = ["."] - pruneopts = "UT" - revision = "62676d8fb785a8fc279878cbe8e03b878f005910" - version = "v0.2.0" - -[[projects]] - digest = "1:3446a24a8dbc134e292d9020f436b85fcf4edcea61f7f51cb95e27c4b834a3c4" - name = "github.com/libp2p/go-libp2p-peerstore" - packages = [ - ".", - "addr", - "pb", - "pstoreds", - "pstoremem", - "queue", - ] - pruneopts = "UT" - revision = "f4c9af195c69379f1cf284dba31985482a56f78e" - version = "v0.1.3" - -[[projects]] - digest = "1:639e2ee83cffd5445eeffd1cb8ba50b690028dc98464abac24e93a15abca8c8b" - name = "github.com/libp2p/go-libp2p-pubsub" - packages = [ - ".", - "pb", - ] - pruneopts = "UT" - revision = "49274b0e8aecdf6cad59d768e5702ff00aa48488" - version = "v0.1.0" - -[[projects]] - digest = "1:43383ef25cdadc348025cef99b26d9880ad06058fdc64b1eb8ec281fa5cabfcb" - name = "github.com/libp2p/go-libp2p-record" - packages = [ - ".", - "pb", - ] - pruneopts = "UT" - revision = "3f535b1abcdf698e11ac16f618c2e64c4e5a114a" - version = "v0.1.1" - -[[projects]] - digest = "1:ab8374423f8b7148d55e6d7ec848d248a0707b2af8a8b8a5b3608887d9ec485d" - name = "github.com/libp2p/go-libp2p-routing" - packages = ["notifications"] - pruneopts = "UT" - revision = "f4ece6c1baa8e77ee488b25014fcb1059955ed0f" - version = "v0.1.0" - -[[projects]] - digest = "1:610cfdab8af216ef4033a55d39f42ec1aaef8775c308b8ee49d6aeb637f08100" - name = "github.com/libp2p/go-libp2p-secio" - packages = [ - ".", - "pb", - ] - pruneopts = "UT" - revision = "7c3f577d99debb69c3b68be35fe14d9445a6569c" - version = "v0.2.0" - -[[projects]] - digest = "1:f68ac3efcf0533be36927674407457ce46be583535f8f5745728b5743537a150" - name = "github.com/libp2p/go-libp2p-swarm" - packages = ["."] - pruneopts = "UT" - revision = "221d8d5e05a0252049203c8f74d4f38b64da9963" - version = "v0.2.0" - -[[projects]] - digest = "1:2fcb80000123d80148ce210a053a226d52dc891419905d7ff076c164825da50d" - name = "github.com/libp2p/go-libp2p-transport-upgrader" - packages = ["."] - pruneopts = "UT" - revision = "07ed92ccf9aba3a2e4b2fddc4c17ced060524922" - version = "v0.1.1" - -[[projects]] - digest = "1:c476d8c20126fdc217055de367da2a8c4d78da52bf0818dedd6c92e87795021c" - name = "github.com/libp2p/go-libp2p-yamux" - packages = ["."] - pruneopts = "UT" - revision = "a61e80cb5770aa0d9b1bafe94da1278f58baa2c5" - version = "v0.2.1" - -[[projects]] - digest = "1:da5210a8d4351f2a89d4c051d6faa3515f9c5330656c2ad53c915c63297c69b2" - name = "github.com/libp2p/go-maddr-filter" - packages = ["."] - pruneopts = "UT" - revision = "4d5679194bce9c87a81d3b9948a4b5edd5ddc094" - version = "v0.0.5" - -[[projects]] - digest = "1:fd01fc96631a63d323f17fcbd64161804439855404b9405db14deacba9e1b69c" - name = "github.com/libp2p/go-mplex" - packages = ["."] - pruneopts = "UT" - revision = "62fe9554facaec3f80333b61ea8d694fe615705f" - version = "v0.1.0" - -[[projects]] - digest = "1:c9e9340913c74e8a3e93cbf8e60d93563ac780ea3ea0cd77a4ff501e6d0c18aa" - name = "github.com/libp2p/go-msgio" - packages = ["."] - pruneopts = "UT" - revision = "9142103f7d8dc5a74a91116b8f927fe8d8bf4a96" - version = "v0.0.4" - -[[projects]] - digest = "1:82e0411449d8af0c34e200cd6b90e70689d692d17f836906194fa9fc28692e80" - name = "github.com/libp2p/go-nat" - packages = ["."] - pruneopts = "UT" - revision = "d13fdefb3bbb2fde2c6fc090a7ea992cec8b26df" - version = "v0.0.3" - -[[projects]] - digest = "1:3af2c593e383d5335067854e8ecad0f2149329ef4c737718c358682bc3e1a48f" - name = "github.com/libp2p/go-openssl" - packages = [ - ".", - "utils", - ] - pruneopts = "UT" - revision = "3d5df67ba7ee392569fadc2307d4c00dc8169470" - version = "v0.0.2" - -[[projects]] - digest = "1:3218d9edf75d814d2994ce4b14fae01c657a3284af84522efcc8dee89806f4ca" - name = "github.com/libp2p/go-reuseport" - packages = ["."] - pruneopts = "UT" - revision = "3e6d618acfdfacbbeff71cb2bd70fc188f897a0f" - version = "v0.0.1" - -[[projects]] - digest = "1:bf12fbd51fb864c9e2cb688581d3c14551a8c3d1c2fa60c9ad405c532e1b9d42" - name = "github.com/libp2p/go-reuseport-transport" - packages = ["."] - pruneopts = "UT" - revision = "c7583c88df654a2ecd621e863f661783d79b64d1" - version = "v0.0.2" - -[[projects]] - digest = "1:58a6c4b9e52e298228703f9bf480d65c40ede7152a9ad17aa1eafe618ed0b43a" - name = "github.com/libp2p/go-stream-muxer-multistream" - packages = ["."] - pruneopts = "UT" - revision = "2439b02deee2de8bb1fe24473d3d8333008a714a" - version = "v0.2.0" - -[[projects]] - digest = "1:ac5ce11098023fcf8164307727a2b99d69e2bb84a3b1f4bc3e1d10fd72f9bdbd" - name = "github.com/libp2p/go-tcp-transport" - packages = ["."] - pruneopts = "UT" - revision = "415627e90148700bf97890e54b193a42125c3b66" - version = "v0.1.0" - -[[projects]] - digest = "1:6ea9a67637e5c396fcd4a1fbfd66d35cd30d1f8dbc68766151e1fd476059078b" - name = "github.com/libp2p/go-ws-transport" - packages = ["."] - pruneopts = "UT" - revision = "3098bba549e89efc42055199c2dca3d95ac70744" - -[[projects]] - digest = "1:64fdef1e970d17504d960d18412125e85ca620703e495105b3fbffee27acf568" - name = "github.com/libp2p/go-yamux" - packages = ["."] - pruneopts = "UT" - revision = "663972181d409e7263040f0b668462f87c85e1bd" - version = "v1.2.3" - -[[projects]] - branch = "master" - digest = "1:ad157c87bae81a72ca4cc7b5d2da8907eeedf060ac9828833bfa3013982f6f66" - name = "github.com/mailru/easyjson" - packages = [ - ".", - "buffer", - "jlexer", - "jwriter", - ] - pruneopts = "UT" - revision = "b2ccc519800e761ac8000b95e5d57c80a897ff9e" - -[[projects]] - digest = "1:7c084e0e780596dd2a7e20d25803909a9a43689c153de953520dfbc0b0e51166" - name = "github.com/mattn/go-colorable" - packages = ["."] - pruneopts = "UT" - revision = "8029fb3788e5a4a9c00e415f586a6d033f5d38b3" - version = "v0.1.2" - -[[projects]] - digest = "1:9b90c7639a41697f3d4ad12d7d67dfacc9a7a4a6e0bbfae4fc72d0da57c28871" - name = "github.com/mattn/go-isatty" - packages = ["."] - pruneopts = "UT" - revision = "1311e847b0cb909da63b5fecfb5370aa66236465" - version = "v0.0.8" - -[[projects]] - digest = "1:0356f3312c9bd1cbeda81505b7fd437501d8e778ab66998ef69f00d7f9b3a0d7" - name = "github.com/mattn/go-runewidth" - packages = ["."] - pruneopts = "UT" - revision = "3ee7d812e62a0804a7d0a324e0249ca2db3476d3" - version = "v0.0.4" - -[[projects]] - branch = "master" - digest = "1:130cefe87d7eeefc824978dcb78e35672d4c49a11f25c153fbf0cfd952756fa3" - name = "github.com/minio/blake2b-simd" - packages = ["."] - pruneopts = "UT" - revision = "3f5f724cb5b182a5c278d6d3d55b40e7f8c2efb4" - -[[projects]] - digest = "1:d69117243f58a0d320c2889872d8c14d323d865277dc49fc85bfcf48b2846b8f" - name = "github.com/minio/sha256-simd" - packages = ["."] - pruneopts = "UT" - revision = "05b4dd3047e5d6e86cb4e0477164b850cd896261" - version = "v0.1.0" - -[[projects]] - digest = "1:b6299badabd66eaede0651e2eaede106d8298b25564e4a7f23e335471d3e5a35" - name = "github.com/mr-tron/base58" - packages = ["base58"] - pruneopts = "UT" - revision = "d504ab2e22d97cb9f10b1d146a1e6a063f4a5f43" - version = "v1.1.2" - -[[projects]] - digest = "1:b9fe622bbadbb060338620752b1cb3aa1473855071195ebe83813af5ebb3629b" - name = "github.com/multiformats/go-base32" - packages = ["."] - pruneopts = "UT" - revision = "a9c2755c3d1672dbe6a7e4a5d182169fa30b6a8e" - version = "v0.0.3" - -[[projects]] - digest = "1:9c0e900fd1efc02fd7feeadb7d7db7744ee57f9e3eecb7e158b6ff1f09a63907" - name = "github.com/multiformats/go-multiaddr" - packages = ["."] - pruneopts = "UT" - revision = "64e34154803fd9bd07ef4c6480be117ec72e35fc" - version = "v0.1.2" - -[[projects]] - digest = "1:a2987033573b5613126cdc063851692f086c2fec096e003caa93ee79eb8be54e" - name = "github.com/multiformats/go-multiaddr-dns" - packages = ["."] - pruneopts = "UT" - revision = "aeb5743691b968cfa3365c9da59ef872a3133c87" - version = "v0.2.0" - -[[projects]] - digest = "1:1275cf8587ba416c439453ee4b194b803270b836831c487b3da3cf9d82f58bb7" - name = "github.com/multiformats/go-multiaddr-fmt" - packages = ["."] - pruneopts = "UT" - revision = "7d8102a98552c80f8a5ccb9c01e670fac17fd6df" - version = "v0.0.1" - -[[projects]] - digest = "1:ccb950e76138c70abe765c3b9c0e6cad0e55fc66ff53318cea8b651df9f892c7" - name = "github.com/multiformats/go-multiaddr-net" - packages = ["."] - pruneopts = "UT" - revision = "bd61b0499a3cfc893a8eb109c5669342b1671881" - version = "v0.0.1" - -[[projects]] - digest = "1:8f2a32f6d211bf2685d5c47ace5d6b59bd4359f69e92b632793d066129a65c4e" - name = "github.com/multiformats/go-multibase" - packages = ["."] - pruneopts = "UT" - revision = "d63641945dc1749baa23686ad0564ad63fef0493" - version = "v0.0.1" - -[[projects]] - digest = "1:83c4c7eef11b74d0dfacdd9464e4d694ebc3d2012c7f295a92551bb1b3a1b32a" - name = "github.com/multiformats/go-multihash" - packages = ["."] - pruneopts = "UT" - revision = "0e239d8fa37b597bd150660e5b6845570aa5b833" - version = "v0.0.6" - -[[projects]] - digest = "1:026ef80e6db7432132c7687d23b465e0c4bdb47a4aed893ee4b7d528a0550059" - name = "github.com/multiformats/go-multistream" - packages = ["."] - pruneopts = "UT" - revision = "039807e4901c4b2041f40a0e4aa32d72939608aa" - version = "v0.1.0" - -[[projects]] - digest = "1:dd9dd64e4d3b2ba805ff282bac63a705b1f99d330b00885a303191460dc66a60" - name = "github.com/multiformats/go-varint" - packages = ["."] - pruneopts = "UT" - revision = "5fad25c55a589bef37064e53f268a5bf952ae779" - version = "v0.0.1" - -[[projects]] - branch = "master" - digest = "1:7f728b11da089d6162d536b9adfe0d68abc9a6f277585d82f14601791ebaf9c2" - name = "github.com/ocdogan/rbt" - packages = ["."] - pruneopts = "UT" - revision = "de6e2b48be337942e6298423f95725aba2152cea" - -[[projects]] - digest = "1:abcdbf03ca6ca13d3697e2186edc1f33863bbdac2b3a44dfa39015e8903f7409" - name = "github.com/olekukonko/tablewriter" - packages = ["."] - pruneopts = "UT" - revision = "e6d60cf7ba1f42d86d54cdf5508611c4aafb3970" - version = "v0.0.1" - -[[projects]] - branch = "master" - digest = "1:64b1a16a92daaf21057c2d60e423687f06ca1d85b1b3115fa55d9d78c1f51ef3" - name = "github.com/opaolini/go-ds-sql" - packages = ["."] - pruneopts = "UT" - revision = "15a4c8e2fea5eb23d3faa139a46a945861616aad" - -[[projects]] - digest = "1:11e62d6050198055e6cd87ed57e5d8c669e84f839c16e16f192374d913d1a70d" - name = "github.com/opentracing/opentracing-go" - packages = [ - ".", - "ext", - "log", - ] - pruneopts = "UT" - revision = "659c90643e714681897ec2521c60567dd21da733" - version = "v1.1.0" - -[[projects]] - digest = "1:e5d0bd87abc2781d14e274807a470acd180f0499f8bf5bb18606e9ec22ad9de9" - name = "github.com/pborman/uuid" - packages = ["."] - pruneopts = "UT" - revision = "adf5a7427709b9deb95d29d3fa8a2bf9cfd388f1" - version = "v1.2" - -[[projects]] - digest = "1:cf31692c14422fa27c83a05292eb5cbe0fb2775972e8f1f8446a71549bd8980b" - name = "github.com/pkg/errors" - packages = ["."] - pruneopts = "UT" - revision = "ba968bfe8b2f7e042a574c888954fccecfa385b4" - version = "v0.8.1" - -[[projects]] - digest = "1:1161eb0f91cb535b559db421f5e59c59fa7f231d27533018cc527157083a7fff" - name = "github.com/plaid/go-envvar" - packages = ["envvar"] - pruneopts = "UT" - revision = "9426fece058e5c4d8715f543a76b361e3156435a" - version = "v1.1.0" - -[[projects]] - digest = "1:0028cb19b2e4c3112225cd871870f2d9cf49b9b4276531f03438a88e94be86fe" - name = "github.com/pmezard/go-difflib" - packages = ["difflib"] - pruneopts = "UT" - revision = "792786c7400a136282c1664665ae0a8db921c6c2" - version = "v1.0.0" - -[[projects]] - digest = "1:19a227084137c73d7a519ff90acc9fa69855c2ba134bb9c7dfe94e9ad2949c64" - name = "github.com/prometheus/tsdb" - packages = ["fileutil"] - pruneopts = "UT" - revision = "7762249358193da791ec62e72b080d908f96e776" - version = "v0.10.0" - -[[projects]] - digest = "1:31d83d1b1c288073c91abadee3caec87de2a1fb5dbe589039264a802e67a26b8" - name = "github.com/rjeczalik/notify" - packages = ["."] - pruneopts = "UT" - revision = "69d839f37b13a8cb7a78366f7633a4071cb43be7" - version = "v0.9.2" - -[[projects]] - digest = "1:c5dfe46811af7e2eff7c11fc84b6c841520338613c056f659f262d5a4fb42fa8" - name = "github.com/rs/cors" - packages = ["."] - pruneopts = "UT" - revision = "db0fe48135e83b5812a5a31be0eea66984b1b521" - version = "v1.7.0" - -[[projects]] - digest = "1:04457f9f6f3ffc5fea48e71d62f2ca256637dee0a04d710288e27e05c8b41976" - name = "github.com/sirupsen/logrus" - packages = ["."] - pruneopts = "UT" - revision = "839c75faf7f98a33d445d181f3018b5c3409a45e" - version = "v1.4.2" - -[[projects]] - branch = "master" - digest = "1:d6956eb95db39859627c18e1dd425b2ddd1a0d6000b643a4d4ada8fc887c1e09" - name = "github.com/spacemonkeygo/spacelog" - packages = ["."] - pruneopts = "UT" - revision = "2296661a0572a51438413369004fa931c2641923" - -[[projects]] - digest = "1:919bb3aa6d9d0b67648c219fa4925312bc3c2872da19e818fa769e9c97a2b643" - name = "github.com/spaolacci/murmur3" - packages = ["."] - pruneopts = "UT" - revision = "9f5d223c60793748f04a9d5b4b4eacddfc1f755d" - version = "v1.1" - -[[projects]] - branch = "develop" - digest = "1:6deccaba5762377091f2e5b26dba70e630e01edb3f95d1a6a59d9b098bd4358f" - name = "github.com/status-im/keycard-go" - packages = ["derivationpath"] - pruneopts = "UT" - revision = "d95853db0f480b9d6379009500acf44b21dc0be6" - -[[projects]] - digest = "1:266e2f508feb9a9a765bfeb74d116a88514248b2f8428788dcce574bd026b9c0" - name = "github.com/steakknife/bloomfilter" - packages = ["."] - pruneopts = "UT" - revision = "99ee86d9200fcc2ffde62f508329bd6627c0a307" - version = "1.0.4" - -[[projects]] - digest = "1:5ca4bdccd72e66aaba5b52f9c4a21f1021102f0919432fe138ad5d48abf06833" - name = "github.com/steakknife/hamming" - packages = ["."] - pruneopts = "UT" - revision = "003c143a81c25ea5e263d692919c611c7122ae6b" - version = "0.2.5" - -[[projects]] - digest = "1:5da8ce674952566deae4dbc23d07c85caafc6cfa815b0b3e03e41979cedb8750" - name = "github.com/stretchr/testify" - packages = [ - "assert", - "require", - ] - pruneopts = "UT" - revision = "ffdc059bfe9ce6a4e144ba849dbedead332c6053" - version = "v1.3.0" - -[[projects]] - branch = "full-wasm-support-0x-1" - digest = "1:d7a75c1fa8610ec1e49a6a19b776494b605ba5ea64de90d896d61c024710c2e9" - name = "github.com/syndtr/goleveldb" - packages = [ - "leveldb", - "leveldb/cache", - "leveldb/comparer", - "leveldb/errors", - "leveldb/filter", - "leveldb/iterator", - "leveldb/journal", - "leveldb/memdb", - "leveldb/opt", - "leveldb/storage", - "leveldb/table", - "leveldb/util", - ] - pruneopts = "UT" - revision = "6a187a47701c736768b0cff429ccb5ba5fb73767" - source = "github.com/0xProject/goleveldb" - -[[projects]] - digest = "1:91b40a2adb6b4ccd51b1dfb306edfa76139e1599b01666346085472b386f5447" - name = "github.com/tyler-smith/go-bip39" - packages = [ - ".", - "wordlists", - ] - pruneopts = "UT" - revision = "5e3853c3f4e1a44df487c7efeb064ee8b43755de" - version = "1.0.2" - -[[projects]] - branch = "master" - digest = "1:98fa13beefbf581ec173561adad6374c460631593b4bdcf03adc29cd18e5d2f5" - name = "github.com/whyrusleeping/base32" - packages = ["."] - pruneopts = "UT" - revision = "c30ac30633ccdabefe87eb12465113f06f1bab75" - -[[projects]] - branch = "master" - digest = "1:b33eed6794f2b2d1a7d0b45cb705402f26af0f0ad6521667e144ffa71f52d9d9" - name = "github.com/whyrusleeping/go-keyspace" - packages = ["."] - pruneopts = "UT" - revision = "5b898ac5add1da7178a4a98e69cb7b9205c085ee" - -[[projects]] - branch = "master" - digest = "1:0102dfa2f98777db8ff68c920bef1be3ff8504e90485b6cdd24d61b981b487b6" - name = "github.com/whyrusleeping/go-logging" - packages = ["."] - pruneopts = "UT" - revision = "0457bb6b88fc1973573aaf6b5145d8d3ae972390" - -[[projects]] - branch = "master" - digest = "1:94796f9decedb46b17985693cbe996ce3642a991f0efcf7bf9a6c5197da3eefc" - name = "github.com/whyrusleeping/go-notifier" - packages = ["."] - pruneopts = "UT" - revision = "097c5d47330ff6a823f67e3515faa13566a62c6f" - -[[projects]] - digest = "1:6c96967502c55c555abfe560f561a124951345e713a8e87cc6e2c214976e6e75" - name = "github.com/whyrusleeping/mafmt" - packages = ["."] - pruneopts = "UT" - revision = "7aa7fad2ede4e7157818e3e7af5061f866a9ae23" - version = "v1.2.8" - -[[projects]] - branch = "master" - digest = "1:94b933c1b26f1da25d25a089937d15987170a0a54109aa521a111345c3e84581" - name = "github.com/whyrusleeping/multiaddr-filter" - packages = ["."] - pruneopts = "UT" - revision = "e903e4adabd70b78bc9293b6ee4f359afb3f9f59" - -[[projects]] - branch = "master" - digest = "1:1ccd9d66ae1abe6b3b28d8b68e09387533fee345d8bbaa753af2fa16e0505807" - name = "github.com/whyrusleeping/timecache" - packages = ["."] - pruneopts = "UT" - revision = "cfcb2f1abfee846c430233aef0b630a946e0a5a6" - -[[projects]] - branch = "master" - digest = "1:7dca0da64f5937af74f21618cdb812c8f16a7d042316dd5bf2f1dfd086be3fc6" - name = "github.com/wsddn/go-ecdh" - packages = ["."] - pruneopts = "UT" - revision = "48726bab92085232373de4ec5c51ce7b441c63a0" - -[[projects]] - branch = "master" - digest = "1:d9464a87e24a9703fd6b9b27b3592559eb7f5886285d724cb0acd62d00a5ddbf" - name = "github.com/xeipuuv/gojsonpointer" - packages = ["."] - pruneopts = "UT" - revision = "df4f5c81cb3b310899c091852a576ea7d178aedb" - -[[projects]] - branch = "master" - digest = "1:dc6a6c28ca45d38cfce9f7cb61681ee38c5b99ec1425339bfc1e1a7ba769c807" - name = "github.com/xeipuuv/gojsonreference" - packages = ["."] - pruneopts = "UT" - revision = "bd5ef7bd5415a7ac448318e64f11a24cd21e594b" - -[[projects]] - digest = "1:1c898ea6c30c16e8d55fdb6fe44c4bee5f9b7d68aa260cfdfc3024491dcc7bea" - name = "github.com/xeipuuv/gojsonschema" - packages = ["."] - pruneopts = "UT" - revision = "f971f3cd73b2899de6923801c147f075263e0c50" - version = "v1.1.0" - -[[projects]] - digest = "1:0509a2e8721ffedf3c03ebed1ac8eda633b8f4ee812d5edcac5c5d77eaeb7f0d" - name = "go.opencensus.io" - packages = [ - "internal/tagencoding", - "metric/metricdata", - "metric/metricproducer", - "resource", - "stats", - "stats/internal", - "stats/view", - "tag", - ] - pruneopts = "UT" - revision = "9c377598961b706d1542bd2d84d538b5094d596e" - version = "v0.22.0" - -[[projects]] - branch = "master" - digest = "1:773ddb90836d4606a22e88c3b5e32422a9abb23ccf70fa1e093151e651ffd91d" - name = "golang.org/x/crypto" - packages = [ - "blake2s", - "curve25519", - "ed25519", - "ed25519/internal/edwards25519", - "pbkdf2", - "ripemd160", - "scrypt", - "sha3", - "ssh/terminal", - ] - pruneopts = "UT" - revision = "4def268fd1a49955bfb3dda92fe3db4f924f2285" - -[[projects]] - branch = "master" - digest = "1:25cf7c515ad2f67103b324618cb60f08245904283a6bfd35fee09ea864c412ba" - name = "golang.org/x/net" - packages = [ - "bpf", - "html", - "html/atom", - "html/charset", - "internal/iana", - "internal/socket", - "ipv4", - ] - pruneopts = "UT" - revision = "ca1201d0de80cfde86cb01aea620983605dfe99b" - -[[projects]] - branch = "master" - digest = "1:afce8593ac5918df05a46499b04b8c4e46a91e99566055e4a8ba829a8f389a09" - name = "golang.org/x/sys" - packages = [ - "cpu", - "unix", - "windows", - ] - pruneopts = "UT" - revision = "51ab0e2deafac1f46c46ad59cf0921be2f180c3d" - -[[projects]] - digest = "1:7570a3e4daa14b7627089e77ad8c714f5f36b4cf1b7dfd8510df7d6935dc42a0" - name = "golang.org/x/text" - packages = [ - "encoding", - "encoding/charmap", - "encoding/htmlindex", - "encoding/internal", - "encoding/internal/identifier", - "encoding/japanese", - "encoding/korean", - "encoding/simplifiedchinese", - "encoding/traditionalchinese", - "encoding/unicode", - "internal/gen", - "internal/language", - "internal/language/compact", - "internal/tag", - "internal/triegen", - "internal/ucd", - "internal/utf8internal", - "language", - "runes", - "transform", - "unicode/cldr", - "unicode/norm", - ] - pruneopts = "UT" - revision = "342b2e1fbaa52c93f31447ad2c6abc048c63e475" - version = "v0.3.2" - -[[projects]] - branch = "master" - digest = "1:a2f668c709f9078828e99cb1768cb02e876cb81030545046a32b54b2ac2a9ea8" - name = "golang.org/x/time" - packages = ["rate"] - pruneopts = "UT" - revision = "555d28b269f0569763d25dbe1a237ae74c6bcc82" - -[[projects]] - branch = "master" - digest = "1:7b5ce208ea2ca1f96322e6a5b616839fe49ea798648a013039f300475a1aadfc" - name = "golang.org/x/xerrors" - packages = [ - ".", - "internal", - ] - pruneopts = "UT" - revision = "a985d3407aa71f30cf86696ee0a2f409709f22e1" - -[[projects]] - branch = "v2" - digest = "1:3d3f9391ab615be8655ae0d686a1564f3fec413979bb1aaf018bac1ec1bb1cc7" - name = "gopkg.in/natefinch/npipe.v2" - packages = ["."] - pruneopts = "UT" - revision = "c1b8fa8bdccecb0b8db834ee0b92fdbcfa606dd6" - -[solve-meta] - analyzer-name = "dep" - analyzer-version = 1 - input-imports = [ - "github.com/albrow/stringset", - "github.com/benbjohnson/clock", - "github.com/chromedp/cdproto/runtime", - "github.com/chromedp/chromedp", - "github.com/ethereum/go-ethereum", - "github.com/ethereum/go-ethereum/accounts/abi", - "github.com/ethereum/go-ethereum/accounts/abi/bind", - "github.com/ethereum/go-ethereum/common", - "github.com/ethereum/go-ethereum/common/hexutil", - "github.com/ethereum/go-ethereum/common/math", - "github.com/ethereum/go-ethereum/core/types", - "github.com/ethereum/go-ethereum/crypto", - "github.com/ethereum/go-ethereum/ethclient", - "github.com/ethereum/go-ethereum/event", - "github.com/ethereum/go-ethereum/rpc", - "github.com/ethereum/go-ethereum/signer/core", - "github.com/google/uuid", - "github.com/hashicorp/golang-lru", - "github.com/ipfs/go-datastore", - "github.com/ipfs/go-ds-leveldb", - "github.com/jpillora/backoff", - "github.com/karlseguin/ccache", - "github.com/lib/pq", - "github.com/libp2p/go-libp2p", - "github.com/libp2p/go-libp2p-autonat-svc", - "github.com/libp2p/go-libp2p-circuit", - "github.com/libp2p/go-libp2p-connmgr", - "github.com/libp2p/go-libp2p-core/crypto", - "github.com/libp2p/go-libp2p-core/host", - "github.com/libp2p/go-libp2p-core/metrics", - "github.com/libp2p/go-libp2p-core/network", - "github.com/libp2p/go-libp2p-core/peer", - "github.com/libp2p/go-libp2p-core/protocol", - "github.com/libp2p/go-libp2p-core/routing", - "github.com/libp2p/go-libp2p-crypto", - "github.com/libp2p/go-libp2p-discovery", - "github.com/libp2p/go-libp2p-kad-dht", - "github.com/libp2p/go-libp2p-kad-dht/opts", - "github.com/libp2p/go-libp2p-peer", - "github.com/libp2p/go-libp2p-peerstore", - "github.com/libp2p/go-libp2p-peerstore/pstoreds", - "github.com/libp2p/go-libp2p-pubsub", - "github.com/libp2p/go-libp2p-pubsub/pb", - "github.com/libp2p/go-libp2p-swarm", - "github.com/libp2p/go-libp2p/p2p/host/relay", - "github.com/libp2p/go-maddr-filter", - "github.com/libp2p/go-ws-transport", - "github.com/multiformats/go-multiaddr", - "github.com/multiformats/go-multiaddr-dns", - "github.com/ocdogan/rbt", - "github.com/opaolini/go-ds-sql", - "github.com/plaid/go-envvar/envvar", - "github.com/sirupsen/logrus", - "github.com/stretchr/testify/assert", - "github.com/stretchr/testify/require", - "github.com/syndtr/goleveldb/leveldb", - "github.com/syndtr/goleveldb/leveldb/iterator", - "github.com/syndtr/goleveldb/leveldb/opt", - "github.com/syndtr/goleveldb/leveldb/storage", - "github.com/syndtr/goleveldb/leveldb/util", - "github.com/xeipuuv/gojsonschema", - "golang.org/x/crypto/sha3", - "golang.org/x/time/rate", - ] - solver-name = "gps-cdcl" - solver-version = 1 diff --git a/Gopkg.toml b/Gopkg.toml deleted file mode 100644 index 40f3e79c1..000000000 --- a/Gopkg.toml +++ /dev/null @@ -1,149 +0,0 @@ -# Gopkg.toml example -# -# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html -# for detailed Gopkg.toml documentation. -# -# required = ["github.com/user/thing/cmd/thing"] -# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] -# -# [[constraint]] -# name = "github.com/user/project" -# version = "1.0.0" -# -# [[constraint]] -# name = "github.com/user/project2" -# branch = "dev" -# source = "github.com/myfork/project2" -# -# [[override]] -# name = "github.com/x/y" -# version = "2.4.0" -# -# [prune] -# non-go = false -# go-tests = true -# unused-packages = true - - -[[constraint]] - name = "github.com/ethereum/go-ethereum" - branch = "wasm_signer_core_2" - source = "github.com/0xProject/go-ethereum" - -[[constraint]] - branch = "master" - name = "github.com/ocdogan/rbt" - -[[constraint]] - name = "github.com/stretchr/testify" - version = "1.3.0" - -[prune] - go-tests = true - unused-packages = true - -[[prune.project]] - name = "github.com/ethereum/go-ethereum" - unused-packages = false - -[[prune.project]] - name = "github.com/karalabe/hid" - unused-packages = false - -[[prune.project]] - name = "github.com/karalabe/usb" - unused-packages = false - non-go = true - -[[constraint]] - name = "github.com/syndtr/goleveldb" - branch = "full-wasm-support-0x-1" - source = "github.com/0xProject/goleveldb" - -[[constraint]] - name = "github.com/albrow/stringset" - version = "2.1.0" - -[[constraint]] - name = "github.com/libp2p/go-libp2p" - version = "v0.3.0" - -[[constraint]] - name = "github.com/multiformats/go-multiaddr" - version = "0.1.2" - -[[constraint]] - name = "github.com/libp2p/go-libp2p-pubsub" - version = "0.1.0" - -[[constraint]] - name = "github.com/libp2p/go-libp2p-kad-dht" - version = "0.3.0" - -[[constraint]] - name = "github.com/libp2p/go-libp2p-connmgr" - version = "0.1.1" - -[[override]] - name = "github.com/gballet/go-libpcsclite" - revision = "2fd9b619dd3c5d74acbd975f997a6441984d74a7" - [override.metadata] - note = "go-ethereum depends on this package and they made a breaking API change" - -[[constraint]] - name = "github.com/xeipuuv/gojsonschema" - version = "1.1.0" - -[[constraint]] - name = "github.com/libp2p/go-libp2p-autonat-svc" - version = "0.1.0" - -[[constraint]] - name = "github.com/hashicorp/golang-lru" - version = "0.5.1" - -[[constraint]] - name = "github.com/ipfs/go-ds-leveldb" - version = "0.0.2" - -[[constraint]] - name = "github.com/libp2p/go-libp2p-core" - version = "0.2.2" - -[[constraint]] - name = "github.com/libp2p/go-libp2p-discovery" - version = "0.1.0" - -[[constraint]] - name = "github.com/libp2p/go-ws-transport" - revision = "3098bba549e89efc42055199c2dca3d95ac70744" - -[[constraint]] - name = "github.com/libp2p/go-libp2p-circuit" - version = "0.1.2" - -[[constraint]] - name = "github.com/libp2p/go-libp2p-swarm" - version = "0.2.0" - -[[constraint]] - name = "github.com/libp2p/go-maddr-filter" - version = "0.0.5" - -[[constraint]] - name = "github.com/karlseguin/ccache" - version = "2.0.3" - -[[constraint]] - branch = "master" - name = "golang.org/x/time" - -[[constraint]] - branch = "master" - name = "github.com/benbjohnson/clock" - -[[override]] - name = "github.com/libp2p/go-flow-metrics" - revision = "45424fab0a7cfaae9c5bdda0e590ee844c12b904" - [override.metadata] - note = "Fixes an issue with libp2p BandwidthCounter. See https://github.com/libp2p/go-libp2p-core/issues/65" diff --git a/Makefile b/Makefile index 2c7ea3804..f092ee605 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,5 @@ .PHONY: deps -deps: deps-go deps-ts wasmbrowsertest - - -.PHONY: deps-go -deps-go: - dep ensure +deps: deps-ts wasmbrowsertest .PHONY: deps-ts @@ -28,12 +23,7 @@ wasmbrowsertest: gobin # Installs dependencies without updating Gopkg.lock or yarn.lock .PHONY: deps-no-lockfile -deps-no-lockfile: deps-go-no-lockfile deps-ts-no-lockfile wasmbrowsertest - - -.PHONY: deps-go-no-lockfile -deps-go-no-lockfile: - dep ensure --vendor-only +deps-no-lockfile: deps-ts-no-lockfile wasmbrowsertest .PHONY: deps-ts-no-lockfile diff --git a/go.mod b/go.mod new file mode 100644 index 000000000..fb0a4dc09 --- /dev/null +++ b/go.mod @@ -0,0 +1,162 @@ +module github.com/0xProject/0x-mesh + +go 1.12 + +replace ( + github.com/ethereum/go-ethereum => github.com/0xProject/go-ethereum v1.8.8-0.20191104224527-9d5c202240be + github.com/libp2p/go-ws-transport => github.com/libp2p/go-ws-transport v0.0.0-20191008032742-3098bba549e8 + github.com/syndtr/goleveldb => github.com/0xProject/goleveldb v1.0.1-0.20191115232649-6a187a47701c +) + +require ( + github.com/albrow/stringset v2.1.0+incompatible + github.com/allegro/bigcache v0.0.0-20190618191010-69ea0af04088 + github.com/aristanetworks/goarista v0.0.0-20190712234253-ed1100a1c015 + github.com/benbjohnson/clock v0.0.0-20161215174838-7dc76406b6d3 + github.com/btcsuite/btcd v0.0.0-20190824003749-130ea5bddde3 + github.com/chromedp/cdproto v0.0.0-20190827000638-b5ac1e37ce90 + github.com/chromedp/chromedp v0.4.0 + github.com/coreos/go-semver v0.3.0 + github.com/davecgh/go-spew v1.1.1 + github.com/deckarep/golang-set v1.7.1 + github.com/edsrzf/mmap-go v1.0.0 + github.com/elastic/gosigar v0.10.5 + github.com/ethereum/go-ethereum v0.0.0-00010101000000-000000000000 + github.com/fd/go-nat v1.0.0 // indirect + github.com/gballet/go-libpcsclite v0.0.0-20190528105824-2fd9b619dd3c + github.com/go-stack/stack v1.8.0 + github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee + github.com/gobwas/pool v0.2.0 + github.com/gobwas/ws v1.0.2 + github.com/gogo/protobuf v1.3.1 + github.com/golang/protobuf v1.3.2 + github.com/golang/snappy v0.0.1 + github.com/google/uuid v1.1.1 + github.com/gorilla/websocket v1.4.1 + github.com/hashicorp/golang-lru v0.5.3 + github.com/huin/goupnp v1.0.0 + github.com/ipfs/go-cid v0.0.3 + github.com/ipfs/go-datastore v0.1.1 + github.com/ipfs/go-ds-leveldb v0.0.2 + github.com/ipfs/go-ipfs-util v0.0.1 + github.com/ipfs/go-log v0.0.1 + github.com/ipfs/go-todocounter v0.0.1 + github.com/jackpal/gateway v1.0.5 + github.com/jackpal/go-nat-pmp v1.0.1 + github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect + github.com/jbenet/go-temp-err-catcher v0.0.0-20150120210811-aac704a3f4f2 + github.com/jbenet/goprocess v0.1.3 + github.com/jpillora/backoff v0.0.0-20170918002102-8eab2debe79d + github.com/karalabe/usb v0.0.0-20191104083709-911d15fe12a9 + github.com/karlseguin/ccache v2.0.3+incompatible + github.com/knq/sysutil v0.0.0-20181215143952-f05b59f0f307 + github.com/konsorten/go-windows-terminal-sequences v1.0.2 + github.com/koron/go-ssdp v0.0.0-20180514024734-4a0ed625a78b + github.com/lib/pq v1.2.0 + github.com/libp2p/go-addr-util v0.0.1 + github.com/libp2p/go-buffer-pool v0.0.2 + github.com/libp2p/go-conn-security v0.0.0-20190226201940-b2fb4ac68c41 // indirect + github.com/libp2p/go-conn-security-multistream v0.1.0 + github.com/libp2p/go-eventbus v0.1.0 + github.com/libp2p/go-flow-metrics v0.0.1 + github.com/libp2p/go-libp2p v0.3.1 + github.com/libp2p/go-libp2p-autonat v0.1.0 + github.com/libp2p/go-libp2p-autonat-svc v0.1.0 + github.com/libp2p/go-libp2p-circuit v0.1.2 + github.com/libp2p/go-libp2p-connmgr v0.1.1 + github.com/libp2p/go-libp2p-core v0.2.4 + github.com/libp2p/go-libp2p-crypto v0.1.0 + github.com/libp2p/go-libp2p-discovery v0.1.0 + github.com/libp2p/go-libp2p-host v0.0.0-20190226202054-2aa838333967 // indirect + github.com/libp2p/go-libp2p-interface-connmgr v0.0.0-20190226202048-6a96ea29ac65 // indirect + github.com/libp2p/go-libp2p-interface-pnet v0.0.0-20180919000501-d240acf619f6 // indirect + github.com/libp2p/go-libp2p-kad-dht v0.2.1 + github.com/libp2p/go-libp2p-kbucket v0.2.1 + github.com/libp2p/go-libp2p-loggables v0.1.0 + github.com/libp2p/go-libp2p-metrics v0.0.0-20190226174147-1f0f4db04727 // indirect + github.com/libp2p/go-libp2p-mplex v0.2.1 + github.com/libp2p/go-libp2p-nat v0.0.4 + github.com/libp2p/go-libp2p-net v0.0.0-20190226201932-e71fff5ba6e9 // indirect + github.com/libp2p/go-libp2p-peer v0.2.0 + github.com/libp2p/go-libp2p-peerstore v0.1.3 + github.com/libp2p/go-libp2p-protocol v0.0.0-20171212212132-b29f3d97e3a2 // indirect + github.com/libp2p/go-libp2p-pubsub v0.1.0 + github.com/libp2p/go-libp2p-record v0.1.1 + github.com/libp2p/go-libp2p-routing v0.1.0 + github.com/libp2p/go-libp2p-secio v0.2.0 + github.com/libp2p/go-libp2p-swarm v0.2.1 + github.com/libp2p/go-libp2p-transport v0.0.0-20190226201958-e8580c8a519d // indirect + github.com/libp2p/go-libp2p-transport-upgrader v0.1.1 + github.com/libp2p/go-libp2p-yamux v0.2.1 + github.com/libp2p/go-maddr-filter v0.0.5 + github.com/libp2p/go-mplex v0.1.0 + github.com/libp2p/go-msgio v0.0.4 + github.com/libp2p/go-nat v0.0.3 + github.com/libp2p/go-openssl v0.0.3 + github.com/libp2p/go-reuseport v0.0.1 + github.com/libp2p/go-reuseport-transport v0.0.2 + github.com/libp2p/go-stream-muxer-multistream v0.2.0 + github.com/libp2p/go-tcp-transport v0.1.1 + github.com/libp2p/go-testutil v0.0.0-20190226202041-873eaa1a26ba // indirect + github.com/libp2p/go-ws-transport v0.1.0 + github.com/libp2p/go-yamux v1.2.3 + github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e + github.com/mattn/go-colorable v0.1.2 + github.com/mattn/go-isatty v0.0.8 + github.com/mattn/go-runewidth v0.0.4 + github.com/minio/blake2b-simd v0.0.0-20160723061019-3f5f724cb5b1 + github.com/minio/sha256-simd v0.1.1 + github.com/mr-tron/base58 v1.1.2 + github.com/multiformats/go-base32 v0.0.3 + github.com/multiformats/go-multiaddr v0.1.2 + github.com/multiformats/go-multiaddr-dns v0.2.0 + github.com/multiformats/go-multiaddr-fmt v0.1.0 + github.com/multiformats/go-multiaddr-net v0.1.0 + github.com/multiformats/go-multibase v0.0.1 + github.com/multiformats/go-multihash v0.0.8 + github.com/multiformats/go-multistream v0.1.0 + github.com/multiformats/go-varint v0.0.1 + github.com/ocdogan/rbt v0.0.0-20160425054511-de6e2b48be33 + github.com/olekukonko/tablewriter v0.0.1 + github.com/opaolini/go-ds-sql v0.0.0-20191105113501-15a4c8e2fea5 + github.com/opentracing/opentracing-go v1.1.0 + github.com/pborman/uuid v0.0.0-20180906182336-adf5a7427709 + github.com/pkg/errors v0.8.1 + github.com/plaid/go-envvar v1.1.0 + github.com/pmezard/go-difflib v1.0.0 + github.com/prometheus/tsdb v0.10.0 + github.com/rjeczalik/notify v0.9.2 + github.com/rs/cors v1.7.0 + github.com/sirupsen/logrus v1.4.2 + github.com/spacemonkeygo/spacelog v0.0.0-20180420211403-2296661a0572 + github.com/spaolacci/murmur3 v1.1.0 + github.com/status-im/keycard-go v0.0.0-20190424133014-d95853db0f48 + github.com/steakknife/bloomfilter v0.0.0-20180906043351-99ee86d9200f + github.com/steakknife/hamming v0.0.0-20180906055317-003c143a81c2 + github.com/stretchr/testify v1.3.0 + github.com/syndtr/goleveldb v1.0.0 + github.com/tyler-smith/go-bip39 v1.0.2 + github.com/whyrusleeping/base32 v0.0.0-20170828182744-c30ac30633cc + github.com/whyrusleeping/go-keyspace v0.0.0-20160322163242-5b898ac5add1 + github.com/whyrusleeping/go-logging v0.0.1 + github.com/whyrusleeping/go-notifier v0.0.0-20170827234753-097c5d47330f + github.com/whyrusleeping/go-smux-multiplex v3.0.16+incompatible // indirect + github.com/whyrusleeping/go-smux-multistream v2.0.2+incompatible // indirect + github.com/whyrusleeping/go-smux-yamux v2.0.8+incompatible // indirect + github.com/whyrusleeping/mafmt v1.2.8 + github.com/whyrusleeping/multiaddr-filter v0.0.0-20160516205228-e903e4adabd7 + github.com/whyrusleeping/timecache v0.0.0-20160911033111-cfcb2f1abfee + github.com/whyrusleeping/yamux v1.1.5 // indirect + github.com/wsddn/go-ecdh v0.0.0-20161211032359-48726bab9208 + github.com/xeipuuv/gojsonpointer v0.0.0-20190809123943-df4f5c81cb3b + github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 + github.com/xeipuuv/gojsonschema v1.1.0 + go.opencensus.io v0.22.1 + golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550 + golang.org/x/net v0.0.0-20190724013045-ca1201d0de80 + golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a + golang.org/x/text v0.3.2 + golang.org/x/time v0.0.0-20191024005414-555d28b269f0 + golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898 + gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce +) diff --git a/go.sum b/go.sum new file mode 100644 index 000000000..7bfea285e --- /dev/null +++ b/go.sum @@ -0,0 +1,764 @@ +cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/0xProject/go-ethereum v1.8.8-0.20191104224527-9d5c202240be h1:48+Xt5qtLvEUOJJD2pxM4qVbF3eoTsYmHthq2+zT8M4= +github.com/0xProject/go-ethereum v1.8.8-0.20191104224527-9d5c202240be/go.mod h1:GCj8W8G7wxclyZu5dgA4vru0iUU4DK6pUE/FSPRd4Rg= +github.com/0xProject/goleveldb v1.0.1-0.20191115232649-6a187a47701c h1:sMhvadadLwwpHsq4hDRAd+lcmQHJYpn44Oe9f7sFTmA= +github.com/0xProject/goleveldb v1.0.1-0.20191115232649-6a187a47701c/go.mod h1:vCim/erjgVmww+K+tF4+tf/zs63CPRiOtgdXqLgTM1Q= +github.com/0xProject/qunit v0.0.0-20190730000255-81c18fdf7752/go.mod h1:Onz5mS+Tpffz0tyRWdHDrqKcQ1ZFNeRhYHrNAkaMgeQ= +github.com/AndreasBriese/bbloom v0.0.0-20180913140656-343706a395b7/go.mod h1:bOvUY6CB00SOBii9/FifXqc0awNKxLFCL/+pkDPuyl8= +github.com/AndreasBriese/bbloom v0.0.0-20190306092124-e2d15f34fcf9/go.mod h1:bOvUY6CB00SOBii9/FifXqc0awNKxLFCL/+pkDPuyl8= +github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/Kubuxu/go-os-helper v0.0.1/go.mod h1:N8B+I7vPCT80IcP58r50u4+gEEcsZETFUpAzWW2ep1Y= +github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= +github.com/aead/siphash v1.0.1/go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBAUSII= +github.com/albrow/stringset v2.1.0+incompatible h1:P90SSV7fle22yLbhDSLRC8Jtec0tCE3A8hJihfxf25E= +github.com/albrow/stringset v2.1.0+incompatible/go.mod h1:ltP0XRz96SPEM8ofD1BaE4IpTR2uCGSk6Z2VRfh1Llw= +github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= +github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= +github.com/allegro/bigcache v0.0.0-20190618191010-69ea0af04088 h1:98xHUPwc06h3/UklWP/wZjARk6fxAFEGkEZ0E1UJReo= +github.com/allegro/bigcache v0.0.0-20190618191010-69ea0af04088/go.mod h1:qw9PmPMRP4u9TMCeXEA+M4m2lvVM+B/URHNUtxFcERc= +github.com/aristanetworks/goarista v0.0.0-20190712234253-ed1100a1c015 h1:7ABPr1+uJdqESAdlVevnc/2FJGiC/K3uMg1JiELeF+0= +github.com/aristanetworks/goarista v0.0.0-20190712234253-ed1100a1c015/go.mod h1:D/tb0zPVXnP7fmsLZjtdUhSsumbK/ij54UXjjVgMGxQ= +github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= +github.com/benbjohnson/clock v0.0.0-20161215174838-7dc76406b6d3 h1:wOysYcIdqv3WnvwqFFzrYCFALPED7qkUGaLXu359GSc= +github.com/benbjohnson/clock v0.0.0-20161215174838-7dc76406b6d3/go.mod h1:UMqtWQTnOe4byzwe7Zhwh8f8s+36uszN51sJrSIZlTE= +github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= +github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= +github.com/btcsuite/btcd v0.0.0-20190213025234-306aecffea32/go.mod h1:DrZx5ec/dmnfpw9KyYoQyYo7d0KEvTkk/5M/vbZjAr8= +github.com/btcsuite/btcd v0.0.0-20190523000118-16327141da8c/go.mod h1:3J08xEfcugPacsc34/LKRU2yO7YmuT8yt28J8k2+rrI= +github.com/btcsuite/btcd v0.0.0-20190807005414-4063feeff79a/go.mod h1:3J08xEfcugPacsc34/LKRU2yO7YmuT8yt28J8k2+rrI= +github.com/btcsuite/btcd v0.0.0-20190824003749-130ea5bddde3 h1:A/EVblehb75cUgXA5njHPn0kLAsykn6mJGz7rnmW5W0= +github.com/btcsuite/btcd v0.0.0-20190824003749-130ea5bddde3/go.mod h1:3J08xEfcugPacsc34/LKRU2yO7YmuT8yt28J8k2+rrI= +github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f/go.mod h1:TdznJufoqS23FtqVCzL0ZqgP5MqXbb4fg/WgDys70nA= +github.com/btcsuite/btcutil v0.0.0-20190207003914-4c204d697803/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg= +github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg= +github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd/go.mod h1:HHNXQzUsZCxOoE+CPiyCTO6x34Zs86zZUiwtpXoGdtg= +github.com/btcsuite/goleveldb v0.0.0-20160330041536-7834afc9e8cd/go.mod h1:F+uVaaLLH7j4eDXPRvw78tMflu7Ie2bzYOH4Y8rRKBY= +github.com/btcsuite/snappy-go v0.0.0-20151229074030-0bdef8d06723/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc= +github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792/go.mod h1:ghJtEyQwv5/p4Mg4C0fgbePVuGr935/5ddU9Z3TmDRY= +github.com/btcsuite/winsvc v1.0.0/go.mod h1:jsenWakMcC0zFBFurPLEAyrnc/teJEM1O46fmI40EZs= +github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= +github.com/chromedp/cdproto v0.0.0-20190812224334-39ef923dcb8d/go.mod h1:0YChpVzuLJC5CPr+x3xkHN6Z8KOSXjNbL7qV8Wc4GW0= +github.com/chromedp/cdproto v0.0.0-20190827000638-b5ac1e37ce90 h1:CgIuU+BmhL7FOXl4nTH3L1pwPbAz1VlzexJNEfrS7Kw= +github.com/chromedp/cdproto v0.0.0-20190827000638-b5ac1e37ce90/go.mod h1:0YChpVzuLJC5CPr+x3xkHN6Z8KOSXjNbL7qV8Wc4GW0= +github.com/chromedp/chromedp v0.4.0 h1:0AJC5ejETuh/6n7Tcsw4u4G0eKZkI9aVRwckWaImLUE= +github.com/chromedp/chromedp v0.4.0/go.mod h1:DC3QUn4mJ24dwjcaGQLoZrhm4X/uPHZ6spDbS2uFhm4= +github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/coocood/freecache v1.1.0/go.mod h1:ePwxCDzOYvARfHdr1pByNct1at3CoKnsipOHwKlNbzI= +github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= +github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk= +github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= +github.com/coreos/go-semver v0.2.1-0.20180108230905-e214231b295a/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= +github.com/coreos/go-semver v0.3.0 h1:wkHLiw0WNATZnSG7epLsujiMCgPAc9xhjJ4tgnAxmfM= +github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= +github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= +github.com/davecgh/go-spew v0.0.0-20171005155431-ecdeabc65495/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/deckarep/golang-set v1.7.1 h1:SCQV0S6gTtp6itiFrTqI+pfmJ4LN85S1YzhDf9rTHJQ= +github.com/deckarep/golang-set v1.7.1/go.mod h1:93vsz/8Wt4joVM7c2AVqh+YRMiUSc14yDtF28KmMOgQ= +github.com/dgraph-io/badger v1.5.5-0.20190226225317-8115aed38f8f/go.mod h1:VZxzAIRPHRVNRKRo6AXrX9BJegn6il06VMTZVJYCIjQ= +github.com/dgraph-io/badger v1.6.0-rc1/go.mod h1:zwt7syl517jmP8s94KqSxTlM6IMsdhYy6psNgSztDR4= +github.com/dgryski/go-farm v0.0.0-20190104051053-3adb47b1fb0f/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= +github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= +github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= +github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= +github.com/edsrzf/mmap-go v1.0.0 h1:CEBF7HpRnUCSJgGUb5h1Gm7e3VkmVDrR8lvWVLtrOFw= +github.com/edsrzf/mmap-go v1.0.0/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M= +github.com/elastic/gosigar v0.10.5 h1:GzPQ+78RaAb4J63unidA/JavQRKrB6s8IOzN6Ib59jo= +github.com/elastic/gosigar v0.10.5/go.mod h1:cdorVVzy1fhmEqmtgqkoE3bYtCfSCkVyjTyCIo22xvs= +github.com/fd/go-nat v1.0.0/go.mod h1:BTBu/CKvMmOMUPkKVef1pngt2WFH/lg7E6yQnulfp6E= +github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= +github.com/gballet/go-libpcsclite v0.0.0-20190528105824-2fd9b619dd3c h1:gID5iWto0hEmbyMl+15Rkju0P+8uvF0jSn1cWdyv+5M= +github.com/gballet/go-libpcsclite v0.0.0-20190528105824-2fd9b619dd3c/go.mod h1:x7DCsMOv1taUwEWCzT4cmDeAkigA5/QCwUodaVOe8Ww= +github.com/go-check/check v0.0.0-20180628173108-788fd7840127/go.mod h1:9ES+weclKsC9YodN5RgxqK/VD9HM9JsCSh7rNhMZE98= +github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= +github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= +github.com/go-stack/stack v1.8.0 h1:5SgMzNM5HxrEjV0ww2lTmX6E2Izsfxas4+YHWRs3Lsk= +github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= +github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee h1:s+21KNqlpePfkah2I+gwHF8xmJWRjooY+5248k6m4A0= +github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee/go.mod h1:L0fX3K22YWvt/FAX9NnzrNzcI4wNYi9Yku4O0LKYflo= +github.com/gobwas/pool v0.2.0 h1:QEmUOlnSjWtnpRGHF3SauEiOsy82Cup83Vf2LcMlnc8= +github.com/gobwas/pool v0.2.0/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw= +github.com/gobwas/ws v1.0.2 h1:CoAavW/wd/kulfZmSIBt6p24n4j7tHgNVCjsfHVNUbo= +github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM= +github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= +github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= +github.com/gogo/protobuf v1.3.0/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= +github.com/gogo/protobuf v1.3.1 h1:DqDEcV5aeaTmdFBePNpYsp3FlcVH/2ISVVM9Qf8PSls= +github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= +github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.0/go.mod h1:Qd/q+1AKNOZr9uGQzbzCmRO6sUih6GTPZv6a1/R87v0= +github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.2 h1:6nsPYzhq5kReh6QImI3k5qWzO4PEbvbIW2cwSfR/6xs= +github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/snappy v0.0.1 h1:Qgr9rKW7uDUkrbSmQeiDsGa8SjGyCOGtuasMWwvp2P4= +github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= +github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY= +github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= +github.com/gorilla/websocket v1.4.1 h1:q7AeDBpnBk8AogcD4DSag/Ukw/KV+YhzLj2bP5HvKCM= +github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/gxed/hashland/keccakpg v0.0.1/go.mod h1:kRzw3HkwxFU1mpmPP8v1WyQzwdGfmKFJ6tItnhQ67kU= +github.com/gxed/hashland/murmur3 v0.0.1/go.mod h1:KjXop02n4/ckmZSnY2+HKcLud/tcmvhST0bie/0lS48= +github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= +github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= +github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v0.5.3 h1:YPkqC67at8FYaadspW/6uE0COsBxS2656RLEr8Bppgk= +github.com/hashicorp/golang-lru v0.5.3/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= +github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= +github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= +github.com/huin/goupnp v0.0.0-20180415215157-1395d1447324/go.mod h1:MZ2ZmwcBpvOoJ22IJsc7va19ZwoheaBk43rKg12SKag= +github.com/huin/goupnp v1.0.0 h1:wg75sLpL6DZqwHQN6E1Cfk6mtfzS45z8OV+ic+DtHRo= +github.com/huin/goupnp v1.0.0/go.mod h1:n9v9KO1tAxYH82qOn+UTIFQDmx5n1Zxd/ClZDMX7Bnc= +github.com/huin/goutil v0.0.0-20170803182201-1ca381bf3150/go.mod h1:PpLOETDnJ0o3iZrZfqZzyLl6l7F3c6L1oWn7OICBi6o= +github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= +github.com/ipfs/go-cid v0.0.0-20190221041225-29a66d1820a3/go.mod h1:DEZAg7ik3SR8PY77P+hNaWtHtBirqeEgHbfmePL8WJA= +github.com/ipfs/go-cid v0.0.1/go.mod h1:GHWU/WuQdMPmIosc4Yn1bcCT7dSeX4lBafM7iqUPQvM= +github.com/ipfs/go-cid v0.0.2/go.mod h1:GHWU/WuQdMPmIosc4Yn1bcCT7dSeX4lBafM7iqUPQvM= +github.com/ipfs/go-cid v0.0.3 h1:UIAh32wymBpStoe83YCzwVQQ5Oy/H0FdxvUS6DJDzms= +github.com/ipfs/go-cid v0.0.3/go.mod h1:GHWU/WuQdMPmIosc4Yn1bcCT7dSeX4lBafM7iqUPQvM= +github.com/ipfs/go-datastore v0.0.0-20190207190025-057884927798/go.mod h1:bYmHO9fuKO1Ca7dpdDBWQl0mndy5b0HFqSJjGlNYtzs= +github.com/ipfs/go-datastore v0.0.1/go.mod h1:d4KVXhMt913cLBEI/PXAy6ko+W7e9AhyAKBGh803qeE= +github.com/ipfs/go-datastore v0.0.3/go.mod h1:d4KVXhMt913cLBEI/PXAy6ko+W7e9AhyAKBGh803qeE= +github.com/ipfs/go-datastore v0.0.4/go.mod h1:d4KVXhMt913cLBEI/PXAy6ko+W7e9AhyAKBGh803qeE= +github.com/ipfs/go-datastore v0.0.5/go.mod h1:d4KVXhMt913cLBEI/PXAy6ko+W7e9AhyAKBGh803qeE= +github.com/ipfs/go-datastore v0.1.0/go.mod h1:d4KVXhMt913cLBEI/PXAy6ko+W7e9AhyAKBGh803qeE= +github.com/ipfs/go-datastore v0.1.1 h1:F4k0TkTAZGLFzBOrVKDAvch6JZtuN4NHkfdcEZL50aI= +github.com/ipfs/go-datastore v0.1.1/go.mod h1:w38XXW9kVFNp57Zj5knbKWM2T+KOZCGDRVNdgPHtbHw= +github.com/ipfs/go-detect-race v0.0.0-20180212113132-5ea9f55c8a66/go.mod h1:8BNT7shDZPo99Q74BpGMK+4D8Mn4j46UU0LZ723meps= +github.com/ipfs/go-detect-race v0.0.1/go.mod h1:8BNT7shDZPo99Q74BpGMK+4D8Mn4j46UU0LZ723meps= +github.com/ipfs/go-ds-badger v0.0.2/go.mod h1:Y3QpeSFWQf6MopLTiZD+VT6IC1yZqaGmjvRcKeSGij8= +github.com/ipfs/go-ds-badger v0.0.5/go.mod h1:g5AuuCGmr7efyzQhLL8MzwqcauPojGPUaHzfGTzuE3s= +github.com/ipfs/go-ds-leveldb v0.0.1/go.mod h1:feO8V3kubwsEF22n0YRQCffeb79OOYIykR4L04tMOYc= +github.com/ipfs/go-ds-leveldb v0.0.2 h1:P5HB59Zblym0B5XYOeEyw3YtPtbpIqQCavCSWaWEEk8= +github.com/ipfs/go-ds-leveldb v0.0.2/go.mod h1:CWFeBh5IAAscWyG/QRH+lJaAlnLWjsfPSNs4teyPUp0= +github.com/ipfs/go-ipfs-delay v0.0.0-20181109222059-70721b86a9a8/go.mod h1:8SP1YXK1M1kXuc4KJZINY3TQQ03J2rwBG9QfXmbRPrw= +github.com/ipfs/go-ipfs-util v0.0.0-20181102233336-05b6094b6fa9/go.mod h1:bmXd4M1Sn0MFKptfxu9KuWvtHySyFMzkSd2rcT8Hw80= +github.com/ipfs/go-ipfs-util v0.0.1 h1:Wz9bL2wB2YBJqggkA4dD7oSmqB4cAnpNbGrlHJulv50= +github.com/ipfs/go-ipfs-util v0.0.1/go.mod h1:spsl5z8KUnrve+73pOhSVZND1SIxPW5RyBCNzQxlJBc= +github.com/ipfs/go-log v0.0.0-20190218133459-8924f37936b0/go.mod h1:AKYS9u+ECLT8t30brTaoVwu3f1FpGx6C0352oI1zQ0Q= +github.com/ipfs/go-log v0.0.1 h1:9XTUN/rW64BCG1YhPK9Hoy3q8nr4gOmHHBpgFdfw6Lc= +github.com/ipfs/go-log v0.0.1/go.mod h1:kL1d2/hzSpI0thNYjiKfjanbVNU+IIGA/WnNESY9leM= +github.com/ipfs/go-todocounter v0.0.0-20161011214330-1e832b829506/go.mod h1:l5aErvQc8qKE2r7NDMjmq5UNAvuZy0rC8BHOplkWvZ4= +github.com/ipfs/go-todocounter v0.0.1 h1:kITWA5ZcQZfrUnDNkRn04Xzh0YFaDFXsoO2A81Eb6Lw= +github.com/ipfs/go-todocounter v0.0.1/go.mod h1:l5aErvQc8qKE2r7NDMjmq5UNAvuZy0rC8BHOplkWvZ4= +github.com/jackpal/gateway v1.0.4/go.mod h1:lTpwd4ACLXmpyiCTRtfiNyVnUmqT9RivzCDQetPfnjA= +github.com/jackpal/gateway v1.0.5 h1:qzXWUJfuMdlLMtt0a3Dgt+xkWQiA5itDEITVJtuSwMc= +github.com/jackpal/gateway v1.0.5/go.mod h1:lTpwd4ACLXmpyiCTRtfiNyVnUmqT9RivzCDQetPfnjA= +github.com/jackpal/go-nat-pmp v1.0.1 h1:i0LektDkO1QlrTm/cSuP+PyBCDnYvjPLGl4LdWEMiaA= +github.com/jackpal/go-nat-pmp v1.0.1/go.mod h1:QPH045xvCAeXUZOxsnwmrtiCoxIr9eob+4orBN1SBKc= +github.com/jbenet/go-cienv v0.0.0-20150120210510-1bb1476777ec/go.mod h1:rGaEvXB4uRSZMmzKNLoXvTu1sfx+1kv/DojUlPrSZGs= +github.com/jbenet/go-cienv v0.1.0/go.mod h1:TqNnHUmJgXau0nCzC7kXWeotg3J9W34CUv5Djy1+FlA= +github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A= +github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo= +github.com/jbenet/go-temp-err-catcher v0.0.0-20150120210811-aac704a3f4f2 h1:vhC1OXXiT9R2pczegwz6moDvuRpggaroAXhPIseh57A= +github.com/jbenet/go-temp-err-catcher v0.0.0-20150120210811-aac704a3f4f2/go.mod h1:8GXXJV31xl8whumTzdZsTt3RnUIiPqzkyf7mxToRCMs= +github.com/jbenet/goprocess v0.0.0-20160826012719-b497e2f366b8/go.mod h1:Ly/wlsjFq/qrU3Rar62tu1gASgGw6chQbSh/XgIIXCY= +github.com/jbenet/goprocess v0.1.2/go.mod h1:5yspPrukOVuOLORacaBi858NqyClJPQxYZlqdZVfqY4= +github.com/jbenet/goprocess v0.1.3 h1:YKyIEECS/XvcfHtBzxtjBBbWK+MbvA6dG8ASiqwvr10= +github.com/jbenet/goprocess v0.1.3/go.mod h1:5yspPrukOVuOLORacaBi858NqyClJPQxYZlqdZVfqY4= +github.com/jessevdk/go-flags v0.0.0-20141203071132-1679536dcc89/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= +github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= +github.com/jpillora/backoff v0.0.0-20170918002102-8eab2debe79d h1:ix3WmphUvN0GDd0DO9MH0v6/5xTv+Xm1bPN+1UJn58k= +github.com/jpillora/backoff v0.0.0-20170918002102-8eab2debe79d/go.mod h1:2iMrUgbbvHEiQClaW2NsSzMyGHqN+rDFqY705q49KG0= +github.com/jrick/logrotate v1.0.0/go.mod h1:LNinyqDIJnpAur+b8yyulnQw/wDuN1+BYKlTRt3OuAQ= +github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= +github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= +github.com/kami-zh/go-capturer v0.0.0-20171211120116-e492ea43421d/go.mod h1:P2viExyCEfeWGU259JnaQ34Inuec4R38JCyBx2edgD0= +github.com/karalabe/usb v0.0.0-20191104083709-911d15fe12a9 h1:ZHuwnjpP8LsVsUYqTqeVAI+GfDfJ6UNPrExZF+vX/DQ= +github.com/karalabe/usb v0.0.0-20191104083709-911d15fe12a9/go.mod h1:Od972xHfMJowv7NGVDiWVxk2zxnWgjLlJzE+F4F7AGU= +github.com/karlseguin/ccache v2.0.3+incompatible h1:j68C9tWOROiOLWTS/kCGg9IcJG+ACqn5+0+t8Oh83UU= +github.com/karlseguin/ccache v2.0.3+incompatible/go.mod h1:CM9tNPzT6EdRh14+jiW8mEF9mkNZuuE51qmgGYUB93w= +github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= +github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= +github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23/go.mod h1:J+Gs4SYgM6CZQHDETBtE9HaSEkGmuNXF86RwHhHUvq4= +github.com/knq/sysutil v0.0.0-20181215143952-f05b59f0f307 h1:vl4eIlySbjertFaNwiMjXsGrFVK25aOWLq7n+3gh2ls= +github.com/knq/sysutil v0.0.0-20181215143952-f05b59f0f307/go.mod h1:BjPj+aVjl9FW/cCGiF3nGh5v+9Gd3VCgBQbod/GlMaQ= +github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/koron/go-ssdp v0.0.0-20160527091731-6d1709049dea/go.mod h1:5Ky9EC2xfoUKUor0Hjgi2BJhCSXJfMOFlmyYrVKGQMk= +github.com/koron/go-ssdp v0.0.0-20180514024734-4a0ed625a78b h1:wxtKgYHEncAU00muMD06dzLiahtGM1eouRNOzVV7tdQ= +github.com/koron/go-ssdp v0.0.0-20180514024734-4a0ed625a78b/go.mod h1:5Ky9EC2xfoUKUor0Hjgi2BJhCSXJfMOFlmyYrVKGQMk= +github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= +github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/lib/pq v1.2.0 h1:LXpIM/LZ5xGFhOpXAQUIMM1HdyqzVYM13zNdjCEEcA0= +github.com/lib/pq v1.2.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= +github.com/libp2p/go-addr-util v0.0.0-20190226202102-c4f139148873/go.mod h1:doh2auL/Rkfq1xHxDrWJGHZ8yDojPerOZoPu9XVwRB8= +github.com/libp2p/go-addr-util v0.0.1 h1:TpTQm9cXVRVSKsYbgQ7GKc3KbbHVTnbostgGaDEP+88= +github.com/libp2p/go-addr-util v0.0.1/go.mod h1:4ac6O7n9rIAKB1dnd+s8IbbMXkt+oBpzX4/+RACcnlQ= +github.com/libp2p/go-buffer-pool v0.0.1/go.mod h1:xtyIz9PMobb13WaxR6Zo1Pd1zXJKYg0a8KiIvDp3TzQ= +github.com/libp2p/go-buffer-pool v0.0.2 h1:QNK2iAFa8gjAe1SPz6mHSMuCcjs+X1wlHzeOSqcmlfs= +github.com/libp2p/go-buffer-pool v0.0.2/go.mod h1:MvaB6xw5vOrDl8rYZGLFdKAuk/hRoRZd1Vi32+RXyFM= +github.com/libp2p/go-conn-security v0.0.0-20190226201940-b2fb4ac68c41 h1:9mAB66HuUt8oS9GWLTAmV2o3Qvd9lZJMPUCsieuNPp0= +github.com/libp2p/go-conn-security v0.0.0-20190226201940-b2fb4ac68c41/go.mod h1:lIqm8x2wrAxlG+6CzJ3z4Nk5/F73zdjkS6RKbHSbaJ4= +github.com/libp2p/go-conn-security v0.0.1/go.mod h1:bGmu51N0KU9IEjX7kl2PQjgZa40JQWnayTvNMgD/vyk= +github.com/libp2p/go-conn-security-multistream v0.0.0-20190226202109-104c8a4422af/go.mod h1:hBY3HYjGnK86P3pX3wgr9IAfe3A/vZB830LJAMi1g88= +github.com/libp2p/go-conn-security-multistream v0.0.1/go.mod h1:nc9vud7inQ+d6SO0I/6dSWrdMnHnzZNHeyUQqrAJulE= +github.com/libp2p/go-conn-security-multistream v0.0.2/go.mod h1:nc9vud7inQ+d6SO0I/6dSWrdMnHnzZNHeyUQqrAJulE= +github.com/libp2p/go-conn-security-multistream v0.1.0 h1:aqGmto+ttL/uJgX0JtQI0tD21CIEy5eYd1Hlp0juHY0= +github.com/libp2p/go-conn-security-multistream v0.1.0/go.mod h1:aw6eD7LOsHEX7+2hJkDxw1MteijaVcI+/eP2/x3J1xc= +github.com/libp2p/go-eventbus v0.0.2/go.mod h1:Hr/yGlwxA/stuLnpMiu82lpNKpvRy3EaJxPu40XYOwk= +github.com/libp2p/go-eventbus v0.1.0 h1:mlawomSAjjkk97QnYiEmHsLu7E136+2oCWSHRUvMfzQ= +github.com/libp2p/go-eventbus v0.1.0/go.mod h1:vROgu5cs5T7cv7POWlWxBaVLxfSegC5UGQf8A2eEmx4= +github.com/libp2p/go-flow-metrics v0.0.0-20180906182756-7e5a55af4853/go.mod h1:Iv1GH0sG8DtYN3SVJ2eG221wMiNpZxBdp967ls1g+k8= +github.com/libp2p/go-flow-metrics v0.0.0-20191108131323-45424fab0a7c/go.mod h1:HeoSNUrOJVK1jEpDqVEiUOIXqhbnS27omG0uWU5slZs= +github.com/libp2p/go-flow-metrics v0.0.1 h1:0gxuFd2GuK7IIP5pKljLwps6TvcuYgvG7Atqi3INF5s= +github.com/libp2p/go-flow-metrics v0.0.1/go.mod h1:Iv1GH0sG8DtYN3SVJ2eG221wMiNpZxBdp967ls1g+k8= +github.com/libp2p/go-libp2p v0.0.0-20190227195236-c4577c770392 h1:Mh44DwtlIbu1qOxFJhpZDhTmFPqjVHvAziOq1210Us8= +github.com/libp2p/go-libp2p v0.0.0-20190227195236-c4577c770392/go.mod h1:CyUlFa6Mw04PkmMg8gBIlHUl8j3TrEiA6oFiF4SgD8w= +github.com/libp2p/go-libp2p v0.0.1/go.mod h1:bmRs8I0vwn6iRaVssZnJx/epY6WPSKiLoK1vyle4EX0= +github.com/libp2p/go-libp2p v0.0.2/go.mod h1:Qu8bWqFXiocPloabFGUcVG4kk94fLvfC8mWTDdFC9wE= +github.com/libp2p/go-libp2p v0.0.3/go.mod h1:Qu8bWqFXiocPloabFGUcVG4kk94fLvfC8mWTDdFC9wE= +github.com/libp2p/go-libp2p v0.0.4/go.mod h1:B9yfFVwbsEmGPlyJROAoqrjumbMB2n0YrgNm1intDOY= +github.com/libp2p/go-libp2p v0.0.5/go.mod h1:IPMB1Wrj2VboCCJ7KK1FXpuWrXwHPu39QRsrOeoBSSI= +github.com/libp2p/go-libp2p v0.0.6/go.mod h1:GVha4XFiH3FvfC6QQYoryplldfKcucp0ThtenF+z9oU= +github.com/libp2p/go-libp2p v0.0.7/go.mod h1:GVha4XFiH3FvfC6QQYoryplldfKcucp0ThtenF+z9oU= +github.com/libp2p/go-libp2p v0.0.8/go.mod h1:GVha4XFiH3FvfC6QQYoryplldfKcucp0ThtenF+z9oU= +github.com/libp2p/go-libp2p v0.0.9/go.mod h1:IdP4uasqCpXlyJn6vMpg7qC4xhzTwJsMJ8t5ZYR6EB4= +github.com/libp2p/go-libp2p v0.0.10/go.mod h1:4QA44z9YCgzbDkl6Ke8x3soqPbajN2druld3QYsSMho= +github.com/libp2p/go-libp2p v0.0.11/go.mod h1:u9w5K67YwnvULrEVVdy2zzjVscvX5XTjGOpkr8+rU7E= +github.com/libp2p/go-libp2p v0.0.12/go.mod h1:l8kmLMc4DToz2TtA0aWEaE4/jVMALRKw8Kv2WTR0LHc= +github.com/libp2p/go-libp2p v0.0.13/go.mod h1:99u6nHehR0M9pxJM682dq44GDdowQBcQPxXNTPGoEgU= +github.com/libp2p/go-libp2p v0.0.14/go.mod h1:zu6wA39gea/OpQ+Yb8WKP5Rm+7M+Yq2RLeCI5wRq3Ws= +github.com/libp2p/go-libp2p v0.0.15/go.mod h1:zu6wA39gea/OpQ+Yb8WKP5Rm+7M+Yq2RLeCI5wRq3Ws= +github.com/libp2p/go-libp2p v0.0.16/go.mod h1:lMX+0+6rniTpb/Sy5kN8HHfKnJn/Y8FUuTmEYQ7jcic= +github.com/libp2p/go-libp2p v0.0.17/go.mod h1:nK+QFOAwkLtZXHVLpibwgt4JHUtZxll2jelMt3aGagE= +github.com/libp2p/go-libp2p v0.0.18/go.mod h1:VHOCpLJKpsBCFImjI0moE8le68TJ/W52omgqrpOpbms= +github.com/libp2p/go-libp2p v0.0.19/go.mod h1:vPRiD/jS0hZezwmjhBFMRg6y1nFk73SciCYjsaR2/Nk= +github.com/libp2p/go-libp2p v0.0.20/go.mod h1:Gqc+8/1bWNjLDeXW0iCdWiatL+dN2u7YLuOmWEQY5Vo= +github.com/libp2p/go-libp2p v0.0.21/go.mod h1:fwhRaZJcLTSAga5HwobjX20lO2pOBx4vQSiKrZv6i/A= +github.com/libp2p/go-libp2p v0.0.22/go.mod h1:PPOgYIzv/FDXLqdBa353nULz/d8pMjkxT5CbpAA6Jsc= +github.com/libp2p/go-libp2p v0.0.23/go.mod h1:LCZG1r7NRqnBKxrA9sU4KR7cAzze0DgL9j1GxyBFRyg= +github.com/libp2p/go-libp2p v0.0.24/go.mod h1:Tud6jI4LYXihNWiVMoG7YMwVO2XUwoP9vd40i5/B2EA= +github.com/libp2p/go-libp2p v0.0.25/go.mod h1:37g8bAoyqrg7CL+t5/LHnXU0SytNN9lVLjktuBe36ko= +github.com/libp2p/go-libp2p v0.0.26/go.mod h1:rPfIbMvxHGO8ngmqZtErdihcuw6zQ9ihYlXVEz2DGiI= +github.com/libp2p/go-libp2p v0.0.27/go.mod h1:kjeVlESxQisK2DvyKp38/UMHYd9gAMTj3C3XOB/DEZo= +github.com/libp2p/go-libp2p v0.0.28/go.mod h1:GBW0VbgEKe8ELXVpLQJduJYlJHRv/XfwP6Fo9TEcDJU= +github.com/libp2p/go-libp2p v0.0.29/go.mod h1:gQFCBfH+lPtQjjBF9x9pSNyCPrikhMqscf/XK6JZ7v0= +github.com/libp2p/go-libp2p v0.0.30/go.mod h1:XWT8FGHlhptAv1+3V/+J5mEpzyui/5bvFsNuWYs611A= +github.com/libp2p/go-libp2p v0.1.0/go.mod h1:6D/2OBauqLUoqcADOJpn9WbKqvaM07tDw68qHM0BxUM= +github.com/libp2p/go-libp2p v0.1.1/go.mod h1:I00BRo1UuUSdpuc8Q2mN7yDF/oTUTRAX6JWpTiK9Rp8= +github.com/libp2p/go-libp2p v0.1.2/go.mod h1:5nXHmf4Hs+NmkaMsmWcFJgUHTbYNpCfxr20lwus0p1c= +github.com/libp2p/go-libp2p v0.2.0/go.mod h1:5nXHmf4Hs+NmkaMsmWcFJgUHTbYNpCfxr20lwus0p1c= +github.com/libp2p/go-libp2p v0.2.1/go.mod h1:HZbtEOrgZN4F1fGZVvkV+930Wx3DkqlpBlO8dIoZWds= +github.com/libp2p/go-libp2p v0.3.0/go.mod h1:J7DPB1+zB5VLc8v/kKSD8+u2cbyIGI0Dh/Pf3Wprt+0= +github.com/libp2p/go-libp2p v0.3.1 h1:opd8/1Sm9zFG37LzNQsIzMTMeBabhlcX5VlvLrNZPV0= +github.com/libp2p/go-libp2p v0.3.1/go.mod h1:e6bwxbdYH1HqWTz8faTChKGR0BjPc8p+6SyP8GTTR7Y= +github.com/libp2p/go-libp2p-autonat v0.0.1/go.mod h1:fs71q5Xk+pdnKU014o2iq1RhMs9/PMaG5zXRFNnIIT4= +github.com/libp2p/go-libp2p-autonat v0.0.2/go.mod h1:fs71q5Xk+pdnKU014o2iq1RhMs9/PMaG5zXRFNnIIT4= +github.com/libp2p/go-libp2p-autonat v0.0.3/go.mod h1:fs71q5Xk+pdnKU014o2iq1RhMs9/PMaG5zXRFNnIIT4= +github.com/libp2p/go-libp2p-autonat v0.0.4/go.mod h1:fs71q5Xk+pdnKU014o2iq1RhMs9/PMaG5zXRFNnIIT4= +github.com/libp2p/go-libp2p-autonat v0.0.5/go.mod h1:cKt+qOSnWAZp0dqIuUk62v0/QAPw0vnLuVZnmzkOXRk= +github.com/libp2p/go-libp2p-autonat v0.0.6/go.mod h1:uZneLdOkZHro35xIhpbtTzLlgYturpu4J5+0cZK3MqE= +github.com/libp2p/go-libp2p-autonat v0.1.0 h1:aCWAu43Ri4nU0ZPO7NyLzUvvfqd0nE3dX0R/ZGYVgOU= +github.com/libp2p/go-libp2p-autonat v0.1.0/go.mod h1:1tLf2yXxiE/oKGtDwPYWTSYG3PtvYlJmg7NeVtPRqH8= +github.com/libp2p/go-libp2p-autonat-svc v0.0.1/go.mod h1:S/z0LPmQ36tW6sa66pnt+JXvISOXWMucLn13Si8KAJs= +github.com/libp2p/go-libp2p-autonat-svc v0.0.2/go.mod h1:j4iMiw0d3diRm5iB0noXumtb0mPvWrM1qAyh640cp8w= +github.com/libp2p/go-libp2p-autonat-svc v0.0.3/go.mod h1:j4iMiw0d3diRm5iB0noXumtb0mPvWrM1qAyh640cp8w= +github.com/libp2p/go-libp2p-autonat-svc v0.0.4/go.mod h1:6aLiQelA0CKEcPR0TvE9bqJ7U8Mc0nVdwCoho3ROdck= +github.com/libp2p/go-libp2p-autonat-svc v0.0.5/go.mod h1:6aLiQelA0CKEcPR0TvE9bqJ7U8Mc0nVdwCoho3ROdck= +github.com/libp2p/go-libp2p-autonat-svc v0.0.6/go.mod h1:t55mabJijU0qY9no2aixaeF3IlafdsiRebUHFNFdwUM= +github.com/libp2p/go-libp2p-autonat-svc v0.1.0 h1:28IM7iWMDclZeVkpiFQaWVANwXwE7zLlpbnS7yXxrfs= +github.com/libp2p/go-libp2p-autonat-svc v0.1.0/go.mod h1:fqi8Obl/z3R4PFVLm8xFtZ6PBL9MlV/xumymRFkKq5A= +github.com/libp2p/go-libp2p-blankhost v0.0.0-20190226202150-19c1feb93864/go.mod h1:v1Lnlzn2DFfVeAk2O19BnVm/OaoRlFZwSyq015ZT11I= +github.com/libp2p/go-libp2p-blankhost v0.0.1/go.mod h1:Ibpbw/7cPPYwFb7PACIWdvxxv0t0XCCI10t7czjAjTc= +github.com/libp2p/go-libp2p-blankhost v0.1.1/go.mod h1:pf2fvdLJPsC1FsVrNP3DUUvMzUts2dsLLBEpo1vW1ro= +github.com/libp2p/go-libp2p-blankhost v0.1.3/go.mod h1:KML1//wiKR8vuuJO0y3LUd1uLv+tlkGTAr3jC0S5cLg= +github.com/libp2p/go-libp2p-blankhost v0.1.4/go.mod h1:oJF0saYsAXQCSfDq254GMNmLNz6ZTHTOvtF4ZydUvwU= +github.com/libp2p/go-libp2p-circuit v0.0.1/go.mod h1:Dqm0s/BiV63j8EEAs8hr1H5HudqvCAeXxDyic59lCwE= +github.com/libp2p/go-libp2p-circuit v0.0.2/go.mod h1:zV136p4UQ76qH/Wj+X/Hivcg6sf6Yb1G7YL8o+GGj38= +github.com/libp2p/go-libp2p-circuit v0.0.3/go.mod h1:p1cHJnB9xnX5/1vZLkXgKwmNEOQQuF/Hp+SkATXnXYk= +github.com/libp2p/go-libp2p-circuit v0.0.4/go.mod h1:p1cHJnB9xnX5/1vZLkXgKwmNEOQQuF/Hp+SkATXnXYk= +github.com/libp2p/go-libp2p-circuit v0.0.5/go.mod h1:p1cHJnB9xnX5/1vZLkXgKwmNEOQQuF/Hp+SkATXnXYk= +github.com/libp2p/go-libp2p-circuit v0.0.6/go.mod h1:W34ISBRpoCPUeOR26xzTbLo+s3hDO9153hJCfvHzBlg= +github.com/libp2p/go-libp2p-circuit v0.0.7/go.mod h1:DFCgZ2DklFGTUIZIhSvbbWXTErUgjyNrJGfDHOrTKIA= +github.com/libp2p/go-libp2p-circuit v0.0.8/go.mod h1:DFCgZ2DklFGTUIZIhSvbbWXTErUgjyNrJGfDHOrTKIA= +github.com/libp2p/go-libp2p-circuit v0.0.9/go.mod h1:uU+IBvEQzCu953/ps7bYzC/D/R0Ho2A9LfKVVCatlqU= +github.com/libp2p/go-libp2p-circuit v0.1.0/go.mod h1:Ahq4cY3V9VJcHcn1SBXjr78AbFkZeIRmfunbA7pmFh8= +github.com/libp2p/go-libp2p-circuit v0.1.1/go.mod h1:Ahq4cY3V9VJcHcn1SBXjr78AbFkZeIRmfunbA7pmFh8= +github.com/libp2p/go-libp2p-circuit v0.1.2 h1:m7FkqcbveAyKJZESttlf4+b+6lZqVTYe0v2Csw7ZErc= +github.com/libp2p/go-libp2p-circuit v0.1.2/go.mod h1:nKVMY/Vp+zcuEGuEoFzRhzb/dMqs+1g3Jxd9qssM5RM= +github.com/libp2p/go-libp2p-circuit v0.1.4 h1:Phzbmrg3BkVzbqd4ZZ149JxCuUWu2wZcXf/Kr6hZJj8= +github.com/libp2p/go-libp2p-circuit v0.1.4/go.mod h1:CY67BrEjKNDhdTk8UgBX1Y/H5c3xkAcs3gnksxY7osU= +github.com/libp2p/go-libp2p-connmgr v0.1.1 h1:BIul1BPoN1vPAByMh6CeD33NpGjD+PkavmUjTS7uai8= +github.com/libp2p/go-libp2p-connmgr v0.1.1/go.mod h1:wZxh8veAmU5qdrfJ0ZBLcU8oJe9L82ciVP/fl1VHjXk= +github.com/libp2p/go-libp2p-core v0.0.1/go.mod h1:g/VxnTZ/1ygHxH3dKok7Vno1VfpvGcGip57wjTU4fco= +github.com/libp2p/go-libp2p-core v0.0.4/go.mod h1:jyuCQP356gzfCFtRKyvAbNkyeuxb7OlyhWZ3nls5d2I= +github.com/libp2p/go-libp2p-core v0.0.6/go.mod h1:0d9xmaYAVY5qmbp/fcgxHT3ZJsLjYeYPMJAUKpaCHrE= +github.com/libp2p/go-libp2p-core v0.2.0/go.mod h1:X0eyB0Gy93v0DZtSYbEM7RnMChm9Uv3j7yRXjO77xSI= +github.com/libp2p/go-libp2p-core v0.2.2/go.mod h1:8fcwTbsG2B+lTgRJ1ICZtiM5GWCWZVoVrLaDRvIRng0= +github.com/libp2p/go-libp2p-core v0.2.4 h1:Et6ykkTwI6PU44tr8qUF9k43vP0aduMNniShAbUJJw8= +github.com/libp2p/go-libp2p-core v0.2.4/go.mod h1:STh4fdfa5vDYr0/SzYYeqnt+E6KfEV5VxfIrm0bcI0g= +github.com/libp2p/go-libp2p-crypto v0.0.1/go.mod h1:yJkNyDmO341d5wwXxDUGO0LykUVT72ImHNUqh5D/dBE= +github.com/libp2p/go-libp2p-crypto v0.0.2/go.mod h1:eETI5OUfBnvARGOHrJz2eWNyTUxEGZnBxMcbUjfIj4I= +github.com/libp2p/go-libp2p-crypto v0.1.0 h1:k9MFy+o2zGDNGsaoZl0MA3iZ75qXxr9OOoAZF+sD5OQ= +github.com/libp2p/go-libp2p-crypto v0.1.0/go.mod h1:sPUokVISZiy+nNuTTH/TY+leRSxnFj/2GLjtOTW90hI= +github.com/libp2p/go-libp2p-discovery v0.0.1/go.mod h1:ZkkF9xIFRLA1xCc7bstYFkd80gBGK8Fc1JqGoU2i+zI= +github.com/libp2p/go-libp2p-discovery v0.0.2/go.mod h1:ZkkF9xIFRLA1xCc7bstYFkd80gBGK8Fc1JqGoU2i+zI= +github.com/libp2p/go-libp2p-discovery v0.0.3/go.mod h1:ZkkF9xIFRLA1xCc7bstYFkd80gBGK8Fc1JqGoU2i+zI= +github.com/libp2p/go-libp2p-discovery v0.0.4/go.mod h1:ReQGiv7QTtza8FUWzewfuMmRDVOQVp+lxHlJJA8YQCM= +github.com/libp2p/go-libp2p-discovery v0.0.5/go.mod h1:YtF20GUxjgoKZ4zmXj8j3Nb2TUSBHFlOCetzYdbZL5I= +github.com/libp2p/go-libp2p-discovery v0.1.0 h1:j+R6cokKcGbnZLf4kcNwpx6mDEUPF3N6SrqMymQhmvs= +github.com/libp2p/go-libp2p-discovery v0.1.0/go.mod h1:4F/x+aldVHjHDHuX85x1zWoFTGElt8HnoDzwkFZm29g= +github.com/libp2p/go-libp2p-host v0.0.0-20190226202054-2aa838333967 h1:arERhb/u8bUN55fZ7YrG7EzJoQbfSRccbZMATNOXF2E= +github.com/libp2p/go-libp2p-host v0.0.0-20190226202054-2aa838333967/go.mod h1:iAthoepYpyqzb89f4RmqzF9+ebsWPFBTvSedSlcWupg= +github.com/libp2p/go-libp2p-host v0.0.1/go.mod h1:qWd+H1yuU0m5CwzAkvbSjqKairayEHdR5MMl7Cwa7Go= +github.com/libp2p/go-libp2p-host v0.0.3/go.mod h1:Y/qPyA6C8j2coYyos1dfRm0I8+nvd4TGrDGt4tA7JR8= +github.com/libp2p/go-libp2p-interface-connmgr v0.0.0-20190226202048-6a96ea29ac65 h1:Z2k4gQ2S+iVqLNKHIsVrY1v7I2b16YwoH5zCOFcVKvM= +github.com/libp2p/go-libp2p-interface-connmgr v0.0.0-20190226202048-6a96ea29ac65/go.mod h1:2LbTwxMveREcmkOWo/s6MM7xDvSZbW8J8kYDF4Mj648= +github.com/libp2p/go-libp2p-interface-connmgr v0.0.1/go.mod h1:GarlRLH0LdeWcLnYM/SaBykKFl9U5JFnbBGruAk/D5k= +github.com/libp2p/go-libp2p-interface-connmgr v0.0.4/go.mod h1:GarlRLH0LdeWcLnYM/SaBykKFl9U5JFnbBGruAk/D5k= +github.com/libp2p/go-libp2p-interface-connmgr v0.0.5/go.mod h1:GarlRLH0LdeWcLnYM/SaBykKFl9U5JFnbBGruAk/D5k= +github.com/libp2p/go-libp2p-interface-pnet v0.0.0-20180919000501-d240acf619f6 h1:TiljmHO1c0NEBUZ/gEjxRKBhMl2dLy9+WL8iKdbax00= +github.com/libp2p/go-libp2p-interface-pnet v0.0.0-20180919000501-d240acf619f6/go.mod h1:el9jHpQAXK5dnTpKA4yfCNBZXvrzdOU75zz+C6ryp3k= +github.com/libp2p/go-libp2p-interface-pnet v0.0.1/go.mod h1:el9jHpQAXK5dnTpKA4yfCNBZXvrzdOU75zz+C6ryp3k= +github.com/libp2p/go-libp2p-kad-dht v0.0.2 h1:gU0zFBY5daynY0AqnENxExHQLkVb0lneL+99iRWRhLY= +github.com/libp2p/go-libp2p-kad-dht v0.0.2/go.mod h1:imCuD5x+TpIvxKMJ5Zgp3gsnVMFlNY9it8S7J+Ya6SI= +github.com/libp2p/go-libp2p-kad-dht v0.0.3/go.mod h1:RX/LjLbKnZHDt+3ecSUbk1ycOhyVpMtIUL47rSBTVW0= +github.com/libp2p/go-libp2p-kad-dht v0.0.4/go.mod h1:oaBflOQcuC8H+SVV0YN26H6AS+wcUEJyjUGV66vXuSY= +github.com/libp2p/go-libp2p-kad-dht v0.0.5/go.mod h1:oaBflOQcuC8H+SVV0YN26H6AS+wcUEJyjUGV66vXuSY= +github.com/libp2p/go-libp2p-kad-dht v0.0.6/go.mod h1:oaBflOQcuC8H+SVV0YN26H6AS+wcUEJyjUGV66vXuSY= +github.com/libp2p/go-libp2p-kad-dht v0.0.7/go.mod h1:X90f4pG3MNZN9VeCX0rcH8AY9g3AspA2x5EJ9AvU/gM= +github.com/libp2p/go-libp2p-kad-dht v0.0.8/go.mod h1:fGQfSQWWOxQFB97kETE09lYRLPRKaZZdguIq98fE5PI= +github.com/libp2p/go-libp2p-kad-dht v0.0.9/go.mod h1:RVllrB76xoaayqqBkLmXT8iIkMRNfLWSBuqAggP7W00= +github.com/libp2p/go-libp2p-kad-dht v0.0.10/go.mod h1:RVllrB76xoaayqqBkLmXT8iIkMRNfLWSBuqAggP7W00= +github.com/libp2p/go-libp2p-kad-dht v0.0.11/go.mod h1:UB+9NMT+gDVWnPfna+LlE1zeMY+fHbKrEeyu95QR1NQ= +github.com/libp2p/go-libp2p-kad-dht v0.0.12/go.mod h1:T56TYRczLz3sW9gdc9hIKIrCvGy/Gm/YI+364mATXzo= +github.com/libp2p/go-libp2p-kad-dht v0.0.13/go.mod h1:3A4xaZJeJ3zD3jCg17mtI+rA7uuXiiQdKVyAZOhZo1U= +github.com/libp2p/go-libp2p-kad-dht v0.0.14/go.mod h1:IETCKDE8BxDoyt2phfwJZRs+qrCHJ8KNo2HVth7+D8Y= +github.com/libp2p/go-libp2p-kad-dht v0.1.0/go.mod h1:EiH74cOsCxcu2Yh1XxQMpf1uHcLNm/hYEJBOIRlzHNE= +github.com/libp2p/go-libp2p-kad-dht v0.1.1/go.mod h1:1kj2Rk5pX3/0RwqMm9AMNCT7DzcMHYhgDN5VTi+cY0M= +github.com/libp2p/go-libp2p-kad-dht v0.2.0/go.mod h1:TmnCYcbasyFTKJg/P/AIIqJQYQ6+jgtYZTKUCLgu7js= +github.com/libp2p/go-libp2p-kad-dht v0.2.1 h1:+pb1DCkV/6oNQjTZVXl+Y++eV0rnelx/L8y1t4J+Rnw= +github.com/libp2p/go-libp2p-kad-dht v0.2.1/go.mod h1:k7ONOlup7HKzQ68dE6lSnp07cdxdkmnRa+6B4Fh9/w0= +github.com/libp2p/go-libp2p-kad-dht v0.2.2/go.mod h1:k7ONOlup7HKzQ68dE6lSnp07cdxdkmnRa+6B4Fh9/w0= +github.com/libp2p/go-libp2p-kad-dht v0.3.0 h1:KUJaqW3kkHP6zcL0s1CDg+yO0NYNNPkXmG4FrnZbwzM= +github.com/libp2p/go-libp2p-kad-dht v0.3.0/go.mod h1:7nBsfkMq2zN1qPs6n/fNopJfvmK9NZRNicRrCnwQR8o= +github.com/libp2p/go-libp2p-kbucket v0.0.0-20190226223454-719fa0d0a853/go.mod h1:MTtm31eal94QTxVOWYTDZ6G1YOJRN2G3ESQHbaPytLk= +github.com/libp2p/go-libp2p-kbucket v0.2.1 h1:q9Jfwww9XnXc1K9dyYuARJxJvIvhgYVaQCuziO/dF3c= +github.com/libp2p/go-libp2p-kbucket v0.2.1/go.mod h1:/Rtu8tqbJ4WQ2KTCOMJhggMukOLNLNPY1EtEWWLxUvc= +github.com/libp2p/go-libp2p-loggables v0.0.0-20190226201908-4c6f06110532/go.mod h1:jcP5HmpEBcQ2w5u9xhLkCv73GBPKz3weC/s6ZWhXn+k= +github.com/libp2p/go-libp2p-loggables v0.0.1/go.mod h1:lDipDlBNYbpyqyPX/KcoO+eq0sJYEVR2JgOexcivchg= +github.com/libp2p/go-libp2p-loggables v0.1.0 h1:h3w8QFfCt2UJl/0/NW4K829HX/0S4KD31PQ7m8UXXO8= +github.com/libp2p/go-libp2p-loggables v0.1.0/go.mod h1:EyumB2Y6PrYjr55Q3/tiJ/o3xoDasoRYM7nOzEpoa90= +github.com/libp2p/go-libp2p-metrics v0.0.0-20190226174147-1f0f4db04727 h1:d+QubbWRbDzYvAf5B/xxXkQMJY8nojml2oQlVFkLPf4= +github.com/libp2p/go-libp2p-metrics v0.0.0-20190226174147-1f0f4db04727/go.mod h1:ko4lRyuvbgwwxD2TJvt2RHONahjJlkn6l7L/iEbJBf0= +github.com/libp2p/go-libp2p-metrics v0.0.1/go.mod h1:jQJ95SXXA/K1VZi13h52WZMa9ja78zjyy5rspMsC/08= +github.com/libp2p/go-libp2p-mplex v0.1.1/go.mod h1:KUQWpGkCzfV7UIpi8SKsAVxyBgz1c9R5EvxgnwLsb/I= +github.com/libp2p/go-libp2p-mplex v0.2.0/go.mod h1:Ejl9IyjvXJ0T9iqUTE1jpYATQ9NM3g+OtR+EMMODbKo= +github.com/libp2p/go-libp2p-mplex v0.2.1 h1:E1xaJBQnbSiTHGI1gaBKmKhu1TUKkErKJnE8iGvirYI= +github.com/libp2p/go-libp2p-mplex v0.2.1/go.mod h1:SC99Rxs8Vuzrf/6WhmH41kNn13TiYdAWNYHrwImKLnE= +github.com/libp2p/go-libp2p-nat v0.0.0-20190226202135-df5e02c31d7d/go.mod h1:cA6+rN+EcOAzmSL3vQ53VxX/FfOL1WGeJUvZgqjm2eQ= +github.com/libp2p/go-libp2p-nat v0.0.1/go.mod h1:4L6ajyUIlJvx1Cbh5pc6Ma6vMDpKXf3GgLO5u7W0oQ4= +github.com/libp2p/go-libp2p-nat v0.0.2/go.mod h1:QrjXQSD5Dj4IJOdEcjHRkWTSomyxRo6HnUkf/TfQpLQ= +github.com/libp2p/go-libp2p-nat v0.0.3/go.mod h1:pZbRd59Du4UU6BCFL3bi2zp2+2YNuu5CAxvIvZ4CSqQ= +github.com/libp2p/go-libp2p-nat v0.0.4 h1:+KXK324yaY701On8a0aGjTnw8467kW3ExKcqW2wwmyw= +github.com/libp2p/go-libp2p-nat v0.0.4/go.mod h1:N9Js/zVtAXqaeT99cXgTV9e75KpnWCvVOiGzlcHmBbY= +github.com/libp2p/go-libp2p-net v0.0.0-20190226201932-e71fff5ba6e9 h1:Rx1GOAyaeba8cISnhBpvU5Zlz9mzgFuqJdVXTTsQoA4= +github.com/libp2p/go-libp2p-net v0.0.0-20190226201932-e71fff5ba6e9/go.mod h1:8W6Wx3AZbTRTe8zSMLoAmT3mGyau+w6kGIRk+Z+MZ7Q= +github.com/libp2p/go-libp2p-net v0.0.1/go.mod h1:Yt3zgmlsHOgUWSXmt5V/Jpz9upuJBE8EgNU9DrCcR8c= +github.com/libp2p/go-libp2p-net v0.0.2/go.mod h1:Yt3zgmlsHOgUWSXmt5V/Jpz9upuJBE8EgNU9DrCcR8c= +github.com/libp2p/go-libp2p-netutil v0.0.0-20190226202143-009c7e418419/go.mod h1:lpxjq1x/eUtPYAZAtnC7dKWjQeTuYIYz2ZIPNDDBj3g= +github.com/libp2p/go-libp2p-netutil v0.0.1/go.mod h1:GdusFvujWZI9Vt0X5BKqwWWmZFxecf9Gt03cKxm2f/Q= +github.com/libp2p/go-libp2p-netutil v0.1.0/go.mod h1:3Qv/aDqtMLTUyQeundkKsA+YCThNdbQD54k3TqjpbFU= +github.com/libp2p/go-libp2p-peer v0.0.1/go.mod h1:nXQvOBbwVqoP+T5Y5nCjeH4sP9IX/J0AMzcDUVruVoo= +github.com/libp2p/go-libp2p-peer v0.1.1/go.mod h1:jkF12jGB4Gk/IOo+yomm+7oLWxF278F7UnrYUQ1Q8es= +github.com/libp2p/go-libp2p-peer v0.2.0 h1:EQ8kMjaCUwt/Y5uLgjT8iY2qg0mGUT0N1zUjer50DsY= +github.com/libp2p/go-libp2p-peer v0.2.0/go.mod h1:RCffaCvUyW2CJmG2gAWVqwePwW7JMgxjsHm7+J5kjWY= +github.com/libp2p/go-libp2p-peerstore v0.0.0-20190226201924-e2df3e49eabf/go.mod h1:lLfgn0N3z2t+ER57a88K7NTZjMO27ez5TyWSURd428E= +github.com/libp2p/go-libp2p-peerstore v0.0.1/go.mod h1:RabLyPVJLuNQ+GFyoEkfi8H4Ti6k/HtZJ7YKgtSq+20= +github.com/libp2p/go-libp2p-peerstore v0.0.2/go.mod h1:RabLyPVJLuNQ+GFyoEkfi8H4Ti6k/HtZJ7YKgtSq+20= +github.com/libp2p/go-libp2p-peerstore v0.0.3/go.mod h1:RabLyPVJLuNQ+GFyoEkfi8H4Ti6k/HtZJ7YKgtSq+20= +github.com/libp2p/go-libp2p-peerstore v0.0.4/go.mod h1:RabLyPVJLuNQ+GFyoEkfi8H4Ti6k/HtZJ7YKgtSq+20= +github.com/libp2p/go-libp2p-peerstore v0.0.5/go.mod h1:RabLyPVJLuNQ+GFyoEkfi8H4Ti6k/HtZJ7YKgtSq+20= +github.com/libp2p/go-libp2p-peerstore v0.0.6/go.mod h1:RabLyPVJLuNQ+GFyoEkfi8H4Ti6k/HtZJ7YKgtSq+20= +github.com/libp2p/go-libp2p-peerstore v0.1.0/go.mod h1:2CeHkQsr8svp4fZ+Oi9ykN1HBb6u0MOvdJ7YIsmcwtY= +github.com/libp2p/go-libp2p-peerstore v0.1.1/go.mod h1:ojEWnwG7JpJLkJ9REWYXQslyu9ZLrPWPEcCdiZzEbSM= +github.com/libp2p/go-libp2p-peerstore v0.1.2/go.mod h1:BJ9sHlm59/80oSkpWgr1MyY1ciXAXV397W6h1GH/uKI= +github.com/libp2p/go-libp2p-peerstore v0.1.3 h1:wMgajt1uM2tMiqf4M+4qWKVyyFc8SfA+84VV9glZq1M= +github.com/libp2p/go-libp2p-peerstore v0.1.3/go.mod h1:BJ9sHlm59/80oSkpWgr1MyY1ciXAXV397W6h1GH/uKI= +github.com/libp2p/go-libp2p-protocol v0.0.0-20171212212132-b29f3d97e3a2 h1:ftsFA3rhuSWX7hNR1CalvmnCKhmncZG7Nyd79Ll6lh0= +github.com/libp2p/go-libp2p-protocol v0.0.0-20171212212132-b29f3d97e3a2/go.mod h1:Af9n4PiruirSDjHycM1QuiMi/1VZNHYcK8cLgFJLZ4s= +github.com/libp2p/go-libp2p-protocol v0.0.1/go.mod h1:Af9n4PiruirSDjHycM1QuiMi/1VZNHYcK8cLgFJLZ4s= +github.com/libp2p/go-libp2p-pubsub v0.1.0 h1:SmQeMa7IUv5vadh0fYgYsafWCBA1sCy5d/68kIYqGcU= +github.com/libp2p/go-libp2p-pubsub v0.1.0/go.mod h1:ZwlKzRSe1eGvSIdU5bD7+8RZN/Uzw0t1Bp9R1znpR/Q= +github.com/libp2p/go-libp2p-record v0.0.0-20190226223446-0f29df9dd657/go.mod h1:fsxr7H89UzzL4pG23Aq2n/5aNAXxdGEbyBVepo8oXy8= +github.com/libp2p/go-libp2p-record v0.1.1 h1:ZJK2bHXYUBqObHX+rHLSNrM3M8fmJUlUHrodDPPATmY= +github.com/libp2p/go-libp2p-record v0.1.1/go.mod h1:VRgKajOyMVgP/F0L5g3kH7SVskp17vFi2xheb5uMJtg= +github.com/libp2p/go-libp2p-routing v0.0.0-20190226202213-efb912a4c564/go.mod h1:Alff8O712wWiftX462zvknNmi5RmXtLq/gATcxJ/Hq8= +github.com/libp2p/go-libp2p-routing v0.0.1/go.mod h1:N51q3yTr4Zdr7V8Jt2JIktVU+3xBBylx1MZeVA6t1Ys= +github.com/libp2p/go-libp2p-routing v0.1.0 h1:hFnj3WR3E2tOcKaGpyzfP4gvFZ3t8JkQmbapN0Ct+oU= +github.com/libp2p/go-libp2p-routing v0.1.0/go.mod h1:zfLhI1RI8RLEzmEaaPwzonRvXeeSHddONWkcTcB54nE= +github.com/libp2p/go-libp2p-secio v0.0.0-20190226201947-aa2813e066f6/go.mod h1:U7wBlYK2sZbUiTaGe6xJd/fyNq40gwn+jBk/iEUbUrA= +github.com/libp2p/go-libp2p-secio v0.0.1/go.mod h1:IdG6iQybdcYmbTzxp4J5dwtUEDTOvZrT0opIDVNPrJs= +github.com/libp2p/go-libp2p-secio v0.0.2/go.mod h1:hS7HQ00MgLhRO/Wyu1bTX6ctJKhVpm+j2/S2A5UqYb0= +github.com/libp2p/go-libp2p-secio v0.0.3/go.mod h1:hS7HQ00MgLhRO/Wyu1bTX6ctJKhVpm+j2/S2A5UqYb0= +github.com/libp2p/go-libp2p-secio v0.1.0/go.mod h1:tMJo2w7h3+wN4pgU2LSYeiKPrfqBgkOsdiKK77hE7c8= +github.com/libp2p/go-libp2p-secio v0.2.0 h1:ywzZBsWEEz2KNTn5RtzauEDq5RFEefPsttXYwAWqHng= +github.com/libp2p/go-libp2p-secio v0.2.0/go.mod h1:2JdZepB8J5V9mBp79BmwsaPQhRPNN2NrnB2lKQcdy6g= +github.com/libp2p/go-libp2p-swarm v0.0.0-20190228072411-22f358a2d09a/go.mod h1:NHa7cA4/y8OKFw3BHQjLL9pwPDFXkgECO/k+2gqSFuk= +github.com/libp2p/go-libp2p-swarm v0.0.1/go.mod h1:mh+KZxkbd3lQnveQ3j2q60BM1Cw2mX36XXQqwfPOShs= +github.com/libp2p/go-libp2p-swarm v0.0.2/go.mod h1:n0cAAcKyndIrJWctQwjqXlAdIPBZzfdpBjx1SSvz30g= +github.com/libp2p/go-libp2p-swarm v0.0.3/go.mod h1:/2HbOacAKDYT1g0UEZjUPlzD+SBtvqkg4TaYeoBA2TY= +github.com/libp2p/go-libp2p-swarm v0.0.5/go.mod h1:+nkJir4feiXtWQjb/4CQHMEK8Vw+c5nVVxT8R5bs0yY= +github.com/libp2p/go-libp2p-swarm v0.0.6/go.mod h1:s5GZvzg9xXe8sbeESuFpjt8CJPTCa8mhEusweJqyFy8= +github.com/libp2p/go-libp2p-swarm v0.1.0/go.mod h1:wQVsCdjsuZoc730CgOvh5ox6K8evllckjebkdiY5ta4= +github.com/libp2p/go-libp2p-swarm v0.1.1/go.mod h1:4NVJaLwq/dr5kEq79Jo6pMin7ZFwLx73ln1FTefR91Q= +github.com/libp2p/go-libp2p-swarm v0.2.0/go.mod h1:x07b4zkMFo2EvgPV2bMTlNmdQc8i+74Jjio7xGvsTgU= +github.com/libp2p/go-libp2p-swarm v0.2.1 h1:9A8oQqPIZvbaRyrjViHeDYS7fE7fNtP7BRWdJrBHbe8= +github.com/libp2p/go-libp2p-swarm v0.2.1/go.mod h1:x07b4zkMFo2EvgPV2bMTlNmdQc8i+74Jjio7xGvsTgU= +github.com/libp2p/go-libp2p-swarm v0.2.2 h1:T4hUpgEs2r371PweU3DuH7EOmBIdTBCwWs+FLcgx3bQ= +github.com/libp2p/go-libp2p-swarm v0.2.2/go.mod h1:fvmtQ0T1nErXym1/aa1uJEyN7JzaTNyBcHImCxRpPKU= +github.com/libp2p/go-libp2p-testing v0.0.2/go.mod h1:gvchhf3FQOtBdr+eFUABet5a4MBLK8jM3V4Zghvmi+E= +github.com/libp2p/go-libp2p-testing v0.0.3/go.mod h1:gvchhf3FQOtBdr+eFUABet5a4MBLK8jM3V4Zghvmi+E= +github.com/libp2p/go-libp2p-testing v0.0.4/go.mod h1:gvchhf3FQOtBdr+eFUABet5a4MBLK8jM3V4Zghvmi+E= +github.com/libp2p/go-libp2p-testing v0.1.0/go.mod h1:xaZWMJrPUM5GlDBxCeGUi7kI4eqnjVyavGroI2nxEM0= +github.com/libp2p/go-libp2p-transport v0.0.0-20190226201958-e8580c8a519d h1:ErBx9a936Bg6OXLfYn/XA4BzA0SnSZ/SKsFq9QPsj2M= +github.com/libp2p/go-libp2p-transport v0.0.0-20190226201958-e8580c8a519d/go.mod h1:lcwgOszllbhvQXul37Kv5YbSYXPoUhRB2Z+Nr3jaBmo= +github.com/libp2p/go-libp2p-transport v0.0.1/go.mod h1:UzbUs9X+PHOSw7S3ZmeOxfnwaQY5vGDzZmKPod3N3tk= +github.com/libp2p/go-libp2p-transport v0.0.4/go.mod h1:StoY3sx6IqsP6XKoabsPnHCwqKXWUMWU7Rfcsubee/A= +github.com/libp2p/go-libp2p-transport v0.0.5/go.mod h1:StoY3sx6IqsP6XKoabsPnHCwqKXWUMWU7Rfcsubee/A= +github.com/libp2p/go-libp2p-transport-upgrader v0.0.0-20190227195104-83703858bb46/go.mod h1:5r+arPlxwtCEF1aVi/fTQF/ZWGSPHLxBov1DlXDevDA= +github.com/libp2p/go-libp2p-transport-upgrader v0.0.1/go.mod h1:NJpUAgQab/8K6K0m+JmZCe5RUXG10UMEx4kWe9Ipj5c= +github.com/libp2p/go-libp2p-transport-upgrader v0.0.2/go.mod h1:NJpUAgQab/8K6K0m+JmZCe5RUXG10UMEx4kWe9Ipj5c= +github.com/libp2p/go-libp2p-transport-upgrader v0.0.3/go.mod h1:Ng1HzfMIopyYscMHNFmJqiMMcpgDlj0t+NyjVWW89ws= +github.com/libp2p/go-libp2p-transport-upgrader v0.0.4/go.mod h1:RGq+tupk+oj7PzL2kn/m1w6YXxcIAYJYeI90h6BGgUc= +github.com/libp2p/go-libp2p-transport-upgrader v0.1.1 h1:PZMS9lhjK9VytzMCW3tWHAXtKXmlURSc3ZdvwEcKCzw= +github.com/libp2p/go-libp2p-transport-upgrader v0.1.1/go.mod h1:IEtA6or8JUbsV07qPW4r01GnTenLW4oi3lOPbUMGJJA= +github.com/libp2p/go-libp2p-yamux v0.1.2/go.mod h1:xUoV/RmYkg6BW/qGxA9XJyg+HzXFYkeXbnhjmnYzKp8= +github.com/libp2p/go-libp2p-yamux v0.2.0/go.mod h1:Db2gU+XfLpm6E4rG5uGCFX6uXA8MEXOxFcRoXUODaK8= +github.com/libp2p/go-libp2p-yamux v0.2.1 h1:Q3XYNiKCC2vIxrvUJL+Jg1kiyeEaIDNKLjgEjo3VQdI= +github.com/libp2p/go-libp2p-yamux v0.2.1/go.mod h1:1FBXiHDk1VyRM1C0aez2bCfHQ4vMZKkAQzZbkSQt5fI= +github.com/libp2p/go-maddr-filter v0.0.0-20190226202016-f2e84f9bcf48/go.mod h1:9uHkmfw086BVLQyQFAbe/peEO9Iley6dafqm3cKHIAk= +github.com/libp2p/go-maddr-filter v0.0.1/go.mod h1:6eT12kSQMA9x2pvFQa+xesMKUBlj9VImZbj3B9FBH/Q= +github.com/libp2p/go-maddr-filter v0.0.4/go.mod h1:6eT12kSQMA9x2pvFQa+xesMKUBlj9VImZbj3B9FBH/Q= +github.com/libp2p/go-maddr-filter v0.0.5 h1:CW3AgbMO6vUvT4kf87y4N+0P8KUl2aqLYhrGyDUbLSg= +github.com/libp2p/go-maddr-filter v0.0.5/go.mod h1:Jk+36PMfIqCJhAnaASRH83bdAvfDRp/w6ENFaC9bG+M= +github.com/libp2p/go-mplex v0.0.0-20190227194811-070b6c36acd4/go.mod h1:00WmJEYVKH/Kz6wCom3VmxX7re6B/jgSZmkydBYAZ1w= +github.com/libp2p/go-mplex v0.0.1/go.mod h1:pK5yMLmOoBR1pNCqDlA2GQrdAVTMkqFalaTWe7l4Yd0= +github.com/libp2p/go-mplex v0.0.2/go.mod h1:pK5yMLmOoBR1pNCqDlA2GQrdAVTMkqFalaTWe7l4Yd0= +github.com/libp2p/go-mplex v0.0.3/go.mod h1:pK5yMLmOoBR1pNCqDlA2GQrdAVTMkqFalaTWe7l4Yd0= +github.com/libp2p/go-mplex v0.1.0 h1:/nBTy5+1yRyY82YaO6HXQRnO5IAGsXTjEJaR3LdTPc0= +github.com/libp2p/go-mplex v0.1.0/go.mod h1:SXgmdki2kwCUlCCbfGLEgHjC4pFqhTp0ZoV6aiKgxDU= +github.com/libp2p/go-msgio v0.0.1/go.mod h1:63lBBgOTDKQL6EWazRMCwXsEeEeK9O2Cd+0+6OOuipQ= +github.com/libp2p/go-msgio v0.0.2/go.mod h1:63lBBgOTDKQL6EWazRMCwXsEeEeK9O2Cd+0+6OOuipQ= +github.com/libp2p/go-msgio v0.0.4 h1:agEFehY3zWJFUHK6SEMR7UYmk2z6kC3oeCM7ybLhguA= +github.com/libp2p/go-msgio v0.0.4/go.mod h1:63lBBgOTDKQL6EWazRMCwXsEeEeK9O2Cd+0+6OOuipQ= +github.com/libp2p/go-nat v0.0.2/go.mod h1:88nUEt0k0JD45Bk93NIwDqjlhiOwOoV36GchpcVc1yI= +github.com/libp2p/go-nat v0.0.3 h1:l6fKV+p0Xa354EqQOQP+d8CivdLM4kl5GxC1hSc/UeI= +github.com/libp2p/go-nat v0.0.3/go.mod h1:88nUEt0k0JD45Bk93NIwDqjlhiOwOoV36GchpcVc1yI= +github.com/libp2p/go-openssl v0.0.2/go.mod h1:v8Zw2ijCSWBQi8Pq5GAixw6DbFfa9u6VIYDXnvOXkc0= +github.com/libp2p/go-openssl v0.0.3/go.mod h1:unDrJpgy3oFr+rqXsarWifmJuNnJR4chtO1HmaZjggc= +github.com/libp2p/go-reuseport v0.0.0-20190218233603-6a75ffd916e5/go.mod h1:ViUXkfLbcaqzYb7Yyi7ZP/n8nAezADhH9oLvj6TA83E= +github.com/libp2p/go-reuseport v0.0.1 h1:7PhkfH73VXfPJYKQ6JwS5I/eVcoyYi9IMNGc6FWpFLw= +github.com/libp2p/go-reuseport v0.0.1/go.mod h1:jn6RmB1ufnQwl0Q1f+YxAj8isJgDCQzaaxIFYDhcYEA= +github.com/libp2p/go-reuseport-transport v0.0.0-20190228145407-8a125a1f2dbb/go.mod h1:mw+zSzEB6taNDI4zi7wFlXgzdxtQWEir6ZcomJ3VdoE= +github.com/libp2p/go-reuseport-transport v0.0.1/go.mod h1:YkbSDrvjUVDL6b8XqriyA20obEtsW9BLkuOUyQAOCbs= +github.com/libp2p/go-reuseport-transport v0.0.2 h1:WglMwyXyBu61CMkjCCtnmqNqnjib0GIEjMiHTwR/KN4= +github.com/libp2p/go-reuseport-transport v0.0.2/go.mod h1:YkbSDrvjUVDL6b8XqriyA20obEtsW9BLkuOUyQAOCbs= +github.com/libp2p/go-stream-muxer v0.0.0-20190218175335-a3f82916c8ad/go.mod h1:bAo8x7YkSpadMTbtTaxGVHWUQsR/l5MEaHbKaliuT14= +github.com/libp2p/go-stream-muxer v0.0.1 h1:Ce6e2Pyu+b5MC1k3eeFtAax0pW4gc6MosYSLV05UeLw= +github.com/libp2p/go-stream-muxer v0.0.1/go.mod h1:bAo8x7YkSpadMTbtTaxGVHWUQsR/l5MEaHbKaliuT14= +github.com/libp2p/go-stream-muxer-multistream v0.1.1/go.mod h1:zmGdfkQ1AzOECIAcccoL8L//laqawOsO03zX8Sa+eGw= +github.com/libp2p/go-stream-muxer-multistream v0.2.0 h1:714bRJ4Zy9mdhyTLJ+ZKiROmAFwUHpeRidG+q7LTQOg= +github.com/libp2p/go-stream-muxer-multistream v0.2.0/go.mod h1:j9eyPol/LLRqT+GPLSxvimPhNph4sfYfMoDPd7HkzIc= +github.com/libp2p/go-tcp-transport v0.0.0-20190227195113-80ec1b10b24c/go.mod h1:K6Zi9TkPvn5m/m0bktlJ6Fv9Vna2wvr/jiCtTRC7T8o= +github.com/libp2p/go-tcp-transport v0.0.1/go.mod h1:mnjg0o0O5TmXUaUIanYPUqkW4+u6mK0en8rlpA6BBTs= +github.com/libp2p/go-tcp-transport v0.0.2/go.mod h1:VjZFHasNJ0QiJQNNwiFDy25qyGWTXQWs8GM5DR4/L1k= +github.com/libp2p/go-tcp-transport v0.0.3/go.mod h1:f11C2zvCaGDkE8aFPUKmuYZwd3pP6HI24LeLMWhJnkQ= +github.com/libp2p/go-tcp-transport v0.0.4/go.mod h1:+E8HvC8ezEVOxIo3V5vCK9l1y/19K427vCzQ+xHKH/o= +github.com/libp2p/go-tcp-transport v0.1.0/go.mod h1:oJ8I5VXryj493DEJ7OsBieu8fcg2nHGctwtInJVpipc= +github.com/libp2p/go-tcp-transport v0.1.1 h1:yGlqURmqgNA2fvzjSgZNlHcsd/IulAnKM8Ncu+vlqnw= +github.com/libp2p/go-tcp-transport v0.1.1/go.mod h1:3HzGvLbx6etZjnFlERyakbaYPdfjg2pWP97dFZworkY= +github.com/libp2p/go-testutil v0.0.0-20190226202041-873eaa1a26ba/go.mod h1:8FHCRBHdt9BibhKebrOqVTJyW4cOZc52bfrGmw7ja+4= +github.com/libp2p/go-testutil v0.0.1/go.mod h1:iAcJc/DKJQanJ5ws2V+u5ywdL2n12X1WbbEG+Jjy69I= +github.com/libp2p/go-ws-transport v0.0.0-20191008032742-3098bba549e8 h1:F1fQYoej9mjMSkYq3fcdlZK8xGzn4Bhp3cxSgqswp6M= +github.com/libp2p/go-ws-transport v0.0.0-20191008032742-3098bba549e8/go.mod h1:040XOA+VSh/dAe8ZsMIjP4EZpI8yMRDFVLyADY+snxs= +github.com/libp2p/go-ws-transport v0.1.0 h1:F+0OvvdmPTDsVc4AjPHjV7L7Pk1B7D5QwtDcKE2oag4= +github.com/libp2p/go-ws-transport v0.1.0/go.mod h1:rjw1MG1LU9YDC6gzmwObkPd/Sqwhw7yT74kj3raBFuo= +github.com/libp2p/go-ws-transport v0.1.1 h1:uYIT3tWc5mIJB2P+9kJ1rgOVCmsO1oW1VXoTmCiDRa0= +github.com/libp2p/go-ws-transport v0.1.1/go.mod h1:eoxG1EQUq9NC6TipLQwbOhyP80mg4gIbiAU3Atbml00= +github.com/libp2p/go-yamux v1.2.1/go.mod h1:FGTiPvoV/3DVdgWpX+tM0OW3tsM+W5bSE3gZwqQTcow= +github.com/libp2p/go-yamux v1.2.2/go.mod h1:FGTiPvoV/3DVdgWpX+tM0OW3tsM+W5bSE3gZwqQTcow= +github.com/libp2p/go-yamux v1.2.3 h1:xX8A36vpXb59frIzWFdEgptLMsOANMFq2K7fPRlunYI= +github.com/libp2p/go-yamux v1.2.3/go.mod h1:FGTiPvoV/3DVdgWpX+tM0OW3tsM+W5bSE3gZwqQTcow= +github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= +github.com/mailru/easyjson v0.0.0-20180823135443-60711f1a8329/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= +github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e h1:hB2xlXdHp/pmPZq0y3QnmWAArdw9PqbmotexnWx/FU8= +github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= +github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= +github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcnceauSikq3lYCQ= +github.com/mattn/go-colorable v0.1.2 h1:/bC9yWikZXAL9uJdulbSfyVNIR3n3trXl+v8+1sx8mU= +github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= +github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= +github.com/mattn/go-isatty v0.0.5/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= +github.com/mattn/go-isatty v0.0.8 h1:HLtExJ+uU2HOZ+wI0Tt5DtUDrx8yhUqDcp7fYERX4CE= +github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= +github.com/mattn/go-runewidth v0.0.4 h1:2BvfKmzob6Bmd4YsL0zygOqfdFnK7GR4QL06Do4/p7Y= +github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= +github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= +github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE= +github.com/miekg/dns v1.1.12/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= +github.com/minio/blake2b-simd v0.0.0-20160723061019-3f5f724cb5b1 h1:lYpkrQH5ajf0OXOcUbGjvZxxijuBwbbmlSxLiuofa+g= +github.com/minio/blake2b-simd v0.0.0-20160723061019-3f5f724cb5b1/go.mod h1:pD8RvIylQ358TN4wwqatJ8rNavkEINozVn9DtGI3dfQ= +github.com/minio/sha256-simd v0.0.0-20190131020904-2d45a736cd16/go.mod h1:2FMWW+8GMoPweT6+pI63m9YE3Lmw4J71hV56Chs1E/U= +github.com/minio/sha256-simd v0.0.0-20190328051042-05b4dd3047e5/go.mod h1:2FMWW+8GMoPweT6+pI63m9YE3Lmw4J71hV56Chs1E/U= +github.com/minio/sha256-simd v0.1.0/go.mod h1:2FMWW+8GMoPweT6+pI63m9YE3Lmw4J71hV56Chs1E/U= +github.com/minio/sha256-simd v0.1.1-0.20190913151208-6de447530771/go.mod h1:B5e1o+1/KgNmWrSQK08Y6Z1Vb5pwIktudl0J58iy0KM= +github.com/minio/sha256-simd v0.1.1 h1:5QHSlgo3nt5yKOJrC7W8w7X+NFl8cMPZm96iu8kKUJU= +github.com/minio/sha256-simd v0.1.1/go.mod h1:B5e1o+1/KgNmWrSQK08Y6Z1Vb5pwIktudl0J58iy0KM= +github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= +github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/mr-tron/base58 v1.1.0/go.mod h1:xcD2VGqlgYjBdcBLw+TuYLr8afG+Hj8g2eTVqeSzSU8= +github.com/mr-tron/base58 v1.1.1/go.mod h1:xcD2VGqlgYjBdcBLw+TuYLr8afG+Hj8g2eTVqeSzSU8= +github.com/mr-tron/base58 v1.1.2 h1:ZEw4I2EgPKDJ2iEw0cNmLB3ROrEmkOtXIkaG7wZg+78= +github.com/mr-tron/base58 v1.1.2/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc= +github.com/multiformats/go-base32 v0.0.3 h1:tw5+NhuwaOjJCC5Pp82QuXbrmLzWg7uxlMFp8Nq/kkI= +github.com/multiformats/go-base32 v0.0.3/go.mod h1:pLiuGC8y0QR3Ue4Zug5UzK9LjgbkL8NSQj0zQ5Nz/AA= +github.com/multiformats/go-multiaddr v0.0.1/go.mod h1:xKVEak1K9cS1VdmPZW3LSIb6lgmoS58qz/pzqmAxV44= +github.com/multiformats/go-multiaddr v0.0.2/go.mod h1:xKVEak1K9cS1VdmPZW3LSIb6lgmoS58qz/pzqmAxV44= +github.com/multiformats/go-multiaddr v0.0.4/go.mod h1:xKVEak1K9cS1VdmPZW3LSIb6lgmoS58qz/pzqmAxV44= +github.com/multiformats/go-multiaddr v0.1.0/go.mod h1:xKVEak1K9cS1VdmPZW3LSIb6lgmoS58qz/pzqmAxV44= +github.com/multiformats/go-multiaddr v0.1.1/go.mod h1:aMKBKNEYmzmDmxfX88/vz+J5IU55txyt0p4aiWVohjo= +github.com/multiformats/go-multiaddr v0.1.2 h1:HWYHNSyyllbQopmVIF5K7JKJugiah+L9/kuZKHbmNdQ= +github.com/multiformats/go-multiaddr v0.1.2/go.mod h1:0nO36NvPpyV4QzvTLi/lafl2y95ncPj0vFwVF6k6wJ4= +github.com/multiformats/go-multiaddr-dns v0.0.1/go.mod h1:9kWcqw/Pj6FwxAwW38n/9403szc57zJPs45fmnznu3Q= +github.com/multiformats/go-multiaddr-dns v0.0.2/go.mod h1:9kWcqw/Pj6FwxAwW38n/9403szc57zJPs45fmnznu3Q= +github.com/multiformats/go-multiaddr-dns v0.0.3/go.mod h1:9kWcqw/Pj6FwxAwW38n/9403szc57zJPs45fmnznu3Q= +github.com/multiformats/go-multiaddr-dns v0.2.0 h1:YWJoIDwLePniH7OU5hBnDZV6SWuvJqJ0YtN6pLeH9zA= +github.com/multiformats/go-multiaddr-dns v0.2.0/go.mod h1:TJ5pr5bBO7Y1B18djPuRsVkduhQH2YqYSbxWJzYGdK0= +github.com/multiformats/go-multiaddr-fmt v0.0.1/go.mod h1:aBYjqL4T/7j4Qx+R73XSv/8JsgnRFlf0w2KGLCmXl3Q= +github.com/multiformats/go-multiaddr-fmt v0.1.0 h1:WLEFClPycPkp4fnIzoFoV9FVd49/eQsuaL3/CWe167E= +github.com/multiformats/go-multiaddr-fmt v0.1.0/go.mod h1:hGtDIW4PU4BqJ50gW2quDuPVjyWNZxToGUh/HwTZYJo= +github.com/multiformats/go-multiaddr-net v0.0.1/go.mod h1:nw6HSxNmCIQH27XPGBuX+d1tnvM7ihcFwHMSstNAVUU= +github.com/multiformats/go-multiaddr-net v0.1.0 h1:ZepO8Ezwovd+7b5XPPDhQhayk1yt0AJpzQBpq9fejx4= +github.com/multiformats/go-multiaddr-net v0.1.0/go.mod h1:5JNbcfBOP4dnhoZOv10JJVkJO0pCCEf8mTnipAo2UZQ= +github.com/multiformats/go-multiaddr-net v0.1.1 h1:jFFKUuXTXv+3ARyHZi3XUqQO+YWMKgBdhEvuGRfnL6s= +github.com/multiformats/go-multiaddr-net v0.1.1/go.mod h1:5JNbcfBOP4dnhoZOv10JJVkJO0pCCEf8mTnipAo2UZQ= +github.com/multiformats/go-multibase v0.0.1 h1:PN9/v21eLywrFWdFNsFKaU04kLJzuYzmrJR+ubhT9qA= +github.com/multiformats/go-multibase v0.0.1/go.mod h1:bja2MqRZ3ggyXtZSEDKpl0uO/gviWFaSteVbWT51qgs= +github.com/multiformats/go-multihash v0.0.1/go.mod h1:w/5tugSrLEbWqlcgJabL3oHFKTwfvkofsjW2Qa1ct4U= +github.com/multiformats/go-multihash v0.0.5/go.mod h1:lt/HCbqlQwlPBz7lv0sQCdtfcMtlJvakRUn/0Ual8po= +github.com/multiformats/go-multihash v0.0.6/go.mod h1:XuKXPp8VHcTygube3OWZC+aZrA+H1IhmjoCDtJc7PXM= +github.com/multiformats/go-multihash v0.0.8 h1:wrYcW5yxSi3dU07n5jnuS5PrNwyHy0zRHGVoUugWvXg= +github.com/multiformats/go-multihash v0.0.8/go.mod h1:YSLudS+Pi8NHE7o6tb3D8vrpKa63epEDmG8nTduyAew= +github.com/multiformats/go-multistream v0.0.1/go.mod h1:fJTiDfXJVmItycydCnNx4+wSzZ5NwG2FEVAI30fiovg= +github.com/multiformats/go-multistream v0.0.4/go.mod h1:fJTiDfXJVmItycydCnNx4+wSzZ5NwG2FEVAI30fiovg= +github.com/multiformats/go-multistream v0.1.0 h1:UpO6jrsjqs46mqAK3n6wKRYFhugss9ArzbyUzU+4wkQ= +github.com/multiformats/go-multistream v0.1.0/go.mod h1:fJTiDfXJVmItycydCnNx4+wSzZ5NwG2FEVAI30fiovg= +github.com/multiformats/go-varint v0.0.1 h1:TR/0rdQtnNxuN2IhiB639xC3tWM4IUi7DkTBVTdGW/M= +github.com/multiformats/go-varint v0.0.1/go.mod h1:3Ls8CIEsrijN6+B7PbrXRPxHRPuXSrVKRY101jdMZYE= +github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= +github.com/ocdogan/rbt v0.0.0-20160425054511-de6e2b48be33 h1:DQMe4Gmdz3tmthcNAbzAjW3Q7COoMi5Q2cJQnWsUkv8= +github.com/ocdogan/rbt v0.0.0-20160425054511-de6e2b48be33/go.mod h1:0uoVzTOFUpKmyAwRLuwFo79XnkqEuZzxnDqsCKlRT4I= +github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= +github.com/olekukonko/tablewriter v0.0.1 h1:b3iUnf1v+ppJiOfNX4yxxqfWKMQPZR5yoh8urCTFX88= +github.com/olekukonko/tablewriter v0.0.1/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= +github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.8.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= +github.com/onsi/gomega v1.5.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= +github.com/opaolini/go-ds-sql v0.0.0-20191105113501-15a4c8e2fea5 h1:J9ici0vacWtjdJDQ+/o+BVTLFvaUZ8OGbfjJyOsmfCg= +github.com/opaolini/go-ds-sql v0.0.0-20191105113501-15a4c8e2fea5/go.mod h1:ETkfb1cGmQjIAwd4Pjg4m75gxxdg/L+hPYMnHs7hFiw= +github.com/opentracing/opentracing-go v1.0.2/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= +github.com/opentracing/opentracing-go v1.1.0 h1:pWlfV3Bxv7k65HYwkikxat0+s3pV4bsqf19k25Ur8rU= +github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= +github.com/pborman/uuid v0.0.0-20180906182336-adf5a7427709 h1:zNBQb37RGLmJybyMcs983HfUfpkw9OTFD9tbBfAViHE= +github.com/pborman/uuid v0.0.0-20180906182336-adf5a7427709/go.mod h1:VyrYX9gd7irzKovcSS6BIIEwPRkP2Wm2m9ufcdFSJ34= +github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= +github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I= +github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/plaid/go-envvar v1.1.0 h1:q/po6Vnxh1ANQugP9UVXp/DxbLpQCxVV7HeCq2iXMwA= +github.com/plaid/go-envvar v1.1.0/go.mod h1:l95NEcV3lksGLSdpHtPxDvs16HNNp6CQhtfo0ATM7ks= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= +github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= +github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= +github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= +github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= +github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= +github.com/prometheus/tsdb v0.10.0 h1:If5rVCMTp6W2SiRAQFlbpJNgVlgMEd+U2GZckwK38ic= +github.com/prometheus/tsdb v0.10.0/go.mod h1:oi49uRhEe9dPUTlS3JRZOwJuVi6tmh10QSgwXEyGCt4= +github.com/rjeczalik/notify v0.9.2 h1:MiTWrPj55mNDHEiIX5YUSKefw/+lCQVoAFmD6oQm5w8= +github.com/rjeczalik/notify v0.9.2/go.mod h1:aErll2f0sUX9PXZnVNyeiObbmTlk5jnMoCa4QEjJeqM= +github.com/rs/cors v1.7.0 h1:+88SsELBHx5r+hZ8TCkggzSstaWNbDvThkVK8H6f9ik= +github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= +github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= +github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= +github.com/sirupsen/logrus v1.4.2 h1:SPIRibHv4MatM3XXNO2BJeFLZwZ2LvZgfQ5+UNI2im4= +github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= +github.com/smola/gocompat v0.2.0/go.mod h1:1B0MlxbmoZNo3h8guHp8HztB3BSYR5itql9qtVc0ypY= +github.com/spacemonkeygo/openssl v0.0.0-20181017203307-c2dcc5cca94a/go.mod h1:7AyxJNCJ7SBZ1MfVQCWD6Uqo2oubI2Eq2y2eqf+A5r0= +github.com/spacemonkeygo/spacelog v0.0.0-20180420211403-2296661a0572/go.mod h1:w0SWMsp6j9O/dk4/ZpIhL+3CkG8ofA2vuv7k+ltqUMc= +github.com/spaolacci/murmur3 v0.0.0-20170819071325-9f5d223c6079/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= +github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= +github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI= +github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= +github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= +github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= +github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= +github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= +github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= +github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= +github.com/src-d/envconfig v1.0.0/go.mod h1:Q9YQZ7BKITldTBnoxsE5gOeB5y66RyPXeue/R4aaNBc= +github.com/status-im/keycard-go v0.0.0-20190424133014-d95853db0f48 h1:ju5UTwk5Odtm4trrY+4Ca4RMj5OyXbmVeDAVad2T0Jw= +github.com/status-im/keycard-go v0.0.0-20190424133014-d95853db0f48/go.mod h1:RZLeN1LMWmRsyYjvAu+I6Dm9QmlDaIIt+Y+4Kd7Tp+Q= +github.com/steakknife/bloomfilter v0.0.0-20180906043351-99ee86d9200f h1:T7YHzO3/eqD/kv5m9+TLM4XuEAkN7NPj5pnZHqaOo/Q= +github.com/steakknife/bloomfilter v0.0.0-20180906043351-99ee86d9200f/go.mod h1:8OR4w3TdeIHIh1g6EMY5p0gVNOovcWC+1vpc7naMuAw= +github.com/steakknife/hamming v0.0.0-20180906055317-003c143a81c2 h1:o6NMd68tuqfQ0ZFnz2d16xzFNLWxrCvqF40InOJJHSM= +github.com/steakknife/hamming v0.0.0-20180906055317-003c143a81c2/go.mod h1:hpGUWaI9xL8pRQCTXQgocU38Qw1g0Us7n5PxxTwTCYU= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q= +github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/tyler-smith/go-bip39 v1.0.2 h1:+t3w+KwLXO6154GNJY+qUtIxLTmFjfUmpguQT1OlOT8= +github.com/tyler-smith/go-bip39 v1.0.2/go.mod h1:sJ5fKU0s6JVwZjjcUEX2zFOnvq0ASQ2K9Zr6cf67kNs= +github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= +github.com/whyrusleeping/base32 v0.0.0-20170828182744-c30ac30633cc h1:BCPnHtcboadS0DvysUuJXZ4lWVv5Bh5i7+tbIyi+ck4= +github.com/whyrusleeping/base32 v0.0.0-20170828182744-c30ac30633cc/go.mod h1:r45hJU7yEoA81k6MWNhpMj/kms0n14dkzkxYHoB96UM= +github.com/whyrusleeping/go-keyspace v0.0.0-20160322163242-5b898ac5add1 h1:EKhdznlJHPMoKr0XTrX+IlJs1LH3lyx2nfr1dOlZ79k= +github.com/whyrusleeping/go-keyspace v0.0.0-20160322163242-5b898ac5add1/go.mod h1:8UvriyWtv5Q5EOgjHaSseUEdkQfvwFv1I/In/O2M9gc= +github.com/whyrusleeping/go-logging v0.0.0-20170515211332-0457bb6b88fc/go.mod h1:bopw91TMyo8J3tvftk8xmU2kPmlrt4nScJQZU2hE5EM= +github.com/whyrusleeping/go-logging v0.0.1 h1:fwpzlmT0kRC/Fmd0MdmGgJG/CXIZ6gFq46FQZjprUcc= +github.com/whyrusleeping/go-logging v0.0.1/go.mod h1:lDPYj54zutzG1XYfHAhcc7oNXEburHQBn+Iqd4yS4vE= +github.com/whyrusleeping/go-notifier v0.0.0-20170827234753-097c5d47330f h1:M/lL30eFZTKnomXY6huvM6G0+gVquFNf6mxghaWlFUg= +github.com/whyrusleeping/go-notifier v0.0.0-20170827234753-097c5d47330f/go.mod h1:cZNvX9cFybI01GriPRMXDtczuvUhgbcYr9iCGaNlRv8= +github.com/whyrusleeping/go-smux-multiplex v0.1.0/go.mod h1:OXL5hggHNZSsadXDlBJDD4eD3IQYEB3Yu6xpovd6pPw= +github.com/whyrusleeping/go-smux-multiplex v3.0.16+incompatible h1:iqksILj8STw03EJQe7Laj4ubnw+ojOyik18cd5vPL1o= +github.com/whyrusleeping/go-smux-multiplex v3.0.16+incompatible/go.mod h1:34LEDbeKFZInPUrAG+bjuJmUXONGdEFW7XL0SpTY1y4= +github.com/whyrusleeping/go-smux-multistream v0.1.0/go.mod h1:/usW3LIBirW4h9ko1PnoF7tExBnbxPBszG0n4wylJr8= +github.com/whyrusleeping/go-smux-multistream v2.0.2+incompatible h1:BdYHctE9HJZLquG9tpTdwWcbG4FaX6tVKPGjCGgiVxo= +github.com/whyrusleeping/go-smux-multistream v2.0.2+incompatible/go.mod h1:dRWHHvc4HDQSHh9gbKEBbUZ+f2Q8iZTPG3UOGYODxSQ= +github.com/whyrusleeping/go-smux-yamux v0.1.1/go.mod h1:Yw+ayOEKERDHXLJ4GiE5AnBmldJW4QRLDzGFC9do8G0= +github.com/whyrusleeping/go-smux-yamux v2.0.8+incompatible h1:IGm/UP/JpEFS6D787sZnZg7RA6fZIR9c/Ms9DeAVNuk= +github.com/whyrusleeping/go-smux-yamux v2.0.8+incompatible/go.mod h1:6qHUzBXUbB9MXmw3AUdB52L8sEb/hScCqOdW2kj/wuI= +github.com/whyrusleeping/mafmt v1.2.8 h1:TCghSl5kkwEE0j+sU/gudyhVMRlpBin8fMBBHg59EbA= +github.com/whyrusleeping/mafmt v1.2.8/go.mod h1:faQJFPbLSxzD9xpA02ttW/tS9vZykNvXwGvqIpk20FA= +github.com/whyrusleeping/mdns v0.0.0-20180901202407-ef14215e6b30/go.mod h1:j4l84WPFclQPj320J9gp0XwNKBb3U0zt5CBqjPp22G4= +github.com/whyrusleeping/multiaddr-filter v0.0.0-20160516205228-e903e4adabd7 h1:E9S12nwJwEOXe2d6gT6qxdvqMnNq+VnSsKPgm2ZZNds= +github.com/whyrusleeping/multiaddr-filter v0.0.0-20160516205228-e903e4adabd7/go.mod h1:X2c0RVCI1eSUFI8eLcY3c0423ykwiUdxLJtkDvruhjI= +github.com/whyrusleeping/timecache v0.0.0-20160911033111-cfcb2f1abfee h1:lYbXeSvJi5zk5GLKVuid9TVjS9a0OmLIDKTfoZBL6Ow= +github.com/whyrusleeping/timecache v0.0.0-20160911033111-cfcb2f1abfee/go.mod h1:m2aV4LZI4Aez7dP5PMyVKEHhUyEJ/RjmPEDOpDvudHg= +github.com/whyrusleeping/yamux v1.1.5 h1:4CK3aUUJQu0qpKZv5gEWJjNOQtdbdDhVVS6PJ+HimdE= +github.com/whyrusleeping/yamux v1.1.5/go.mod h1:E8LnQQ8HKx5KD29HZFUwM1PxCOdPRzGwur1mcYhXcD8= +github.com/whyrusleeping/yamux v1.2.0/go.mod h1:Cgw3gpb4DrDZ1FrP/5pxg/cpiY54Gr5uCXwUylwi2GE= +github.com/wsddn/go-ecdh v0.0.0-20161211032359-48726bab9208 h1:1cngl9mPEoITZG8s8cVcUy5CeIBYhEESkOB7m6Gmkrk= +github.com/wsddn/go-ecdh v0.0.0-20161211032359-48726bab9208/go.mod h1:IotVbo4F+mw0EzQ08zFqg7pK3FebNXpaMsRy2RT+Ees= +github.com/x-cray/logrus-prefixed-formatter v0.5.2/go.mod h1:2duySbKsL6M18s5GU7VPsoEPHyzalCE06qoARUCeBBE= +github.com/xeipuuv/gojsonpointer v0.0.0-20190809123943-df4f5c81cb3b h1:6cLsL+2FW6dRAdl5iMtHgRogVCff0QpRi9653YmdcJA= +github.com/xeipuuv/gojsonpointer v0.0.0-20190809123943-df4f5c81cb3b/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= +github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 h1:EzJWgHovont7NscjpAxXsDA8S8BMYve8Y5+7cuRE7R0= +github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ= +github.com/xeipuuv/gojsonschema v1.1.0 h1:ngVtJC9TY/lg0AA/1k48FYhBrhRoFlEmWzsehpNAaZg= +github.com/xeipuuv/gojsonschema v1.1.0/go.mod h1:5yf86TLmAcydyeJq5YvxkGPE2fm/u4myDekKRoLuqhs= +github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= +go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= +go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= +go.opencensus.io v0.22.1 h1:8dP3SGL7MPB94crU3bEPplMPe83FI4EouesJUeFHv50= +go.opencensus.io v0.22.1/go.mod h1:Ap50jQcDJrx6rB6VgeeFPtuPIf3wMRvRfrfYDO6+BmA= +golang.org/x/crypto v0.0.0-20170930174604-9419663f5a44/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20190211182817-74369b46fc67/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20190225124518-7f87c0fbb88b/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20190228161510-8dd112bcdc25/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190513172903-22d7a77e9e5f/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190618222545-ea8f1a30c443/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550 h1:ObdrDkeb4kJdCP557AjRjq69pTHfNouLtWZG7j9rPN8= +golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= +golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/net v0.0.0-20180524181706-dfa909b99c79/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181011144130-49bb7cea24b1/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190227160552-c95aed5357e7/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190724013045-ca1201d0de80 h1:Ao/3l156eZf2AW5wK8a7/smtodRU+gha3+BeqJ69lRk= +golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180926160741-c2ed4eda69e7/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190102155601-82a175fd1598/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190219092855-153ac476189d/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190228124157-a34e9553db1e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190804053845-51ab0e2deafa/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a h1:aYOabOQFp6Vj6W1F80affTUvO9UxmJRx8K0gsfABByQ= +golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs= +golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/time v0.0.0-20191024005414-555d28b269f0 h1:/5xXl8Y5W96D+TtHSlonuFqGHIWVuyCkGJLwGh9JJFs= +golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20181130052023-1c3d964395ce/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= +golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898 h1:/atklqdjdhuosWIl6AIbOeHJjicWYPqR9bpxqxYG2pA= +golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20180831171423-11092d34479b/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= +google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= +gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= +gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce/go.mod h1:5AcXVHNjg+BDxry382+8OKon8SEWiKktQR07RKPsv1c= +gopkg.in/src-d/go-cli.v0 v0.0.0-20181105080154-d492247bbc0d/go.mod h1:z+K8VcOYVYcSwSjGebuDL6176A1XskgbtNl64NSg+n8= +gopkg.in/src-d/go-log.v1 v1.0.1/go.mod h1:GN34hKP0g305ysm2/hctJ0Y8nWP3zxXXJ8GFabTyABE= +gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= +gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= From a727f8301913207be1b1e8a7ef94091ecc7a5c4e Mon Sep 17 00:00:00 2001 From: Alex Towle Date: Fri, 3 Jan 2020 12:56:20 -0800 Subject: [PATCH 19/50] Addressed review feedback from Fabio --- rpc/clients/typescript/package.json | 6 +- rpc/clients/typescript/test/ws_client_test.ts | 96 +++++++++++-------- rpc/clients/typescript/yarn.lock | 10 ++ 3 files changed, 71 insertions(+), 41 deletions(-) diff --git a/rpc/clients/typescript/package.json b/rpc/clients/typescript/package.json index 39905c790..57c081798 100644 --- a/rpc/clients/typescript/package.json +++ b/rpc/clients/typescript/package.json @@ -47,7 +47,6 @@ }, "devDependencies": { "@0x/contract-addresses": "^4.1.0", - "@0x/contracts-dev-utils": "^1.0.2", "@0x/contracts-erc20": "^3.0.2", "@0x/contracts-exchange": "^3.0.2", "@0x/contracts-test-utils": "^5.0.1", @@ -58,8 +57,8 @@ "@0x/tslint-config": "^4.0.0", "@types/mocha": "^2.2.42", "@types/uuid": "^3.4.3", + "@types/uuid-validate": "^0.0.1", "@types/websocket": "^0.0.40", - "bignumber.js": "~9.0.0", "chai": "^4.0.1", "chai-as-promised": "^7.1.0", "chai-bignumber": "^3.0.0", @@ -68,7 +67,8 @@ "mocha": "^4.1.0", "shx": "^0.2.2", "tslint": "5.11.0", - "typescript": "3.0.1" + "typescript": "3.0.1", + "uuid-validate": "^0.0.3" }, "publishConfig": { "access": "public" diff --git a/rpc/clients/typescript/test/ws_client_test.ts b/rpc/clients/typescript/test/ws_client_test.ts index dd3a0af29..8bb25cdbf 100644 --- a/rpc/clients/typescript/test/ws_client_test.ts +++ b/rpc/clients/typescript/test/ws_client_test.ts @@ -1,5 +1,5 @@ import {getContractAddressesForChainOrThrow} from '@0x/contract-addresses'; -import {artifacts, DummyERC20TokenContract} from '@0x/contracts-erc20'; +import {DummyERC20TokenContract} from '@0x/contracts-erc20'; import {ExchangeContract} from '@0x/contracts-exchange'; import {blockchainTests, constants, expect, OrderFactory, orderHashUtils} from '@0x/contracts-test-utils'; import {callbackErrorReporter, Web3Config, web3Factory} from '@0x/dev-utils'; @@ -8,6 +8,7 @@ import {Web3ProviderEngine} from '@0x/subproviders'; import {DoneCallback, SignedOrder} from '@0x/types'; import {BigNumber, hexUtils} from '@0x/utils'; import 'mocha'; +import * as uuidValidate from 'uuid-validate'; import * as WebSocket from 'websocket'; import {OrderEvent, OrderEventEndState, WSClient} from '../src/index'; @@ -25,9 +26,6 @@ blockchainTests.resets('WSClient', env => { let orderFactory: OrderFactory; let provider: Web3ProviderEngine; - const oneSecondInMs = 1000; - const twoSecondsInMs = 2000; - beforeEach(async () => { deployment = await startServerAndClientAsync(); }); @@ -37,19 +35,6 @@ blockchainTests.resets('WSClient', env => { deployment.mesh.stopMesh(); }); - async function deployErc20TokenAsync(name: string, symbol: string): Promise { - return DummyERC20TokenContract.deployFrom0xArtifactAsync( - artifacts.DummyERC20Token, - provider, - env.txDefaults, - artifacts, - name, - symbol, - new BigNumber(18), - new BigNumber('100e18'), - ); - } - before(async () => { const chainId = await env.getChainIdAsync(); const accounts = await env.getAccountAddressesAsync(); @@ -71,8 +56,11 @@ blockchainTests.resets('WSClient', env => { // Configure two tokens and an order factory with a maker address so // that valid orders can be created easily in the tests. - const makerToken = await deployErc20TokenAsync('MakerToken', 'MKT'); - const feeToken = await deployErc20TokenAsync('FeeToken', 'FEE'); + const makerToken = new DummyERC20TokenContract('0x34d402f14d58e001d8efbe6585051bf9706aa064', provider); + const feeToken = new DummyERC20TokenContract('0xcdb594a32b1cc3479d8746279712c39d18a07fc0', provider); + const mintAmount = new BigNumber('100e18'); + await makerToken.mint(mintAmount).awaitTransactionSuccessAsync({ from: makerAddress }); + await feeToken.mint(mintAmount).awaitTransactionSuccessAsync({ from: makerAddress }); await makerToken .approve(erc20ProxyAddress, new BigNumber('100e18')) .awaitTransactionSuccessAsync({from: makerAddress}); @@ -144,8 +132,8 @@ blockchainTests.resets('WSClient', env => { }; const now = new Date(Date.now()); - const expectedStartOfCurrentUTCDay = `${now.getUTCFullYear()}-${now.getUTCMonth() + - 1}-${now.getUTCDate()}T00:00:00Z`; + const expectedStartOfCurrentUTCDay = `${now.getUTCFullYear()}-${leftPad(now.getUTCMonth() + + 1)}-${leftPad(now.getUTCDate())}T00:00:00Z`; const expectedStats = { version: '', pubSubTopic: '/0x-orders/network/1337/version/2', @@ -169,10 +157,6 @@ blockchainTests.resets('WSClient', env => { }); }); - // This pattern will only match strings with the following pattern: - // [ 8 digits or letters ]-[ 4 digits or letters ]-[ 4 digits or letters ]-[ 4 digits or letters ]-[ 12 digits or letters ] - const ganacheSnapshotIdPattern = /^([0-9]|[a-z]){8}-([0-9]|[a-z]){4}-([0-9]|[a-z]){4}-([0-9]|[a-z]){4}-([0-9]|[a-z]){12}$/; - describe('#getOrdersAsync', async () => { it('properly makes multiple paginated requests under-the-hood and returns all signedOrders', async () => { const ordersLength = 10; @@ -191,12 +175,12 @@ blockchainTests.resets('WSClient', env => { const now = new Date(Date.now()).getTime(); const perPage = 10; const response = await deployment.client.getOrdersAsync(perPage); - assertRoughlyEquals(now, response.snapshotTimestamp * oneSecondInMs, twoSecondsInMs); + assertRoughlyEquals(now, response.snapshotTimestamp * secondsToMs(1), secondsToMs(2)); // Verify that all of the orders that were added to the mesh node // were returned in the `getOrders` rpc response, and that the // ganache snapshot ID in the response meets the expected schema. - expect(ganacheSnapshotIdPattern.test(response.snapshotID)); + expect(uuidValidate(response.snapshotID)).to.be.true(); for (const order of orders) { let hasSeenMatch = false; for (const responseOrder of response.ordersInfos) { @@ -228,13 +212,21 @@ blockchainTests.resets('WSClient', env => { describe('#subscribeToOrdersAsync', async () => { it('should receive subscription updates about added orders', (done: DoneCallback) => { (async () => { + // Create orders to add to the mesh node. + const ordersLength = 10; const orders = [] as SignedOrder[]; + for (let i = 0; i < ordersLength; i++) { + orders[i] = await orderFactory.newSignedOrderAsync({}); + } + + // Subscribe to orders and wait for order events. let now: number; const subscription = deployment.client.subscribeToOrdersAsync((orderEvents: OrderEvent[]) => { expect(orderEvents.length).to.be.eq(orders.length); for (const orderEvent of orderEvents) { expect(orderEvent.endState).to.be.eq(OrderEventEndState.Added); - assertRoughlyEquals(now, orderEvent.timestampMs, twoSecondsInMs); + // tslint:disable-next-line:custom-no-magic-numbers + assertRoughlyEquals(now, orderEvent.timestampMs, secondsToMs(4)); } // Ensure that all of the orders that were added had an associated order event emitted. @@ -254,16 +246,9 @@ blockchainTests.resets('WSClient', env => { done(); }); - - // Add orders to the mesh node. - const ordersLength = 10; - for (let i = 0; i < ordersLength; i++) { - orders[i] = await orderFactory.newSignedOrderAsync({}); - } now = new Date(Date.now()).getTime(); const validationResults = await deployment.client.addOrdersAsync(orders); expect(validationResults.accepted.length).to.be.eq(ordersLength); - await subscription; })().catch(done); }); @@ -274,18 +259,17 @@ blockchainTests.resets('WSClient', env => { const order = await orderFactory.newSignedOrderAsync({}); const validationResults = await deployment.client.addOrdersAsync([ order ]); expect(validationResults.accepted.length).to.be.eq(1); - await exchange.cancelOrder(order).awaitTransactionSuccessAsync({ from: makerAddress }); // Subscribe to order events and assert that only a single cancel event was received. const now = new Date(Date.now()).getTime(); - await deployment.client.subscribeToOrdersAsync((orderEvents: OrderEvent[]) => { + const subscription = deployment.client.subscribeToOrdersAsync((orderEvents: OrderEvent[]) => { // Ensure that the correct cancel event was logged. expect(orderEvents.length).to.be.eq(1); const [orderEvent] = orderEvents; expect(orderEvent.endState).to.be.eq(OrderEventEndState.Cancelled); expect(orderEvent.fillableTakerAssetAmount).to.be.bignumber.eq(constants.ZERO_AMOUNT); expect(orderEvent.signedOrder).to.be.deep.eq(order); - assertRoughlyEquals(orderEvent.timestampMs, now, twoSecondsInMs); + assertRoughlyEquals(orderEvent.timestampMs, now, secondsToMs(2)); expect(orderEvent.contractEvents.length).to.be.eq(1); // Ensure that the contract event is correct. @@ -311,8 +295,35 @@ blockchainTests.resets('WSClient', env => { expect(parameters.takerAssetData).to.be.eq(order.takerAssetData); done(); }); + + // Cancel an order and then wait for the emitted order event. + await exchange.cancelOrder(order).awaitTransactionSuccessAsync({ from: makerAddress }); + await subscription; })().catch(done); }); + + }); + + describe('#unsubscribeAsync', async () => { + it('should unsubscribe successfully', async () => { + // tslint:disable-next-line:no-empty + const subscriptionID = await deployment.client.subscribeToOrdersAsync(() => {}); + await deployment.client.unsubscribeAsync(subscriptionID); + }); + + it('should throw an error after unsubscribing redundantly', async () => { + // tslint:disable-next-line:no-empty + const subscriptionID = await deployment.client.subscribeToOrdersAsync(() => {}); + await deployment.client.unsubscribeAsync(subscriptionID); + let thrownError: Error = new Error(''); + try { + await deployment.client.unsubscribeAsync(subscriptionID); + } catch (error) { + thrownError = error; + } + expect(thrownError.name).to.be.eq('Error'); + expect(thrownError.message).to.be.eq('Node error: {"code":-32000,"message":"subscription not found"}'); + }); }); }); @@ -428,6 +439,15 @@ function assertRoughlyEquals(a: number, b: number, delta: number): void { expect(Math.abs(a - b)).to.be.lessThan(delta); } +function leftPad(a: number, paddingDigits: number = 2): string { + return `${'0'.repeat(paddingDigits - a.toString().length)}${a.toString()}`; +} + +function secondsToMs(seconds: number): number { + const msPerSecond = 1000; + return seconds * msPerSecond; +} + async function sleepAsync(ms: number): Promise { return new Promise(resolve => setTimeout(resolve, ms)); } diff --git a/rpc/clients/typescript/yarn.lock b/rpc/clients/typescript/yarn.lock index 99cd619a7..b7e7fb07b 100644 --- a/rpc/clients/typescript/yarn.lock +++ b/rpc/clients/typescript/yarn.lock @@ -601,6 +601,11 @@ resolved "https://registry.yarnpkg.com/@types/solidity-parser-antlr/-/solidity-parser-antlr-0.2.3.tgz#bb2d9c6511bf483afe4fc3e2714da8a924e59e3f" integrity sha512-FoSyZT+1TTaofbEtGW1oC9wHND1YshvVeHerME/Jh6gIdHbBAWFW8A97YYqO/dpHcFjIwEPEepX0Efl2ckJgwA== +"@types/uuid-validate@^0.0.1": + version "0.0.1" + resolved "https://registry.yarnpkg.com/@types/uuid-validate/-/uuid-validate-0.0.1.tgz#b4eedecbd9db25851490d65a58f13feaa89dd509" + integrity sha512-RbX9q0U00SLoV+l7loYX0Wrtv4QTClBC0QcdNts6x2b5G1HJN8NI9YlS1HNA6THrI9EH3OXSgya6eMQIlDjKFA== + "@types/uuid@^3.4.3": version "3.4.5" resolved "https://registry.yarnpkg.com/@types/uuid/-/uuid-3.4.5.tgz#d4dc10785b497a1474eae0ba7f0cb09c0ddfd6eb" @@ -6445,6 +6450,11 @@ utils-merge@1.0.1: resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" integrity sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM= +uuid-validate@^0.0.3: + version "0.0.3" + resolved "https://registry.yarnpkg.com/uuid-validate/-/uuid-validate-0.0.3.tgz#e30617f75dc742a0e4f95012a11540faf9d39ab4" + integrity sha512-Fykw5U4eZESbq739BeLvEBFRuJODfrlmjx5eJux7W817LjRaq4b7/i4t2zxQmhcX+fAj4nMfRdTzO4tmwLKn0w== + uuid@2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/uuid/-/uuid-2.0.1.tgz#c2a30dedb3e535d72ccf82e343941a50ba8533ac" From e56d29a71dd327e9bfe87771343f4e3985e52230 Mon Sep 17 00:00:00 2001 From: Alex Browne Date: Tue, 7 Jan 2020 11:54:14 -0800 Subject: [PATCH 20/50] Create issue template This will help us more effectively understand and respond to issues. --- issue_template.md | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 issue_template.md diff --git a/issue_template.md b/issue_template.md new file mode 100644 index 000000000..9bf0a880e --- /dev/null +++ b/issue_template.md @@ -0,0 +1,38 @@ +# Prerequisites + +Please answer the following questions for yourself before submitting an issue. **YOU MAY DELETE THE PREREQUISITES SECTION.** + +- [ ] I checked the documentation and found no answer +- [ ] I checked to make sure that this issue has not already been filed + +# Context + +Please provide any relevant information about your setup + +- Are you running Mesh in the browser or as a standalone server? Are running Mesh inside of Docker or directly running the binary? +- What version of Mesh are you running? Be as specific as possible (e.g., `8.0.1` instead of `latest` or `8`). +- Are you using an RPC client and if so, which one? + +# Expected Behavior + +Please describe the behavior you are expecting. + +# Current Behavior + +What is the current behavior? + +# Failure Information (for bugs) + +Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template. + +## Steps to Reproduce + +Please provide detailed steps for reproducing the issue. + +1. step 1 +2. step 2 +3. you get it... + +## Failure Logs + +Please include any relevant log snippets or files here. From 9af749ce0925e75645f91644ccbd0effcb5cdfcb Mon Sep 17 00:00:00 2001 From: Alex Towle Date: Tue, 7 Jan 2020 18:30:39 -0800 Subject: [PATCH 21/50] Addressed review feedback from abrowne --- CHANGELOG.md | 53 ++++++++++--------- rpc/clients/typescript/package.json | 2 + .../typescript/test/utils/ws_server.ts | 33 +++++++----- rpc/clients/typescript/yarn.lock | 26 ++++++++- 4 files changed, 73 insertions(+), 41 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9861fb614..bc7f7cfbe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ This changelog is a work in progress and may contain notes for versions which ha ## v8.0.0-beta-0xv3 -### Breaking changes 🛠 +### Breaking changes 🛠 - Changed the response from `@0x/mesh-ts-client`'s `getOrdersAsync` endpoint to include the `snapshotID` and `snapshotTimestamp` at which the Mesh DB was queried along with the orders found. ([#591](https://github.com/0xProject/0x-mesh/pull/591)) - Increased the default `ETHEREUM_RPC_MAX_REQUESTS_PER_24_HR_UTC` from 100k to 200k ([#596](https://github.com/0xProject/0x-mesh/pull/596)). @@ -19,6 +19,7 @@ This changelog is a work in progress and may contain notes for versions which ha ### Bug fixes 🐞 +- Fixed a typo ("rendervouz" --> "rendezvous") in GetStatsResponse. ([#611](https://github.com/0x-mesh/pull/611)). - Fixed an issue where order updates could have been missed if Mesh discovered blocks but didn't have time to process them before getting shut down. Now, blocks are only persisted to the DB once any order updates resulting from it have been processed. ([#566](https://github.com/0xProject/0x-mesh/pull/566)). - Fixed a race-condition when adding new orders to Mesh which could result in order-relevant events being missed if they occured very soon after the order was submitted and the order validation RPC call took a long time ([#566](https://github.com/0xProject/0x-mesh/pull/566)). - Upgraded the `web3-provider` dependency used by `@0x/mesh-rpc-client` in order to fix a bug where it was requiring either `process` OR `window` to exist in the global scope ([#601](https://github.com/0xProject/0x-mesh/pull/601)). @@ -60,7 +61,7 @@ This changelog is a work in progress and may contain notes for versions which ha - Fix bug where Mesh nodes were logging receipt and re-sharing with peers duplicate orders already stored in it's DB, if the duplicate order was submitted via JSON-RPC. ([#529](https://github.com/0xProject/0x-mesh/pull/529)) - Add missing `UNEXPIRED` `OrderEventEndState` enum value to both `@0x/mesh-rpc-client` and `@0x/mesh-browser` and missing `STOPPED_WATCHING` value from `@0x/mesh-rpc-client`. - Fixed a potential memory leak by using the latest version of `github.com/libp2p/go-libp2p-kad-dht` ([#539](https://github.com/0xProject/0x-mesh/pull/539)). -- Changed the default port for `RPC_ADDR` from a random available port to `60557`. _Some_ documentation already assumed `60557` was the default port. Now all documentation has been updated for consistency with this change. ([#542](https://github.com/0xProject/0x-mesh/pull/542)). +- Changed the default port for `RPC_ADDR` from a random available port to `60557`. _Some_ documentation already assumed `60557` was the default port. Now all documentation has been updated for consistency with this change. ([#542](https://github.com/0xProject/0x-mesh/pull/542)). - Fixed a potential nil pointer exception in log hooks ([#543](https://github.com/0xProject/0x-mesh/pull/543)). - Fixed a bug where successful closes of an rpc subscription were being reported as errors ([#544](https://github.com/0xProject/0x-mesh/pull/544)). - We now log the error and stack trace if an RPC method panics. Before, these errors were swallowed by the panic recovery logic in `go-ethereum`'s `rpc` package. ([#545](https://github.com/0xProject/0x-mesh/pull/545)) @@ -77,14 +78,14 @@ This changelog is a work in progress and may contain notes for versions which ha ## v7.0.2-beta-0xv3 -### Bug fixes 🐞 +### Bug fixes 🐞 - Upgrade Mesh's `libp2p/go-flow-metrics` dep in an attempt to fix a bug in the flow metrics module. ([#521](https://github.com/0xProject/0x-mesh/pull/521)) - Updates `DevUtils.sol` addresses on all networks to the latest version which fixed a deploy issue. ([#520](https://github.com/0xProject/0x-mesh/pull/520)) ## v7.0.1-beta-0xv3 -### Bug fixes 🐞 +### Bug fixes 🐞 - Fixed an oversight which granted immunity from bandwidth banning for any peer using a relayed connection ([#509](https://github.com/0xProject/0x-mesh/pull/509)). - Fixed a typo in the `@0x/mesh-browser` package that resulted in some config options not being passed through correctly ([#502](https://github.com/0xProject/0x-mesh/pull/502)). @@ -94,7 +95,7 @@ This changelog is a work in progress and may contain notes for versions which ha ## v7.0.0-beta-0xv3 -### Breaking changes 🛠 +### Breaking changes 🛠 *Note:* This release will require wiping your Mesh's DB before upgrading. The DB location defaults to `./0x_mesh/db`. @@ -103,48 +104,48 @@ This changelog is a work in progress and may contain notes for versions which ha - Changed the `EXPIRED` event such that it is emitted when an order is expired according to the latest block timestamp, not anymore based on UTC time. ([#490](https://github.com/0xProject/0x-mesh/pull/490)) - Removed the `EXPIRATION_BUFFER_SECONDS` env config since we no longer compute order expiration using UTC time. ([#490](https://github.com/0xProject/0x-mesh/pull/490)) -### Features ✅ +### Features ✅ - Added an `UNEXPIRED` order event kind which is emitted for orders that were previously considered expired but due to a block-reorg causing the latest block timestamp to be earlier than the previous latest block timestamp, are no longer expired. ([#490](https://github.com/0xProject/0x-mesh/pull/490)) - Added support for decoding Axie Infinity `Transfer` and `Approve` ERC721 events which differ from the ERC721 standard. ([#494](https://github.com/0xProject/0x-mesh/pull/494)) -### Bug fixes 🐞 +### Bug fixes 🐞 - Fixed a bug in the Go RPC client which resulted in errors when receving order events with at least one contract event ([#496](https://github.com/0xProject/0x-mesh/pull/496)). ## v6.0.0-beta-0xv3 -### Breaking changes 🛠 +### Breaking changes 🛠 - Renamed env config from `ETHEREUM_NETWORK_ID` to `ETHEREUM_CHAIN_ID` since `network` is a misnomer here and what we actually care about is the `chainID`. Most chains have the same id for their p2p network and chain. From the ones we support, the only outlier is Ganache, for which you will now need to supply `1337` instead of `50` (Learn more: https://medium.com/@pedrouid/chainid-vs-networkid-how-do-they-differ-on-ethereum-eec2ed41635b) ([#485](https://github.com/0xProject/0x-mesh/pull/485)) - Rejected order code `OrderForIncorrectNetwork` has been changed to `OrderForIncorrectChain` ([#485](https://github.com/0xProject/0x-mesh/pull/485)) -### Features ✅ +### Features ✅ - Implemented a new strategy for limiting the amount of database storage used by Mesh and removing orders when the database is full. This strategy involves a dynamically adjusting maximum expiration time. When the database is full, Mesh will enforce a maximum expiration time for all incoming orders and remove any existing orders with an expiration time too far in the future. If conditions change and there is enough space in the database again, the max expiration time will slowly increase. This is a short term solution which solves the immediate issue of finite storage capacities and does a decent job of protecting against spam. We expect to improve and possibly replace it in the future. See [#450](https://github.com/0xProject/0x-mesh/pull/450) for more details. - Added support for a new feature called "order pinning" ([#474](https://github.com/0xProject/0x-mesh/pull/474)). Pinned orders will not be affected by any DDoS prevention or incentive mechanisms (including the new dynamic max expiration time feature) and will always stay in storage until they are no longer fillable. By default, all orders which are submitted via either the JSON-RPC API or the `addOrdersAsync` function in the TypeScript bindings will be pinned. - Re-enabled bandwidth-based peer banning with a workaround to deal with erroneous spikes [#478](https://github.com/0xProject/0x-mesh/pull/478). -### Bug fixes 🐞 +### Bug fixes 🐞 - Improved the aggressiveness at which we permanently delete orders that have been flagged for removal. Previously we would wait for the cleanup job to handle this (once an hour), but that meant many removed orders would accumulate. We now prune them every 5 minutes. ([#471](https://github.com/0xProject/0x-mesh/pull/471)) ## v5.1.0-beta -### Features ✅ +### Features ✅ - The `getStats` RPC endpoint now includes a new field which accounts for the number of orders that have been marked as "removed" but not yet permanently deleted ([#461](https://github.com/0xProject/0x-mesh/pull/461)). - Improved historical order sharing using round-robin algorithm instead of random selection ([#454](https://github.com/0xProject/0x-mesh/pull/454)). This will reduce the warm-up time for receiving existing orders when first joining the network. - Added ERC1155 assetData support ([#453](https://github.com/0xProject/0x-mesh/pull/453)). This includes order watching and order events for orders involving ERC1155 tokens. - Added Ability to specify custom contract addresses via the `CUSTOM_ADDRESSES` environment variable or the `customAddresses` field in the TypeScript bindings ([#445](https://github.com/0xProject/0x-mesh/pull/445)). -### Bug fixes 🐞 +### Bug fixes 🐞 - Temporarily disabled bandwidth-based peer banning ([#448](https://github.com/0xProject/0x-mesh/pull/448)). A [bug in libp2p](https://github.com/libp2p/go-libp2p-core/issues/65) was occasionally causing observed bandwidth usage to spike to unrealistic levels, which can result in peers being erroneously banned. We decided to temporarily stop banning peers while we're working with the libp2p team to resolve the issue. ## v5.0.2-beta-0xv3 -### Bug fixes 🐞 +### Bug fixes 🐞 - Updated DevUtils.sol contract address for the Kovan network to one including a bug fix for validating orders with nulled out `feeAssetData` fields. ([#446](https://github.com/0xProject/0x-mesh/pull/446)]) - Added back Ropsten and Rinkeby support and fixed `exchange` address on Kovan ([#451](https://github.com/0xProject/0x-mesh/pull/451)) @@ -153,16 +154,16 @@ This changelog is a work in progress and may contain notes for versions which ha ## v5.0.0-beta -### Breaking changes 🛠 +### Breaking changes 🛠 - Removes the `txHashes` key in the `OrderEvent`s emitted from the `orders` JSON-RPC subscription and replaced it with `contractEvents`, an array of decoded order-relevant contract events. Parsing these events allows callers to find every discrete order fill/cancel event. ([#420](https://github.com/0xProject/0x-mesh/pull/420)) - Renames the `Kind` key in `OrderEvent` to `EndState` to better elucidate that it represents the aggregate change to the orders state since it was last re-validated. As an end state, it does not capture any possible intermediate states the order might have been in since the last re-validation. Intermediate states can be inferred from the `contractEvents` included ([#420](https://github.com/0xProject/0x-mesh/pull/420)) -### Features ✅ +### Features ✅ - Removed the max expiration limit for orders. The only remaining expiration constraint is that the unix timestamp does not overflow int64 (i.e., is not larger than 9223372036854775807). ([#400](https://github.com/0xProject/0x-mesh/pull/400)) -### Bug fixes 🐞 +### Bug fixes 🐞 - Fixed bug where we weren't updating an orders `fillableTakerAssetAmount` in the DB when orders were being partially filled or when their fillability increased due to a block re-org. ([#439](https://github.com/0xProject/0x-mesh/pull/439)) - Made `verbosity` field optional in the TypeScript `Config` type. ([#410](https://github.com/0xProject/0x-mesh/pull/410)) @@ -170,17 +171,17 @@ This changelog is a work in progress and may contain notes for versions which ha ## v4.0.1-beta -### Bug fixes 🐞 +### Bug fixes 🐞 - Fixed a DB transaction deadlock accidentally introduced in the v4.0.0-beta release. ([#403](https://github.com/0xProject/0x-mesh/pull/403)) ## v4.0.0-beta -### Breaking changes 🛠 +### Breaking changes 🛠 - Renamed the environment variable `P2P_LISTEN_PORT` to `P2P_TCP_PORT` ([#366](https://github.com/0xProject/0x-mesh/pull/366)). This makes it possible to configure Mesh to use both the TCP and Websocket transports by listening on different ports. -### Features ✅ +### Features ✅ - Enabled WebSocket transport for bootstrap nodes and all other nodes ([#361](https://github.com/0xProject/0x-mesh/pull/361), [#363](https://github.com/0xProject/0x-mesh/pull/363), [#366](https://github.com/0xProject/0x-mesh/pull/366)). By default the WebSocket transport listens on port `60559` but this can be changed via the `P2P_WEBSOCKETS_PORT` environment variable. - Created TypeScript bindings and an NPM package for running Mesh directly in the browser ([#369](https://github.com/0xProject/0x-mesh/pull/369)). Documentation for the NPM package and a guide for running Mesh in the browser can be found at [https://0x-org.gitbook.io/mesh/](https://0x-org.gitbook.io/mesh/). @@ -189,7 +190,7 @@ This changelog is a work in progress and may contain notes for versions which ha - Order hash calculations are now cached, which slightly improves performance ([#365](https://github.com/0xProject/0x-mesh/pull/365)). - Refactored `BlockWatch` so that it can be used without using `LevelDB` for Ethereum block storage. ([#355](https://github.com/0xProject/0x-mesh/pull/355)) -### Bug fixes 🐞 +### Bug fixes 🐞 - Fixed two related bugs: One where order expiration events would be emitted multiple times and another that meant subsequent fill/cancel events for orders deemed expired were not emitted. Fills/cancels for expired orders will continue to be emitted if they occur within ~4 mins (i.e. 20 blocks) of the expiration ([#385](https://github.com/0xProject/0x-mesh/pull/385)). - Fixed a data race-condition in OrderWatcher that could have caused order collection updates to be overwritten in the DB. ([#386](https://github.com/0xProject/0x-mesh/pull/386)) @@ -200,21 +201,21 @@ This changelog is a work in progress and may contain notes for versions which ha ## v3.0.1-beta -### Bug fixes 🐞 +### Bug fixes 🐞 - Fixed bug where block number would sometimes be converted to hex with a leading zero, an invalid hex value per the [Ethereum JSON-RPC specification](https://github.com/ethereum/wiki/wiki/JSON-RPC#hex-value-encoding). ([#353](https://github.com/0xProject/0x-mesh/pull/353)) - Fixed bug which resulted in orders that were close to expiring being re-added and removed multiple times, resulting in multiple ADDED and EXPIRED events for the same order ([#352](https://github.com/0xProject/0x-mesh/pull/352)). ## v3.0.0-beta -### Breaking changes 🛠 +### Breaking changes 🛠 - Modified Mesh's validation logic to reject and consider invalid any _partially fillable_ orders. While this is technically a breaking change, partially fillable orders are rare in the wild and we don't expect this will affect many users. ([#333](https://github.com/0xProject/0x-mesh/pull/333)) - Lowercased `GetStatsAsync` method to `getStatsAsync` in TS client -### Bug fixes 🐞 +### Bug fixes 🐞 - De-dup order submitted via the JSON-RPC method `mesh_addOrders` before performing validation ([#331](https://github.com/0xProject/0x-mesh/pull/331)) - Added `"declaration": true,` to TS client's `tsconfig.json` so that downstream projects can use it's TS typings. ([#325](https://github.com/0xProject/0x-mesh/pull/325)) @@ -222,11 +223,11 @@ This changelog is a work in progress and may contain notes for versions which ha ## v2.0.0-beta -### Breaking changes 🛠 +### Breaking changes 🛠 - Modified how `mesh_addOrders` treats orders that are already stored on the Mesh node. Previously, they would be rejected with code `OrderAlreadyStored`. Now, if the order is stored and fillable, it will be accepted. If it is stored but unfillable, it will be rejected with `OrderAlreadyStoredAndUnfillable`. We additionally added a `isNew` property to the accepted orderInfos returned, so that callers can discern which orders Mesh already knew about. ([#316](https://github.com/0xProject/0x-mesh/pull/316)) -### Features ✅ +### Features ✅ - Added backup bootstrap nodes provided by the libp2p community - Improved log formatting and reduced verbosity in a few cases ([#314](https://github.com/0xProject/0x-mesh/pull/314), [#287](https://github.com/0xProject/0x-mesh/pull/287)) @@ -238,7 +239,7 @@ This changelog is a work in progress and may contain notes for versions which ha - RPC server is now started while block event backfilling is happening under the hood instead of waiting for it to complete ([#318](https://github.com/0xProject/0x-mesh/pull/318)) - Added a `mesh_getStats` endpoint which returns a host of useful information about the state of the Mesh node (e.g., number of fillable order stored, number of peers, peerID, etc...) ([#322](https://github.com/0xProject/0x-mesh/pull/322)) -### Bug fixes 🐞 +### Bug fixes 🐞 - Log messages are no longer incorrectly fired when receiving orders which have already been seen ([#286](https://github.com/0xProject/0x-mesh/pull/286)) - Fixed a bug where Mesh was still running after the database was closed ([#300](https://github.com/0xProject/0x-mesh/pull/300)) diff --git a/rpc/clients/typescript/package.json b/rpc/clients/typescript/package.json index 57c081798..d33fd5bdc 100644 --- a/rpc/clients/typescript/package.json +++ b/rpc/clients/typescript/package.json @@ -56,6 +56,7 @@ "@0x/ts-doc-gen": "^0.0.13", "@0x/tslint-config": "^4.0.0", "@types/mocha": "^2.2.42", + "@types/rimraf": "^2.0.3", "@types/uuid": "^3.4.3", "@types/uuid-validate": "^0.0.1", "@types/websocket": "^0.0.40", @@ -65,6 +66,7 @@ "dirty-chai": "^2.0.1", "make-promises-safe": "^1.1.0", "mocha": "^4.1.0", + "rimraf": "^3.0.0", "shx": "^0.2.2", "tslint": "5.11.0", "typescript": "3.0.1", diff --git a/rpc/clients/typescript/test/utils/ws_server.ts b/rpc/clients/typescript/test/utils/ws_server.ts index c28e82edb..a3622032d 100644 --- a/rpc/clients/typescript/test/utils/ws_server.ts +++ b/rpc/clients/typescript/test/utils/ws_server.ts @@ -1,5 +1,6 @@ import {ChildProcessWithoutNullStreams, spawn} from 'child_process'; import {join} from 'path'; +import * as rimraf from 'rimraf'; import {WSClient} from '../../src'; @@ -8,27 +9,28 @@ async function buildBinaryAsync(): Promise { const build = spawn('make', ['mesh'], {cwd}); await new Promise((resolve, reject) => { build.on('close', code => { - code === 0 ? resolve() : reject(); + code === 0 ? resolve() : reject(new Error('Failed to build 0x-mesh')); + }); + build.on('error', error => { + reject(error); }); }); } async function cleanupAsync(): Promise { - const cleanup = spawn('rm', ['-r', './0x_mesh']); await new Promise((resolve, reject) => { - cleanup.on('close', code => { - // NOTE(jalextowle): In the event that the 0x_mesh files - // are not in this directory, the "cleanup" command will - // fail. We want to allow this so that the rest of the - // program can execute. - code === 0 || code === 1 ? resolve() : reject(); + rimraf('./0x_mesh', err => { + if (err != null) { + reject(err); + } + resolve(); }); }); } export interface MeshDeployment { client: WSClient; - mesh: MeshManager; + mesh: MeshHarness; peerID: string; } @@ -41,7 +43,7 @@ export async function startServerAndClientAsync(): Promise { await cleanupAsync(); await buildBinaryAsync(); - const mesh = new MeshManager(); + const mesh = new MeshHarness(); const log = await mesh.waitForPatternAsync(/started RPC server/); const peerID = JSON.parse(log.toString()).myPeerID; const client = new WSClient(`http://localhost:${mesh.port}`); @@ -52,7 +54,7 @@ export async function startServerAndClientAsync(): Promise { }; } -export class MeshManager { +export class MeshHarness { public static readonly DEFAULT_TIMEOUT = 1000; protected static _serverPort = 64321; @@ -75,7 +77,7 @@ export class MeshManager { resolve(data.toString()); } }); - setTimeout(reject, timeout || MeshManager.DEFAULT_TIMEOUT); + setTimeout(reject, timeout || MeshHarness.DEFAULT_TIMEOUT); }); } @@ -84,16 +86,19 @@ export class MeshManager { */ public stopMesh(): void { this._killed = true; - this._mesh.kill(); + this._mesh.kill('SIGKILL'); } public constructor() { const env = Object.create(process.env); - this.port = MeshManager._serverPort++; + this.port = MeshHarness._serverPort++; env.ETHEREUM_RPC_URL = 'http://localhost:8545'; env.ETHEREUM_CHAIN_ID = '1337'; env.VERBOSITY = '5'; env.RPC_ADDR = `localhost:${this.port}`; this._mesh = spawn('mesh', [], {env}); + this._mesh.stderr.on('error', error => { + throw error; + }); } } diff --git a/rpc/clients/typescript/yarn.lock b/rpc/clients/typescript/yarn.lock index b7e7fb07b..f70767a8c 100644 --- a/rpc/clients/typescript/yarn.lock +++ b/rpc/clients/typescript/yarn.lock @@ -536,6 +536,15 @@ resolved "https://registry.yarnpkg.com/@types/events/-/events-3.0.0.tgz#2862f3f58a9a7f7c3e78d79f130dd4d71c25c2a7" integrity sha512-EaObqwIvayI5a8dCzhFrjKzVwKLxjoG9T6Ppd5CEo07LRKfQ8Yokw54r5+Wq7FaBQ+yXRvQAYPrHwya1/UFt9g== +"@types/glob@*": + version "7.1.1" + resolved "https://registry.yarnpkg.com/@types/glob/-/glob-7.1.1.tgz#aa59a1c6e3fbc421e07ccd31a944c30eba521575" + integrity sha512-1Bh06cbWJUHMC97acuD6UMG29nMt0Aqz1vF3guLfG+kHHJhy3AyohZFFxYk2f7Q1SQIrNwvncxAE0N/9s70F2w== + dependencies: + "@types/events" "*" + "@types/minimatch" "*" + "@types/node" "*" + "@types/hdkey@^0.7.0": version "0.7.0" resolved "https://registry.yarnpkg.com/@types/hdkey/-/hdkey-0.7.0.tgz#6734d138e3c597f241be8fae2e60c2949bc3af87" @@ -553,7 +562,7 @@ resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.104.tgz#53ee2357fa2e6e68379341d92eb2ecea4b11bb80" integrity sha512-ufQcVg4daO8xQ5kopxRHanqFdL4AI7ondQkV+2f+7mz3gvp0LkBx2zBRC6hfs3T87mzQFmf5Fck7Fi145Ul6NQ== -"@types/minimatch@3.0.3", "@types/minimatch@^3.0.3": +"@types/minimatch@*", "@types/minimatch@3.0.3", "@types/minimatch@^3.0.3": version "3.0.3" resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d" integrity sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA== @@ -596,6 +605,14 @@ "@types/prop-types" "*" csstype "^2.2.0" +"@types/rimraf@^2.0.3": + version "2.0.3" + resolved "https://registry.yarnpkg.com/@types/rimraf/-/rimraf-2.0.3.tgz#0199a46af106729ba14213fda7b981278d8c84f2" + integrity sha512-dZfyfL/u9l/oi984hEXdmAjX3JHry7TLWw43u1HQ8HhPv6KtfxnrZ3T/bleJ0GEvnk9t5sM7eePkgMqz3yBcGg== + dependencies: + "@types/glob" "*" + "@types/node" "*" + "@types/solidity-parser-antlr@^0.2.3": version "0.2.3" resolved "https://registry.yarnpkg.com/@types/solidity-parser-antlr/-/solidity-parser-antlr-0.2.3.tgz#bb2d9c6511bf483afe4fc3e2714da8a924e59e3f" @@ -5442,6 +5459,13 @@ rimraf@^2.2.8, rimraf@^2.6.2: dependencies: glob "^7.1.3" +rimraf@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.0.tgz#614176d4b3010b75e5c390eb0ee96f6dc0cebb9b" + integrity sha512-NDGVxTsjqfunkds7CqsOiEnxln4Bo7Nddl3XhS4pXg5OzwkLqJ971ZVAAnB+DDLnF76N+VnDEiBHaVV8I06SUg== + dependencies: + glob "^7.1.3" + ripemd160@^2.0.0, ripemd160@^2.0.1: version "2.0.2" resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c" From f166bf0ffd55b5b8515902cb5e319a3cc1d32514 Mon Sep 17 00:00:00 2001 From: Alex Browne Date: Wed, 8 Jan 2020 09:49:13 -0800 Subject: [PATCH 22/50] Update issue_template.md Co-Authored-By: Fabio B --- issue_template.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/issue_template.md b/issue_template.md index 9bf0a880e..7db665060 100644 --- a/issue_template.md +++ b/issue_template.md @@ -11,7 +11,7 @@ Please provide any relevant information about your setup - Are you running Mesh in the browser or as a standalone server? Are running Mesh inside of Docker or directly running the binary? - What version of Mesh are you running? Be as specific as possible (e.g., `8.0.1` instead of `latest` or `8`). -- Are you using an RPC client and if so, which one? +- Are you using an RPC client and if so, which one? (e.g., Typescript or Golang client, the exact version) # Expected Behavior From 2da94920f3c157d7c0ba1533b5bbf49d1d386ed4 Mon Sep 17 00:00:00 2001 From: Alex Towle Date: Wed, 8 Jan 2020 10:24:28 -0800 Subject: [PATCH 23/50] Fixed invalid CHANGELOG --- CHANGELOG.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bc7f7cfbe..9fc7a3552 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ This changelog is a work in progress and may contain notes for versions which have not actually been released. Check the [Releases](https://github.com/0xProject/0x-mesh/releases) page to see full release notes and more information about the latest released versions. +## v8.0.1 + +### Bug fixes 🐞 + +- Fixed a typo ("rendervouz" --> "rendezvous") in GetStatsResponse. ([#611](https://github.com/0x-mesh/pull/611)). + ## v8.0.0-beta-0xv3 ### Breaking changes 🛠 @@ -19,7 +25,6 @@ This changelog is a work in progress and may contain notes for versions which ha ### Bug fixes 🐞 -- Fixed a typo ("rendervouz" --> "rendezvous") in GetStatsResponse. ([#611](https://github.com/0x-mesh/pull/611)). - Fixed an issue where order updates could have been missed if Mesh discovered blocks but didn't have time to process them before getting shut down. Now, blocks are only persisted to the DB once any order updates resulting from it have been processed. ([#566](https://github.com/0xProject/0x-mesh/pull/566)). - Fixed a race-condition when adding new orders to Mesh which could result in order-relevant events being missed if they occured very soon after the order was submitted and the order validation RPC call took a long time ([#566](https://github.com/0xProject/0x-mesh/pull/566)). - Upgraded the `web3-provider` dependency used by `@0x/mesh-rpc-client` in order to fix a bug where it was requiring either `process` OR `window` to exist in the global scope ([#601](https://github.com/0xProject/0x-mesh/pull/601)). From 7fa155c6695747d9e67c498fbde4935466e593c3 Mon Sep 17 00:00:00 2001 From: fabioberger Date: Fri, 3 Jan 2020 16:14:13 +0100 Subject: [PATCH 24/50] Only wait for at least one block to be processed _if_ Mesh isn't already caught up to the latest block --- core/core.go | 36 +++++++++++++++++++++++++++++++----- 1 file changed, 31 insertions(+), 5 deletions(-) diff --git a/core/core.go b/core/core.go index 536767781..29adf7307 100644 --- a/core/core.go +++ b/core/core.go @@ -464,11 +464,14 @@ func (app *App) Start(ctx context.Context) error { blockWatcherErrChan <- app.blockWatcher.Watch(innerCtx) }() - // Ensure orderWatcher has processed at least one recent block before - // starting the P2P node and completing app start, so that Mesh does - // not validate any orders at outdated block heights - if err := app.orderWatcher.WaitForAtLeastOneBlockToBeProcessed(ctx); err != nil { - return err + // If Mesh is not caught up with the latest block found via Ethereum RPC, ensure orderWatcher + // has processed at least one recent block before starting the P2P node and completing app start, + // so that Mesh does not validate any orders at outdated block heights + isCaughtUp := app.IsCaughtUpToLatestBlock(innerCtx) + if !isCaughtUp { + if err := app.orderWatcher.WaitForAtLeastOneBlockToBeProcessed(ctx); err != nil { + return err + } } if blocksElapsed >= constants.MaxBlocksStoredInNonArchiveNode { @@ -906,6 +909,29 @@ func (app *App) SubscribeToOrderEvents(sink chan<- []*zeroex.OrderEvent) event.S return subscription } +// IsCaughtUpToLatestBlock returns whether or not the latest block stored by Mesh corresponds +// to the latest block retrieved from it's Ethereum RPC endpoint +func (app *App) IsCaughtUpToLatestBlock(ctx context.Context) bool { + latestBlockStored, err := app.db.FindLatestMiniHeader() + if err != nil { + if _, ok := err.(meshdb.MiniHeaderCollectionEmptyError); ok { + return false + } + log.WithFields(map[string]interface{}{ + "err": err.Error(), + }).Warn("failed to fetch the latest miniHeader from DB") + return false + } + latestBlock, err := app.ethRPCClient.HeaderByNumber(ctx, nil) + if err != nil { + log.WithFields(map[string]interface{}{ + "err": err.Error(), + }).Warn("failed to fetch the latest block header via Ethereum RPC") + return false + } + return latestBlock.Number.Cmp(latestBlockStored.Number) == 0 +} + func parseAndAddCustomContractAddresses(chainID int, encodedContractAddresses string) error { customAddresses := ethereum.ContractAddresses{} if err := json.Unmarshal([]byte(encodedContractAddresses), &customAddresses); err != nil { From ceb182492df4b4375e48e8fe7c5df5daa4820511 Mon Sep 17 00:00:00 2001 From: fabioberger Date: Fri, 3 Jan 2020 16:18:09 +0100 Subject: [PATCH 25/50] Add changelog entry --- CHANGELOG.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9fc7a3552..9de13ea4b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,12 +2,16 @@ This changelog is a work in progress and may contain notes for versions which have not actually been released. Check the [Releases](https://github.com/0xProject/0x-mesh/releases) page to see full release notes and more information about the latest released versions. -## v8.0.1 +## v8.1.0 ### Bug fixes 🐞 - Fixed a typo ("rendervouz" --> "rendezvous") in GetStatsResponse. ([#611](https://github.com/0x-mesh/pull/611)). +### Features ✅ + +- Reduce startup time for Mesh node by only waiting for a block to be processed if Mesh isn't already sync'ed up to the latest block. ([#622](https://github.com/0xProject/0x-mesh/pull/622)) + ## v8.0.0-beta-0xv3 ### Breaking changes 🛠 From b877ebf01d06288b3681eafdf3a3e692754d12b5 Mon Sep 17 00:00:00 2001 From: fabioberger Date: Mon, 6 Jan 2020 10:52:59 +0100 Subject: [PATCH 26/50] Avoid updating orders in DB multiple times in same txn by allowing the order re-validation catch expirations / unexpirations for orders that will be re-validated --- zeroex/orderwatch/order_watcher.go | 93 +++++++++++++++++++----------- 1 file changed, 60 insertions(+), 33 deletions(-) diff --git a/zeroex/orderwatch/order_watcher.go b/zeroex/orderwatch/order_watcher.go index 78b29664b..a2b6746ca 100644 --- a/zeroex/orderwatch/order_watcher.go +++ b/zeroex/orderwatch/order_watcher.go @@ -342,7 +342,7 @@ func (w *Watcher) removedCheckerLoop(ctx context.Context) error { } } -func (w *Watcher) handleOrderExpirations(ordersColTxn *db.Transaction, latestBlockTimestamp time.Time, previousLatestBlockTimestamp time.Time) ([]*zeroex.OrderEvent, error) { +func (w *Watcher) handleOrderExpirations(ordersColTxn *db.Transaction, latestBlockTimestamp, previousLatestBlockTimestamp time.Time, ordersToRevalidate map[common.Hash]*meshdb.Order) ([]*zeroex.OrderEvent, error) { orderEvents := []*zeroex.OrderEvent{} var defaultTime time.Time @@ -350,6 +350,11 @@ func (w *Watcher) handleOrderExpirations(ordersColTxn *db.Transaction, latestBlo expiredOrders := w.expirationWatcher.Prune(latestBlockTimestamp) for _, expiredOrder := range expiredOrders { orderHash := common.HexToHash(expiredOrder.ID) + // If we will re-validate this order, the revalidation process will discover that + // it's expired, and an appropriate event will already be emitted + if _, ok := ordersToRevalidate[orderHash]; ok { + continue + } order := &meshdb.Order{} err := w.meshDB.Orders.FindByID(orderHash.Bytes(), order) if err != nil { @@ -383,6 +388,11 @@ func (w *Watcher) handleOrderExpirations(ordersColTxn *db.Transaction, latestBlo if order.FillableTakerAssetAmount.Cmp(big.NewInt(0)) == 0 { continue } + // If we will re-validate this order, the revalidation process will discover that + // it's unexpired, and an appropriate event will already be emitted + if _, ok := ordersToRevalidate[order.Hash]; ok { + continue + } expiration := time.Unix(order.SignedOrder.ExpirationTimeSeconds.Int64(), 0) if latestBlockTimestamp.Before(expiration) { w.rewatchOrder(ordersColTxn, order, order.FillableTakerAssetAmount) @@ -435,11 +445,6 @@ func (w *Watcher) handleBlockEvents( } latestBlockNumber, latestBlockTimestamp := w.getBlockchainState(events) - expirationOrderEvents, err := w.handleOrderExpirations(ordersColTxn, latestBlockTimestamp, previousLatestBlockTimestamp) - if err != nil { - return err - } - orderHashToDBOrder := map[common.Hash]*meshdb.Order{} orderHashToEvents := map[common.Hash][]*zeroex.ContractEvent{} for _, event := range events { @@ -753,6 +758,11 @@ func (w *Watcher) handleBlockEvents( } } + expirationOrderEvents, err := w.handleOrderExpirations(ordersColTxn, latestBlockTimestamp, previousLatestBlockTimestamp, orderHashToDBOrder) + if err != nil { + return err + } + // This timeout of 1min is for limiting how long this call should block at the ETH RPC rate limiter ctx, done := context.WithTimeout(ctx, 1*time.Minute) defer done() @@ -1142,35 +1152,52 @@ func (w *Watcher) generateOrderEventsIfChanged( ContractEvents: orderHashToEvents[order.Hash], } orderEvents = append(orderEvents, orderEvent) - } else if oldFillableAmount.Cmp(newFillableAmount) == 0 { - // No important state-change happened - } else if oldFillableAmount.Cmp(big.NewInt(0)) == 1 && oldAmountIsMoreThenNewAmount { - // Order was filled, emit event and update order in DB - order.FillableTakerAssetAmount = newFillableAmount - w.updateOrderDBEntry(ordersColTxn, order) - orderEvent := &zeroex.OrderEvent{ - Timestamp: validationBlockTimestamp, - OrderHash: acceptedOrderInfo.OrderHash, - SignedOrder: order.SignedOrder, - EndState: zeroex.ESOrderFilled, - FillableTakerAssetAmount: acceptedOrderInfo.FillableTakerAssetAmount, - ContractEvents: orderHashToEvents[order.Hash], + } else { + // If order was previously expired, check if it has become unexpired + if order.IsRemoved && oldFillableAmount.Cmp(big.NewInt(0)) != 0 { + expiration := time.Unix(order.SignedOrder.ExpirationTimeSeconds.Int64(), 0) + if validationBlockTimestamp.Before(expiration) { + w.rewatchOrder(ordersColTxn, order, order.FillableTakerAssetAmount) + orderEvent := &zeroex.OrderEvent{ + Timestamp: validationBlockTimestamp, + OrderHash: order.Hash, + SignedOrder: order.SignedOrder, + FillableTakerAssetAmount: order.FillableTakerAssetAmount, + EndState: zeroex.ESOrderUnexpired, + } + orderEvents = append(orderEvents, orderEvent) + } } - orderEvents = append(orderEvents, orderEvent) - } else if oldFillableAmount.Cmp(big.NewInt(0)) == 1 && !oldAmountIsMoreThenNewAmount { - // The order is now fillable for more then it was before. E.g.: A fill txn reverted (block-reorg) - // Update order in DB and emit event - order.FillableTakerAssetAmount = newFillableAmount - w.updateOrderDBEntry(ordersColTxn, order) - orderEvent := &zeroex.OrderEvent{ - Timestamp: validationBlockTimestamp, - OrderHash: acceptedOrderInfo.OrderHash, - SignedOrder: order.SignedOrder, - EndState: zeroex.ESOrderFillabilityIncreased, - FillableTakerAssetAmount: acceptedOrderInfo.FillableTakerAssetAmount, - ContractEvents: orderHashToEvents[order.Hash], + if oldFillableAmount.Cmp(newFillableAmount) == 0 { + // No important state-change happened + } else if oldFillableAmount.Cmp(big.NewInt(0)) == 1 && oldAmountIsMoreThenNewAmount { + // Order was filled, emit event and update order in DB + order.FillableTakerAssetAmount = newFillableAmount + w.updateOrderDBEntry(ordersColTxn, order) + orderEvent := &zeroex.OrderEvent{ + Timestamp: validationBlockTimestamp, + OrderHash: acceptedOrderInfo.OrderHash, + SignedOrder: order.SignedOrder, + EndState: zeroex.ESOrderFilled, + FillableTakerAssetAmount: acceptedOrderInfo.FillableTakerAssetAmount, + ContractEvents: orderHashToEvents[order.Hash], + } + orderEvents = append(orderEvents, orderEvent) + } else if oldFillableAmount.Cmp(big.NewInt(0)) == 1 && !oldAmountIsMoreThenNewAmount { + // The order is now fillable for more then it was before. E.g.: A fill txn reverted (block-reorg) + // Update order in DB and emit event + order.FillableTakerAssetAmount = newFillableAmount + w.updateOrderDBEntry(ordersColTxn, order) + orderEvent := &zeroex.OrderEvent{ + Timestamp: validationBlockTimestamp, + OrderHash: acceptedOrderInfo.OrderHash, + SignedOrder: order.SignedOrder, + EndState: zeroex.ESOrderFillabilityIncreased, + FillableTakerAssetAmount: acceptedOrderInfo.FillableTakerAssetAmount, + ContractEvents: orderHashToEvents[order.Hash], + } + orderEvents = append(orderEvents, orderEvent) } - orderEvents = append(orderEvents, orderEvent) } } for _, rejectedOrderInfo := range validationResults.Rejected { From dce14d63bfaa217ad6fdb224470802ebf066d58f Mon Sep 17 00:00:00 2001 From: fabioberger Date: Mon, 6 Jan 2020 11:48:21 +0100 Subject: [PATCH 27/50] Add CHANGELOG entry --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9fc7a3552..34bdba9af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ This changelog is a work in progress and may contain notes for versions which ha ### Bug fixes 🐞 - Fixed a typo ("rendervouz" --> "rendezvous") in GetStatsResponse. ([#611](https://github.com/0x-mesh/pull/611)). +- Fix bug where we attempted to update the same order multiple times in a single DB txn, causing the later update to noop. ([#623](https://github.com/0xProject/0x-mesh/pull/623)) ## v8.0.0-beta-0xv3 From 426bca0b555665a01890dc2496579fda5e10d063 Mon Sep 17 00:00:00 2001 From: fabioberger Date: Wed, 8 Jan 2020 18:00:49 +0100 Subject: [PATCH 28/50] Add comment for handleOrderExpirations method --- zeroex/orderwatch/order_watcher.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zeroex/orderwatch/order_watcher.go b/zeroex/orderwatch/order_watcher.go index a2b6746ca..58925af74 100644 --- a/zeroex/orderwatch/order_watcher.go +++ b/zeroex/orderwatch/order_watcher.go @@ -342,6 +342,10 @@ func (w *Watcher) removedCheckerLoop(ctx context.Context) error { } } +// handleOrderExpirations takes care of generating expired and unexpired order events for orders that do not require re-validation. +// Since expiry is now done according to block timestamp, we can figure out which orders have expired/unexpired statically. We do not +// process blocks that require re-validation, since the validation process will already emit the necessary events and we cannot make +// multiple updates to an order within a single DB transaction. func (w *Watcher) handleOrderExpirations(ordersColTxn *db.Transaction, latestBlockTimestamp, previousLatestBlockTimestamp time.Time, ordersToRevalidate map[common.Hash]*meshdb.Order) ([]*zeroex.OrderEvent, error) { orderEvents := []*zeroex.OrderEvent{} var defaultTime time.Time From a43e07fab5181530b20607054b8cadf7ab136ace Mon Sep 17 00:00:00 2001 From: fabioberger Date: Wed, 8 Jan 2020 18:02:55 +0100 Subject: [PATCH 29/50] Add a description of handleOrderExpirations' parameters --- zeroex/orderwatch/order_watcher.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zeroex/orderwatch/order_watcher.go b/zeroex/orderwatch/order_watcher.go index 58925af74..b887b8427 100644 --- a/zeroex/orderwatch/order_watcher.go +++ b/zeroex/orderwatch/order_watcher.go @@ -346,6 +346,9 @@ func (w *Watcher) removedCheckerLoop(ctx context.Context) error { // Since expiry is now done according to block timestamp, we can figure out which orders have expired/unexpired statically. We do not // process blocks that require re-validation, since the validation process will already emit the necessary events and we cannot make // multiple updates to an order within a single DB transaction. +// latestBlockTimestamp is the latest block timestamp Mesh knows about +// previousLatestBlockTimestamp is the previous latest block timestamp Mesh knew about +// ordersToRevalidate contains all the orders Mesh needs to re-validate given the events emitted by the blocks processed func (w *Watcher) handleOrderExpirations(ordersColTxn *db.Transaction, latestBlockTimestamp, previousLatestBlockTimestamp time.Time, ordersToRevalidate map[common.Hash]*meshdb.Order) ([]*zeroex.OrderEvent, error) { orderEvents := []*zeroex.OrderEvent{} var defaultTime time.Time From 1a2af6cc8b393976cb5bdcde912fe9206c975b6b Mon Sep 17 00:00:00 2001 From: fabioberger Date: Thu, 9 Jan 2020 16:15:44 +0100 Subject: [PATCH 30/50] Add warning --- ethereum/blockchain_lifecycle.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ethereum/blockchain_lifecycle.go b/ethereum/blockchain_lifecycle.go index 7edcc772a..56125dec3 100644 --- a/ethereum/blockchain_lifecycle.go +++ b/ethereum/blockchain_lifecycle.go @@ -46,6 +46,9 @@ func (b *BlockchainLifecycle) Revert(t *testing.T) { } // Mine force-mines a block with the specified block timestamp +// WARNING(fabio): Using this method will brick `eth_getLogs` such that it always +// returns the logs for the latest block, even if a specific blockHash is specified +// Source: https://github.com/trufflesuite/ganache-cli/issues/708 func (b *BlockchainLifecycle) Mine(t *testing.T, blockTimestamp time.Time) { var didForceMine string err := b.rpcClient.Call(&didForceMine, "evm_mine", blockTimestamp.Unix()) From 2027ebbc8df0b7160be310de7575c267857f6965 Mon Sep 17 00:00:00 2001 From: Alex Browne Date: Thu, 9 Jan 2020 18:02:24 -0800 Subject: [PATCH 31/50] Increase max order size and create separate max message size (#631) * Increase max order size and create separate max message size * Update CHANGELOG * Small wording changes --- CHANGELOG.md | 10 ++++++---- constants/constants.go | 25 ++++++++++++++++++++----- core/message_handler.go | 8 ++++---- core/validation.go | 2 +- p2p/node.go | 2 +- p2p/ratevalidator/validator.go | 2 +- p2p/ratevalidator/validator_test.go | 23 +++++++++++++++++------ zeroex/orderwatch/order_watcher.go | 4 ++-- 8 files changed, 52 insertions(+), 24 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ea5a7cbc6..1fa528cb8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,14 +4,16 @@ This changelog is a work in progress and may contain notes for versions which ha ## v8.1.0 +### Features ✅ + +- Reduced startup time for Mesh node by only waiting for a block to be processed if Mesh isn't already sync'ed up to the latest block. ([#622](https://github.com/0xProject/0x-mesh/pull/622)) +- Increased the maximum size for encoded orders from ~8kB to 16kB ([#631](https://github.com/0xProject/0x-mesh/pull/631)). + ### Bug fixes 🐞 - Fixed a typo ("rendervouz" --> "rendezvous") in GetStatsResponse. ([#611](https://github.com/0x-mesh/pull/611)). -- Fix bug where we attempted to update the same order multiple times in a single DB txn, causing the later update to noop. ([#623](https://github.com/0xProject/0x-mesh/pull/623)) - -### Features ✅ +- Fixed a bug where we attempted to update the same order multiple times in a single DB txn, causing the later update to noop. ([#623](https://github.com/0xProject/0x-mesh/pull/623)) -- Reduce startup time for Mesh node by only waiting for a block to be processed if Mesh isn't already sync'ed up to the latest block. ([#622](https://github.com/0xProject/0x-mesh/pull/622)) ## v8.0.0-beta-0xv3 diff --git a/constants/constants.go b/constants/constants.go index 9eb08582b..bb553a2b0 100644 --- a/constants/constants.go +++ b/constants/constants.go @@ -75,14 +75,29 @@ func init() { UnlimitedExpirationTime, _ = big.NewInt(0).SetString("115792089237316195423570985008687907853269984665640564039457584007913129639935", 10) } -// MaxOrderSizeInBytes is the maximum number of bytes allowed for encoded orders. It -// is more than 10x the size of a typical ERC20 order to account for multiAsset orders. -const MaxOrderSizeInBytes = 8192 +const ( + // MaxOrderSizeInBytes is the maximum number of bytes allowed for encoded + // orders. It allows for MultiAssetProxy orders with roughly 45 total ERC20 + // assets or roughly 36 total ERC721 assets (combined between both maker and + // taker; depends on the other fields of the order). + MaxOrderSizeInBytes = 16000 + messageOverhead = len(`{"messageType":"order","Order":}`) + // MaxMessageSizeInBytes is the maximum size for messages sent through + // GossipSub. It is the max order size plus some overhead for the message + // format. + MaxMessageSizeInBytes = MaxOrderSizeInBytes + messageOverhead +) // MaxBlocksStoredInNonArchiveNode is the max number of historical blocks for which a regular Ethereum // node stores archive-level state. One cannot make `eth_call` requests specifying blocks earlier than // 128 blocks ago on non-archive nodes. const MaxBlocksStoredInNonArchiveNode = 128 -// ErrMaxMessageSize is the error emitted when a message exceeds it's max size -var ErrMaxMessageSize = fmt.Errorf("message exceeds maximum size of %d bytes", MaxOrderSizeInBytes) +var ( + // ErrMaxMessageSize is returned or emitted when a GossipSub message exceeds + // the max size. + ErrMaxMessageSize = fmt.Errorf("message exceeds maximum size of %d bytes", MaxMessageSizeInBytes) + // ErrMaxOrderSize is returned or emitted when a signed order encoded as JSON + // exceeds the max size. + ErrMaxOrderSize = fmt.Errorf("order exceeds maximum size of %d bytes", MaxOrderSizeInBytes) +) diff --git a/core/message_handler.go b/core/message_handler.go index dc79c2664..0110adcf0 100644 --- a/core/message_handler.go +++ b/core/message_handler.go @@ -112,10 +112,10 @@ func (app *App) HandleMessages(ctx context.Context, messages []*p2p.Message) err for _, msg := range messages { if err := validateMessageSize(msg); err != nil { log.WithFields(map[string]interface{}{ - "error": err, - "from": msg.From, - "maxOrderSizeInBytes": constants.MaxOrderSizeInBytes, - "actualSizeInBytes": len(msg.Data), + "error": err, + "from": msg.From, + "maxMessageSizeInBytes": constants.MaxMessageSizeInBytes, + "actualSizeInBytes": len(msg.Data), }).Trace("received message that exceeds maximum size") app.handlePeerScoreEvent(msg.From, psInvalidMessage) continue diff --git a/core/validation.go b/core/validation.go index 6e7e6f062..0b3f15f41 100644 --- a/core/validation.go +++ b/core/validation.go @@ -84,7 +84,7 @@ func (app *App) schemaValidateMeshMessage(o []byte) (*gojsonschema.Result, error } func validateMessageSize(message *p2p.Message) error { - if len(message.Data) > constants.MaxOrderSizeInBytes { + if len(message.Data) > constants.MaxMessageSizeInBytes { return constants.ErrMaxMessageSize } return nil diff --git a/p2p/node.go b/p2p/node.go index 2438cebc5..5b07c49d7 100644 --- a/p2p/node.go +++ b/p2p/node.go @@ -246,7 +246,7 @@ func New(ctx context.Context, config Config) (*Node, error) { GlobalBurst: config.GlobalPubSubMessageBurst, PerPeerLimit: config.PerPeerPubSubMessageLimit, PerPeerBurst: config.PerPeerPubSubMessageBurst, - MaxMessageSize: constants.MaxOrderSizeInBytes, + MaxMessageSize: constants.MaxMessageSizeInBytes, }) if err != nil { return nil, err diff --git a/p2p/ratevalidator/validator.go b/p2p/ratevalidator/validator.go index 13dd4aa18..d2e28d929 100644 --- a/p2p/ratevalidator/validator.go +++ b/p2p/ratevalidator/validator.go @@ -102,7 +102,7 @@ func (v *Validator) Validate(ctx context.Context, peerID peer.ID, msg *pubsub.Me return true } - if msg.Size() > v.config.MaxMessageSize { + if data := msg.GetData(); data != nil && len(data) > v.config.MaxMessageSize { return false } diff --git a/p2p/ratevalidator/validator_test.go b/p2p/ratevalidator/validator_test.go index 1db6e98e3..55b556d60 100644 --- a/p2p/ratevalidator/validator_test.go +++ b/p2p/ratevalidator/validator_test.go @@ -108,10 +108,21 @@ func TestValidatorMaxMessageSize(t *testing.T) { }) require.NoError(t, err) - valid := validator.Validate(ctx, peerIDs[1], &pubsub.Message{ - Message: &pb.Message{ - Data: make([]byte, maxSize+1), - }, - }) - assert.False(t, valid, "message should be valid") + { + isValid := validator.Validate(ctx, peerIDs[1], &pubsub.Message{ + Message: &pb.Message{ + Data: make([]byte, maxSize), + }, + }) + assert.True(t, isValid, "message should be valid") + } + + { + isValid := validator.Validate(ctx, peerIDs[1], &pubsub.Message{ + Message: &pb.Message{ + Data: make([]byte, maxSize+1), + }, + }) + assert.False(t, isValid, "message should be invalid") + } } diff --git a/zeroex/orderwatch/order_watcher.go b/zeroex/orderwatch/order_watcher.go index b887b8427..325a21d01 100644 --- a/zeroex/orderwatch/order_watcher.go +++ b/zeroex/orderwatch/order_watcher.go @@ -1390,7 +1390,7 @@ func (w *Watcher) meshSpecificOrderValidation(orders []*zeroex.SignedOrder, chai } } if err := validateOrderSize(order); err != nil { - if err == constants.ErrMaxMessageSize { + if err == constants.ErrMaxOrderSize { results.Rejected = append(results.Rejected, &ordervalidator.RejectedOrderInfo{ OrderHash: orderHash, SignedOrder: order, @@ -1454,7 +1454,7 @@ func validateOrderSize(order *zeroex.SignedOrder) error { return err } if len(encoded) > constants.MaxOrderSizeInBytes { - return constants.ErrMaxMessageSize + return constants.ErrMaxOrderSize } return nil } From 4cc9d8cdaa44bfdd7fde145b6c96480b1fda1412 Mon Sep 17 00:00:00 2001 From: fabioberger Date: Sat, 28 Dec 2019 10:32:33 +0100 Subject: [PATCH 32/50] Make ConflictingOperationsError an error struct and specify the operation that caused the conflict --- db/transaction.go | 22 ++++++++++++++++------ db/transaction_test.go | 10 +++++----- 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/db/transaction.go b/db/transaction.go index 0a5cb7060..408eeae05 100644 --- a/db/transaction.go +++ b/db/transaction.go @@ -2,6 +2,7 @@ package db import ( "errors" + "fmt" "sync" "sync/atomic" @@ -9,11 +10,20 @@ import ( ) var ( - ErrDiscarded = errors.New("transaction has already been discarded") - ErrCommitted = errors.New("transaction has already been committed") - ErrConflictingOperations = errors.New("cannot perform more than one operation (insert/delete/update) on the same model within a transaction") + ErrDiscarded = errors.New("transaction has already been discarded") + ErrCommitted = errors.New("transaction has already been committed") ) +// ConflictingOperationsError is returned when two conflicting operations are attempted within the same +// transaction +type ConflictingOperationsError struct { + operation string +} + +func (e ConflictingOperationsError) Error() string { + return fmt.Sprintf("cannot perform more than one operation (%s) on the same model within a transaction", e.operation) +} + // Transaction is an atomic database transaction for a single collection which // can be used to guarantee consistency. type Transaction struct { @@ -139,7 +149,7 @@ func (txn *Transaction) Insert(model Model) error { return err } if txn.affectedIDs.Contains(string(model.ID())) { - return ErrConflictingOperations + return ConflictingOperationsError{operation: "insert"} } if err := insertWithTransaction(txn.colInfo, txn.readWriter, model); err != nil { return err @@ -159,7 +169,7 @@ func (txn *Transaction) Update(model Model) error { return err } if txn.affectedIDs.Contains(string(model.ID())) { - return ErrConflictingOperations + return ConflictingOperationsError{operation: "update"} } if err := updateWithTransaction(txn.colInfo, txn.readWriter, model); err != nil { return err @@ -178,7 +188,7 @@ func (txn *Transaction) Delete(id []byte) error { return err } if txn.affectedIDs.Contains(string(id)) { - return ErrConflictingOperations + return ConflictingOperationsError{operation: "delete"} } if err := deleteWithTransaction(txn.colInfo, txn.readWriter, id); err != nil { return err diff --git a/db/transaction_test.go b/db/transaction_test.go index d74385924..195648701 100644 --- a/db/transaction_test.go +++ b/db/transaction_test.go @@ -284,7 +284,7 @@ func TestTransactionDeleteThenInsertSameModel(t *testing.T) { require.NoError(t, txn.Delete(model.ID())) err = txn.Insert(model) assert.Error(t, err) - assert.Equal(t, ErrConflictingOperations, err, "wrong error") + assert.Equal(t, ConflictingOperationsError{operation: "insert"}, err, "wrong error") } func TestTransactionInsertThenDeleteSameModel(t *testing.T) { @@ -309,7 +309,7 @@ func TestTransactionInsertThenDeleteSameModel(t *testing.T) { require.NoError(t, txn.Insert(model)) err = txn.Delete(model.ID()) assert.Error(t, err) - assert.Equal(t, ErrConflictingOperations, err, "wrong error") + assert.Equal(t, ConflictingOperationsError{operation: "delete"}, err, "wrong error") } func TestTransactionInsertThenInsertSameModel(t *testing.T) { @@ -334,7 +334,7 @@ func TestTransactionInsertThenInsertSameModel(t *testing.T) { require.NoError(t, txn.Insert(model)) err = txn.Insert(model) assert.Error(t, err) - assert.Equal(t, ErrConflictingOperations, err, "wrong error") + assert.Equal(t, ConflictingOperationsError{operation: "insert"}, err, "wrong error") } func TestTransactionDeleteThenDeleteSameModel(t *testing.T) { @@ -360,7 +360,7 @@ func TestTransactionDeleteThenDeleteSameModel(t *testing.T) { require.NoError(t, txn.Delete(model.ID())) err = txn.Delete(model.ID()) assert.Error(t, err) - assert.Equal(t, ErrConflictingOperations, err, "wrong error") + assert.Equal(t, ConflictingOperationsError{operation: "delete"}, err, "wrong error") } func TestTransactionInsertThenUpdateSameModel(t *testing.T) { @@ -385,5 +385,5 @@ func TestTransactionInsertThenUpdateSameModel(t *testing.T) { require.NoError(t, txn.Insert(model)) err = txn.Update(model) assert.Error(t, err) - assert.Equal(t, ErrConflictingOperations, err, "wrong error") + assert.Equal(t, ConflictingOperationsError{operation: "update"}, err, "wrong error") } From ac044f5884b3bd0567b6d925a87be4b48d67068d Mon Sep 17 00:00:00 2001 From: fabioberger Date: Sat, 28 Dec 2019 10:33:00 +0100 Subject: [PATCH 33/50] Explicitly check for the conflict txn error and log occurence --- zeroex/orderwatch/order_watcher.go | 51 +++++++++++++++++++++++------- 1 file changed, 39 insertions(+), 12 deletions(-) diff --git a/zeroex/orderwatch/order_watcher.go b/zeroex/orderwatch/order_watcher.go index 325a21d01..cf6589aea 100644 --- a/zeroex/orderwatch/order_watcher.go +++ b/zeroex/orderwatch/order_watcher.go @@ -460,12 +460,28 @@ func (w *Watcher) handleBlockEvents( case blockwatch.Added: err = miniHeadersColTxn.Insert(blockHeader) if err != nil { - return err + if _, ok := err.(db.ConflictingOperationsError); ok { + logger.WithFields(logger.Fields{ + "error": err.Error(), + "hash": blockHeader.Hash, + "number": blockHeader.Number, + }).Error("Failed to update miniHeaders") + } else { + return err + } } case blockwatch.Removed: err = miniHeadersColTxn.Delete(blockHeader.ID()) if err != nil { - return err + if _, ok := err.(db.ConflictingOperationsError); ok { + logger.WithFields(logger.Fields{ + "error": err.Error(), + "hash": blockHeader.Hash, + "number": blockHeader.Number, + }).Error("Failed to update miniHeaders") + } else { + return err + } } default: return fmt.Errorf("Unrecognized block event type encountered: %d", event.Type) @@ -950,6 +966,13 @@ func (w *Watcher) add(orderInfo *ordervalidator.AcceptedOrderInfo, validationBlo // return an error. return orderEvents, nil } + if _, ok := err.(db.ConflictingOperationsError); ok { + logger.WithFields(logger.Fields{ + "error": err.Error(), + "order": order, + }).Error("Failed to insert order into DB") + return orderEvents, nil + } return orderEvents, err } if err := txn.Commit(); err != nil { @@ -1514,16 +1537,20 @@ type orderDeleter interface { func (w *Watcher) permanentlyDeleteOrder(deleter orderDeleter, order *meshdb.Order) error { err := deleter.Delete(order.Hash.Bytes()) if err != nil { - logger.WithFields(logger.Fields{ - "error": err.Error(), - "order": order, - }).Warn("Attempted to delete order that no longer exists") - // TODO(fabio): With the current way the OrderWatcher is written, it is possible for multiple - // events to trigger logic that updates the orders in the DB simultaneously. This is mostly - // benign but is a waste of computation, and causes processes to try and delete orders the - // have already been deleted. In order to fix this, we need to re-write the event handling logic - // to queue the processing of events so that they happen sequentially rather then in parallel. - return nil // Already deleted. Noop. + if _, ok := err.(db.ConflictingOperationsError); ok { + logger.WithFields(logger.Fields{ + "error": err.Error(), + "order": order, + }).Error("Failed to permanently delete order") + } + if _, ok := err.(db.NotFoundError); ok { + logger.WithFields(logger.Fields{ + "error": err.Error(), + "order": order, + }).Warn("Attempted to delete order that no longer exists") + return nil // Already deleted. Noop. + } + return err } // After permanently deleting an order, we also remove it's assetData from the Decoder From a7a7f1d9bcfa69248b11314ae662c9d620a3891d Mon Sep 17 00:00:00 2001 From: fabioberger Date: Sun, 29 Dec 2019 18:29:20 +0100 Subject: [PATCH 34/50] Ensure only update or deletion per model in single txn --- zeroex/orderwatch/order_watcher.go | 96 ++++++++++++++++++++---------- 1 file changed, 65 insertions(+), 31 deletions(-) diff --git a/zeroex/orderwatch/order_watcher.go b/zeroex/orderwatch/order_watcher.go index cf6589aea..704172003 100644 --- a/zeroex/orderwatch/order_watcher.go +++ b/zeroex/orderwatch/order_watcher.go @@ -452,40 +452,14 @@ func (w *Watcher) handleBlockEvents( } latestBlockNumber, latestBlockTimestamp := w.getBlockchainState(events) + err = w.updateBlockHeadersStoredInDB(miniHeadersColTxn, events) + if err != nil { + return err + } + orderHashToDBOrder := map[common.Hash]*meshdb.Order{} orderHashToEvents := map[common.Hash][]*zeroex.ContractEvent{} for _, event := range events { - blockHeader := event.BlockHeader - switch event.Type { - case blockwatch.Added: - err = miniHeadersColTxn.Insert(blockHeader) - if err != nil { - if _, ok := err.(db.ConflictingOperationsError); ok { - logger.WithFields(logger.Fields{ - "error": err.Error(), - "hash": blockHeader.Hash, - "number": blockHeader.Number, - }).Error("Failed to update miniHeaders") - } else { - return err - } - } - case blockwatch.Removed: - err = miniHeadersColTxn.Delete(blockHeader.ID()) - if err != nil { - if _, ok := err.(db.ConflictingOperationsError); ok { - logger.WithFields(logger.Fields{ - "error": err.Error(), - "hash": blockHeader.Hash, - "number": blockHeader.Number, - }).Error("Failed to update miniHeaders") - } else { - return err - } - } - default: - return fmt.Errorf("Unrecognized block event type encountered: %d", event.Type) - } for _, log := range event.BlockHeader.Logs { eventType, err := w.eventDecoder.FindEventType(log) if err != nil { @@ -1051,6 +1025,66 @@ func (w *Watcher) trimOrdersAndGenerateEvents() ([]*zeroex.OrderEvent, error) { return orderEvents, nil } +// updateBlockHeadersStoredInDB updates the block headers stored in the DB. Since our DB txns don't support +// multiple operations involving the same entry, we make sure we only perform either an insert or a deletion +// for each block in this method. +func (w *Watcher) updateBlockHeadersStoredInDB(miniHeadersColTxn *db.Transaction, events []*blockwatch.Event) error { + blocksToAdd := map[common.Hash]*miniheader.MiniHeader{} + blocksToRemove := map[common.Hash]*miniheader.MiniHeader{} + for _, event := range events { + blockHeader := event.BlockHeader + switch event.Type { + case blockwatch.Added: + if _, ok := blocksToAdd[blockHeader.Hash]; ok { + continue + } + if _, ok := blocksToRemove[blockHeader.Hash]; ok { + continue + } + blocksToAdd[blockHeader.Hash] = blockHeader + case blockwatch.Removed: + if _, ok := blocksToAdd[blockHeader.Hash]; ok { + delete(blocksToAdd, blockHeader.Hash) + } + if _, ok := blocksToRemove[blockHeader.Hash]; ok { + continue + } + blocksToRemove[blockHeader.Hash] = blockHeader + default: + return fmt.Errorf("Unrecognized block event type encountered: %d", event.Type) + } + } + + for _, blockHeader := range blocksToAdd { + if err := miniHeadersColTxn.Insert(blockHeader); err != nil { + if _, ok := err.(db.ConflictingOperationsError); ok { + logger.WithFields(logger.Fields{ + "error": err.Error(), + "hash": blockHeader.Hash, + "number": blockHeader.Number, + }).Error("Failed to update miniHeaders") + } else { + return err + } + } + } + for _, blockHeader := range blocksToRemove { + if err := miniHeadersColTxn.Delete(blockHeader.ID()); err != nil { + if _, ok := err.(db.ConflictingOperationsError); ok { + logger.WithFields(logger.Fields{ + "error": err.Error(), + "hash": blockHeader.Hash, + "number": blockHeader.Number, + }).Error("Failed to delete miniHeaders") + } else { + return err + } + } + } + + return nil +} + // MaxExpirationTime returns the current maximum expiration time for incoming // orders. func (w *Watcher) MaxExpirationTime() *big.Int { From 2a8ea311a8b444fddcb7e1e4f86506e7f5cfd61a Mon Sep 17 00:00:00 2001 From: fabioberger Date: Thu, 2 Jan 2020 08:52:50 +0100 Subject: [PATCH 35/50] Simply log all errors encountered when attempting to update miniHeaders --- zeroex/orderwatch/order_watcher.go | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/zeroex/orderwatch/order_watcher.go b/zeroex/orderwatch/order_watcher.go index 704172003..c6a991e7a 100644 --- a/zeroex/orderwatch/order_watcher.go +++ b/zeroex/orderwatch/order_watcher.go @@ -1057,28 +1057,20 @@ func (w *Watcher) updateBlockHeadersStoredInDB(miniHeadersColTxn *db.Transaction for _, blockHeader := range blocksToAdd { if err := miniHeadersColTxn.Insert(blockHeader); err != nil { - if _, ok := err.(db.ConflictingOperationsError); ok { - logger.WithFields(logger.Fields{ - "error": err.Error(), - "hash": blockHeader.Hash, - "number": blockHeader.Number, - }).Error("Failed to update miniHeaders") - } else { - return err - } + logger.WithFields(logger.Fields{ + "error": err.Error(), + "hash": blockHeader.Hash, + "number": blockHeader.Number, + }).Error("Failed to delete miniHeaders") } } for _, blockHeader := range blocksToRemove { if err := miniHeadersColTxn.Delete(blockHeader.ID()); err != nil { - if _, ok := err.(db.ConflictingOperationsError); ok { - logger.WithFields(logger.Fields{ - "error": err.Error(), - "hash": blockHeader.Hash, - "number": blockHeader.Number, - }).Error("Failed to delete miniHeaders") - } else { - return err - } + logger.WithFields(logger.Fields{ + "error": err.Error(), + "hash": blockHeader.Hash, + "number": blockHeader.Number, + }).Error("Failed to delete miniHeaders") } } From ab8f52f622cf7df9233a41baee14c2b907ba9cdf Mon Sep 17 00:00:00 2001 From: fabioberger Date: Fri, 3 Jan 2020 10:38:42 +0100 Subject: [PATCH 36/50] Improve comment --- zeroex/orderwatch/order_watcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zeroex/orderwatch/order_watcher.go b/zeroex/orderwatch/order_watcher.go index c6a991e7a..d7a46c935 100644 --- a/zeroex/orderwatch/order_watcher.go +++ b/zeroex/orderwatch/order_watcher.go @@ -1026,7 +1026,7 @@ func (w *Watcher) trimOrdersAndGenerateEvents() ([]*zeroex.OrderEvent, error) { } // updateBlockHeadersStoredInDB updates the block headers stored in the DB. Since our DB txns don't support -// multiple operations involving the same entry, we make sure we only perform either an insert or a deletion +// multiple operations involving the same entry, we make sure we only perform either an insertion or a deletion // for each block in this method. func (w *Watcher) updateBlockHeadersStoredInDB(miniHeadersColTxn *db.Transaction, events []*blockwatch.Event) error { blocksToAdd := map[common.Hash]*miniheader.MiniHeader{} From 80e3f4022915e1a0c4501a151662323bdd7a151a Mon Sep 17 00:00:00 2001 From: fabioberger Date: Fri, 3 Jan 2020 10:43:38 +0100 Subject: [PATCH 37/50] Don't return an error if we fail to permanently delete an order. Simply log it so we can investigate. --- zeroex/orderwatch/order_watcher.go | 1 + 1 file changed, 1 insertion(+) diff --git a/zeroex/orderwatch/order_watcher.go b/zeroex/orderwatch/order_watcher.go index d7a46c935..de303a4fe 100644 --- a/zeroex/orderwatch/order_watcher.go +++ b/zeroex/orderwatch/order_watcher.go @@ -1568,6 +1568,7 @@ func (w *Watcher) permanentlyDeleteOrder(deleter orderDeleter, order *meshdb.Ord "error": err.Error(), "order": order, }).Error("Failed to permanently delete order") + return nil } if _, ok := err.(db.NotFoundError); ok { logger.WithFields(logger.Fields{ From 3ec28c2850420b9f2320c6018f1a0c5b57946025 Mon Sep 17 00:00:00 2001 From: fabioberger Date: Fri, 3 Jan 2020 10:48:27 +0100 Subject: [PATCH 38/50] Add changelog entry --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1fa528cb8..0f05225b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,8 @@ This changelog is a work in progress and may contain notes for versions which ha ### Bug fixes 🐞 - Fixed a typo ("rendervouz" --> "rendezvous") in GetStatsResponse. ([#611](https://github.com/0x-mesh/pull/611)). -- Fixed a bug where we attempted to update the same order multiple times in a single DB txn, causing the later update to noop. ([#623](https://github.com/0xProject/0x-mesh/pull/623)) +- Fixed a bug where we attempted to update the same order multiple times in a single DB txn, causing the later update to noop. ([#623](https://github.com/0xProject/0x-mesh/pull/623)). +- Fixed a bug which could cause Mesh to exit if a re-org condition occurs causing a block to be added and removed within the same block sync operation. ([#614](https://github.com/0xProject/0x-mesh/pull/614)). ## v8.0.0-beta-0xv3 From 55801816734478ed5e62aef64c37a545719739b8 Mon Sep 17 00:00:00 2001 From: Fabio B Date: Wed, 8 Jan 2020 00:40:42 +0100 Subject: [PATCH 39/50] Update db/transaction.go Co-Authored-By: Alex Browne --- db/transaction.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/transaction.go b/db/transaction.go index 408eeae05..e46294f17 100644 --- a/db/transaction.go +++ b/db/transaction.go @@ -21,7 +21,7 @@ type ConflictingOperationsError struct { } func (e ConflictingOperationsError) Error() string { - return fmt.Sprintf("cannot perform more than one operation (%s) on the same model within a transaction", e.operation) + return fmt.Sprintf("error on %s: cannot perform more than one operation on the same model within a transaction", e.operation) } // Transaction is an atomic database transaction for a single collection which From e315afb42b1a30d18f439f295645b3dc3d9b8c82 Mon Sep 17 00:00:00 2001 From: fabioberger Date: Wed, 8 Jan 2020 14:34:45 +0100 Subject: [PATCH 40/50] Remove untracked log --- zeroex/orderwatch/order_watcher.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/zeroex/orderwatch/order_watcher.go b/zeroex/orderwatch/order_watcher.go index de303a4fe..2890ca23c 100644 --- a/zeroex/orderwatch/order_watcher.go +++ b/zeroex/orderwatch/order_watcher.go @@ -1571,10 +1571,6 @@ func (w *Watcher) permanentlyDeleteOrder(deleter orderDeleter, order *meshdb.Ord return nil } if _, ok := err.(db.NotFoundError); ok { - logger.WithFields(logger.Fields{ - "error": err.Error(), - "order": order, - }).Warn("Attempted to delete order that no longer exists") return nil // Already deleted. Noop. } return err From bc2625b95cf0c691e8e4a5e2c7547411c43ebbde Mon Sep 17 00:00:00 2001 From: fabioberger Date: Wed, 8 Jan 2020 17:48:03 +0100 Subject: [PATCH 41/50] Add comprehensive tests for the updateBlockHeadersStoredInDB method --- zeroex/orderwatch/order_watcher.go | 26 +-- zeroex/orderwatch/order_watcher_test.go | 237 ++++++++++++++++++++++++ 2 files changed, 252 insertions(+), 11 deletions(-) diff --git a/zeroex/orderwatch/order_watcher.go b/zeroex/orderwatch/order_watcher.go index 2890ca23c..115d86369 100644 --- a/zeroex/orderwatch/order_watcher.go +++ b/zeroex/orderwatch/order_watcher.go @@ -1039,7 +1039,7 @@ func (w *Watcher) updateBlockHeadersStoredInDB(miniHeadersColTxn *db.Transaction continue } if _, ok := blocksToRemove[blockHeader.Hash]; ok { - continue + delete(blocksToRemove, blockHeader.Hash) } blocksToAdd[blockHeader.Hash] = blockHeader case blockwatch.Removed: @@ -1057,20 +1057,24 @@ func (w *Watcher) updateBlockHeadersStoredInDB(miniHeadersColTxn *db.Transaction for _, blockHeader := range blocksToAdd { if err := miniHeadersColTxn.Insert(blockHeader); err != nil { - logger.WithFields(logger.Fields{ - "error": err.Error(), - "hash": blockHeader.Hash, - "number": blockHeader.Number, - }).Error("Failed to delete miniHeaders") + if _, ok := err.(db.AlreadyExistsError); !ok { + logger.WithFields(logger.Fields{ + "error": err.Error(), + "hash": blockHeader.Hash, + "number": blockHeader.Number, + }).Error("Failed to insert miniHeaders") + } } } for _, blockHeader := range blocksToRemove { if err := miniHeadersColTxn.Delete(blockHeader.ID()); err != nil { - logger.WithFields(logger.Fields{ - "error": err.Error(), - "hash": blockHeader.Hash, - "number": blockHeader.Number, - }).Error("Failed to delete miniHeaders") + if _, ok := err.(db.NotFoundError); !ok { + logger.WithFields(logger.Fields{ + "error": err.Error(), + "hash": blockHeader.Hash, + "number": blockHeader.Number, + }).Error("Failed to delete miniHeaders") + } } } diff --git a/zeroex/orderwatch/order_watcher_test.go b/zeroex/orderwatch/order_watcher_test.go index 83f7d0eed..92cd287bd 100644 --- a/zeroex/orderwatch/order_watcher_test.go +++ b/zeroex/orderwatch/order_watcher_test.go @@ -1027,6 +1027,243 @@ func TestOrderWatcherCleanup(t *testing.T) { } } +func TestOrderWatcherUpdateBlockHeadersStoredInDB(t *testing.T) { + if !serialTestsEnabled { + t.Skip("Serial tests (tests which cannot run in parallel) are disabled. You can enable them with the --serial flag") + } + + teardownSubTest := setupSubTest(t) + defer teardownSubTest(t) + + meshDB, err := meshdb.New("/tmp/leveldb_testing/" + uuid.New().String()) + require.NoError(t, err) + + ctx, cancelFn := context.WithCancel(context.Background()) + defer cancelFn() + _, orderWatcher := setupOrderWatcher(ctx, t, ethRPCClient, meshDB) + + // Scenario 1: Header 1 exists in DB. Get's removed and then re-added. + + miniHeaders := []*miniheader.MiniHeader{} + err = meshDB.MiniHeaders.FindAll(&miniHeaders) + require.NoError(t, err) + assert.Len(t, miniHeaders, 1) + headerOne := miniHeaders[0] + + miniHeadersColTxn := meshDB.MiniHeaders.OpenTransaction() + defer func() { + _ = miniHeadersColTxn.Discard() + }() + + // Scenario 2: Header 1 exists in DB. Get's removed and then re-added. + events := []*blockwatch.Event{ + &blockwatch.Event{ + Type: blockwatch.Removed, + BlockHeader: headerOne, + }, + &blockwatch.Event{ + Type: blockwatch.Added, + BlockHeader: headerOne, + }, + } + err = orderWatcher.updateBlockHeadersStoredInDB(miniHeadersColTxn, events) + require.NoError(t, err) + + err = miniHeadersColTxn.Commit() + require.NoError(t, err) + + miniHeaders = []*miniheader.MiniHeader{} + err = meshDB.MiniHeaders.FindAll(&miniHeaders) + require.NoError(t, err) + + assert.Len(t, miniHeaders, 1) + assert.Equal(t, headerOne, miniHeaders[0]) + + // Scenario 3: Header doesn't exist, get's added and then removed + + miniHeadersColTxn = meshDB.MiniHeaders.OpenTransaction() + defer func() { + _ = miniHeadersColTxn.Discard() + }() + + headerTwo := &miniheader.MiniHeader{ + Number: big.NewInt(5), + Hash: common.HexToHash("0x293b9ea024055a3e9eddbf9b9383dc7731744111894af6aa038594dc1b61f87f"), + Parent: common.HexToHash("0x26b13ac89500f7fcdd141b7d1b30f3a82178431eca325d1cf10998f9d68ff5ba"), + Timestamp: time.Now(), + } + events = []*blockwatch.Event{ + &blockwatch.Event{ + Type: blockwatch.Added, + BlockHeader: headerTwo, + }, + &blockwatch.Event{ + Type: blockwatch.Removed, + BlockHeader: headerTwo, + }, + } + err = orderWatcher.updateBlockHeadersStoredInDB(miniHeadersColTxn, events) + require.NoError(t, err) + + err = miniHeadersColTxn.Commit() + require.NoError(t, err) + + miniHeaders = []*miniheader.MiniHeader{} + err = meshDB.MiniHeaders.FindAll(&miniHeaders) + require.NoError(t, err) + + assert.Len(t, miniHeaders, 1) + assert.Equal(t, headerOne, miniHeaders[0]) + + // Scenario 4: Header added, removed then re-added + + miniHeadersColTxn = meshDB.MiniHeaders.OpenTransaction() + defer func() { + _ = miniHeadersColTxn.Discard() + }() + + headerTwo = &miniheader.MiniHeader{ + Number: big.NewInt(5), + Hash: common.HexToHash("0x293b9ea024055a3e9eddbf9b9383dc7731744111894af6aa038594dc1b61f87f"), + Parent: common.HexToHash("0x26b13ac89500f7fcdd141b7d1b30f3a82178431eca325d1cf10998f9d68ff5ba"), + Timestamp: time.Now(), + } + events = []*blockwatch.Event{ + &blockwatch.Event{ + Type: blockwatch.Added, + BlockHeader: headerTwo, + }, + &blockwatch.Event{ + Type: blockwatch.Removed, + BlockHeader: headerTwo, + }, + &blockwatch.Event{ + Type: blockwatch.Added, + BlockHeader: headerTwo, + }, + } + err = orderWatcher.updateBlockHeadersStoredInDB(miniHeadersColTxn, events) + require.NoError(t, err) + + err = miniHeadersColTxn.Commit() + require.NoError(t, err) + + miniHeaders = []*miniheader.MiniHeader{} + err = meshDB.MiniHeaders.FindAll(&miniHeaders) + require.NoError(t, err) + + assert.Len(t, miniHeaders, 2) + + // Scenario 5: Header removed, added then removed again + + miniHeadersColTxn = meshDB.MiniHeaders.OpenTransaction() + defer func() { + _ = miniHeadersColTxn.Discard() + }() + + headerTwo = &miniheader.MiniHeader{ + Number: big.NewInt(5), + Hash: common.HexToHash("0x293b9ea024055a3e9eddbf9b9383dc7731744111894af6aa038594dc1b61f87f"), + Parent: common.HexToHash("0x26b13ac89500f7fcdd141b7d1b30f3a82178431eca325d1cf10998f9d68ff5ba"), + Timestamp: time.Now(), + } + events = []*blockwatch.Event{ + &blockwatch.Event{ + Type: blockwatch.Removed, + BlockHeader: headerTwo, + }, + &blockwatch.Event{ + Type: blockwatch.Added, + BlockHeader: headerTwo, + }, + &blockwatch.Event{ + Type: blockwatch.Removed, + BlockHeader: headerTwo, + }, + } + err = orderWatcher.updateBlockHeadersStoredInDB(miniHeadersColTxn, events) + require.NoError(t, err) + + err = miniHeadersColTxn.Commit() + require.NoError(t, err) + + miniHeaders = []*miniheader.MiniHeader{} + err = meshDB.MiniHeaders.FindAll(&miniHeaders) + require.NoError(t, err) + + assert.Len(t, miniHeaders, 1) + + // Scenario 6: Call added twice for the same block + + miniHeadersColTxn = meshDB.MiniHeaders.OpenTransaction() + defer func() { + _ = miniHeadersColTxn.Discard() + }() + + headerTwo = &miniheader.MiniHeader{ + Number: big.NewInt(5), + Hash: common.HexToHash("0x293b9ea024055a3e9eddbf9b9383dc7731744111894af6aa038594dc1b61f87f"), + Parent: common.HexToHash("0x26b13ac89500f7fcdd141b7d1b30f3a82178431eca325d1cf10998f9d68ff5ba"), + Timestamp: time.Now(), + } + events = []*blockwatch.Event{ + &blockwatch.Event{ + Type: blockwatch.Added, + BlockHeader: headerTwo, + }, + &blockwatch.Event{ + Type: blockwatch.Added, + BlockHeader: headerTwo, + }, + } + err = orderWatcher.updateBlockHeadersStoredInDB(miniHeadersColTxn, events) + require.NoError(t, err) + + err = miniHeadersColTxn.Commit() + require.NoError(t, err) + + miniHeaders = []*miniheader.MiniHeader{} + err = meshDB.MiniHeaders.FindAll(&miniHeaders) + require.NoError(t, err) + + assert.Len(t, miniHeaders, 2) + + // Scenario 7: Call removed twice for the same block + + miniHeadersColTxn = meshDB.MiniHeaders.OpenTransaction() + defer func() { + _ = miniHeadersColTxn.Discard() + }() + + headerTwo = &miniheader.MiniHeader{ + Number: big.NewInt(5), + Hash: common.HexToHash("0x293b9ea024055a3e9eddbf9b9383dc7731744111894af6aa038594dc1b61f87f"), + Parent: common.HexToHash("0x26b13ac89500f7fcdd141b7d1b30f3a82178431eca325d1cf10998f9d68ff5ba"), + Timestamp: time.Now(), + } + events = []*blockwatch.Event{ + &blockwatch.Event{ + Type: blockwatch.Removed, + BlockHeader: headerTwo, + }, + &blockwatch.Event{ + Type: blockwatch.Removed, + BlockHeader: headerTwo, + }, + } + err = orderWatcher.updateBlockHeadersStoredInDB(miniHeadersColTxn, events) + require.NoError(t, err) + + err = miniHeadersColTxn.Commit() + require.NoError(t, err) + + miniHeaders = []*miniheader.MiniHeader{} + err = meshDB.MiniHeaders.FindAll(&miniHeaders) + require.NoError(t, err) + + assert.Len(t, miniHeaders, 1) +} + func setupOrderWatcherScenario(ctx context.Context, t *testing.T, ethClient *ethclient.Client, meshDB *meshdb.MeshDB, signedOrder *zeroex.SignedOrder) (*blockwatch.Watcher, chan []*zeroex.OrderEvent) { blockWatcher, orderWatcher := setupOrderWatcher(ctx, t, ethRPCClient, meshDB) From df26ca564481d0b4ba701f17054d2a0154245430 Mon Sep 17 00:00:00 2001 From: fabioberger Date: Thu, 9 Jan 2020 17:03:38 +0100 Subject: [PATCH 42/50] Convert updateBlockHeadersStoredInDB into a function and split test scenarios into separate tests --- zeroex/orderwatch/order_watcher.go | 4 +- zeroex/orderwatch/order_watcher_test.go | 160 +++++++++++++++--------- 2 files changed, 100 insertions(+), 64 deletions(-) diff --git a/zeroex/orderwatch/order_watcher.go b/zeroex/orderwatch/order_watcher.go index 115d86369..0614dc428 100644 --- a/zeroex/orderwatch/order_watcher.go +++ b/zeroex/orderwatch/order_watcher.go @@ -452,7 +452,7 @@ func (w *Watcher) handleBlockEvents( } latestBlockNumber, latestBlockTimestamp := w.getBlockchainState(events) - err = w.updateBlockHeadersStoredInDB(miniHeadersColTxn, events) + err = updateBlockHeadersStoredInDB(miniHeadersColTxn, events) if err != nil { return err } @@ -1028,7 +1028,7 @@ func (w *Watcher) trimOrdersAndGenerateEvents() ([]*zeroex.OrderEvent, error) { // updateBlockHeadersStoredInDB updates the block headers stored in the DB. Since our DB txns don't support // multiple operations involving the same entry, we make sure we only perform either an insertion or a deletion // for each block in this method. -func (w *Watcher) updateBlockHeadersStoredInDB(miniHeadersColTxn *db.Transaction, events []*blockwatch.Event) error { +func updateBlockHeadersStoredInDB(miniHeadersColTxn *db.Transaction, events []*blockwatch.Event) error { blocksToAdd := map[common.Hash]*miniheader.MiniHeader{} blocksToRemove := map[common.Hash]*miniheader.MiniHeader{} for _, event := range events { diff --git a/zeroex/orderwatch/order_watcher_test.go b/zeroex/orderwatch/order_watcher_test.go index 92cd287bd..13ec5acca 100644 --- a/zeroex/orderwatch/order_watcher_test.go +++ b/zeroex/orderwatch/order_watcher_test.go @@ -1027,35 +1027,30 @@ func TestOrderWatcherCleanup(t *testing.T) { } } -func TestOrderWatcherUpdateBlockHeadersStoredInDB(t *testing.T) { - if !serialTestsEnabled { - t.Skip("Serial tests (tests which cannot run in parallel) are disabled. You can enable them with the --serial flag") - } - - teardownSubTest := setupSubTest(t) - defer teardownSubTest(t) - +// Scenario 1: Header 1 exists in DB. Get's removed and then re-added. +func TestOrderWatcherUpdateBlockHeadersStoredInDBScenario1(t *testing.T) { meshDB, err := meshdb.New("/tmp/leveldb_testing/" + uuid.New().String()) require.NoError(t, err) - ctx, cancelFn := context.WithCancel(context.Background()) - defer cancelFn() - _, orderWatcher := setupOrderWatcher(ctx, t, ethRPCClient, meshDB) - - // Scenario 1: Header 1 exists in DB. Get's removed and then re-added. + headerOne := &miniheader.MiniHeader{ + Number: big.NewInt(5), + Hash: common.HexToHash("0x293b9ea024055a3e9eddbf9b9383dc7731744111894af6aa038594dc1b61f87f"), + Parent: common.HexToHash("0x26b13ac89500f7fcdd141b7d1b30f3a82178431eca325d1cf10998f9d68ff5ba"), + Timestamp: time.Now().UTC(), + } + err = meshDB.MiniHeaders.Insert(headerOne) + require.NoError(t, err) miniHeaders := []*miniheader.MiniHeader{} err = meshDB.MiniHeaders.FindAll(&miniHeaders) require.NoError(t, err) assert.Len(t, miniHeaders, 1) - headerOne := miniHeaders[0] miniHeadersColTxn := meshDB.MiniHeaders.OpenTransaction() defer func() { _ = miniHeadersColTxn.Discard() }() - // Scenario 2: Header 1 exists in DB. Get's removed and then re-added. events := []*blockwatch.Event{ &blockwatch.Event{ Type: blockwatch.Removed, @@ -1066,7 +1061,7 @@ func TestOrderWatcherUpdateBlockHeadersStoredInDB(t *testing.T) { BlockHeader: headerOne, }, } - err = orderWatcher.updateBlockHeadersStoredInDB(miniHeadersColTxn, events) + err = updateBlockHeadersStoredInDB(miniHeadersColTxn, events) require.NoError(t, err) err = miniHeadersColTxn.Commit() @@ -1075,99 +1070,121 @@ func TestOrderWatcherUpdateBlockHeadersStoredInDB(t *testing.T) { miniHeaders = []*miniheader.MiniHeader{} err = meshDB.MiniHeaders.FindAll(&miniHeaders) require.NoError(t, err) - assert.Len(t, miniHeaders, 1) assert.Equal(t, headerOne, miniHeaders[0]) +} - // Scenario 3: Header doesn't exist, get's added and then removed +// Scenario 2: Header doesn't exist, get's added and then removed +func TestOrderWatcherUpdateBlockHeadersStoredInDBScenario2(t *testing.T) { + meshDB, err := meshdb.New("/tmp/leveldb_testing/" + uuid.New().String()) + require.NoError(t, err) - miniHeadersColTxn = meshDB.MiniHeaders.OpenTransaction() + miniHeadersColTxn := meshDB.MiniHeaders.OpenTransaction() defer func() { _ = miniHeadersColTxn.Discard() }() - headerTwo := &miniheader.MiniHeader{ + headerOne := &miniheader.MiniHeader{ Number: big.NewInt(5), Hash: common.HexToHash("0x293b9ea024055a3e9eddbf9b9383dc7731744111894af6aa038594dc1b61f87f"), Parent: common.HexToHash("0x26b13ac89500f7fcdd141b7d1b30f3a82178431eca325d1cf10998f9d68ff5ba"), - Timestamp: time.Now(), + Timestamp: time.Now().UTC(), } - events = []*blockwatch.Event{ + events := []*blockwatch.Event{ &blockwatch.Event{ Type: blockwatch.Added, - BlockHeader: headerTwo, + BlockHeader: headerOne, }, &blockwatch.Event{ Type: blockwatch.Removed, - BlockHeader: headerTwo, + BlockHeader: headerOne, }, } - err = orderWatcher.updateBlockHeadersStoredInDB(miniHeadersColTxn, events) + err = updateBlockHeadersStoredInDB(miniHeadersColTxn, events) require.NoError(t, err) err = miniHeadersColTxn.Commit() require.NoError(t, err) - miniHeaders = []*miniheader.MiniHeader{} + miniHeaders := []*miniheader.MiniHeader{} err = meshDB.MiniHeaders.FindAll(&miniHeaders) require.NoError(t, err) + assert.Len(t, miniHeaders, 0) +} - assert.Len(t, miniHeaders, 1) - assert.Equal(t, headerOne, miniHeaders[0]) - - // Scenario 4: Header added, removed then re-added +// Scenario 3: Header added, removed then re-added +func TestOrderWatcherUpdateBlockHeadersStoredInDBScenario3(t *testing.T) { + meshDB, err := meshdb.New("/tmp/leveldb_testing/" + uuid.New().String()) + require.NoError(t, err) - miniHeadersColTxn = meshDB.MiniHeaders.OpenTransaction() + miniHeadersColTxn := meshDB.MiniHeaders.OpenTransaction() defer func() { _ = miniHeadersColTxn.Discard() }() - headerTwo = &miniheader.MiniHeader{ + headerOne := &miniheader.MiniHeader{ Number: big.NewInt(5), Hash: common.HexToHash("0x293b9ea024055a3e9eddbf9b9383dc7731744111894af6aa038594dc1b61f87f"), Parent: common.HexToHash("0x26b13ac89500f7fcdd141b7d1b30f3a82178431eca325d1cf10998f9d68ff5ba"), Timestamp: time.Now(), } - events = []*blockwatch.Event{ + events := []*blockwatch.Event{ &blockwatch.Event{ Type: blockwatch.Added, - BlockHeader: headerTwo, + BlockHeader: headerOne, }, &blockwatch.Event{ Type: blockwatch.Removed, - BlockHeader: headerTwo, + BlockHeader: headerOne, }, &blockwatch.Event{ Type: blockwatch.Added, - BlockHeader: headerTwo, + BlockHeader: headerOne, }, } - err = orderWatcher.updateBlockHeadersStoredInDB(miniHeadersColTxn, events) + err = updateBlockHeadersStoredInDB(miniHeadersColTxn, events) require.NoError(t, err) err = miniHeadersColTxn.Commit() require.NoError(t, err) - miniHeaders = []*miniheader.MiniHeader{} + miniHeaders := []*miniheader.MiniHeader{} err = meshDB.MiniHeaders.FindAll(&miniHeaders) require.NoError(t, err) + assert.Len(t, miniHeaders, 1) +} + +// Scenario 4: Header removed, added then removed again +func TestOrderWatcherUpdateBlockHeadersStoredInDBScenario4(t *testing.T) { + meshDB, err := meshdb.New("/tmp/leveldb_testing/" + uuid.New().String()) + require.NoError(t, err) - assert.Len(t, miniHeaders, 2) + headerOne := &miniheader.MiniHeader{ + Number: big.NewInt(5), + Hash: common.HexToHash("0x293b9ea024055a3e9eddbf9b9383dc7731744111894af6aa038594dc1b61f87f"), + Parent: common.HexToHash("0x26b13ac89500f7fcdd141b7d1b30f3a82178431eca325d1cf10998f9d68ff5ba"), + Timestamp: time.Now().UTC(), + } + err = meshDB.MiniHeaders.Insert(headerOne) + require.NoError(t, err) - // Scenario 5: Header removed, added then removed again + miniHeaders := []*miniheader.MiniHeader{} + err = meshDB.MiniHeaders.FindAll(&miniHeaders) + require.NoError(t, err) + assert.Len(t, miniHeaders, 1) - miniHeadersColTxn = meshDB.MiniHeaders.OpenTransaction() + miniHeadersColTxn := meshDB.MiniHeaders.OpenTransaction() defer func() { _ = miniHeadersColTxn.Discard() }() - headerTwo = &miniheader.MiniHeader{ + headerTwo := &miniheader.MiniHeader{ Number: big.NewInt(5), Hash: common.HexToHash("0x293b9ea024055a3e9eddbf9b9383dc7731744111894af6aa038594dc1b61f87f"), Parent: common.HexToHash("0x26b13ac89500f7fcdd141b7d1b30f3a82178431eca325d1cf10998f9d68ff5ba"), Timestamp: time.Now(), } - events = []*blockwatch.Event{ + events := []*blockwatch.Event{ &blockwatch.Event{ Type: blockwatch.Removed, BlockHeader: headerTwo, @@ -1181,7 +1198,7 @@ func TestOrderWatcherUpdateBlockHeadersStoredInDB(t *testing.T) { BlockHeader: headerTwo, }, } - err = orderWatcher.updateBlockHeadersStoredInDB(miniHeadersColTxn, events) + err = updateBlockHeadersStoredInDB(miniHeadersColTxn, events) require.NoError(t, err) err = miniHeadersColTxn.Commit() @@ -1190,58 +1207,78 @@ func TestOrderWatcherUpdateBlockHeadersStoredInDB(t *testing.T) { miniHeaders = []*miniheader.MiniHeader{} err = meshDB.MiniHeaders.FindAll(&miniHeaders) require.NoError(t, err) + assert.Len(t, miniHeaders, 0) +} - assert.Len(t, miniHeaders, 1) - - // Scenario 6: Call added twice for the same block +// Scenario 5: Call added twice for the same block +func TestOrderWatcherUpdateBlockHeadersStoredInDBScenario5(t *testing.T) { + meshDB, err := meshdb.New("/tmp/leveldb_testing/" + uuid.New().String()) + require.NoError(t, err) - miniHeadersColTxn = meshDB.MiniHeaders.OpenTransaction() + miniHeadersColTxn := meshDB.MiniHeaders.OpenTransaction() defer func() { _ = miniHeadersColTxn.Discard() }() - headerTwo = &miniheader.MiniHeader{ + headerOne := &miniheader.MiniHeader{ Number: big.NewInt(5), Hash: common.HexToHash("0x293b9ea024055a3e9eddbf9b9383dc7731744111894af6aa038594dc1b61f87f"), Parent: common.HexToHash("0x26b13ac89500f7fcdd141b7d1b30f3a82178431eca325d1cf10998f9d68ff5ba"), Timestamp: time.Now(), } - events = []*blockwatch.Event{ + events := []*blockwatch.Event{ &blockwatch.Event{ Type: blockwatch.Added, - BlockHeader: headerTwo, + BlockHeader: headerOne, }, &blockwatch.Event{ Type: blockwatch.Added, - BlockHeader: headerTwo, + BlockHeader: headerOne, }, } - err = orderWatcher.updateBlockHeadersStoredInDB(miniHeadersColTxn, events) + err = updateBlockHeadersStoredInDB(miniHeadersColTxn, events) require.NoError(t, err) err = miniHeadersColTxn.Commit() require.NoError(t, err) - miniHeaders = []*miniheader.MiniHeader{} + miniHeaders := []*miniheader.MiniHeader{} err = meshDB.MiniHeaders.FindAll(&miniHeaders) require.NoError(t, err) + assert.Len(t, miniHeaders, 1) +} - assert.Len(t, miniHeaders, 2) +// Scenario 6: Call removed twice for the same block +func TestOrderWatcherUpdateBlockHeadersStoredInDBScenario6(t *testing.T) { + meshDB, err := meshdb.New("/tmp/leveldb_testing/" + uuid.New().String()) + require.NoError(t, err) - // Scenario 7: Call removed twice for the same block + headerOne := &miniheader.MiniHeader{ + Number: big.NewInt(5), + Hash: common.HexToHash("0x293b9ea024055a3e9eddbf9b9383dc7731744111894af6aa038594dc1b61f87f"), + Parent: common.HexToHash("0x26b13ac89500f7fcdd141b7d1b30f3a82178431eca325d1cf10998f9d68ff5ba"), + Timestamp: time.Now().UTC(), + } + err = meshDB.MiniHeaders.Insert(headerOne) + require.NoError(t, err) + + miniHeaders := []*miniheader.MiniHeader{} + err = meshDB.MiniHeaders.FindAll(&miniHeaders) + require.NoError(t, err) + assert.Len(t, miniHeaders, 1) - miniHeadersColTxn = meshDB.MiniHeaders.OpenTransaction() + miniHeadersColTxn := meshDB.MiniHeaders.OpenTransaction() defer func() { _ = miniHeadersColTxn.Discard() }() - headerTwo = &miniheader.MiniHeader{ + headerTwo := &miniheader.MiniHeader{ Number: big.NewInt(5), Hash: common.HexToHash("0x293b9ea024055a3e9eddbf9b9383dc7731744111894af6aa038594dc1b61f87f"), Parent: common.HexToHash("0x26b13ac89500f7fcdd141b7d1b30f3a82178431eca325d1cf10998f9d68ff5ba"), Timestamp: time.Now(), } - events = []*blockwatch.Event{ + events := []*blockwatch.Event{ &blockwatch.Event{ Type: blockwatch.Removed, BlockHeader: headerTwo, @@ -1251,7 +1288,7 @@ func TestOrderWatcherUpdateBlockHeadersStoredInDB(t *testing.T) { BlockHeader: headerTwo, }, } - err = orderWatcher.updateBlockHeadersStoredInDB(miniHeadersColTxn, events) + err = updateBlockHeadersStoredInDB(miniHeadersColTxn, events) require.NoError(t, err) err = miniHeadersColTxn.Commit() @@ -1260,8 +1297,7 @@ func TestOrderWatcherUpdateBlockHeadersStoredInDB(t *testing.T) { miniHeaders = []*miniheader.MiniHeader{} err = meshDB.MiniHeaders.FindAll(&miniHeaders) require.NoError(t, err) - - assert.Len(t, miniHeaders, 1) + assert.Len(t, miniHeaders, 0) } func setupOrderWatcherScenario(ctx context.Context, t *testing.T, ethClient *ethclient.Client, meshDB *meshdb.MeshDB, signedOrder *zeroex.SignedOrder) (*blockwatch.Watcher, chan []*zeroex.OrderEvent) { From 3ffcd1bf1f74a4191124fbac5ff42a137ec9df57 Mon Sep 17 00:00:00 2001 From: fabioberger Date: Fri, 10 Jan 2020 11:56:02 +0100 Subject: [PATCH 43/50] Refactor tests to table-driven tests --- zeroex/orderwatch/order_watcher_test.go | 376 ++++++++---------------- 1 file changed, 129 insertions(+), 247 deletions(-) diff --git a/zeroex/orderwatch/order_watcher_test.go b/zeroex/orderwatch/order_watcher_test.go index 13ec5acca..2cb322c9e 100644 --- a/zeroex/orderwatch/order_watcher_test.go +++ b/zeroex/orderwatch/order_watcher_test.go @@ -1027,8 +1027,7 @@ func TestOrderWatcherCleanup(t *testing.T) { } } -// Scenario 1: Header 1 exists in DB. Get's removed and then re-added. -func TestOrderWatcherUpdateBlockHeadersStoredInDBScenario1(t *testing.T) { +func TestOrderWatcherUpdateBlockHeadersStoredInDBHeaderExists(t *testing.T) { meshDB, err := meshdb.New("/tmp/leveldb_testing/" + uuid.New().String()) require.NoError(t, err) @@ -1038,266 +1037,149 @@ func TestOrderWatcherUpdateBlockHeadersStoredInDBScenario1(t *testing.T) { Parent: common.HexToHash("0x26b13ac89500f7fcdd141b7d1b30f3a82178431eca325d1cf10998f9d68ff5ba"), Timestamp: time.Now().UTC(), } - err = meshDB.MiniHeaders.Insert(headerOne) - require.NoError(t, err) - - miniHeaders := []*miniheader.MiniHeader{} - err = meshDB.MiniHeaders.FindAll(&miniHeaders) - require.NoError(t, err) - assert.Len(t, miniHeaders, 1) - - miniHeadersColTxn := meshDB.MiniHeaders.OpenTransaction() - defer func() { - _ = miniHeadersColTxn.Discard() - }() - - events := []*blockwatch.Event{ - &blockwatch.Event{ - Type: blockwatch.Removed, - BlockHeader: headerOne, - }, - &blockwatch.Event{ - Type: blockwatch.Added, - BlockHeader: headerOne, - }, - } - err = updateBlockHeadersStoredInDB(miniHeadersColTxn, events) - require.NoError(t, err) - - err = miniHeadersColTxn.Commit() - require.NoError(t, err) - - miniHeaders = []*miniheader.MiniHeader{} - err = meshDB.MiniHeaders.FindAll(&miniHeaders) - require.NoError(t, err) - assert.Len(t, miniHeaders, 1) - assert.Equal(t, headerOne, miniHeaders[0]) -} - -// Scenario 2: Header doesn't exist, get's added and then removed -func TestOrderWatcherUpdateBlockHeadersStoredInDBScenario2(t *testing.T) { - meshDB, err := meshdb.New("/tmp/leveldb_testing/" + uuid.New().String()) - require.NoError(t, err) - - miniHeadersColTxn := meshDB.MiniHeaders.OpenTransaction() - defer func() { - _ = miniHeadersColTxn.Discard() - }() - - headerOne := &miniheader.MiniHeader{ - Number: big.NewInt(5), - Hash: common.HexToHash("0x293b9ea024055a3e9eddbf9b9383dc7731744111894af6aa038594dc1b61f87f"), - Parent: common.HexToHash("0x26b13ac89500f7fcdd141b7d1b30f3a82178431eca325d1cf10998f9d68ff5ba"), - Timestamp: time.Now().UTC(), - } - events := []*blockwatch.Event{ - &blockwatch.Event{ - Type: blockwatch.Added, - BlockHeader: headerOne, - }, - &blockwatch.Event{ - Type: blockwatch.Removed, - BlockHeader: headerOne, - }, - } - err = updateBlockHeadersStoredInDB(miniHeadersColTxn, events) - require.NoError(t, err) - - err = miniHeadersColTxn.Commit() - require.NoError(t, err) - miniHeaders := []*miniheader.MiniHeader{} - err = meshDB.MiniHeaders.FindAll(&miniHeaders) - require.NoError(t, err) - assert.Len(t, miniHeaders, 0) -} - -// Scenario 3: Header added, removed then re-added -func TestOrderWatcherUpdateBlockHeadersStoredInDBScenario3(t *testing.T) { - meshDB, err := meshdb.New("/tmp/leveldb_testing/" + uuid.New().String()) - require.NoError(t, err) - - miniHeadersColTxn := meshDB.MiniHeaders.OpenTransaction() - defer func() { - _ = miniHeadersColTxn.Discard() - }() - - headerOne := &miniheader.MiniHeader{ - Number: big.NewInt(5), - Hash: common.HexToHash("0x293b9ea024055a3e9eddbf9b9383dc7731744111894af6aa038594dc1b61f87f"), - Parent: common.HexToHash("0x26b13ac89500f7fcdd141b7d1b30f3a82178431eca325d1cf10998f9d68ff5ba"), - Timestamp: time.Now(), - } - events := []*blockwatch.Event{ - &blockwatch.Event{ - Type: blockwatch.Added, - BlockHeader: headerOne, - }, - &blockwatch.Event{ - Type: blockwatch.Removed, - BlockHeader: headerOne, - }, - &blockwatch.Event{ - Type: blockwatch.Added, - BlockHeader: headerOne, + testCases := []struct { + events []*blockwatch.Event + startMiniHeaders []*miniheader.MiniHeader + expectedMiniHeaders []*miniheader.MiniHeader + }{ + // Scenario 1: Header 1 exists in DB. Get's removed and then re-added. + { + events: []*blockwatch.Event{ + &blockwatch.Event{ + Type: blockwatch.Removed, + BlockHeader: headerOne, + }, + &blockwatch.Event{ + Type: blockwatch.Added, + BlockHeader: headerOne, + }, + }, + startMiniHeaders: []*miniheader.MiniHeader{ + headerOne, + }, + expectedMiniHeaders: []*miniheader.MiniHeader{ + headerOne, + }, }, - } - err = updateBlockHeadersStoredInDB(miniHeadersColTxn, events) - require.NoError(t, err) - - err = miniHeadersColTxn.Commit() - require.NoError(t, err) - - miniHeaders := []*miniheader.MiniHeader{} - err = meshDB.MiniHeaders.FindAll(&miniHeaders) - require.NoError(t, err) - assert.Len(t, miniHeaders, 1) -} - -// Scenario 4: Header removed, added then removed again -func TestOrderWatcherUpdateBlockHeadersStoredInDBScenario4(t *testing.T) { - meshDB, err := meshdb.New("/tmp/leveldb_testing/" + uuid.New().String()) - require.NoError(t, err) - - headerOne := &miniheader.MiniHeader{ - Number: big.NewInt(5), - Hash: common.HexToHash("0x293b9ea024055a3e9eddbf9b9383dc7731744111894af6aa038594dc1b61f87f"), - Parent: common.HexToHash("0x26b13ac89500f7fcdd141b7d1b30f3a82178431eca325d1cf10998f9d68ff5ba"), - Timestamp: time.Now().UTC(), - } - err = meshDB.MiniHeaders.Insert(headerOne) - require.NoError(t, err) - - miniHeaders := []*miniheader.MiniHeader{} - err = meshDB.MiniHeaders.FindAll(&miniHeaders) - require.NoError(t, err) - assert.Len(t, miniHeaders, 1) - - miniHeadersColTxn := meshDB.MiniHeaders.OpenTransaction() - defer func() { - _ = miniHeadersColTxn.Discard() - }() - - headerTwo := &miniheader.MiniHeader{ - Number: big.NewInt(5), - Hash: common.HexToHash("0x293b9ea024055a3e9eddbf9b9383dc7731744111894af6aa038594dc1b61f87f"), - Parent: common.HexToHash("0x26b13ac89500f7fcdd141b7d1b30f3a82178431eca325d1cf10998f9d68ff5ba"), - Timestamp: time.Now(), - } - events := []*blockwatch.Event{ - &blockwatch.Event{ - Type: blockwatch.Removed, - BlockHeader: headerTwo, + // Scenario 2: Header doesn't exist, get's added and then removed + { + events: []*blockwatch.Event{ + &blockwatch.Event{ + Type: blockwatch.Added, + BlockHeader: headerOne, + }, + &blockwatch.Event{ + Type: blockwatch.Removed, + BlockHeader: headerOne, + }, + }, + startMiniHeaders: []*miniheader.MiniHeader{}, + expectedMiniHeaders: []*miniheader.MiniHeader{}, }, - &blockwatch.Event{ - Type: blockwatch.Added, - BlockHeader: headerTwo, + // Scenario 3: Header added, removed then re-added + { + events: []*blockwatch.Event{ + &blockwatch.Event{ + Type: blockwatch.Added, + BlockHeader: headerOne, + }, + &blockwatch.Event{ + Type: blockwatch.Removed, + BlockHeader: headerOne, + }, + &blockwatch.Event{ + Type: blockwatch.Added, + BlockHeader: headerOne, + }, + }, + startMiniHeaders: []*miniheader.MiniHeader{}, + expectedMiniHeaders: []*miniheader.MiniHeader{ + headerOne, + }, }, - &blockwatch.Event{ - Type: blockwatch.Removed, - BlockHeader: headerTwo, + // Scenario 4: Header removed, added then removed again + { + events: []*blockwatch.Event{ + &blockwatch.Event{ + Type: blockwatch.Removed, + BlockHeader: headerOne, + }, + &blockwatch.Event{ + Type: blockwatch.Added, + BlockHeader: headerOne, + }, + &blockwatch.Event{ + Type: blockwatch.Removed, + BlockHeader: headerOne, + }, + }, + startMiniHeaders: []*miniheader.MiniHeader{ + headerOne, + }, + expectedMiniHeaders: []*miniheader.MiniHeader{}, }, - } - err = updateBlockHeadersStoredInDB(miniHeadersColTxn, events) - require.NoError(t, err) - - err = miniHeadersColTxn.Commit() - require.NoError(t, err) - - miniHeaders = []*miniheader.MiniHeader{} - err = meshDB.MiniHeaders.FindAll(&miniHeaders) - require.NoError(t, err) - assert.Len(t, miniHeaders, 0) -} - -// Scenario 5: Call added twice for the same block -func TestOrderWatcherUpdateBlockHeadersStoredInDBScenario5(t *testing.T) { - meshDB, err := meshdb.New("/tmp/leveldb_testing/" + uuid.New().String()) - require.NoError(t, err) - - miniHeadersColTxn := meshDB.MiniHeaders.OpenTransaction() - defer func() { - _ = miniHeadersColTxn.Discard() - }() - - headerOne := &miniheader.MiniHeader{ - Number: big.NewInt(5), - Hash: common.HexToHash("0x293b9ea024055a3e9eddbf9b9383dc7731744111894af6aa038594dc1b61f87f"), - Parent: common.HexToHash("0x26b13ac89500f7fcdd141b7d1b30f3a82178431eca325d1cf10998f9d68ff5ba"), - Timestamp: time.Now(), - } - events := []*blockwatch.Event{ - &blockwatch.Event{ - Type: blockwatch.Added, - BlockHeader: headerOne, + // Scenario 5: Call added twice for the same block + { + events: []*blockwatch.Event{ + &blockwatch.Event{ + Type: blockwatch.Added, + BlockHeader: headerOne, + }, + &blockwatch.Event{ + Type: blockwatch.Added, + BlockHeader: headerOne, + }, + }, + startMiniHeaders: []*miniheader.MiniHeader{}, + expectedMiniHeaders: []*miniheader.MiniHeader{ + headerOne, + }, }, - &blockwatch.Event{ - Type: blockwatch.Added, - BlockHeader: headerOne, + // Scenario 6: Call removed twice for the same block + { + events: []*blockwatch.Event{ + &blockwatch.Event{ + Type: blockwatch.Removed, + BlockHeader: headerOne, + }, + &blockwatch.Event{ + Type: blockwatch.Removed, + BlockHeader: headerOne, + }, + }, + startMiniHeaders: []*miniheader.MiniHeader{ + headerOne, + }, + expectedMiniHeaders: []*miniheader.MiniHeader{}, }, } - err = updateBlockHeadersStoredInDB(miniHeadersColTxn, events) - require.NoError(t, err) - err = miniHeadersColTxn.Commit() - require.NoError(t, err) + for _, testCase := range testCases { + for _, startMiniHeader := range testCase.startMiniHeaders { + err = meshDB.MiniHeaders.Insert(startMiniHeader) + require.NoError(t, err) + } - miniHeaders := []*miniheader.MiniHeader{} - err = meshDB.MiniHeaders.FindAll(&miniHeaders) - require.NoError(t, err) - assert.Len(t, miniHeaders, 1) -} + miniHeadersColTxn := meshDB.MiniHeaders.OpenTransaction() + defer func() { + _ = miniHeadersColTxn.Discard() + }() -// Scenario 6: Call removed twice for the same block -func TestOrderWatcherUpdateBlockHeadersStoredInDBScenario6(t *testing.T) { - meshDB, err := meshdb.New("/tmp/leveldb_testing/" + uuid.New().String()) - require.NoError(t, err) - - headerOne := &miniheader.MiniHeader{ - Number: big.NewInt(5), - Hash: common.HexToHash("0x293b9ea024055a3e9eddbf9b9383dc7731744111894af6aa038594dc1b61f87f"), - Parent: common.HexToHash("0x26b13ac89500f7fcdd141b7d1b30f3a82178431eca325d1cf10998f9d68ff5ba"), - Timestamp: time.Now().UTC(), - } - err = meshDB.MiniHeaders.Insert(headerOne) - require.NoError(t, err) + err = updateBlockHeadersStoredInDB(miniHeadersColTxn, testCase.events) + require.NoError(t, err) - miniHeaders := []*miniheader.MiniHeader{} - err = meshDB.MiniHeaders.FindAll(&miniHeaders) - require.NoError(t, err) - assert.Len(t, miniHeaders, 1) + err = miniHeadersColTxn.Commit() + require.NoError(t, err) - miniHeadersColTxn := meshDB.MiniHeaders.OpenTransaction() - defer func() { - _ = miniHeadersColTxn.Discard() - }() + miniHeaders := []*miniheader.MiniHeader{} + err = meshDB.MiniHeaders.FindAll(&miniHeaders) + require.NoError(t, err) + assert.Equal(t, testCase.expectedMiniHeaders, miniHeaders) - headerTwo := &miniheader.MiniHeader{ - Number: big.NewInt(5), - Hash: common.HexToHash("0x293b9ea024055a3e9eddbf9b9383dc7731744111894af6aa038594dc1b61f87f"), - Parent: common.HexToHash("0x26b13ac89500f7fcdd141b7d1b30f3a82178431eca325d1cf10998f9d68ff5ba"), - Timestamp: time.Now(), - } - events := []*blockwatch.Event{ - &blockwatch.Event{ - Type: blockwatch.Removed, - BlockHeader: headerTwo, - }, - &blockwatch.Event{ - Type: blockwatch.Removed, - BlockHeader: headerTwo, - }, + err := meshDB.ClearAllMiniHeaders() + require.NoError(t, err) } - err = updateBlockHeadersStoredInDB(miniHeadersColTxn, events) - require.NoError(t, err) - - err = miniHeadersColTxn.Commit() - require.NoError(t, err) - - miniHeaders = []*miniheader.MiniHeader{} - err = meshDB.MiniHeaders.FindAll(&miniHeaders) - require.NoError(t, err) - assert.Len(t, miniHeaders, 0) } func setupOrderWatcherScenario(ctx context.Context, t *testing.T, ethClient *ethclient.Client, meshDB *meshdb.MeshDB, signedOrder *zeroex.SignedOrder) (*blockwatch.Watcher, chan []*zeroex.OrderEvent) { From b6778fcfa1f5794e5006d2492a0367daa4b5dce1 Mon Sep 17 00:00:00 2001 From: fabioberger Date: Fri, 10 Jan 2020 12:54:26 +0100 Subject: [PATCH 44/50] Add test for TestOrderWatcherHandleOrderExpirations for both expired/unexpired orders that are/are not flagged for re-validation --- zeroex/orderwatch/order_watcher_test.go | 154 ++++++++++++++++++++++++ 1 file changed, 154 insertions(+) diff --git a/zeroex/orderwatch/order_watcher_test.go b/zeroex/orderwatch/order_watcher_test.go index 2cb322c9e..a5da37d05 100644 --- a/zeroex/orderwatch/order_watcher_test.go +++ b/zeroex/orderwatch/order_watcher_test.go @@ -1182,6 +1182,160 @@ func TestOrderWatcherUpdateBlockHeadersStoredInDBHeaderExists(t *testing.T) { } } +func TestOrderWatcherHandleOrderExpirationsExpired(t *testing.T) { + if !serialTestsEnabled { + t.Skip("Serial tests (tests which cannot run in parallel) are disabled. You can enable them with the --serial flag") + } + + // Set up test and orderWatcher + teardownSubTest := setupSubTest(t) + defer teardownSubTest(t) + meshDB, err := meshdb.New("/tmp/leveldb_testing/" + uuid.New().String()) + require.NoError(t, err) + ctx, cancel := context.WithTimeout(context.Background(), 20*time.Second) + defer func() { + cancel() + }() + + // Create and add an order (which will later become expired) to OrderWatcher + expirationTime := time.Now().Add(24 * time.Hour) + signedOrderOne := scenario.CreateSignedTestOrderWithExpirationTime(t, ethClient, makerAddress, takerAddress, expirationTime) + signedOrderTwo := scenario.CreateSignedTestOrderWithExpirationTime(t, ethClient, makerAddress, takerAddress, expirationTime) + blockwatcher, orderWatcher := setupOrderWatcher(ctx, t, ethRPCClient, meshDB) + watchOrder(ctx, t, orderWatcher, blockwatcher, ethClient, signedOrderOne) + watchOrder(ctx, t, orderWatcher, blockwatcher, ethClient, signedOrderTwo) + + signedOrderOneHash, err := signedOrderOne.ComputeOrderHash() + require.NoError(t, err) + var orderOne meshdb.Order + err = meshDB.Orders.FindByID(signedOrderOneHash.Bytes(), &orderOne) + require.NoError(t, err) + // Since we flag SignedOrderOne for revalidation, we expect `handleOrderExpirations` not to return an + // expiry event for it. + ordersToRevalidate := map[common.Hash]*meshdb.Order{ + signedOrderOneHash: &orderOne, + } + + ordersColTxn := meshDB.Orders.OpenTransaction() + defer func() { + _ = ordersColTxn.Discard() + }() + + previousLatestBlockTimestamp := expirationTime.Add(-1 * time.Minute) + latestBlockTimestamp := expirationTime.Add(1 * time.Second) + orderEvents, err := orderWatcher.handleOrderExpirations(ordersColTxn, latestBlockTimestamp, previousLatestBlockTimestamp, ordersToRevalidate) + require.NoError(t, err) + + require.Len(t, orderEvents, 1) + orderEvent := orderEvents[0] + signedOrderTwoHash, err := signedOrderTwo.ComputeOrderHash() + require.NoError(t, err) + assert.Equal(t, signedOrderTwoHash, orderEvent.OrderHash) + assert.Equal(t, zeroex.ESOrderExpired, orderEvent.EndState) + assert.Equal(t, big.NewInt(0), orderEvent.FillableTakerAssetAmount) + assert.Len(t, orderEvent.ContractEvents, 0) + + err = ordersColTxn.Commit() + require.NoError(t, err) + + var orderTwo meshdb.Order + err = meshDB.Orders.FindByID(signedOrderTwoHash.Bytes(), &orderTwo) + require.NoError(t, err) + assert.Equal(t, true, orderTwo.IsRemoved) +} + +func TestOrderWatcherHandleOrderExpirationsUnexpired(t *testing.T) { + if !serialTestsEnabled { + t.Skip("Serial tests (tests which cannot run in parallel) are disabled. You can enable them with the --serial flag") + } + + // Set up test and orderWatcher + teardownSubTest := setupSubTest(t) + defer teardownSubTest(t) + meshDB, err := meshdb.New("/tmp/leveldb_testing/" + uuid.New().String()) + require.NoError(t, err) + ctx, cancel := context.WithTimeout(context.Background(), 20*time.Second) + defer func() { + cancel() + }() + + // Create and add an order (which will later become expired) to OrderWatcher + expirationTime := time.Now().Add(24 * time.Hour) + signedOrderOne := scenario.CreateSignedTestOrderWithExpirationTime(t, ethClient, makerAddress, takerAddress, expirationTime) + signedOrderTwo := scenario.CreateSignedTestOrderWithExpirationTime(t, ethClient, makerAddress, takerAddress, expirationTime) + blockwatcher, orderWatcher := setupOrderWatcher(ctx, t, ethRPCClient, meshDB) + watchOrder(ctx, t, orderWatcher, blockwatcher, ethClient, signedOrderOne) + watchOrder(ctx, t, orderWatcher, blockwatcher, ethClient, signedOrderTwo) + + orderEventsChan := make(chan []*zeroex.OrderEvent, 2*orderWatcher.maxOrders) + orderWatcher.Subscribe(orderEventsChan) + + // Simulate a block found with a timestamp past expirationTime + latestBlock, err := meshDB.FindLatestMiniHeader() + require.NoError(t, err) + blockTimestamp := expirationTime.Add(1 * time.Minute) + nextBlock := &miniheader.MiniHeader{ + Parent: latestBlock.Hash, + Hash: common.HexToHash("0x1"), + Number: big.NewInt(0).Add(latestBlock.Number, big.NewInt(1)), + Timestamp: blockTimestamp, + } + expiringBlockEvents := []*blockwatch.Event{ + &blockwatch.Event{ + Type: blockwatch.Added, + BlockHeader: nextBlock, + }, + } + orderWatcher.blockEventsChan <- expiringBlockEvents + + // Await expired event + orderEvents := waitForOrderEvents(t, orderEventsChan, 2, 4*time.Second) + require.Len(t, orderEvents, 2) + for _, orderEvent := range orderEvents { + assert.Equal(t, zeroex.ESOrderExpired, orderEvent.EndState) + } + + signedOrderOneHash, err := signedOrderOne.ComputeOrderHash() + require.NoError(t, err) + var orderOne meshdb.Order + err = meshDB.Orders.FindByID(signedOrderOneHash.Bytes(), &orderOne) + require.NoError(t, err) + // Since we flag SignedOrderOne for revalidation, we expect `handleOrderExpirations` not to return an + // unexpiry event for it. + ordersToRevalidate := map[common.Hash]*meshdb.Order{ + signedOrderOneHash: &orderOne, + } + + ordersColTxn := meshDB.Orders.OpenTransaction() + defer func() { + _ = ordersColTxn.Discard() + }() + + // LatestBlockTimestamp is earlier than previous latest simulating block-reorg where new latest block + // has an earlier timestamp than the last + previousLatestBlockTimestamp := blockTimestamp + latestBlockTimestamp := expirationTime.Add(-1 * time.Minute) + orderEvents, err = orderWatcher.handleOrderExpirations(ordersColTxn, latestBlockTimestamp, previousLatestBlockTimestamp, ordersToRevalidate) + require.NoError(t, err) + + require.Len(t, orderEvents, 1) + orderEvent := orderEvents[0] + signedOrderTwoHash, err := signedOrderTwo.ComputeOrderHash() + require.NoError(t, err) + assert.Equal(t, signedOrderTwoHash, orderEvent.OrderHash) + assert.Equal(t, zeroex.ESOrderUnexpired, orderEvent.EndState) + assert.Equal(t, signedOrderTwo.TakerAssetAmount, orderEvent.FillableTakerAssetAmount) + assert.Len(t, orderEvent.ContractEvents, 0) + + err = ordersColTxn.Commit() + require.NoError(t, err) + + var orderTwo meshdb.Order + err = meshDB.Orders.FindByID(signedOrderTwoHash.Bytes(), &orderTwo) + require.NoError(t, err) + assert.Equal(t, false, orderTwo.IsRemoved) +} + func setupOrderWatcherScenario(ctx context.Context, t *testing.T, ethClient *ethclient.Client, meshDB *meshdb.MeshDB, signedOrder *zeroex.SignedOrder) (*blockwatch.Watcher, chan []*zeroex.OrderEvent) { blockWatcher, orderWatcher := setupOrderWatcher(ctx, t, ethRPCClient, meshDB) From 712f9ce61b369d257d763417871a2d301d118ef5 Mon Sep 17 00:00:00 2001 From: fabioberger Date: Fri, 10 Jan 2020 17:02:40 +0100 Subject: [PATCH 45/50] Add test for case where order unexpires and gets filled in same block --- zeroex/orderwatch/order_watcher.go | 102 +++++++++++++++------- zeroex/orderwatch/order_watcher_test.go | 111 ++++++++++++++++++++++++ 2 files changed, 181 insertions(+), 32 deletions(-) diff --git a/zeroex/orderwatch/order_watcher.go b/zeroex/orderwatch/order_watcher.go index 0614dc428..f4969d680 100644 --- a/zeroex/orderwatch/order_watcher.go +++ b/zeroex/orderwatch/order_watcher.go @@ -1159,30 +1159,13 @@ func (w *Watcher) findOrdersByTokenAddressAndTokenID(makerAddress, tokenAddress return append(ordersWithAffectedMakerAsset, ordersWithAffectedMakerFeeAsset...), nil } -func (w *Watcher) generateOrderEventsIfChanged( - ctx context.Context, +func (w *Watcher) convertValidationResultsIntoOrderEvents( ordersColTxn *db.Transaction, + validationResults *ordervalidator.ValidationResults, orderHashToDBOrder map[common.Hash]*meshdb.Order, orderHashToEvents map[common.Hash][]*zeroex.ContractEvent, - validationBlockNumber *big.Int, validationBlockTimestamp time.Time, ) ([]*zeroex.OrderEvent, error) { - signedOrders := []*zeroex.SignedOrder{} - for _, order := range orderHashToDBOrder { - if order.IsRemoved && time.Since(order.LastUpdated) > permanentlyDeleteAfter { - if err := w.permanentlyDeleteOrder(ordersColTxn, order); err != nil { - return nil, err - } - continue - } - signedOrders = append(signedOrders, order.SignedOrder) - } - if len(signedOrders) == 0 { - return nil, nil - } - areNewOrders := false - validationResults := w.orderValidator.BatchValidate(ctx, signedOrders, areNewOrders, validationBlockNumber) - orderEvents := []*zeroex.OrderEvent{} for _, acceptedOrderInfo := range validationResults.Accepted { order, found := orderHashToDBOrder[acceptedOrderInfo.OrderHash] @@ -1213,10 +1196,11 @@ func (w *Watcher) generateOrderEventsIfChanged( } orderEvents = append(orderEvents, orderEvent) } else { - // If order was previously expired, check if it has become unexpired - if order.IsRemoved && oldFillableAmount.Cmp(big.NewInt(0)) != 0 { - expiration := time.Unix(order.SignedOrder.ExpirationTimeSeconds.Int64(), 0) - if validationBlockTimestamp.Before(expiration) { + expiration := time.Unix(order.SignedOrder.ExpirationTimeSeconds.Int64(), 0) + + if oldFillableAmount.Cmp(newFillableAmount) == 0 { + // If order was previously expired, check if it has become unexpired + if order.IsRemoved && oldFillableAmount.Cmp(big.NewInt(0)) != 0 && validationBlockTimestamp.Before(expiration) { w.rewatchOrder(ordersColTxn, order, order.FillableTakerAssetAmount) orderEvent := &zeroex.OrderEvent{ Timestamp: validationBlockTimestamp, @@ -1227,13 +1211,26 @@ func (w *Watcher) generateOrderEventsIfChanged( } orderEvents = append(orderEvents, orderEvent) } - } - if oldFillableAmount.Cmp(newFillableAmount) == 0 { // No important state-change happened - } else if oldFillableAmount.Cmp(big.NewInt(0)) == 1 && oldAmountIsMoreThenNewAmount { - // Order was filled, emit event and update order in DB - order.FillableTakerAssetAmount = newFillableAmount - w.updateOrderDBEntry(ordersColTxn, order) + continue + } + if oldFillableAmount.Cmp(big.NewInt(0)) == 1 && oldAmountIsMoreThenNewAmount { + // If order was previously expired, check if it has become unexpired + if order.IsRemoved && oldFillableAmount.Cmp(big.NewInt(0)) != 0 && validationBlockTimestamp.Before(expiration) { + w.rewatchOrder(ordersColTxn, order, newFillableAmount) + orderEvent := &zeroex.OrderEvent{ + Timestamp: validationBlockTimestamp, + OrderHash: order.Hash, + SignedOrder: order.SignedOrder, + FillableTakerAssetAmount: order.FillableTakerAssetAmount, + EndState: zeroex.ESOrderUnexpired, + } + orderEvents = append(orderEvents, orderEvent) + } else { + order.FillableTakerAssetAmount = newFillableAmount + w.updateOrderDBEntry(ordersColTxn, order) + } + // Order was filled, emit event orderEvent := &zeroex.OrderEvent{ Timestamp: validationBlockTimestamp, OrderHash: acceptedOrderInfo.OrderHash, @@ -1245,9 +1242,21 @@ func (w *Watcher) generateOrderEventsIfChanged( orderEvents = append(orderEvents, orderEvent) } else if oldFillableAmount.Cmp(big.NewInt(0)) == 1 && !oldAmountIsMoreThenNewAmount { // The order is now fillable for more then it was before. E.g.: A fill txn reverted (block-reorg) - // Update order in DB and emit event - order.FillableTakerAssetAmount = newFillableAmount - w.updateOrderDBEntry(ordersColTxn, order) + // If order was previously expired, check if it has become unexpired + if order.IsRemoved && oldFillableAmount.Cmp(big.NewInt(0)) != 0 && validationBlockTimestamp.Before(expiration) { + w.rewatchOrder(ordersColTxn, order, newFillableAmount) + orderEvent := &zeroex.OrderEvent{ + Timestamp: validationBlockTimestamp, + OrderHash: order.Hash, + SignedOrder: order.SignedOrder, + FillableTakerAssetAmount: order.FillableTakerAssetAmount, + EndState: zeroex.ESOrderUnexpired, + } + orderEvents = append(orderEvents, orderEvent) + } else { + order.FillableTakerAssetAmount = newFillableAmount + w.updateOrderDBEntry(ordersColTxn, order) + } orderEvent := &zeroex.OrderEvent{ Timestamp: validationBlockTimestamp, OrderHash: acceptedOrderInfo.OrderHash, @@ -1306,6 +1315,35 @@ func (w *Watcher) generateOrderEventsIfChanged( return orderEvents, nil } +func (w *Watcher) generateOrderEventsIfChanged( + ctx context.Context, + ordersColTxn *db.Transaction, + orderHashToDBOrder map[common.Hash]*meshdb.Order, + orderHashToEvents map[common.Hash][]*zeroex.ContractEvent, + validationBlockNumber *big.Int, + validationBlockTimestamp time.Time, +) ([]*zeroex.OrderEvent, error) { + signedOrders := []*zeroex.SignedOrder{} + for _, order := range orderHashToDBOrder { + if order.IsRemoved && time.Since(order.LastUpdated) > permanentlyDeleteAfter { + if err := w.permanentlyDeleteOrder(ordersColTxn, order); err != nil { + return nil, err + } + continue + } + signedOrders = append(signedOrders, order.SignedOrder) + } + if len(signedOrders) == 0 { + return nil, nil + } + areNewOrders := false + validationResults := w.orderValidator.BatchValidate(ctx, signedOrders, areNewOrders, validationBlockNumber) + + return w.convertValidationResultsIntoOrderEvents( + ordersColTxn, validationResults, orderHashToDBOrder, orderHashToEvents, validationBlockTimestamp, + ) +} + // ValidateAndStoreValidOrders applies general 0x validation and Mesh-specific validation to // the given orders and if they are valid, adds them to the OrderWatcher func (w *Watcher) ValidateAndStoreValidOrders(ctx context.Context, orders []*zeroex.SignedOrder, pinned bool, chainID int) (*ordervalidator.ValidationResults, error) { diff --git a/zeroex/orderwatch/order_watcher_test.go b/zeroex/orderwatch/order_watcher_test.go index a5da37d05..1e2aec782 100644 --- a/zeroex/orderwatch/order_watcher_test.go +++ b/zeroex/orderwatch/order_watcher_test.go @@ -1336,6 +1336,117 @@ func TestOrderWatcherHandleOrderExpirationsUnexpired(t *testing.T) { assert.Equal(t, false, orderTwo.IsRemoved) } +// Scenario: Order has become unexpired and filled in the same block events processed. We test this case using +// `convertValidationResultsIntoOrderEvents` since we cannot properly time-travel using Ganache. +// Source: https://github.com/trufflesuite/ganache-cli/issues/708 +func TestConvertValidationResultsIntoOrderEventsUnexpired(t *testing.T) { + if !serialTestsEnabled { + t.Skip("Serial tests (tests which cannot run in parallel) are disabled. You can enable them with the --serial flag") + } + + // Set up test and orderWatcher + teardownSubTest := setupSubTest(t) + defer teardownSubTest(t) + meshDB, err := meshdb.New("/tmp/leveldb_testing/" + uuid.New().String()) + require.NoError(t, err) + ctx, cancel := context.WithTimeout(context.Background(), 20*time.Second) + defer func() { + cancel() + }() + + // Create and add an order (which will later become expired) to OrderWatcher + expirationTime := time.Now().Add(24 * time.Hour) + signedOrderOne := scenario.CreateSignedTestOrderWithExpirationTime(t, ethClient, makerAddress, takerAddress, expirationTime) + blockwatcher, orderWatcher := setupOrderWatcher(ctx, t, ethRPCClient, meshDB) + watchOrder(ctx, t, orderWatcher, blockwatcher, ethClient, signedOrderOne) + + orderEventsChan := make(chan []*zeroex.OrderEvent, 2*orderWatcher.maxOrders) + orderWatcher.Subscribe(orderEventsChan) + + // Simulate a block found with a timestamp past expirationTime. This will mark the order as removed + // and will remove it from the expiration watcher. + latestBlock, err := meshDB.FindLatestMiniHeader() + require.NoError(t, err) + blockTimestamp := expirationTime.Add(1 * time.Minute) + nextBlock := &miniheader.MiniHeader{ + Parent: latestBlock.Hash, + Hash: common.HexToHash("0x1"), + Number: big.NewInt(0).Add(latestBlock.Number, big.NewInt(1)), + Timestamp: blockTimestamp, + } + expiringBlockEvents := []*blockwatch.Event{ + &blockwatch.Event{ + Type: blockwatch.Added, + BlockHeader: nextBlock, + }, + } + orderWatcher.blockEventsChan <- expiringBlockEvents + + // Await expired event + orderEvents := waitForOrderEvents(t, orderEventsChan, 1, 4*time.Second) + assert.Equal(t, zeroex.ESOrderExpired, orderEvents[0].EndState) + + signedOrderOneHash, err := signedOrderOne.ComputeOrderHash() + require.NoError(t, err) + var orderOne meshdb.Order + err = meshDB.Orders.FindByID(signedOrderOneHash.Bytes(), &orderOne) + require.NoError(t, err) + + ordersColTxn := meshDB.Orders.OpenTransaction() + defer func() { + _ = ordersColTxn.Discard() + }() + + validationResults := ordervalidator.ValidationResults{ + Accepted: []*ordervalidator.AcceptedOrderInfo{ + &ordervalidator.AcceptedOrderInfo{ + OrderHash: signedOrderOneHash, + SignedOrder: signedOrderOne, + FillableTakerAssetAmount: big.NewInt(1).Div(signedOrderOne.TakerAssetAmount, big.NewInt(2)), + IsNew: false, + }, + }, + Rejected: []*ordervalidator.RejectedOrderInfo{}, + } + orderHashToDBOrder := map[common.Hash]*meshdb.Order{ + signedOrderOneHash: &orderOne, + } + exchangeFillEvent := "ExchangeFillEvent" + orderHashToEvents := map[common.Hash][]*zeroex.ContractEvent{ + signedOrderOneHash: []*zeroex.ContractEvent{ + &zeroex.ContractEvent{ + Kind: exchangeFillEvent, + }, + }, + } + validationBlockTimestamp := expirationTime.Add(-1 * time.Minute) + orderEvents, err = orderWatcher.convertValidationResultsIntoOrderEvents(ordersColTxn, &validationResults, orderHashToDBOrder, orderHashToEvents, validationBlockTimestamp) + require.NoError(t, err) + + require.Len(t, orderEvents, 2) + orderEventTwo := orderEvents[0] + assert.Equal(t, signedOrderOneHash, orderEventTwo.OrderHash) + assert.Equal(t, zeroex.ESOrderUnexpired, orderEventTwo.EndState) + assert.Len(t, orderEventTwo.ContractEvents, 0) + orderEventOne := orderEvents[1] + assert.Equal(t, signedOrderOneHash, orderEventOne.OrderHash) + assert.Equal(t, zeroex.ESOrderFilled, orderEventOne.EndState) + assert.Len(t, orderEventOne.ContractEvents, 1) + assert.Equal(t, orderEventOne.ContractEvents[0].Kind, exchangeFillEvent) + + err = ordersColTxn.Commit() + require.NoError(t, err) + + var orderTwo meshdb.Order + err = meshDB.Orders.FindByID(signedOrderOneHash.Bytes(), &orderTwo) + require.NoError(t, err) + assert.Equal(t, false, orderTwo.IsRemoved) +} + +// TODO(fabio): Test once order expires/unexpires in validation step!!! +// - Expires and fills +// - Unexpires and fills + func setupOrderWatcherScenario(ctx context.Context, t *testing.T, ethClient *ethclient.Client, meshDB *meshdb.MeshDB, signedOrder *zeroex.SignedOrder) (*blockwatch.Watcher, chan []*zeroex.OrderEvent) { blockWatcher, orderWatcher := setupOrderWatcher(ctx, t, ethRPCClient, meshDB) From bd432cd293393aae9bd5e698f5de5178392de52f Mon Sep 17 00:00:00 2001 From: fabioberger Date: Fri, 10 Jan 2020 17:04:40 +0100 Subject: [PATCH 46/50] Remove outdated TODO --- zeroex/orderwatch/order_watcher_test.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/zeroex/orderwatch/order_watcher_test.go b/zeroex/orderwatch/order_watcher_test.go index 1e2aec782..6e87a8a75 100644 --- a/zeroex/orderwatch/order_watcher_test.go +++ b/zeroex/orderwatch/order_watcher_test.go @@ -1443,10 +1443,6 @@ func TestConvertValidationResultsIntoOrderEventsUnexpired(t *testing.T) { assert.Equal(t, false, orderTwo.IsRemoved) } -// TODO(fabio): Test once order expires/unexpires in validation step!!! -// - Expires and fills -// - Unexpires and fills - func setupOrderWatcherScenario(ctx context.Context, t *testing.T, ethClient *ethclient.Client, meshDB *meshdb.MeshDB, signedOrder *zeroex.SignedOrder) (*blockwatch.Watcher, chan []*zeroex.OrderEvent) { blockWatcher, orderWatcher := setupOrderWatcher(ctx, t, ethRPCClient, meshDB) From 12e568dddadb83b84164483ad826f3b169e8c8e1 Mon Sep 17 00:00:00 2001 From: Alex Browne Date: Fri, 10 Jan 2020 13:27:14 -0800 Subject: [PATCH 47/50] Fix browser example --- browser/package.json | 58 ++++----- browser/yarn.lock | 19 +++ examples/browser/src/index.ts | 3 + examples/browser/yarn.lock | 214 +++++++++++++++------------------- 4 files changed, 146 insertions(+), 148 deletions(-) diff --git a/browser/package.json b/browser/package.json index c8a06a2e7..ce29f7fa7 100644 --- a/browser/package.json +++ b/browser/package.json @@ -1,31 +1,31 @@ { - "name": "@0x/mesh-browser", - "version": "3.0.1-beta", - "description": "TypeScript and JavaScript bindings for running Mesh directly in the browser.", - "main": "./lib/index.js", - "license": "Apache-2.0", - "scripts": { - "build": "yarn build:go && yarn build:generate && yarn build:ts", - "build:ts": "node --max_old_space_size=4096 ./node_modules/.bin/tsc -b", - "build:generate": "go run ./scripts/generate_wasm_buffer.go", - "build:go": "GOOS=js GOARCH=wasm go build -o ./wasm/main.wasm ./go/main.go", - "docs:md": "ts-doc-gen --sourceDir=./ts --output=${npm_package_config_docsPath}", - "lint": "tslint --format stylish --project ." - }, - "config": { - "docsPath": "../docs/browser" - }, - "devDependencies": { - "@0x/ts-doc-gen": "^0.0.16", - "@0x/tslint-config": "^4.0.0", - "@types/base64-arraybuffer": "^0.1.0", - "tslint": "5.11.0", - "typescript": "^3.5.3" - }, - "dependencies": { - "@0x/order-utils": "^10.0.1", - "@0x/utils": "^5.1.1", - "base64-arraybuffer": "^0.2.0", - "browserfs": "^1.4.3" - } + "name": "@0x/mesh-browser", + "version": "1.0.0", + "description": "TypeScript and JavaScript bindings for running Mesh directly in the browser.", + "main": "./lib/index.js", + "license": "Apache-2.0", + "scripts": { + "build": "yarn build:go && yarn build:generate && yarn build:ts", + "build:ts": "node --max_old_space_size=4096 ./node_modules/.bin/tsc -b", + "build:generate": "go run ./scripts/generate_wasm_buffer.go", + "build:go": "GOOS=js GOARCH=wasm go build -o ./wasm/main.wasm ./go/main.go", + "docs:md": "ts-doc-gen --sourceDir=./ts --output=${npm_package_config_docsPath}", + "lint": "tslint --format stylish --project ." + }, + "config": { + "docsPath": "../docs/browser" + }, + "devDependencies": { + "@0x/ts-doc-gen": "^0.0.16", + "@0x/tslint-config": "^4.0.0", + "@types/base64-arraybuffer": "^0.1.0", + "tslint": "5.11.0", + "typescript": "^3.5.3" + }, + "dependencies": { + "@0x/order-utils": "^10.0.1", + "@0x/utils": "^5.1.2", + "base64-arraybuffer": "^0.2.0", + "browserfs": "^1.4.3" + } } diff --git a/browser/yarn.lock b/browser/yarn.lock index 4a2ed389a..39fe12a74 100644 --- a/browser/yarn.lock +++ b/browser/yarn.lock @@ -179,6 +179,25 @@ js-sha3 "^0.7.0" lodash "^4.17.11" +"@0x/utils@^5.1.2": + version "5.1.2" + resolved "https://registry.yarnpkg.com/@0x/utils/-/utils-5.1.2.tgz#defc545a42343729c9bf7252f0b7413d7ba47694" + integrity sha512-p5BZxs3krXwkjBY8hrmGLkLp4BziVQ6z4tRFIcWSR8C4ptAlZ4QfFL1zqK6O6/rbOsGj+JSIpqRRrxJr2Is6LQ== + dependencies: + "@0x/types" "^3.1.1" + "@0x/typescript-typings" "^5.0.1" + "@types/node" "*" + abortcontroller-polyfill "^1.1.9" + bignumber.js "~9.0.0" + chalk "^2.3.0" + detect-node "2.0.3" + ethereum-types "^3.0.0" + ethereumjs-util "^5.1.1" + ethers "~4.0.4" + isomorphic-fetch "2.2.1" + js-sha3 "^0.7.0" + lodash "^4.17.11" + "@0x/web3-wrapper@^7.0.2": version "7.0.2" resolved "https://registry.yarnpkg.com/@0x/web3-wrapper/-/web3-wrapper-7.0.2.tgz#afdd12a3c2518207d56372397ae91e4a90634f46" diff --git a/examples/browser/src/index.ts b/examples/browser/src/index.ts index 398e4a613..bb8576205 100644 --- a/examples/browser/src/index.ts +++ b/examples/browser/src/index.ts @@ -26,14 +26,17 @@ import { Mesh, OrderEvent, SignedOrder, BigNumber } from '@0x/mesh-browser'; // This order is for demonstration purposes only and is invalid. It will be // rejected by Mesh. You can replace it with a valid order. const order: SignedOrder = { + chainId: 1, makerAddress: '0xa3eCE5D5B6319Fa785EfC10D3112769a46C6E149', makerAssetData: '0xf47261b0000000000000000000000000e41d2489571d322189246dafa5ebde1f4699f498', makerAssetAmount: new BigNumber('1000000000000000000'), makerFee: new BigNumber('0'), + makerFeeAssetData: '0x', takerAddress: '0x0000000000000000000000000000000000000000', takerAssetData: '0xf47261b0000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2', takerAssetAmount: new BigNumber('10000000000000000000000'), takerFee: new BigNumber('0'), + takerFeeAssetData: '0x', senderAddress: '0x0000000000000000000000000000000000000000', exchangeAddress: '0x080bf510FCbF18b91105470639e9561022937712', feeRecipientAddress: '0x0000000000000000000000000000000000000000', diff --git a/examples/browser/yarn.lock b/examples/browser/yarn.lock index 2dc6a20db..0fa29c830 100644 --- a/examples/browser/yarn.lock +++ b/examples/browser/yarn.lock @@ -2,148 +2,137 @@ # yarn lockfile v1 -"@0x/abi-gen-wrappers@^5.4.0-beta.0": - version "5.4.0-beta.0" - resolved "https://registry.yarnpkg.com/@0x/abi-gen-wrappers/-/abi-gen-wrappers-5.4.0-beta.0.tgz#ef9d15a676fa8ac8987bb27a023bfec2cb300320" - integrity sha512-83rxJeuM18z5iOGQmhgkqGvQ8vGuEjyJCN9YrcsJhiKh1oZANl+oEIdXqCJ/h68EnNJvgc47R1/eIlC29HD0gw== - dependencies: - "@0x/base-contract" "^5.5.0-beta.0" - "@0x/contract-addresses" "^3.3.0-beta.0" - "@0x/contract-artifacts" "^2.3.0-beta.0" - -"@0x/assert@^2.2.0-beta.0": - version "2.2.0-beta.0" - resolved "https://registry.yarnpkg.com/@0x/assert/-/assert-2.2.0-beta.0.tgz#24511c6df7c1a317677224742a87c391b0129695" - integrity sha512-7L59naUDV4t+xl7xpKIvnMwkltPC0h/h9bMDlyhzSaW35lL+yCR3Q/bReROI2r2lOGb+LDtBp4H6TR8PLTmmoQ== - dependencies: - "@0x/json-schemas" "^4.1.0-beta.0" - "@0x/typescript-typings" "^4.4.0-beta.0" - "@0x/utils" "^4.6.0-beta.0" +"@0x/assert@^3.0.3": + version "3.0.3" + resolved "https://registry.yarnpkg.com/@0x/assert/-/assert-3.0.3.tgz#18f92aa4e5d87824259b3ddd1cc1882b59f29e8e" + integrity sha512-Yvu701gtykj44ggWe66E2sje4v9odBrO9uAoPwEj3EfN7Kk/AXJEthyWSZVGXQvj7MaFlAElq1Uw8VfzF/gtqA== + dependencies: + "@0x/json-schemas" "^5.0.3" + "@0x/typescript-typings" "^5.0.1" + "@0x/utils" "^5.1.2" lodash "^4.17.11" valid-url "^1.0.9" -"@0x/base-contract@^5.5.0-beta.0": - version "5.5.0-beta.0" - resolved "https://registry.yarnpkg.com/@0x/base-contract/-/base-contract-5.5.0-beta.0.tgz#63ed18ba25bd1cb1214fc976369e4609405f50d7" - integrity sha512-QO3MeL9eu5E2apilZ42FyW3jIPApsm8zmaoh+F4E/y8h/Cy9X0Hc+Eid0kv9zXtBZrrdaPIjIbsEX9QwuaZGAA== - dependencies: - "@0x/assert" "^2.2.0-beta.0" - "@0x/json-schemas" "^4.1.0-beta.0" - "@0x/types" "^2.5.0-beta.0" - "@0x/typescript-typings" "^4.4.0-beta.0" - "@0x/utils" "^4.6.0-beta.0" - "@0x/web3-wrapper" "^6.1.0-beta.0" - ethereum-types "^2.2.0-beta.0" +"@0x/base-contract@^6.0.3": + version "6.0.3" + resolved "https://registry.yarnpkg.com/@0x/base-contract/-/base-contract-6.0.3.tgz#47bff672b0f9f7190bd96feb3303a1d5a29ec64c" + integrity sha512-rDqvd0qi53V0NfD505dg82uF1EWeZyxGvsJUHYBrT4psAYYGa9ULWnLTmeyQnP2iRz0Exqh+eczSQ86POObkrA== + dependencies: + "@0x/assert" "^3.0.3" + "@0x/json-schemas" "^5.0.3" + "@0x/utils" "^5.1.2" + "@0x/web3-wrapper" "^7.0.3" ethereumjs-account "^3.0.0" ethereumjs-blockstream "^7.0.0" ethereumjs-util "^5.1.1" ethereumjs-vm "^4.0.0" ethers "~4.0.4" js-sha3 "^0.7.0" - lodash "^4.17.11" uuid "^3.3.2" -"@0x/contract-addresses@^3.3.0-beta.0": - version "3.3.0-beta.0" - resolved "https://registry.yarnpkg.com/@0x/contract-addresses/-/contract-addresses-3.3.0-beta.0.tgz#83393b90224a9d9cc220a31ce88ce4e4a8360ff6" - integrity sha512-OVQoOMiAT3ueLNzx/AQnnRWHEck5GbAXKQPp8HDgj6SclzXLYBO3jqH9vxe34ohxZY7z3gWLkNlx6FN+0uAu7g== +"@0x/contract-addresses@^4.2.0": + version "4.2.0" + resolved "https://registry.yarnpkg.com/@0x/contract-addresses/-/contract-addresses-4.2.0.tgz#d6838b6b7fa087bb3eab040080a81453934725be" + integrity sha512-l1FbVk9ARQBXt/Kyvp6KWlEh2LzWKPTGgpRvaIFA6sSSyE1FbNkoqB7e9FTwnkBTd9wVIH5HbbbxQ4q8M/nOJw== dependencies: lodash "^4.17.11" -"@0x/contract-artifacts@^2.3.0-beta.0": - version "2.3.0-beta.0" - resolved "https://registry.yarnpkg.com/@0x/contract-artifacts/-/contract-artifacts-2.3.0-beta.0.tgz#4b6af1832b0ad0e74928d17057e89b64a26096b4" - integrity sha512-j2hjxn8k2IvaNQluKrmdK0skr4E9Upmpgsq+ThXj4A4JCrBwyIeV8NBHMnxxxXstDXUf3mpkbyCVhIcN2zyayQ== +"@0x/contract-wrappers@^13.3.0": + version "13.3.0" + resolved "https://registry.yarnpkg.com/@0x/contract-wrappers/-/contract-wrappers-13.3.0.tgz#01c09cf4e01b023fd2fbb1ab33c0c17911683076" + integrity sha512-PmP6faujn5hHJt+CPFFiXcDntaAVshpvI5cRWIQSWxridOBT9gJEUbzMlUno7raIKCwZpbsgkQKdBOkFtVBHYA== + dependencies: + "@0x/assert" "^3.0.3" + "@0x/base-contract" "^6.0.3" + "@0x/contract-addresses" "^4.2.0" + "@0x/json-schemas" "^5.0.3" + "@0x/types" "^3.1.1" + "@0x/utils" "^5.1.2" + "@0x/web3-wrapper" "^7.0.3" + ethereum-types "^3.0.0" + ethers "~4.0.4" -"@0x/json-schemas@^4.1.0-beta.0": - version "4.1.0-beta.0" - resolved "https://registry.yarnpkg.com/@0x/json-schemas/-/json-schemas-4.1.0-beta.0.tgz#8195cd273b6f2d57c24940840721ff695291f636" - integrity sha512-wvbURBLkRykrPzQ6yoOn0+l1w6GcnuWr96NXXzkh7MrdQDDQk8VXMQFovPa27xIgUXgYZdA5OuuU++yaI7jSaw== +"@0x/json-schemas@^5.0.3": + version "5.0.3" + resolved "https://registry.yarnpkg.com/@0x/json-schemas/-/json-schemas-5.0.3.tgz#8804d20eb13f2551146c399b83cb5e1597205bee" + integrity sha512-B8mAyEb2bPrWHdaIpQjODGRmiH+gCAxadppWibpa36fkHF+4c9FNJCFqRE98Eg5w/IYTOj7JkrsRnkA3Ux1ltQ== dependencies: - "@0x/typescript-typings" "^4.4.0-beta.0" + "@0x/typescript-typings" "^5.0.1" "@types/node" "*" jsonschema "^1.2.0" lodash.values "^4.3.0" "@0x/mesh-browser@./../../browser/": - version "3.0.1-beta" + version "1.0.0" dependencies: - "@0x/order-utils" "8.5.0-beta.0" - "@0x/utils" "4.6.0-beta.0" + "@0x/order-utils" "^10.0.1" + "@0x/utils" "^5.1.2" base64-arraybuffer "^0.2.0" browserfs "^1.4.3" -"@0x/order-utils@8.5.0-beta.0": - version "8.5.0-beta.0" - resolved "https://registry.yarnpkg.com/@0x/order-utils/-/order-utils-8.5.0-beta.0.tgz#75a43858ca18778bdeb056e99355c86688b99638" - integrity sha512-lUFz+oVN3k8TnDqxYcrHTihDrhfiVQpbO6iVAw0u5r1qdgU1+tTeq2AcIiOQmL+kx1QrqLjupSP4WG1iHEmchw== - dependencies: - "@0x/abi-gen-wrappers" "^5.4.0-beta.0" - "@0x/assert" "^2.2.0-beta.0" - "@0x/contract-addresses" "^3.3.0-beta.0" - "@0x/contract-artifacts" "^2.3.0-beta.0" - "@0x/json-schemas" "^4.1.0-beta.0" - "@0x/types" "^2.5.0-beta.0" - "@0x/typescript-typings" "^4.4.0-beta.0" - "@0x/utils" "^4.6.0-beta.0" - "@0x/web3-wrapper" "^6.1.0-beta.0" - "@types/node" "*" - bn.js "^4.11.8" - ethereum-types "^2.2.0-beta.0" - ethereumjs-abi "0.6.5" +"@0x/order-utils@^10.0.1": + version "10.1.0" + resolved "https://registry.yarnpkg.com/@0x/order-utils/-/order-utils-10.1.0.tgz#97c813e02781d4b10d98deb9bd529668ada572df" + integrity sha512-45sc0Z0rbo5fdO8x1ypXznYaKB1H1iI7d2/E2NiX3wOFtZBlnoW9J562gZ7RNcnwAC8odWWS976SISrp9PPvNw== + dependencies: + "@0x/assert" "^3.0.3" + "@0x/contract-wrappers" "^13.3.0" + "@0x/json-schemas" "^5.0.3" + "@0x/utils" "^5.1.2" + "@0x/web3-wrapper" "^7.0.3" ethereumjs-util "^5.1.1" ethers "~4.0.4" lodash "^4.17.11" -"@0x/types@^2.5.0-beta.0": - version "2.5.0-beta.0" - resolved "https://registry.yarnpkg.com/@0x/types/-/types-2.5.0-beta.0.tgz#4169980f1c072d90fb0073bff3a0cab705ed495a" - integrity sha512-Q4KkDriY+slfm81msGYGhMiBZm02lvK0kDtv6njzE8lYBE1yOmtHCFxRuGSdymCE980xJTIWZlnHm8wPPee0lQ== +"@0x/types@^3.1.1": + version "3.1.1" + resolved "https://registry.yarnpkg.com/@0x/types/-/types-3.1.1.tgz#b20ca76e9516201b9c27621f941696f41ffc9fac" + integrity sha512-+TQmzH+chWeDWpc+Lce3/q4X2UEHFfAwZcWrV7tEQ5EVAJvph7gpKawRW2XRsmHeQDSHBmiiBdSZ8Rc/OAjvlQ== dependencies: "@types/node" "*" - bignumber.js "~8.0.2" - ethereum-types "^2.2.0-beta.0" + bignumber.js "~9.0.0" + ethereum-types "^3.0.0" -"@0x/typescript-typings@^4.4.0-beta.0": - version "4.4.0-beta.0" - resolved "https://registry.yarnpkg.com/@0x/typescript-typings/-/typescript-typings-4.4.0-beta.0.tgz#36a4ffb8eb0514d74e1b460982d6621247e481c1" - integrity sha512-PArnCkiIao5ETZye/OFIZ25CafJirvutnyoTXoqKEs44iGt65lBXx2JRLP6iVgeNQCLKWqhgIfFuRgulqikBGA== +"@0x/typescript-typings@^5.0.1": + version "5.0.1" + resolved "https://registry.yarnpkg.com/@0x/typescript-typings/-/typescript-typings-5.0.1.tgz#031e291cc506ecd26d3fe10adf618f4f51ff1510" + integrity sha512-zSA39URHkFnL16WD30VMa8wL8va0Khpx9APHffdPWpBOr9SUPdADtae5HO4iNCYvSgo3mrtPlKID2nIqREIHOQ== dependencies: "@types/bn.js" "^4.11.0" "@types/react" "*" - bignumber.js "~8.0.2" - ethereum-types "^2.2.0-beta.0" + bignumber.js "~9.0.0" + ethereum-types "^3.0.0" popper.js "1.14.3" -"@0x/utils@4.6.0-beta.0", "@0x/utils@^4.6.0-beta.0": - version "4.6.0-beta.0" - resolved "https://registry.yarnpkg.com/@0x/utils/-/utils-4.6.0-beta.0.tgz#a1141dc9fcd00dcc2b2dbe0456552a42936a90da" - integrity sha512-UldJHK7iLlxjlPhT0qTNgv2IeQTXte2P5SeQyi8GEwMrbM9Shw3LY7Jfn0o5DB+Rh0tvNumXKXyRcE9f8GtayQ== +"@0x/utils@^5.1.2": + version "5.1.2" + resolved "https://registry.yarnpkg.com/@0x/utils/-/utils-5.1.2.tgz#defc545a42343729c9bf7252f0b7413d7ba47694" + integrity sha512-p5BZxs3krXwkjBY8hrmGLkLp4BziVQ6z4tRFIcWSR8C4ptAlZ4QfFL1zqK6O6/rbOsGj+JSIpqRRrxJr2Is6LQ== dependencies: - "@0x/types" "^2.5.0-beta.0" - "@0x/typescript-typings" "^4.4.0-beta.0" + "@0x/types" "^3.1.1" + "@0x/typescript-typings" "^5.0.1" "@types/node" "*" abortcontroller-polyfill "^1.1.9" - bignumber.js "~8.0.2" + bignumber.js "~9.0.0" chalk "^2.3.0" detect-node "2.0.3" - ethereum-types "^2.2.0-beta.0" + ethereum-types "^3.0.0" ethereumjs-util "^5.1.1" ethers "~4.0.4" isomorphic-fetch "2.2.1" js-sha3 "^0.7.0" lodash "^4.17.11" -"@0x/web3-wrapper@^6.1.0-beta.0": - version "6.1.0-beta.0" - resolved "https://registry.yarnpkg.com/@0x/web3-wrapper/-/web3-wrapper-6.1.0-beta.0.tgz#7589afae1a2f487d16bb6faea13d50b61920730f" - integrity sha512-tLhbxbxcWN4d37Ri2/Uj34LubWticQHdhEFLp47ZH3dt3asXe7QVN7wbkGjyQHRc0FKqxOYYlIGLCSRctkEymQ== - dependencies: - "@0x/assert" "^2.2.0-beta.0" - "@0x/json-schemas" "^4.1.0-beta.0" - "@0x/typescript-typings" "^4.4.0-beta.0" - "@0x/utils" "^4.6.0-beta.0" - ethereum-types "^2.2.0-beta.0" +"@0x/web3-wrapper@^7.0.3": + version "7.0.3" + resolved "https://registry.yarnpkg.com/@0x/web3-wrapper/-/web3-wrapper-7.0.3.tgz#b6015a820909b36e00115047ca1c0c693d56fff8" + integrity sha512-ocUhIz04KORg1Hu3j+w/pKgJ3VF6WiFhwN0VbZkMBggK2eIAYsb3VncLY5hl9g63bTxSk0l3GI5WFgGuxMMn6Q== + dependencies: + "@0x/assert" "^3.0.3" + "@0x/json-schemas" "^5.0.3" + "@0x/typescript-typings" "^5.0.1" + "@0x/utils" "^5.1.2" + ethereum-types "^3.0.0" ethereumjs-util "^5.1.1" ethers "~4.0.4" lodash "^4.17.11" @@ -438,12 +427,6 @@ async-each@^1.0.1: version "1.0.3" resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.3.tgz#b727dbf87d7651602f06f4d4ac387f47d91b0cbf" -async@^2.1.4: - version "2.6.3" - resolved "https://registry.yarnpkg.com/async/-/async-2.6.3.tgz#d72625e2344a3656e3a3ad4fa749fa83299d82ff" - dependencies: - lodash "^4.17.14" - async-eventemitter@^0.2.2: version "0.2.4" resolved "https://registry.yarnpkg.com/async-eventemitter/-/async-eventemitter-0.2.4.tgz#f5e7c8ca7d3e46aab9ec40a292baf686a0bafaca" @@ -456,10 +439,9 @@ async@^1.4.2: resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a" integrity sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo= -async@^2.0.1, async@^2.1.2, async@^2.4.0, async@^2.6.1: +async@^2.0.1, async@^2.1.2, async@^2.1.4, async@^2.4.0, async@^2.6.1: version "2.6.3" resolved "https://registry.yarnpkg.com/async/-/async-2.6.3.tgz#d72625e2344a3656e3a3ad4fa749fa83299d82ff" - integrity sha512-zflvls11DCy+dQWzTW2dzuilv8Z5X/pjfmZOWba6TNIVDm+2UDaJmXSOXlasHKfNBs8oo3M0aT50fDEWfKZjXg== dependencies: lodash "^4.17.14" @@ -495,9 +477,10 @@ big.js@^5.2.2: version "5.2.2" resolved "https://registry.yarnpkg.com/big.js/-/big.js-5.2.2.tgz#65f0af382f578bcdc742bd9c281e9cb2d7768328" -bignumber.js@~8.0.2: - version "8.0.2" - resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-8.0.2.tgz#d8c4e1874359573b1ef03011a2d861214aeef137" +bignumber.js@~9.0.0: + version "9.0.0" + resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-9.0.0.tgz#805880f84a329b5eac6e7cb6f8274b6d82bdf075" + integrity sha512-t/OYhhJ2SD+YGBQcjY8GzzDHEk9f3nerxjtfa6tlMXfe7frs/WozhvCNoGvpM0P3bNf3Gq5ZRMlGr5f3r4/N8A== binary-extensions@^1.0.0: version "1.13.1" @@ -519,7 +502,7 @@ bluebird@^3.5.5: version "3.5.5" resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.5.tgz#a8d0afd73251effbbd5fe384a77d73003c17a71f" -bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.1.1, bn.js@^4.10.0, bn.js@^4.11.0, bn.js@^4.11.1, bn.js@^4.11.8, bn.js@^4.4.0, bn.js@^4.8.0: +bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.1.1, bn.js@^4.11.0, bn.js@^4.11.1, bn.js@^4.11.8, bn.js@^4.4.0, bn.js@^4.8.0: version "4.11.8" resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.8.tgz#2cde09eb5ee341f484746bb0309b3253b1b1442f" @@ -1141,20 +1124,13 @@ ethereum-common@^0.0.18: resolved "https://registry.yarnpkg.com/ethereum-common/-/ethereum-common-0.0.18.tgz#2fdc3576f232903358976eb39da783213ff9523f" integrity sha1-L9w1dvIykDNYl26znaeDIT/5Uj8= -ethereum-types@^2.2.0-beta.0: - version "2.2.0-beta.0" - resolved "https://registry.yarnpkg.com/ethereum-types/-/ethereum-types-2.2.0-beta.0.tgz#64b5c344cebb8e45eaa29718ed9adc06ea18884e" - integrity sha512-faQ9fhh8K4fSR7TYy/7QcaGfPsLtnmObpnl7tdUIc6wqQaXHRis/k2RH2k52N8qR5dzRQ6bwu2GypPQ319Dgdw== +ethereum-types@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/ethereum-types/-/ethereum-types-3.0.0.tgz#9fa3a98b8b9b64a0fab1864de7bc7fd7b1699fcd" + integrity sha512-jRSsiua+e4/89r7M3mqPcP1M2f3TgXxpVmWysy+7pEg2H4lwEQRWarbYfIpWp81NtxrcMQv5bMK+yR1MN4sDpg== dependencies: "@types/node" "*" - bignumber.js "~8.0.2" - -ethereumjs-abi@0.6.5: - version "0.6.5" - resolved "https://registry.yarnpkg.com/ethereumjs-abi/-/ethereumjs-abi-0.6.5.tgz#5a637ef16ab43473fa72a29ad90871405b3f5241" - dependencies: - bn.js "^4.10.0" - ethereumjs-util "^4.3.0" + bignumber.js "~9.0.0" ethereumjs-account@^3.0.0: version "3.0.0" @@ -1221,7 +1197,7 @@ ethereumjs-tx@^2.1.1: ethereumjs-common "^1.3.1" ethereumjs-util "^6.0.0" -ethereumjs-util@^4.0.1, ethereumjs-util@^4.3.0: +ethereumjs-util@^4.0.1: version "4.5.0" resolved "https://registry.yarnpkg.com/ethereumjs-util/-/ethereumjs-util-4.5.0.tgz#3e9428b317eebda3d7260d854fddda954b1f1bc6" dependencies: From ddec657305fa05ae773f1e5e90af42c0344900d7 Mon Sep 17 00:00:00 2001 From: Alex Browne Date: Fri, 10 Jan 2020 13:32:55 -0800 Subject: [PATCH 48/50] Build browser example in CI --- .circleci/config.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index a918a34b6..2ef984219 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -37,6 +37,12 @@ jobs: - run: name: Run linters command: make lint + - run: + name: Build browser package + command: cd browser && yarn install && yarn build + - run: + name: Build examples/browser + command: cd examples/browser && yarn install --force && yarn build - run: name: Run Go tests command: make test-go From bd2c86ff4d42e59394ab09b0a1646e54a3fa783e Mon Sep 17 00:00:00 2001 From: Alex Browne Date: Fri, 10 Jan 2020 14:08:02 -0800 Subject: [PATCH 49/50] Bump version to 8.1.0 --- README.md | 2 +- browser/package.json | 2 +- core/core.go | 2 +- docs/browser/README.md | 4 +- docs/browser/reference.md | 1083 +++++++- docs/deployment.md | 2 +- docs/deployment_with_telemetry.md | 2 +- docs/json_rpc_clients/typescript/reference.md | 2225 ++++++++++++++--- docs/rpc_api.md | 2 +- rpc/clients/typescript/package.json | 2 +- 10 files changed, 2903 insertions(+), 423 deletions(-) diff --git a/README.md b/README.md index 481801e69..27393db62 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Version](https://img.shields.io/badge/version-development-orange.svg)](https://github.com/0xProject/0x-mesh/releases) +[![Version](https://img.shields.io/badge/version-8.1.0-orange.svg)](https://github.com/0xProject/0x-mesh/releases) [![Docs](https://img.shields.io/badge/docs-website-yellow.svg)](https://0x-org.gitbook.io/mesh) [![Chat with us on Discord](https://img.shields.io/badge/chat-Discord-blueViolet.svg)](https://discord.gg/HF7fHwk) [![Circle CI](https://img.shields.io/circleci/project/0xProject/0x-mesh/master.svg)](https://circleci.com/gh/0xProject/0x-mesh/tree/master) diff --git a/browser/package.json b/browser/package.json index ce29f7fa7..8f5ae676f 100644 --- a/browser/package.json +++ b/browser/package.json @@ -1,6 +1,6 @@ { "name": "@0x/mesh-browser", - "version": "1.0.0", + "version": "8.1.0", "description": "TypeScript and JavaScript bindings for running Mesh directly in the browser.", "main": "./lib/index.js", "license": "Apache-2.0", diff --git a/core/core.go b/core/core.go index 29adf7307..3f0241153 100644 --- a/core/core.go +++ b/core/core.go @@ -57,7 +57,7 @@ const ( estimatedNonPollingEthereumRPCRequestsPer24Hrs = 50000 // logStatsInterval is how often to log stats for this node. logStatsInterval = 5 * time.Minute - version = "development" + version = "8.1.0" ) // Note(albrow): The Config type is currently copied to browser/ts/index.ts. We diff --git a/docs/browser/README.md b/docs/browser/README.md index ac2636034..7a83b5c06 100644 --- a/docs/browser/README.md +++ b/docs/browser/README.md @@ -1,3 +1,5 @@ +# @0x/mesh-browser + ## @0x/mesh-browser TypeScript and JavaScript bindings for running Mesh directly in the browser. @@ -42,4 +44,4 @@ yarn clean ```bash yarn lint -``` \ No newline at end of file +``` diff --git a/docs/browser/reference.md b/docs/browser/reference.md index 1acf14fb1..6d52aa5b2 100644 --- a/docs/browser/reference.md +++ b/docs/browser/reference.md @@ -14,7 +14,7 @@ sending orders through the 0x Mesh network. \+ **new Mesh**(`config`: [Config](#interface-config)): *[Mesh](#class-mesh)* -*Defined in [index.ts:212](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L212)* +*Defined in [index.ts:576](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L576)* Instantiates a new Mesh instance. @@ -32,9 +32,9 @@ An instance of Mesh ## addOrdersAsync -▸ **addOrdersAsync**(`orders`: Array‹SignedOrder›): *Promise‹[ValidationResults](#interface-validationresults)›* +▸ **addOrdersAsync**(`orders`: SignedOrder[], `pinned`: boolean): *Promise‹[ValidationResults](#interface-validationresults)›* -*Defined in [index.ts:291](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L291)* +*Defined in [index.ts:650](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L650)* Validates and adds the given orders to Mesh. If an order is successfully added, Mesh will share it with any peers in the network and start @@ -45,9 +45,10 @@ results.rejected instead). **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`orders` | Array‹SignedOrder› | An array of orders to add. | +Name | Type | Default | Description | +------ | ------ | ------ | ------ | +`orders` | SignedOrder[] | - | An array of orders to add. | +`pinned` | boolean | true | Whether or not the orders should be pinned. Pinned orders will not be affected by any DDoS prevention or incentive mechanisms and will always stay in storage until they are no longer fillable. | **Returns:** *Promise‹[ValidationResults](#interface-validationresults)›* @@ -60,7 +61,7 @@ ___ ▸ **onError**(`handler`: function): *void* -*Defined in [index.ts:241](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L241)* +*Defined in [index.ts:596](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L596)* Registers a handler which will be called in the event of a critical error. Note that the handler will not be called for non-critical errors. @@ -89,7 +90,7 @@ ___ ▸ **onOrderEvents**(`handler`: function): *void* -*Defined in [index.ts:256](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L256)* +*Defined in [index.ts:611](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L611)* Registers a handler which will be called for any incoming order events. Order events are fired whenver an order is added, canceled, expired, or @@ -102,13 +103,13 @@ before startAsync. The handler to be called. -▸ (`events`: Array‹[OrderEvent](#interface-orderevent)›): *void* +▸ (`events`: [OrderEvent](#interface-orderevent)[]): *void* **Parameters:** Name | Type | ------ | ------ | -`events` | Array‹[OrderEvent](#interface-orderevent)› | +`events` | [OrderEvent](#interface-orderevent)[] | **Returns:** *void* @@ -118,13 +119,100 @@ ___ ▸ **startAsync**(): *Promise‹void›* -*Defined in [index.ts:267](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L267)* +*Defined in [index.ts:622](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L622)* Starts the Mesh node in the background. Mesh will automatically find peers in the network and begin receiving orders from them. **Returns:** *Promise‹void›* + +
+ +# Enumeration: OrderEventEndState + + +### Enumeration members + +## Added + +• **Added**: = "ADDED" + +*Defined in [index.ts:439](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L439)* + +___ + +## Cancelled + +• **Cancelled**: = "CANCELLED" + +*Defined in [index.ts:442](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L442)* + +___ + +## Expired + +• **Expired**: = "EXPIRED" + +*Defined in [index.ts:443](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L443)* + +___ + +## FillabilityIncreased + +• **FillabilityIncreased**: = "FILLABILITY_INCREASED" + +*Defined in [index.ts:446](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L446)* + +___ + +## Filled + +• **Filled**: = "FILLED" + +*Defined in [index.ts:440](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L440)* + +___ + +## FullyFilled + +• **FullyFilled**: = "FULLY_FILLED" + +*Defined in [index.ts:441](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L441)* + +___ + +## Invalid + +• **Invalid**: = "INVALID" + +*Defined in [index.ts:438](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L438)* + +___ + +## StoppedWatching + +• **StoppedWatching**: = "STOPPED_WATCHING" + +*Defined in [index.ts:447](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L447)* + +___ + +## Unexpired + +• **Unexpired**: = "UNEXPIRED" + +*Defined in [index.ts:444](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L444)* + +___ + +## Unfunded + +• **Unfunded**: = "UNFUNDED" + +*Defined in [index.ts:445](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L445)* + +
# Enumeration: RejectedOrderKind @@ -138,7 +226,7 @@ A set of categories for rejected orders. • **CoordinatorError**: = "COORDINATOR_ERROR" -*Defined in [index.ts:173](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L173)* +*Defined in [index.ts:530](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L530)* ___ @@ -146,7 +234,7 @@ ___ • **MeshError**: = "MESH_ERROR" -*Defined in [index.ts:171](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L171)* +*Defined in [index.ts:528](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L528)* ___ @@ -154,7 +242,7 @@ ___ • **MeshValidation**: = "MESH_VALIDATION" -*Defined in [index.ts:172](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L172)* +*Defined in [index.ts:529](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L529)* ___ @@ -162,7 +250,70 @@ ___ • **ZeroExValidation**: = "ZEROEX_VALIDATION" -*Defined in [index.ts:170](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L170)* +*Defined in [index.ts:527](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L527)* + + +
+ +# Enumeration: Verbosity + + +### Enumeration members + +## Debug + +• **Debug**: = 5 + +*Defined in [index.ts:149](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L149)* + +___ + +## Error + +• **Error**: = 2 + +*Defined in [index.ts:146](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L146)* + +___ + +## Fatal + +• **Fatal**: = 1 + +*Defined in [index.ts:145](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L145)* + +___ + +## Info + +• **Info**: = 4 + +*Defined in [index.ts:148](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L148)* + +___ + +## Panic + +• **Panic**: = 0 + +*Defined in [index.ts:144](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L144)* + +___ + +## Trace + +• **Trace**: = 6 + +*Defined in [index.ts:150](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L150)* + +___ + +## Warn + +• **Warn**: = 3 + +*Defined in [index.ts:147](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L147)* +
@@ -181,7 +332,7 @@ Info for any orders that were accepted. • **fillableTakerAssetAmount**: *BigNumber* -*Defined in [index.ts:151](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L151)* +*Defined in [index.ts:508](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L508)* ___ @@ -189,7 +340,7 @@ ___ • **isNew**: *boolean* -*Defined in [index.ts:152](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L152)* +*Defined in [index.ts:509](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L509)* ___ @@ -197,7 +348,7 @@ ___ • **orderHash**: *string* -*Defined in [index.ts:149](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L149)* +*Defined in [index.ts:506](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L506)* ___ @@ -205,7 +356,8 @@ ___ • **signedOrder**: *SignedOrder* -*Defined in [index.ts:150](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L150)* +*Defined in [index.ts:507](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L507)* +
@@ -224,15 +376,39 @@ A set of configuration options for Mesh. • **blockPollingIntervalSeconds**? : *undefined | number* -*Defined in [index.ts:47](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L47)* +*Defined in [index.ts:79](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L79)* + +___ + +## `Optional` bootstrapList + +• **bootstrapList**? : *string[]* + +*Defined in [index.ts:72](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L72)* + +___ + +## `Optional` customContractAddresses + +• **customContractAddresses**? : *[ContractAddresses](#class-contractaddresses)* + +*Defined in [index.ts:123](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L123)* + +___ + +## `Optional` enableEthereumRPCRateLimiting + +• **enableEthereumRPCRateLimiting**? : *undefined | false | true* + +*Defined in [index.ts:96](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L96)* ___ -## ethereumNetworkID +## ethereumChainID -• **ethereumNetworkID**: *number* +• **ethereumChainID**: *number* -*Defined in [index.ts:33](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L33)* +*Defined in [index.ts:64](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L64)* ___ @@ -240,7 +416,23 @@ ___ • **ethereumRPCMaxContentLength**? : *undefined | number* -*Defined in [index.ts:56](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L56)* +*Defined in [index.ts:88](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L88)* + +___ + +## `Optional` ethereumRPCMaxRequestsPer24HrUTC + +• **ethereumRPCMaxRequestsPer24HrUTC**? : *undefined | number* + +*Defined in [index.ts:101](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L101)* + +___ + +## `Optional` ethereumRPCMaxRequestsPerSecond + +• **ethereumRPCMaxRequestsPerSecond**? : *undefined | number* + +*Defined in [index.ts:107](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L107)* ___ @@ -248,15 +440,15 @@ ___ • **ethereumRPCURL**: *string* -*Defined in [index.ts:31](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L31)* +*Defined in [index.ts:61](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L61)* ___ -## `Optional` orderExpirationBufferSeconds +## `Optional` maxOrdersInStorage -• **orderExpirationBufferSeconds**? : *undefined | number* +• **maxOrdersInStorage**? : *undefined | number* -*Defined in [index.ts:40](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L40)* +*Defined in [index.ts:128](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L128)* ___ @@ -264,157 +456,880 @@ ___ • **useBootstrapList**? : *undefined | false | true* -*Defined in [index.ts:36](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L36)* +*Defined in [index.ts:67](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L67)* -
+___ -# Interface: OrderEvent +## `Optional` verbosity + +• **verbosity**? : *[Verbosity](#enumeration-verbosity)* + +*Defined in [index.ts:58](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L58)* -Order events are fired by Mesh whenever an order is added, canceled, expired, -or filled. + +
+ +# Interface: ContractAddresses ### Hierarchy -* **OrderEvent** +* **ContractAddresses** ### Properties -## fillableTakerAssetAmount +## `Optional` coordinator -• **fillableTakerAssetAmount**: *BigNumber* +• **coordinator**? : *undefined | string* -*Defined in [index.ts:111](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L111)* +*Defined in [index.ts:137](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L137)* ___ -## kind +## `Optional` coordinatorRegistry -• **kind**: *string* +• **coordinatorRegistry**? : *undefined | string* -*Defined in [index.ts:110](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L110)* +*Defined in [index.ts:138](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L138)* ___ -## orderHash +## devUtils -• **orderHash**: *string* +• **devUtils**: *string* -*Defined in [index.ts:108](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L108)* +*Defined in [index.ts:133](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L133)* ___ -## signedOrder +## erc1155Proxy -• **signedOrder**: *SignedOrder* +• **erc1155Proxy**: *string* -*Defined in [index.ts:109](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L109)* +*Defined in [index.ts:136](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L136)* ___ -## txHashes +## erc20Proxy -• **txHashes**: *Array‹string›* +• **erc20Proxy**: *string* -*Defined in [index.ts:112](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L112)* +*Defined in [index.ts:134](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L134)* -
+___ -# Interface: RejectedOrderInfo +## erc721Proxy -Info for any orders that were rejected, including the reason they were -rejected. +• **erc721Proxy**: *string* + +*Defined in [index.ts:135](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L135)* + +___ + +## exchange + +• **exchange**: *string* + +*Defined in [index.ts:132](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L132)* + +___ + +## `Optional` weth9 + +• **weth9**? : *undefined | string* + +*Defined in [index.ts:139](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L139)* + +___ + +## `Optional` zrxToken + +• **zrxToken**? : *undefined | string* + +*Defined in [index.ts:140](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L140)* + + +
+ +# Interface: ContractEvent ### Hierarchy -* **RejectedOrderInfo** +* **ContractEvent** ### Properties +## address + +• **address**: *string* + +*Defined in [index.ts:420](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L420)* + +___ + +## blockHash + +• **blockHash**: *string* + +*Defined in [index.ts:415](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L415)* + +___ + +## isRemoved + +• **isRemoved**: *string* + +*Defined in [index.ts:419](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L419)* + +___ + ## kind -• **kind**: *[RejectedOrderKind](#enumeration-rejectedorderkind)* +• **kind**: *ContractEventKind* -*Defined in [index.ts:162](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L162)* +*Defined in [index.ts:421](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L421)* ___ -## orderHash +## logIndex -• **orderHash**: *string* +• **logIndex**: *number* -*Defined in [index.ts:160](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L160)* +*Defined in [index.ts:418](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L418)* ___ -## signedOrder +## parameters -• **signedOrder**: *SignedOrder* +• **parameters**: *ContractEventParameters* -*Defined in [index.ts:161](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L161)* +*Defined in [index.ts:422](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L422)* ___ -## status +## txHash -• **status**: *[RejectedOrderStatus](#class-rejectedorderstatus)* +• **txHash**: *string* -*Defined in [index.ts:163](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L163)* +*Defined in [index.ts:416](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L416)* -
+___ -# Interface: RejectedOrderStatus +## txIndex -Provides more information about why an order was rejected. +• **txIndex**: *number* + +*Defined in [index.ts:417](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L417)* + + +
+ +# Interface: ERC1155ApprovalForAllEvent ### Hierarchy -* **RejectedOrderStatus** +* **ERC1155ApprovalForAllEvent** ### Properties -## code +## approved -• **code**: *string* +• **approved**: *boolean* -*Defined in [index.ts:180](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L180)* +*Defined in [index.ts:296](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L296)* ___ -## message +## operator -• **message**: *string* +• **operator**: *string* + +*Defined in [index.ts:295](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L295)* + +___ + +## owner + +• **owner**: *string* + +*Defined in [index.ts:294](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L294)* -*Defined in [index.ts:181](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L181)*
-# Interface: ValidationResults +# Interface: ERC1155TransferBatchEvent -Indicates which orders where accepted, which were rejected, and why. +### Hierarchy + +* **ERC1155TransferBatchEvent** + + +### Properties + +## from + +• **from**: *string* + +*Defined in [index.ts:279](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L279)* + +___ + +## ids + +• **ids**: *BigNumber[]* + +*Defined in [index.ts:281](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L281)* + +___ + +## operator + +• **operator**: *string* + +*Defined in [index.ts:278](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L278)* + +___ + +## to + +• **to**: *string* + +*Defined in [index.ts:280](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L280)* + +___ + +## values + +• **values**: *BigNumber[]* + +*Defined in [index.ts:282](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L282)* + + +
+ +# Interface: ERC1155TransferSingleEvent ### Hierarchy -* **ValidationResults** +* **ERC1155TransferSingleEvent** ### Properties -## accepted +## from -• **accepted**: *Array‹[AcceptedOrderInfo](#class-acceptedorderinfo)›* +• **from**: *string* -*Defined in [index.ts:141](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L141)* +*Defined in [index.ts:263](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L263)* ___ -## rejected +## id + +• **id**: *BigNumber* + +*Defined in [index.ts:265](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L265)* + +___ + +## operator + +• **operator**: *string* + +*Defined in [index.ts:262](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L262)* + +___ + +## to + +• **to**: *string* + +*Defined in [index.ts:264](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L264)* + +___ + +## value + +• **value**: *BigNumber* + +*Defined in [index.ts:266](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L266)* + + +
+ +# Interface: ERC20ApprovalEvent + +### Hierarchy + +* **ERC20ApprovalEvent** + + +### Properties + +## owner + +• **owner**: *string* + +*Defined in [index.ts:220](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L220)* + +___ + +## spender + +• **spender**: *string* + +*Defined in [index.ts:221](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L221)* + +___ + +## value + +• **value**: *BigNumber* + +*Defined in [index.ts:222](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L222)* + + +
+ +# Interface: ERC20TransferEvent + +### Hierarchy + +* **ERC20TransferEvent** + + +### Properties + +## from + +• **from**: *string* + +*Defined in [index.ts:208](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L208)* + +___ + +## to + +• **to**: *string* + +*Defined in [index.ts:209](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L209)* + +___ + +## value + +• **value**: *BigNumber* + +*Defined in [index.ts:210](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L210)* + + +
+ +# Interface: ERC721ApprovalEvent + +### Hierarchy + +* **ERC721ApprovalEvent** + + +### Properties + +## approved + +• **approved**: *string* + +*Defined in [index.ts:245](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L245)* + +___ + +## owner + +• **owner**: *string* + +*Defined in [index.ts:244](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L244)* + +___ + +## tokenId + +• **tokenId**: *BigNumber* + +*Defined in [index.ts:246](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L246)* + + +
+ +# Interface: ERC721ApprovalForAllEvent + +### Hierarchy + +* **ERC721ApprovalForAllEvent** + + +### Properties + +## approved + +• **approved**: *boolean* + +*Defined in [index.ts:258](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L258)* + +___ + +## operator + +• **operator**: *string* + +*Defined in [index.ts:257](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L257)* + +___ + +## owner + +• **owner**: *string* + +*Defined in [index.ts:256](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L256)* + + +
+ +# Interface: ERC721TransferEvent + +### Hierarchy + +* **ERC721TransferEvent** + + +### Properties + +## from + +• **from**: *string* + +*Defined in [index.ts:232](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L232)* + +___ + +## to + +• **to**: *string* + +*Defined in [index.ts:233](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L233)* + +___ + +## tokenId + +• **tokenId**: *BigNumber* + +*Defined in [index.ts:234](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L234)* + + +
+ +# Interface: ExchangeCancelEvent + +### Hierarchy + +* **ExchangeCancelEvent** + + +### Properties + +## feeRecipientAddress + +• **feeRecipientAddress**: *string* + +*Defined in [index.ts:330](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L330)* + +___ + +## makerAddress + +• **makerAddress**: *string* + +*Defined in [index.ts:328](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L328)* + +___ + +## makerAssetData + +• **makerAssetData**: *string* + +*Defined in [index.ts:332](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L332)* + +___ + +## orderHash + +• **orderHash**: *string* + +*Defined in [index.ts:331](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L331)* + +___ + +## senderAddress + +• **senderAddress**: *string* + +*Defined in [index.ts:329](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L329)* + +___ + +## takerAssetData + +• **takerAssetData**: *string* + +*Defined in [index.ts:333](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L333)* + + +
+ +# Interface: ExchangeCancelUpToEvent + +### Hierarchy + +* **ExchangeCancelUpToEvent** + + +### Properties + +## makerAddress + +• **makerAddress**: *string* + +*Defined in [index.ts:337](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L337)* + +___ + +## orderEpoch + +• **orderEpoch**: *BigNumber* + +*Defined in [index.ts:339](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L339)* + +___ + +## senderAddress + +• **senderAddress**: *string* + +*Defined in [index.ts:338](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L338)* + + +
+ +# Interface: ExchangeFillEvent + +### Hierarchy + +* **ExchangeFillEvent** + + +### Properties + +## feeRecipientAddress + +• **feeRecipientAddress**: *string* + +*Defined in [index.ts:303](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L303)* + +___ + +## makerAddress + +• **makerAddress**: *string* + +*Defined in [index.ts:300](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L300)* + +___ + +## makerAssetData + +• **makerAssetData**: *string* + +*Defined in [index.ts:309](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L309)* + +___ + +## makerAssetFilledAmount + +• **makerAssetFilledAmount**: *BigNumber* + +*Defined in [index.ts:304](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L304)* + +___ + +## makerFeePaid + +• **makerFeePaid**: *BigNumber* + +*Defined in [index.ts:306](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L306)* + +___ + +## orderHash + +• **orderHash**: *string* + +*Defined in [index.ts:308](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L308)* + +___ + +## senderAddress + +• **senderAddress**: *string* + +*Defined in [index.ts:302](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L302)* + +___ + +## takerAddress + +• **takerAddress**: *string* + +*Defined in [index.ts:301](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L301)* + +___ + +## takerAssetData + +• **takerAssetData**: *string* + +*Defined in [index.ts:310](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L310)* + +___ + +## takerAssetFilledAmount + +• **takerAssetFilledAmount**: *BigNumber* + +*Defined in [index.ts:305](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L305)* + +___ + +## takerFeePaid + +• **takerFeePaid**: *BigNumber* + +*Defined in [index.ts:307](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L307)* + + +
+ +# Interface: OrderEvent + +Order events are fired by Mesh whenever an order is added, canceled, expired, +or filled. + +### Hierarchy + +* **OrderEvent** + + +### Properties + +## contractEvents + +• **contractEvents**: *[ContractEvent](#class-contractevent)[]* + +*Defined in [index.ts:469](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L469)* + +___ + +## endState + +• **endState**: *[OrderEventEndState](#enumeration-ordereventendstate)* + +*Defined in [index.ts:467](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L467)* + +___ + +## fillableTakerAssetAmount + +• **fillableTakerAssetAmount**: *BigNumber* + +*Defined in [index.ts:468](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L468)* + +___ + +## orderHash + +• **orderHash**: *string* + +*Defined in [index.ts:465](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L465)* + +___ + +## signedOrder + +• **signedOrder**: *SignedOrder* + +*Defined in [index.ts:466](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L466)* + +___ + +## timestampMs + +• **timestampMs**: *number* + +*Defined in [index.ts:464](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L464)* + + +
+ +# Interface: RejectedOrderInfo + +Info for any orders that were rejected, including the reason they were +rejected. + +### Hierarchy + +* **RejectedOrderInfo** + + +### Properties + +## kind + +• **kind**: *[RejectedOrderKind](#enumeration-rejectedorderkind)* + +*Defined in [index.ts:519](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L519)* + +___ + +## orderHash + +• **orderHash**: *string* + +*Defined in [index.ts:517](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L517)* + +___ + +## signedOrder + +• **signedOrder**: *SignedOrder* + +*Defined in [index.ts:518](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L518)* + +___ + +## status + +• **status**: *[RejectedOrderStatus](#class-rejectedorderstatus)* + +*Defined in [index.ts:520](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L520)* + + +
+ +# Interface: RejectedOrderStatus + +Provides more information about why an order was rejected. + +### Hierarchy + +* **RejectedOrderStatus** + + +### Properties + +## code + +• **code**: *string* + +*Defined in [index.ts:537](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L537)* + +___ + +## message + +• **message**: *string* + +*Defined in [index.ts:538](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L538)* + + +
+ +# Interface: ValidationResults + +Indicates which orders where accepted, which were rejected, and why. + +### Hierarchy + +* **ValidationResults** + + +### Properties + +## accepted + +• **accepted**: *[AcceptedOrderInfo](#class-acceptedorderinfo)[]* + +*Defined in [index.ts:498](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L498)* + +___ + +## rejected + +• **rejected**: *[RejectedOrderInfo](#class-rejectedorderinfo)[]* + +*Defined in [index.ts:499](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L499)* + + +
+ +# Interface: WethDepositEvent + +### Hierarchy + +* **WethDepositEvent** + + +### Properties + +## owner + +• **owner**: *string* + +*Defined in [index.ts:359](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L359)* + +___ + +## value + +• **value**: *BigNumber* + +*Defined in [index.ts:360](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L360)* + + +
+ +# Interface: WethWithdrawalEvent + +### Hierarchy + +* **WethWithdrawalEvent** + + +### Properties + +## owner + +• **owner**: *string* + +*Defined in [index.ts:349](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L349)* + +___ + +## value + +• **value**: *BigNumber* -• **rejected**: *Array‹[RejectedOrderInfo](#class-rejectedorderinfo)›* +*Defined in [index.ts:350](https://github.com/0xProject/0x-mesh/blob/47da994/browser/ts/index.ts#L350)* -*Defined in [index.ts:142](https://github.com/0xProject/0x-mesh/blob/ed8a11c/browser/ts/index.ts#L142)*
diff --git a/docs/deployment.md b/docs/deployment.md index c0a4f5c24..a29a6a722 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -1,4 +1,4 @@ -[![Version](https://img.shields.io/badge/version-development-orange.svg)](https://github.com/0xProject/0x-mesh/releases) +[![Version](https://img.shields.io/badge/version-8.1.0-orange.svg)](https://github.com/0xProject/0x-mesh/releases) # 0x Mesh Deployment Guide diff --git a/docs/deployment_with_telemetry.md b/docs/deployment_with_telemetry.md index 87169a6ee..48cc3ed05 100644 --- a/docs/deployment_with_telemetry.md +++ b/docs/deployment_with_telemetry.md @@ -1,4 +1,4 @@ -[![Version](https://img.shields.io/badge/version-development-orange.svg)](https://github.com/0xProject/0x-mesh/releases) +[![Version](https://img.shields.io/badge/version-8.1.0-orange.svg)](https://github.com/0xProject/0x-mesh/releases) ## Deploying a Telemetry-Enabled Mesh Node diff --git a/docs/json_rpc_clients/typescript/reference.md b/docs/json_rpc_clients/typescript/reference.md index 225f02036..d7ee758f1 100644 --- a/docs/json_rpc_clients/typescript/reference.md +++ b/docs/json_rpc_clients/typescript/reference.md @@ -30,7 +30,7 @@ websocket endpoint. \+ **new WSClient**(`url`: string, `wsOpts?`: [WSOpts](#interface-wsopts)): *[WSClient](#class-wsclient)* -*Defined in [ws_client.ts:71](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/ws_client.ts#L71)* +*Defined in [ws_client.ts:252](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/ws_client.ts#L252)* Instantiates a new WSClient instance @@ -49,17 +49,18 @@ An instance of WSClient ### addOrdersAsync -▸ **addOrdersAsync**(`signedOrders`: `SignedOrder`[]): *`Promise`* +▸ **addOrdersAsync**(`signedOrders`: `SignedOrder`[], `pinned`: boolean): *`Promise`* -*Defined in [ws_client.ts:96](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/ws_client.ts#L96)* +*Defined in [ws_client.ts:281](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/ws_client.ts#L281)* Adds an array of 0x signed orders to the Mesh node. **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`signedOrders` | `SignedOrder`[] | signedOrders to add | +Name | Type | Default | Description | +------ | ------ | ------ | ------ | +`signedOrders` | `SignedOrder`[] | - | signedOrders to add | +`pinned` | boolean | true | Whether or not the orders should be pinned. Pinned orders will not be affected by any DDoS prevention or incentive mechanisms and will always stay in storage until they are no longer fillable. | **Returns:** *`Promise`* @@ -71,7 +72,7 @@ ___ ▸ **destroy**(): *void* -*Defined in [ws_client.ts:213](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/ws_client.ts#L213)* +*Defined in [ws_client.ts:403](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/ws_client.ts#L403)* destroy unsubscribes all active subscriptions, closes the websocket connection and stops the internal heartbeat connection liveness check. @@ -82,9 +83,9 @@ ___ ### getOrdersAsync -▸ **getOrdersAsync**(`perPage`: number): *`Promise`* +▸ **getOrdersAsync**(`perPage`: number): *`Promise`* -*Defined in [ws_client.ts:125](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/ws_client.ts#L125)* +*Defined in [ws_client.ts:311](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/ws_client.ts#L311)* Get all 0x signed orders currently stored in the Mesh node @@ -94,7 +95,7 @@ Name | Type | Default | Description | ------ | ------ | ------ | ------ | `perPage` | number | 200 | number of signedOrders to fetch per paginated request | -**Returns:** *`Promise`* +**Returns:** *`Promise`* all orders, their hash and their fillableTakerAssetAmount @@ -104,7 +105,7 @@ ___ ▸ **getStatsAsync**(): *`Promise`* -*Defined in [ws_client.ts:116](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/ws_client.ts#L116)* +*Defined in [ws_client.ts:302](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/ws_client.ts#L302)* **Returns:** *`Promise`* @@ -114,7 +115,7 @@ ___ ▸ **onClose**(`cb`: function): *void* -*Defined in [ws_client.ts:195](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/ws_client.ts#L195)* +*Defined in [ws_client.ts:385](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/ws_client.ts#L385)* Get notified when the underlying WS connection closes normally. If it closes with an error, WSClient automatically attempts to re-connect without emitting a `close` event. @@ -135,7 +136,7 @@ ___ ▸ **onReconnected**(`cb`: function): *void* -*Defined in [ws_client.ts:204](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/ws_client.ts#L204)* +*Defined in [ws_client.ts:394](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/ws_client.ts#L394)* Get notified when a connection to the underlying WS connection is re-established @@ -155,7 +156,7 @@ ___ ▸ **subscribeToOrdersAsync**(`cb`: function): *`Promise`* -*Defined in [ws_client.ts:156](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/ws_client.ts#L156)* +*Defined in [ws_client.ts:345](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/ws_client.ts#L345)* Subscribe to the 'orders' topic and receive order events from Mesh. This method returns a subscriptionId that can be used to `unsubscribe()` from this subscription. @@ -184,7 +185,7 @@ ___ ▸ **unsubscribeAsync**(`subscriptionId`: string): *`Promise`* -*Defined in [ws_client.ts:185](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/ws_client.ts#L185)* +*Defined in [ws_client.ts:375](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/ws_client.ts#L375)* Unsubscribe from a subscription @@ -198,7 +199,133 @@ Name | Type | Description |
-> # Enumeration: OrderEventKind +> # Enumeration: ContractEventKind + +## Index + +### Enumeration members + +* [ERC1155ApprovalForAllEvent](#erc1155approvalforallevent) +* [ERC1155TransferBatchEvent](#erc1155transferbatchevent) +* [ERC1155TransferSingleEvent](#erc1155transfersingleevent) +* [ERC20ApprovalEvent](#erc20approvalevent) +* [ERC20TransferEvent](#erc20transferevent) +* [ERC721ApprovalEvent](#erc721approvalevent) +* [ERC721ApprovalForAllEvent](#erc721approvalforallevent) +* [ERC721TransferEvent](#erc721transferevent) +* [ExchangeCancelEvent](#exchangecancelevent) +* [ExchangeCancelUpToEvent](#exchangecanceluptoevent) +* [ExchangeFillEvent](#exchangefillevent) +* [WethDepositEvent](#wethdepositevent) +* [WethWithdrawalEvent](#wethwithdrawalevent) + +## Enumeration members + +### ERC1155ApprovalForAllEvent + +• **ERC1155ApprovalForAllEvent**: = "ERC1155ApprovalForAllEvent" + +*Defined in [types.ts:222](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L222)* + +___ + +### ERC1155TransferBatchEvent + +• **ERC1155TransferBatchEvent**: = "ERC1155TransferBatchEvent" + +*Defined in [types.ts:224](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L224)* + +___ + +### ERC1155TransferSingleEvent + +• **ERC1155TransferSingleEvent**: = "ERC1155TransferSingleEvent" + +*Defined in [types.ts:223](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L223)* + +___ + +### ERC20ApprovalEvent + +• **ERC20ApprovalEvent**: = "ERC20ApprovalEvent" + +*Defined in [types.ts:218](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L218)* + +___ + +### ERC20TransferEvent + +• **ERC20TransferEvent**: = "ERC20TransferEvent" + +*Defined in [types.ts:217](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L217)* + +___ + +### ERC721ApprovalEvent + +• **ERC721ApprovalEvent**: = "ERC721ApprovalEvent" + +*Defined in [types.ts:220](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L220)* + +___ + +### ERC721ApprovalForAllEvent + +• **ERC721ApprovalForAllEvent**: = "ERC721ApprovalForAllEvent" + +*Defined in [types.ts:221](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L221)* + +___ + +### ERC721TransferEvent + +• **ERC721TransferEvent**: = "ERC721TransferEvent" + +*Defined in [types.ts:219](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L219)* + +___ + +### ExchangeCancelEvent + +• **ExchangeCancelEvent**: = "ExchangeCancelEvent" + +*Defined in [types.ts:226](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L226)* + +___ + +### ExchangeCancelUpToEvent + +• **ExchangeCancelUpToEvent**: = "ExchangeCancelUpToEvent" + +*Defined in [types.ts:227](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L227)* + +___ + +### ExchangeFillEvent + +• **ExchangeFillEvent**: = "ExchangeFillEvent" + +*Defined in [types.ts:225](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L225)* + +___ + +### WethDepositEvent + +• **WethDepositEvent**: = "WethDepositEvent" + +*Defined in [types.ts:228](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L228)* + +___ + +### WethWithdrawalEvent + +• **WethWithdrawalEvent**: = "WethWithdrawalEvent" + +*Defined in [types.ts:229](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L229)* + +
+ +> # Enumeration: OrderEventEndState ## Index @@ -211,6 +338,8 @@ Name | Type | Description | * [Filled](#filled) * [FullyFilled](#fullyfilled) * [Invalid](#invalid) +* [StoppedWatching](#stoppedwatching) +* [Unexpired](#unexpired) * [Unfunded](#unfunded) ## Enumeration members @@ -219,7 +348,7 @@ Name | Type | Description | • **Added**: = "ADDED" -*Defined in [types.ts:55](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L55)* +*Defined in [types.ts:286](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L286)* ___ @@ -227,7 +356,7 @@ ___ • **Cancelled**: = "CANCELLED" -*Defined in [types.ts:58](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L58)* +*Defined in [types.ts:289](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L289)* ___ @@ -235,7 +364,7 @@ ___ • **Expired**: = "EXPIRED" -*Defined in [types.ts:59](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L59)* +*Defined in [types.ts:290](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L290)* ___ @@ -243,7 +372,7 @@ ___ • **FillabilityIncreased**: = "FILLABILITY_INCREASED" -*Defined in [types.ts:61](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L61)* +*Defined in [types.ts:294](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L294)* ___ @@ -251,7 +380,7 @@ ___ • **Filled**: = "FILLED" -*Defined in [types.ts:56](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L56)* +*Defined in [types.ts:287](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L287)* ___ @@ -259,7 +388,7 @@ ___ • **FullyFilled**: = "FULLY_FILLED" -*Defined in [types.ts:57](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L57)* +*Defined in [types.ts:288](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L288)* ___ @@ -267,7 +396,23 @@ ___ • **Invalid**: = "INVALID" -*Defined in [types.ts:54](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L54)* +*Defined in [types.ts:285](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L285)* + +___ + +### StoppedWatching + +• **StoppedWatching**: = "STOPPED_WATCHING" + +*Defined in [types.ts:292](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L292)* + +___ + +### Unexpired + +• **Unexpired**: = "UNEXPIRED" + +*Defined in [types.ts:291](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L291)* ___ @@ -275,7 +420,7 @@ ___ • **Unfunded**: = "UNFUNDED" -*Defined in [types.ts:60](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L60)* +*Defined in [types.ts:293](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L293)*
@@ -291,7 +436,7 @@ ___ * [OrderAlreadyStored](#orderalreadystored) * [OrderCancelled](#ordercancelled) * [OrderExpired](#orderexpired) -* [OrderForIncorrectNetwork](#orderforincorrectnetwork) +* [OrderForIncorrectChain](#orderforincorrectchain) * [OrderFullyFilled](#orderfullyfilled) * [OrderHasInvalidMakerAssetAmount](#orderhasinvalidmakerassetamount) * [OrderHasInvalidMakerAssetData](#orderhasinvalidmakerassetdata) @@ -306,7 +451,7 @@ ___ • **InternalError**: = "InternalError" -*Defined in [types.ts:123](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L123)* +*Defined in [types.ts:358](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L358)* ___ @@ -314,7 +459,7 @@ ___ • **MaxOrderSizeExceeded**: = "MaxOrderSizeExceeded" -*Defined in [types.ts:124](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L124)* +*Defined in [types.ts:359](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L359)* ___ @@ -322,7 +467,7 @@ ___ • **NetworkRequestFailed**: = "NetworkRequestFailed" -*Defined in [types.ts:127](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L127)* +*Defined in [types.ts:362](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L362)* ___ @@ -330,7 +475,7 @@ ___ • **OrderAlreadyStored**: = "OrderAlreadyStored" -*Defined in [types.ts:125](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L125)* +*Defined in [types.ts:360](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L360)* ___ @@ -338,7 +483,7 @@ ___ • **OrderCancelled**: = "OrderCancelled" -*Defined in [types.ts:132](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L132)* +*Defined in [types.ts:367](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L367)* ___ @@ -346,15 +491,15 @@ ___ • **OrderExpired**: = "OrderExpired" -*Defined in [types.ts:130](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L130)* +*Defined in [types.ts:365](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L365)* ___ -### OrderForIncorrectNetwork +### OrderForIncorrectChain -• **OrderForIncorrectNetwork**: = "OrderForIncorrectNetwork" +• **OrderForIncorrectChain**: = "OrderForIncorrectChain" -*Defined in [types.ts:126](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L126)* +*Defined in [types.ts:361](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L361)* ___ @@ -362,7 +507,7 @@ ___ • **OrderFullyFilled**: = "OrderFullyFilled" -*Defined in [types.ts:131](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L131)* +*Defined in [types.ts:366](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L366)* ___ @@ -370,7 +515,7 @@ ___ • **OrderHasInvalidMakerAssetAmount**: = "OrderHasInvalidMakerAssetAmount" -*Defined in [types.ts:128](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L128)* +*Defined in [types.ts:363](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L363)* ___ @@ -378,7 +523,7 @@ ___ • **OrderHasInvalidMakerAssetData**: = "OrderHasInvalidMakerAssetData" -*Defined in [types.ts:134](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L134)* +*Defined in [types.ts:369](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L369)* ___ @@ -386,7 +531,7 @@ ___ • **OrderHasInvalidSignature**: = "OrderHasInvalidSignature" -*Defined in [types.ts:136](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L136)* +*Defined in [types.ts:371](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L371)* ___ @@ -394,7 +539,7 @@ ___ • **OrderHasInvalidTakerAssetAmount**: = "OrderHasInvalidTakerAssetAmount" -*Defined in [types.ts:129](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L129)* +*Defined in [types.ts:364](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L364)* ___ @@ -402,7 +547,7 @@ ___ • **OrderHasInvalidTakerAssetData**: = "OrderHasInvalidTakerAssetData" -*Defined in [types.ts:135](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L135)* +*Defined in [types.ts:370](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L370)* ___ @@ -410,7 +555,7 @@ ___ • **OrderUnfunded**: = "OrderUnfunded" -*Defined in [types.ts:133](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L133)* +*Defined in [types.ts:368](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L368)*
@@ -430,7 +575,7 @@ ___ • **MeshError**: = "MESH_ERROR" -*Defined in [types.ts:118](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L118)* +*Defined in [types.ts:353](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L353)* ___ @@ -438,7 +583,7 @@ ___ • **MeshValidation**: = "MESH_VALIDATION" -*Defined in [types.ts:119](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L119)* +*Defined in [types.ts:354](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L354)* ___ @@ -446,7 +591,7 @@ ___ • **ZeroexValidation**: = "ZEROEX_VALIDATION" -*Defined in [types.ts:117](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L117)* +*Defined in [types.ts:352](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L352)*
@@ -471,7 +616,7 @@ ___ • **fillableTakerAssetAmount**: *`BigNumber`* -*Defined in [types.ts:100](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L100)* +*Defined in [types.ts:335](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L335)* ___ @@ -479,7 +624,7 @@ ___ • **isNew**: *boolean* -*Defined in [types.ts:101](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L101)* +*Defined in [types.ts:336](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L336)* ___ @@ -487,7 +632,7 @@ ___ • **orderHash**: *string* -*Defined in [types.ts:98](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L98)* +*Defined in [types.ts:333](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L333)* ___ @@ -495,7 +640,7 @@ ___ • **signedOrder**: *`SignedOrder`* -*Defined in [types.ts:99](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L99)* +*Defined in [types.ts:334](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L334)*
@@ -527,7 +672,7 @@ Source: https://github.com/theturtle32/WebSocket-Node/blob/master/docs/WebSocket • **assembleFragments**? : *undefined | false | true* -*Defined in [types.ts:14](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L14)* +*Defined in [types.ts:16](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L16)* ___ @@ -535,7 +680,7 @@ ___ • **closeTimeout**? : *undefined | number* -*Defined in [types.ts:15](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L15)* +*Defined in [types.ts:17](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L17)* ___ @@ -543,7 +688,7 @@ ___ • **fragmentOutgoingMessages**? : *undefined | false | true* -*Defined in [types.ts:12](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L12)* +*Defined in [types.ts:14](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L14)* ___ @@ -551,7 +696,7 @@ ___ • **fragmentationThreshold**? : *undefined | number* -*Defined in [types.ts:13](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L13)* +*Defined in [types.ts:15](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L15)* ___ @@ -559,7 +704,7 @@ ___ • **maxReceivedFrameSize**? : *undefined | number* -*Defined in [types.ts:10](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L10)* +*Defined in [types.ts:12](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L12)* ___ @@ -567,7 +712,7 @@ ___ • **maxReceivedMessageSize**? : *undefined | number* -*Defined in [types.ts:11](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L11)* +*Defined in [types.ts:13](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L13)* ___ @@ -575,7 +720,7 @@ ___ • **tlsOptions**? : *any* -*Defined in [types.ts:16](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L16)* +*Defined in [types.ts:18](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L18)* ___ @@ -583,621 +728,1915 @@ ___ • **webSocketVersion**? : *undefined | number* -*Defined in [types.ts:9](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L9)* +*Defined in [types.ts:11](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L11)*
-> # Interface: GetOrdersResponse +> # Interface: ContractEvent ## Hierarchy -* **GetOrdersResponse** +* **ContractEvent** ## Index ### Properties -* [ordersInfos](#ordersinfos) -* [snapshotID](#snapshotid) +* [address](#address) +* [blockHash](#blockhash) +* [isRemoved](#isremoved) +* [kind](#kind) +* [logIndex](#logindex) +* [parameters](#parameters) +* [txHash](#txhash) +* [txIndex](#txindex) ## Properties -### ordersInfos +### address -• **ordersInfos**: *[RawAcceptedOrderInfo](#interface-rawacceptedorderinfo)[]* +• **address**: *string* -*Defined in [types.ts:170](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L170)* +*Defined in [types.ts:279](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L279)* ___ -### snapshotID +### blockHash -• **snapshotID**: *string* +• **blockHash**: *string* -*Defined in [types.ts:169](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L169)* +*Defined in [types.ts:274](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L274)* -
+___ -> # Interface: GetStatsResponse +### isRemoved -## Hierarchy +• **isRemoved**: *string* -* **GetStatsResponse** +*Defined in [types.ts:278](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L278)* -## Index +___ -### Properties +### kind -* [EthereumNetworkID](#ethereumnetworkid) -* [LatestBlock](#latestblock) -* [NumOrders](#numorders) -* [NumPeers](#numpeers) -* [PeerID](#peerid) -* [PubSubTopic](#pubsubtopic) -* [Rendezvous](#rendezvous) -* [Version](#version) +• **kind**: *[ContractEventKind](#enumeration-contracteventkind)* -## Properties +*Defined in [types.ts:280](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L280)* + +___ -### EthereumNetworkID +### logIndex -• **EthereumNetworkID**: *number* +• **logIndex**: *number* -*Defined in [types.ts:188](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L188)* +*Defined in [types.ts:277](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L277)* ___ -### LatestBlock +### parameters -• **LatestBlock**: *[LatestBlock](#interface-latestblock)* +• **parameters**: *[ContractEventParameters](#contracteventparameters)* -*Defined in [types.ts:189](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L189)* +*Defined in [types.ts:281](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L281)* ___ -### NumOrders +### txHash -• **NumOrders**: *number* +• **txHash**: *string* -*Defined in [types.ts:191](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L191)* +*Defined in [types.ts:275](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L275)* ___ -### NumPeers +### txIndex -• **NumPeers**: *number* +• **txIndex**: *number* -*Defined in [types.ts:190](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L190)* +*Defined in [types.ts:276](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L276)* -___ +
-### PeerID +> # Interface: ERC1155ApprovalForAllEvent -• **PeerID**: *string* +## Hierarchy -*Defined in [types.ts:187](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L187)* +* **ERC1155ApprovalForAllEvent** -___ +## Index + +### Properties + +* [approved](#approved) +* [operator](#operator) +* [owner](#owner) -### PubSubTopic +## Properties + +### approved -• **PubSubTopic**: *string* +• **approved**: *boolean* -*Defined in [types.ts:185](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L185)* +*Defined in [types.ts:144](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L144)* ___ -### Rendezvous +### operator -• **Rendezvous**: *string* +• **operator**: *string* -*Defined in [types.ts:186](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L186)* +*Defined in [types.ts:143](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L143)* ___ -### Version +### owner -• **Version**: *string* +• **owner**: *string* -*Defined in [types.ts:184](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L184)* +*Defined in [types.ts:142](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L142)*
-> # Interface: HeartbeatEventPayload +> # Interface: ERC1155TransferBatchEvent ## Hierarchy -* **HeartbeatEventPayload** +* **ERC1155TransferBatchEvent** ## Index ### Properties -* [result](#result) -* [subscription](#subscription) +* [from](#from) +* [ids](#ids) +* [operator](#operator) +* [to](#to) +* [values](#values) ## Properties -### result +### from -• **result**: *string* +• **from**: *string* -*Defined in [types.ts:71](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L71)* +*Defined in [types.ts:127](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L127)* ___ -### subscription - -• **subscription**: *string* - -*Defined in [types.ts:70](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L70)* +### ids -
- -> # Interface: LatestBlock +• **ids**: *`BigNumber`[]* -## Hierarchy +*Defined in [types.ts:129](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L129)* -* **LatestBlock** +___ -## Index +### operator -### Properties +• **operator**: *string* -* [hash](#hash) -* [number](#number) +*Defined in [types.ts:126](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L126)* -## Properties +___ -### hash +### to -• **hash**: *string* +• **to**: *string* -*Defined in [types.ts:180](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L180)* +*Defined in [types.ts:128](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L128)* ___ -### number +### values -• **number**: *number* +• **values**: *`BigNumber`[]* -*Defined in [types.ts:179](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L179)* +*Defined in [types.ts:130](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L130)*
-> # Interface: OrderEvent +> # Interface: ERC1155TransferSingleEvent ## Hierarchy -* **OrderEvent** +* **ERC1155TransferSingleEvent** ## Index ### Properties -* [fillableTakerAssetAmount](#fillabletakerassetamount) -* [kind](#kind) -* [orderHash](#orderhash) -* [signedOrder](#signedorder) -* [txHashes](#txhashes) +* [from](#from) +* [id](#id) +* [operator](#operator) +* [to](#to) +* [value](#value) ## Properties -### fillableTakerAssetAmount +### from -• **fillableTakerAssetAmount**: *`BigNumber`* +• **from**: *string* -*Defined in [types.ts:86](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L86)* +*Defined in [types.ts:111](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L111)* ___ -### kind +### id -• **kind**: *[OrderEventKind](#enumeration-ordereventkind)* +• **id**: *`BigNumber`* -*Defined in [types.ts:85](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L85)* +*Defined in [types.ts:113](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L113)* ___ -### orderHash +### operator -• **orderHash**: *string* +• **operator**: *string* -*Defined in [types.ts:83](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L83)* +*Defined in [types.ts:110](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L110)* ___ -### signedOrder +### to -• **signedOrder**: *`SignedOrder`* +• **to**: *string* -*Defined in [types.ts:84](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L84)* +*Defined in [types.ts:112](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L112)* ___ -### txHashes +### value -• **txHashes**: *string[]* +• **value**: *`BigNumber`* -*Defined in [types.ts:87](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L87)* +*Defined in [types.ts:114](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L114)*
-> # Interface: OrderEventPayload +> # Interface: ERC20ApprovalEvent ## Hierarchy -* **OrderEventPayload** +* **ERC20ApprovalEvent** ## Index ### Properties -* [result](#result) -* [subscription](#subscription) +* [owner](#owner) +* [spender](#spender) +* [value](#value) ## Properties -### result +### owner -• **result**: *[RawOrderEvent](#interface-raworderevent)[]* +• **owner**: *string* -*Defined in [types.ts:66](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L66)* +*Defined in [types.ts:68](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L68)* ___ -### subscription +### spender -• **subscription**: *string* +• **spender**: *string* + +*Defined in [types.ts:69](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L69)* + +___ -*Defined in [types.ts:65](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L65)* +### value + +• **value**: *`BigNumber`* + +*Defined in [types.ts:70](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L70)*
-> # Interface: OrderInfo +> # Interface: ERC20TransferEvent ## Hierarchy -* **OrderInfo** +* **ERC20TransferEvent** ## Index ### Properties -* [fillableTakerAssetAmount](#fillabletakerassetamount) -* [orderHash](#orderhash) -* [signedOrder](#signedorder) +* [from](#from) +* [to](#to) +* [value](#value) ## Properties -### fillableTakerAssetAmount +### from -• **fillableTakerAssetAmount**: *`BigNumber`* +• **from**: *string* -*Defined in [types.ts:113](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L113)* +*Defined in [types.ts:56](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L56)* ___ -### orderHash +### to -• **orderHash**: *string* +• **to**: *string* -*Defined in [types.ts:111](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L111)* +*Defined in [types.ts:57](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L57)* ___ -### signedOrder +### value -• **signedOrder**: *`SignedOrder`* +• **value**: *`BigNumber`* -*Defined in [types.ts:112](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L112)* +*Defined in [types.ts:58](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L58)*
-> # Interface: RawAcceptedOrderInfo +> # Interface: ERC721ApprovalEvent ## Hierarchy -* **RawAcceptedOrderInfo** +* **ERC721ApprovalEvent** ## Index ### Properties -* [fillableTakerAssetAmount](#fillabletakerassetamount) -* [isNew](#isnew) -* [orderHash](#orderhash) -* [signedOrder](#signedorder) +* [approved](#approved) +* [owner](#owner) +* [tokenId](#tokenid) ## Properties -### fillableTakerAssetAmount - -• **fillableTakerAssetAmount**: *string* - -*Defined in [types.ts:93](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L93)* - -___ - -### isNew +### approved -• **isNew**: *boolean* +• **approved**: *string* -*Defined in [types.ts:94](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L94)* +*Defined in [types.ts:93](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L93)* ___ -### orderHash +### owner -• **orderHash**: *string* +• **owner**: *string* -*Defined in [types.ts:91](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L91)* +*Defined in [types.ts:92](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L92)* ___ -### signedOrder +### tokenId -• **signedOrder**: *[StringifiedSignedOrder](#interface-stringifiedsignedorder)* +• **tokenId**: *`BigNumber`* -*Defined in [types.ts:92](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L92)* +*Defined in [types.ts:94](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L94)*
-> # Interface: RawOrderEvent +> # Interface: ERC721ApprovalForAllEvent ## Hierarchy -* **RawOrderEvent** +* **ERC721ApprovalForAllEvent** ## Index ### Properties -* [fillableTakerAssetAmount](#fillabletakerassetamount) -* [kind](#kind) -* [orderHash](#orderhash) -* [signedOrder](#signedorder) -* [txHashes](#txhashes) +* [approved](#approved) +* [operator](#operator) +* [owner](#owner) ## Properties -### fillableTakerAssetAmount - -• **fillableTakerAssetAmount**: *string* - -*Defined in [types.ts:78](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L78)* - -___ - -### kind - -• **kind**: *[OrderEventKind](#enumeration-ordereventkind)* - -*Defined in [types.ts:77](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L77)* +### approved -___ - -### orderHash - -• **orderHash**: *string* +• **approved**: *boolean* -*Defined in [types.ts:75](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L75)* +*Defined in [types.ts:106](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L106)* ___ -### signedOrder +### operator -• **signedOrder**: *[StringifiedSignedOrder](#interface-stringifiedsignedorder)* +• **operator**: *string* -*Defined in [types.ts:76](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L76)* +*Defined in [types.ts:105](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L105)* ___ -### txHashes +### owner -• **txHashes**: *string[]* +• **owner**: *string* -*Defined in [types.ts:79](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L79)* +*Defined in [types.ts:104](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L104)*
-> # Interface: RawOrderInfo +> # Interface: ERC721TransferEvent ## Hierarchy -* **RawOrderInfo** +* **ERC721TransferEvent** ## Index ### Properties -* [fillableTakerAssetAmount](#fillabletakerassetamount) -* [orderHash](#orderhash) -* [signedOrder](#signedorder) +* [from](#from) +* [to](#to) +* [tokenId](#tokenid) ## Properties -### fillableTakerAssetAmount +### from -• **fillableTakerAssetAmount**: *string* +• **from**: *string* -*Defined in [types.ts:107](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L107)* +*Defined in [types.ts:80](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L80)* ___ -### orderHash +### to -• **orderHash**: *string* +• **to**: *string* -*Defined in [types.ts:105](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L105)* +*Defined in [types.ts:81](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L81)* ___ -### signedOrder +### tokenId -• **signedOrder**: *[StringifiedSignedOrder](#interface-stringifiedsignedorder)* +• **tokenId**: *`BigNumber`* -*Defined in [types.ts:106](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L106)* +*Defined in [types.ts:82](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L82)*
-> # Interface: RawRejectedOrderInfo +> # Interface: ExchangeCancelEvent ## Hierarchy -* **RawRejectedOrderInfo** +* **ExchangeCancelEvent** ## Index ### Properties -* [kind](#kind) +* [feeRecipientAddress](#feerecipientaddress) +* [makerAddress](#makeraddress) +* [makerAssetData](#makerassetdata) * [orderHash](#orderhash) -* [signedOrder](#signedorder) -* [status](#status) +* [senderAddress](#senderaddress) +* [takerAssetData](#takerassetdata) ## Properties -### kind +### feeRecipientAddress -• **kind**: *[RejectedKind](#enumeration-rejectedkind)* +• **feeRecipientAddress**: *string* -*Defined in [types.ts:147](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L147)* +*Defined in [types.ts:178](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L178)* ___ -### orderHash +### makerAddress -• **orderHash**: *string* +• **makerAddress**: *string* -*Defined in [types.ts:145](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L145)* +*Defined in [types.ts:176](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L176)* ___ -### signedOrder +### makerAssetData -• **signedOrder**: *[StringifiedSignedOrder](#interface-stringifiedsignedorder)* +• **makerAssetData**: *string* -*Defined in [types.ts:146](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L146)* +*Defined in [types.ts:180](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L180)* + +___ + +### orderHash + +• **orderHash**: *string* + +*Defined in [types.ts:179](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L179)* + +___ + +### senderAddress + +• **senderAddress**: *string* + +*Defined in [types.ts:177](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L177)* + +___ + +### takerAssetData + +• **takerAssetData**: *string* + +*Defined in [types.ts:181](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L181)* + +
+ +> # Interface: ExchangeCancelUpToEvent + +## Hierarchy + +* **ExchangeCancelUpToEvent** + +## Index + +### Properties + +* [makerAddress](#makeraddress) +* [orderEpoch](#orderepoch) +* [senderAddress](#senderaddress) + +## Properties + +### makerAddress + +• **makerAddress**: *string* + +*Defined in [types.ts:185](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L185)* + +___ + +### orderEpoch + +• **orderEpoch**: *`BigNumber`* + +*Defined in [types.ts:187](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L187)* + +___ + +### senderAddress + +• **senderAddress**: *string* + +*Defined in [types.ts:186](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L186)* + +
+ +> # Interface: ExchangeFillEvent + +## Hierarchy + +* **ExchangeFillEvent** + +## Index + +### Properties + +* [feeRecipientAddress](#feerecipientaddress) +* [makerAddress](#makeraddress) +* [makerAssetData](#makerassetdata) +* [makerAssetFilledAmount](#makerassetfilledamount) +* [makerFeePaid](#makerfeepaid) +* [orderHash](#orderhash) +* [senderAddress](#senderaddress) +* [takerAddress](#takeraddress) +* [takerAssetData](#takerassetdata) +* [takerAssetFilledAmount](#takerassetfilledamount) +* [takerFeePaid](#takerfeepaid) + +## Properties + +### feeRecipientAddress + +• **feeRecipientAddress**: *string* + +*Defined in [types.ts:151](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L151)* + +___ + +### makerAddress + +• **makerAddress**: *string* + +*Defined in [types.ts:148](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L148)* + +___ + +### makerAssetData + +• **makerAssetData**: *string* + +*Defined in [types.ts:157](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L157)* + +___ + +### makerAssetFilledAmount + +• **makerAssetFilledAmount**: *`BigNumber`* + +*Defined in [types.ts:152](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L152)* + +___ + +### makerFeePaid + +• **makerFeePaid**: *`BigNumber`* + +*Defined in [types.ts:154](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L154)* + +___ + +### orderHash + +• **orderHash**: *string* + +*Defined in [types.ts:156](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L156)* + +___ + +### senderAddress + +• **senderAddress**: *string* + +*Defined in [types.ts:150](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L150)* + +___ + +### takerAddress + +• **takerAddress**: *string* + +*Defined in [types.ts:149](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L149)* + +___ + +### takerAssetData + +• **takerAssetData**: *string* + +*Defined in [types.ts:158](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L158)* + +___ + +### takerAssetFilledAmount + +• **takerAssetFilledAmount**: *`BigNumber`* + +*Defined in [types.ts:153](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L153)* + +___ + +### takerFeePaid + +• **takerFeePaid**: *`BigNumber`* + +*Defined in [types.ts:155](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L155)* + +
+ +> # Interface: GetOrdersResponse + +## Hierarchy + +* **GetOrdersResponse** + +## Index + +### Properties + +* [ordersInfos](#ordersinfos) +* [snapshotID](#snapshotid) +* [snapshotTimestamp](#snapshottimestamp) + +## Properties + +### ordersInfos + +• **ordersInfos**: *[OrderInfo](#interface-orderinfo)[]* + +*Defined in [types.ts:415](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L415)* + +___ + +### snapshotID + +• **snapshotID**: *string* + +*Defined in [types.ts:413](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L413)* + +___ + +### snapshotTimestamp + +• **snapshotTimestamp**: *number* + +*Defined in [types.ts:414](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L414)* + +
+ +> # Interface: GetStatsResponse + +## Hierarchy + +* **GetStatsResponse** + +## Index + +### Properties + +* [ethRPCRateLimitExpiredRequests](#ethrpcratelimitexpiredrequests) +* [ethRPCRequestsSentInCurrentUTCDay](#ethrpcrequestssentincurrentutcday) +* [ethereumChainID](#ethereumchainid) +* [latestBlock](#latestblock) +* [maxExpirationTime](#maxexpirationtime) +* [numOrders](#numorders) +* [numOrdersIncludingRemoved](#numordersincludingremoved) +* [numPeers](#numpeers) +* [numPinnedOrders](#numpinnedorders) +* [peerID](#peerid) +* [pubSubTopic](#pubsubtopic) +* [rendezvous](#rendezvous) +* [startOfCurrentUTCDay](#startofcurrentutcday) +* [version](#version) + +## Properties + +### ethRPCRateLimitExpiredRequests + +• **ethRPCRateLimitExpiredRequests**: *number* + +*Defined in [types.ts:442](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L442)* + +___ + +### ethRPCRequestsSentInCurrentUTCDay + +• **ethRPCRequestsSentInCurrentUTCDay**: *number* + +*Defined in [types.ts:441](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L441)* + +___ + +### ethereumChainID + +• **ethereumChainID**: *number* + +*Defined in [types.ts:433](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L433)* + +___ + +### latestBlock + +• **latestBlock**: *[LatestBlock](#interface-latestblock)* + +*Defined in [types.ts:434](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L434)* + +___ + +### maxExpirationTime + +• **maxExpirationTime**: *string* + +*Defined in [types.ts:439](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L439)* + +___ + +### numOrders + +• **numOrders**: *number* + +*Defined in [types.ts:436](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L436)* + +___ + +### numOrdersIncludingRemoved + +• **numOrdersIncludingRemoved**: *number* + +*Defined in [types.ts:437](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L437)* + +___ + +### numPeers + +• **numPeers**: *number* + +*Defined in [types.ts:435](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L435)* + +___ + +### numPinnedOrders + +• **numPinnedOrders**: *number* + +*Defined in [types.ts:438](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L438)* + +___ + +### peerID + +• **peerID**: *string* + +*Defined in [types.ts:432](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L432)* + +___ + +### pubSubTopic + +• **pubSubTopic**: *string* + +*Defined in [types.ts:430](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L430)* + +___ + +### rendezvous + +• **rendezvous**: *string* + +*Defined in [types.ts:431](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L431)* + +___ + +### startOfCurrentUTCDay + +• **startOfCurrentUTCDay**: *string* + +*Defined in [types.ts:440](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L440)* + +___ + +### version + +• **version**: *string* + +*Defined in [types.ts:429](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L429)* + +
+ +> # Interface: HeartbeatEventPayload + +## Hierarchy + +* **HeartbeatEventPayload** + +## Index + +### Properties + +* [result](#result) +* [subscription](#subscription) + +## Properties + +### result + +• **result**: *string* + +*Defined in [types.ts:304](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L304)* + +___ + +### subscription + +• **subscription**: *string* + +*Defined in [types.ts:303](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L303)* + +
+ +> # Interface: LatestBlock + +## Hierarchy + +* **LatestBlock** + +## Index + +### Properties + +* [hash](#hash) +* [number](#number) + +## Properties + +### hash + +• **hash**: *string* + +*Defined in [types.ts:425](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L425)* + +___ + +### number + +• **number**: *number* + +*Defined in [types.ts:424](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L424)* + +
+ +> # Interface: OrderEvent + +## Hierarchy + +* **OrderEvent** + +## Index + +### Properties + +* [contractEvents](#contractevents) +* [endState](#endstate) +* [fillableTakerAssetAmount](#fillabletakerassetamount) +* [orderHash](#orderhash) +* [signedOrder](#signedorder) +* [timestampMs](#timestampms) + +## Properties + +### contractEvents + +• **contractEvents**: *[ContractEvent](#interface-contractevent)[]* + +*Defined in [types.ts:322](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L322)* + +___ + +### endState + +• **endState**: *[OrderEventEndState](#enumeration-ordereventendstate)* + +*Defined in [types.ts:320](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L320)* + +___ + +### fillableTakerAssetAmount + +• **fillableTakerAssetAmount**: *`BigNumber`* + +*Defined in [types.ts:321](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L321)* + +___ + +### orderHash + +• **orderHash**: *string* + +*Defined in [types.ts:318](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L318)* + +___ + +### signedOrder + +• **signedOrder**: *`SignedOrder`* + +*Defined in [types.ts:319](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L319)* + +___ + +### timestampMs + +• **timestampMs**: *number* + +*Defined in [types.ts:317](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L317)* + +
+ +> # Interface: OrderEventPayload + +## Hierarchy + +* **OrderEventPayload** + +## Index + +### Properties + +* [result](#result) +* [subscription](#subscription) + +## Properties + +### result + +• **result**: *[RawOrderEvent](#interface-raworderevent)[]* + +*Defined in [types.ts:299](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L299)* + +___ + +### subscription + +• **subscription**: *string* + +*Defined in [types.ts:298](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L298)* + +
+ +> # Interface: OrderInfo + +## Hierarchy + +* **OrderInfo** + +## Index + +### Properties + +* [fillableTakerAssetAmount](#fillabletakerassetamount) +* [orderHash](#orderhash) +* [signedOrder](#signedorder) + +## Properties + +### fillableTakerAssetAmount + +• **fillableTakerAssetAmount**: *`BigNumber`* + +*Defined in [types.ts:348](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L348)* + +___ + +### orderHash + +• **orderHash**: *string* + +*Defined in [types.ts:346](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L346)* + +___ + +### signedOrder + +• **signedOrder**: *`SignedOrder`* + +*Defined in [types.ts:347](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L347)* + +
+ +> # Interface: RawAcceptedOrderInfo + +## Hierarchy + +* **RawAcceptedOrderInfo** + +## Index + +### Properties + +* [fillableTakerAssetAmount](#fillabletakerassetamount) +* [isNew](#isnew) +* [orderHash](#orderhash) +* [signedOrder](#signedorder) + +## Properties + +### fillableTakerAssetAmount + +• **fillableTakerAssetAmount**: *string* + +*Defined in [types.ts:328](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L328)* + +___ + +### isNew + +• **isNew**: *boolean* + +*Defined in [types.ts:329](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L329)* + +___ + +### orderHash + +• **orderHash**: *string* + +*Defined in [types.ts:326](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L326)* + +___ + +### signedOrder + +• **signedOrder**: *[StringifiedSignedOrder](#interface-stringifiedsignedorder)* + +*Defined in [types.ts:327](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L327)* + +
+ +> # Interface: RawGetOrdersResponse + +## Hierarchy + +* **RawGetOrdersResponse** + +## Index + +### Properties + +* [ordersInfos](#ordersinfos) +* [snapshotID](#snapshotid) +* [snapshotTimestamp](#snapshottimestamp) + +## Properties + +### ordersInfos + +• **ordersInfos**: *[RawAcceptedOrderInfo](#interface-rawacceptedorderinfo)[]* + +*Defined in [types.ts:406](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L406)* + +___ + +### snapshotID + +• **snapshotID**: *string* + +*Defined in [types.ts:404](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L404)* + +___ + +### snapshotTimestamp + +• **snapshotTimestamp**: *string* + +*Defined in [types.ts:405](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L405)* + +
+ +> # Interface: RawOrderEvent + +## Hierarchy + +* **RawOrderEvent** + +## Index + +### Properties + +* [contractEvents](#contractevents) +* [endState](#endstate) +* [fillableTakerAssetAmount](#fillabletakerassetamount) +* [orderHash](#orderhash) +* [signedOrder](#signedorder) +* [timestamp](#timestamp) + +## Properties + +### contractEvents + +• **contractEvents**: *[StringifiedContractEvent](#interface-stringifiedcontractevent)[]* + +*Defined in [types.ts:313](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L313)* + +___ + +### endState + +• **endState**: *[OrderEventEndState](#enumeration-ordereventendstate)* + +*Defined in [types.ts:311](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L311)* + +___ + +### fillableTakerAssetAmount + +• **fillableTakerAssetAmount**: *string* + +*Defined in [types.ts:312](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L312)* + +___ + +### orderHash + +• **orderHash**: *string* + +*Defined in [types.ts:309](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L309)* + +___ + +### signedOrder + +• **signedOrder**: *[StringifiedSignedOrder](#interface-stringifiedsignedorder)* + +*Defined in [types.ts:310](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L310)* + +___ + +### timestamp + +• **timestamp**: *string* + +*Defined in [types.ts:308](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L308)* + +
+ +> # Interface: RawOrderInfo + +## Hierarchy + +* **RawOrderInfo** + +## Index + +### Properties + +* [fillableTakerAssetAmount](#fillabletakerassetamount) +* [orderHash](#orderhash) +* [signedOrder](#signedorder) + +## Properties + +### fillableTakerAssetAmount + +• **fillableTakerAssetAmount**: *string* + +*Defined in [types.ts:342](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L342)* + +___ + +### orderHash + +• **orderHash**: *string* + +*Defined in [types.ts:340](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L340)* + +___ + +### signedOrder + +• **signedOrder**: *[StringifiedSignedOrder](#interface-stringifiedsignedorder)* + +*Defined in [types.ts:341](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L341)* + +
+ +> # Interface: RawRejectedOrderInfo + +## Hierarchy + +* **RawRejectedOrderInfo** + +## Index + +### Properties + +* [kind](#kind) +* [orderHash](#orderhash) +* [signedOrder](#signedorder) +* [status](#status) + +## Properties + +### kind + +• **kind**: *[RejectedKind](#enumeration-rejectedkind)* + +*Defined in [types.ts:382](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L382)* + +___ + +### orderHash + +• **orderHash**: *string* + +*Defined in [types.ts:380](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L380)* + +___ + +### signedOrder + +• **signedOrder**: *[StringifiedSignedOrder](#interface-stringifiedsignedorder)* + +*Defined in [types.ts:381](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L381)* + +___ + +### status + +• **status**: *[RejectedStatus](#interface-rejectedstatus)* + +*Defined in [types.ts:383](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L383)* + +
+ +> # Interface: RawValidationResults + +## Hierarchy + +* **RawValidationResults** + +## Index + +### Properties + +* [accepted](#accepted) +* [rejected](#rejected) + +## Properties + +### accepted + +• **accepted**: *[RawAcceptedOrderInfo](#interface-rawacceptedorderinfo)[]* + +*Defined in [types.ts:394](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L394)* + +___ + +### rejected + +• **rejected**: *[RawRejectedOrderInfo](#interface-rawrejectedorderinfo)[]* + +*Defined in [types.ts:395](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L395)* + +
+ +> # Interface: RejectedOrderInfo + +## Hierarchy + +* **RejectedOrderInfo** + +## Index + +### Properties + +* [kind](#kind) +* [orderHash](#orderhash) +* [signedOrder](#signedorder) +* [status](#status) + +## Properties + +### kind + +• **kind**: *[RejectedKind](#enumeration-rejectedkind)* + +*Defined in [types.ts:389](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L389)* + +___ + +### orderHash + +• **orderHash**: *string* + +*Defined in [types.ts:387](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L387)* + +___ + +### signedOrder + +• **signedOrder**: *`SignedOrder`* + +*Defined in [types.ts:388](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L388)* ___ ### status -• **status**: *[RejectedStatus](#interface-rejectedstatus)* +• **status**: *[RejectedStatus](#interface-rejectedstatus)* + +*Defined in [types.ts:390](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L390)* + +
+ +> # Interface: RejectedStatus + +## Hierarchy + +* **RejectedStatus** + +## Index + +### Properties + +* [code](#code) +* [message](#message) + +## Properties + +### code + +• **code**: *[RejectedCode](#enumeration-rejectedcode)* + +*Defined in [types.ts:375](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L375)* + +___ + +### message + +• **message**: *string* + +*Defined in [types.ts:376](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L376)* + +
+ +> # Interface: StringifiedContractEvent + +## Hierarchy + +* **StringifiedContractEvent** + +## Index + +### Properties + +* [address](#address) +* [blockHash](#blockhash) +* [isRemoved](#isremoved) +* [kind](#kind) +* [logIndex](#logindex) +* [parameters](#parameters) +* [txHash](#txhash) +* [txIndex](#txindex) + +## Properties + +### address + +• **address**: *string* + +*Defined in [types.ts:253](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L253)* + +___ + +### blockHash + +• **blockHash**: *string* + +*Defined in [types.ts:248](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L248)* + +___ + +### isRemoved + +• **isRemoved**: *string* + +*Defined in [types.ts:252](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L252)* + +___ + +### kind + +• **kind**: *string* + +*Defined in [types.ts:254](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L254)* + +___ + +### logIndex + +• **logIndex**: *number* + +*Defined in [types.ts:251](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L251)* + +___ + +### parameters + +• **parameters**: *[StringifiedContractEventParameters](#stringifiedcontracteventparameters)* + +*Defined in [types.ts:255](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L255)* + +___ + +### txHash + +• **txHash**: *string* + +*Defined in [types.ts:249](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L249)* + +___ + +### txIndex + +• **txIndex**: *number* + +*Defined in [types.ts:250](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L250)* + +
+ +> # Interface: StringifiedERC1155TransferBatchEvent + +## Hierarchy + +* **StringifiedERC1155TransferBatchEvent** + +## Index + +### Properties + +* [from](#from) +* [ids](#ids) +* [operator](#operator) +* [to](#to) +* [values](#values) + +## Properties + +### from + +• **from**: *string* + +*Defined in [types.ts:135](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L135)* + +___ + +### ids + +• **ids**: *string[]* + +*Defined in [types.ts:137](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L137)* + +___ + +### operator + +• **operator**: *string* + +*Defined in [types.ts:134](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L134)* + +___ + +### to + +• **to**: *string* + +*Defined in [types.ts:136](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L136)* + +___ + +### values + +• **values**: *string[]* + +*Defined in [types.ts:138](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L138)* + +
+ +> # Interface: StringifiedERC1155TransferSingleEvent + +## Hierarchy + +* **StringifiedERC1155TransferSingleEvent** + +## Index + +### Properties + +* [from](#from) +* [id](#id) +* [operator](#operator) +* [to](#to) +* [value](#value) + +## Properties + +### from + +• **from**: *string* + +*Defined in [types.ts:119](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L119)* + +___ + +### id + +• **id**: *string* + +*Defined in [types.ts:121](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L121)* + +___ + +### operator + +• **operator**: *string* + +*Defined in [types.ts:118](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L118)* + +___ + +### to + +• **to**: *string* + +*Defined in [types.ts:120](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L120)* + +___ + +### value + +• **value**: *string* + +*Defined in [types.ts:122](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L122)* + +
+ +> # Interface: StringifiedERC20ApprovalEvent + +## Hierarchy + +* **StringifiedERC20ApprovalEvent** + +## Index + +### Properties + +* [owner](#owner) +* [spender](#spender) +* [value](#value) + +## Properties + +### owner + +• **owner**: *string* + +*Defined in [types.ts:74](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L74)* + +___ + +### spender + +• **spender**: *string* + +*Defined in [types.ts:75](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L75)* + +___ -*Defined in [types.ts:148](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L148)* +### value + +• **value**: *string* + +*Defined in [types.ts:76](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L76)*
-> # Interface: RawValidationResults +> # Interface: StringifiedERC20TransferEvent ## Hierarchy -* **RawValidationResults** +* **StringifiedERC20TransferEvent** ## Index ### Properties -* [accepted](#accepted) -* [rejected](#rejected) +* [from](#from) +* [to](#to) +* [value](#value) ## Properties -### accepted +### from -• **accepted**: *[RawAcceptedOrderInfo](#interface-rawacceptedorderinfo)[]* +• **from**: *string* -*Defined in [types.ts:159](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L159)* +*Defined in [types.ts:62](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L62)* ___ -### rejected +### to -• **rejected**: *[RawRejectedOrderInfo](#interface-rawrejectedorderinfo)[]* +• **to**: *string* + +*Defined in [types.ts:63](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L63)* + +___ + +### value -*Defined in [types.ts:160](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L160)* +• **value**: *string* + +*Defined in [types.ts:64](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L64)*
-> # Interface: RejectedOrderInfo +> # Interface: StringifiedERC721ApprovalEvent ## Hierarchy -* **RejectedOrderInfo** +* **StringifiedERC721ApprovalEvent** ## Index ### Properties -* [kind](#kind) -* [orderHash](#orderhash) -* [signedOrder](#signedorder) -* [status](#status) +* [approved](#approved) +* [owner](#owner) +* [tokenId](#tokenid) ## Properties -### kind +### approved -• **kind**: *[RejectedKind](#enumeration-rejectedkind)* +• **approved**: *string* -*Defined in [types.ts:154](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L154)* +*Defined in [types.ts:99](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L99)* ___ -### orderHash +### owner -• **orderHash**: *string* +• **owner**: *string* -*Defined in [types.ts:152](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L152)* +*Defined in [types.ts:98](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L98)* ___ -### signedOrder +### tokenId -• **signedOrder**: *`SignedOrder`* +• **tokenId**: *string* + +*Defined in [types.ts:100](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L100)* + +
+ +> # Interface: StringifiedERC721TransferEvent + +## Hierarchy + +* **StringifiedERC721TransferEvent** + +## Index + +### Properties + +* [from](#from) +* [to](#to) +* [tokenId](#tokenid) + +## Properties + +### from -*Defined in [types.ts:153](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L153)* +• **from**: *string* + +*Defined in [types.ts:86](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L86)* ___ -### status +### to -• **status**: *[RejectedStatus](#interface-rejectedstatus)* +• **to**: *string* + +*Defined in [types.ts:87](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L87)* + +___ -*Defined in [types.ts:155](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L155)* +### tokenId + +• **tokenId**: *string* + +*Defined in [types.ts:88](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L88)*
-> # Interface: RejectedStatus +> # Interface: StringifiedExchangeCancelUpToEvent ## Hierarchy -* **RejectedStatus** +* **StringifiedExchangeCancelUpToEvent** ## Index ### Properties -* [code](#code) -* [message](#message) +* [makerAddress](#makeraddress) +* [orderEpoch](#orderepoch) +* [senderAddress](#senderaddress) ## Properties -### code +### makerAddress -• **code**: *[RejectedCode](#enumeration-rejectedcode)* +• **makerAddress**: *string* -*Defined in [types.ts:140](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L140)* +*Defined in [types.ts:191](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L191)* ___ -### message +### orderEpoch -• **message**: *string* +• **orderEpoch**: *string* + +*Defined in [types.ts:193](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L193)* + +___ + +### senderAddress + +• **senderAddress**: *string* + +*Defined in [types.ts:192](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L192)* + +
+ +> # Interface: StringifiedExchangeFillEvent + +## Hierarchy + +* **StringifiedExchangeFillEvent** + +## Index + +### Properties + +* [feeRecipientAddress](#feerecipientaddress) +* [makerAddress](#makeraddress) +* [makerAssetData](#makerassetdata) +* [makerAssetFilledAmount](#makerassetfilledamount) +* [makerFeePaid](#makerfeepaid) +* [orderHash](#orderhash) +* [senderAddress](#senderaddress) +* [takerAddress](#takeraddress) +* [takerAssetData](#takerassetdata) +* [takerAssetFilledAmount](#takerassetfilledamount) +* [takerFeePaid](#takerfeepaid) + +## Properties + +### feeRecipientAddress + +• **feeRecipientAddress**: *string* + +*Defined in [types.ts:165](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L165)* + +___ + +### makerAddress + +• **makerAddress**: *string* + +*Defined in [types.ts:162](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L162)* + +___ + +### makerAssetData + +• **makerAssetData**: *string* + +*Defined in [types.ts:171](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L171)* + +___ + +### makerAssetFilledAmount -*Defined in [types.ts:141](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L141)* +• **makerAssetFilledAmount**: *string* + +*Defined in [types.ts:166](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L166)* + +___ + +### makerFeePaid + +• **makerFeePaid**: *string* + +*Defined in [types.ts:168](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L168)* + +___ + +### orderHash + +• **orderHash**: *string* + +*Defined in [types.ts:170](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L170)* + +___ + +### senderAddress + +• **senderAddress**: *string* + +*Defined in [types.ts:164](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L164)* + +___ + +### takerAddress + +• **takerAddress**: *string* + +*Defined in [types.ts:163](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L163)* + +___ + +### takerAssetData + +• **takerAssetData**: *string* + +*Defined in [types.ts:172](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L172)* + +___ + +### takerAssetFilledAmount + +• **takerAssetFilledAmount**: *string* + +*Defined in [types.ts:167](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L167)* + +___ + +### takerFeePaid + +• **takerFeePaid**: *string* + +*Defined in [types.ts:169](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L169)*
@@ -1232,7 +2671,7 @@ ___ • **exchangeAddress**: *string* -*Defined in [types.ts:47](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L47)* +*Defined in [types.ts:49](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L49)* ___ @@ -1240,7 +2679,7 @@ ___ • **expirationTimeSeconds**: *string* -*Defined in [types.ts:49](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L49)* +*Defined in [types.ts:51](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L51)* ___ @@ -1248,7 +2687,7 @@ ___ • **feeRecipientAddress**: *string* -*Defined in [types.ts:48](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L48)* +*Defined in [types.ts:50](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L50)* ___ @@ -1256,7 +2695,7 @@ ___ • **makerAddress**: *string* -*Defined in [types.ts:38](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L38)* +*Defined in [types.ts:40](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L40)* ___ @@ -1264,7 +2703,7 @@ ___ • **makerAssetAmount**: *string* -*Defined in [types.ts:42](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L42)* +*Defined in [types.ts:44](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L44)* ___ @@ -1272,7 +2711,7 @@ ___ • **makerAssetData**: *string* -*Defined in [types.ts:44](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L44)* +*Defined in [types.ts:46](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L46)* ___ @@ -1280,7 +2719,7 @@ ___ • **makerFee**: *string* -*Defined in [types.ts:40](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L40)* +*Defined in [types.ts:42](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L42)* ___ @@ -1288,7 +2727,7 @@ ___ • **salt**: *string* -*Defined in [types.ts:46](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L46)* +*Defined in [types.ts:48](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L48)* ___ @@ -1296,7 +2735,7 @@ ___ • **senderAddress**: *string* -*Defined in [types.ts:37](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L37)* +*Defined in [types.ts:39](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L39)* ___ @@ -1304,7 +2743,7 @@ ___ • **signature**: *string* -*Defined in [types.ts:50](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L50)* +*Defined in [types.ts:52](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L52)* ___ @@ -1312,7 +2751,7 @@ ___ • **takerAddress**: *string* -*Defined in [types.ts:39](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L39)* +*Defined in [types.ts:41](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L41)* ___ @@ -1320,7 +2759,7 @@ ___ • **takerAssetAmount**: *string* -*Defined in [types.ts:43](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L43)* +*Defined in [types.ts:45](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L45)* ___ @@ -1328,7 +2767,7 @@ ___ • **takerAssetData**: *string* -*Defined in [types.ts:45](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L45)* +*Defined in [types.ts:47](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L47)* ___ @@ -1336,7 +2775,69 @@ ___ • **takerFee**: *string* -*Defined in [types.ts:41](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L41)* +*Defined in [types.ts:43](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L43)* + +
+ +> # Interface: StringifiedWethDepositEvent + +## Hierarchy + +* **StringifiedWethDepositEvent** + +## Index + +### Properties + +* [owner](#owner) +* [value](#value) + +## Properties + +### owner + +• **owner**: *string* + +*Defined in [types.ts:212](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L212)* + +___ + +### value + +• **value**: *string* + +*Defined in [types.ts:213](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L213)* + +
+ +> # Interface: StringifiedWethWithdrawalEvent + +## Hierarchy + +* **StringifiedWethWithdrawalEvent** + +## Index + +### Properties + +* [owner](#owner) +* [value](#value) + +## Properties + +### owner + +• **owner**: *string* + +*Defined in [types.ts:202](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L202)* + +___ + +### value + +• **value**: *string* + +*Defined in [types.ts:203](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L203)*
@@ -1359,7 +2860,7 @@ ___ • **accepted**: *[AcceptedOrderInfo](#interface-acceptedorderinfo)[]* -*Defined in [types.ts:164](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L164)* +*Defined in [types.ts:399](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L399)* ___ @@ -1367,7 +2868,69 @@ ___ • **rejected**: *[RejectedOrderInfo](#interface-rejectedorderinfo)[]* -*Defined in [types.ts:165](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L165)* +*Defined in [types.ts:400](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L400)* + +
+ +> # Interface: WethDepositEvent + +## Hierarchy + +* **WethDepositEvent** + +## Index + +### Properties + +* [owner](#owner) +* [value](#value) + +## Properties + +### owner + +• **owner**: *string* + +*Defined in [types.ts:207](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L207)* + +___ + +### value + +• **value**: *`BigNumber`* + +*Defined in [types.ts:208](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L208)* + +
+ +> # Interface: WethWithdrawalEvent + +## Hierarchy + +* **WethWithdrawalEvent** + +## Index + +### Properties + +* [owner](#owner) +* [value](#value) + +## Properties + +### owner + +• **owner**: *string* + +*Defined in [types.ts:197](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L197)* + +___ + +### value + +• **value**: *`BigNumber`* + +*Defined in [types.ts:198](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L198)*
@@ -1390,7 +2953,7 @@ ___ • **type**: *string* -*Defined in [types.ts:174](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L174)* +*Defined in [types.ts:419](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L419)* ___ @@ -1398,7 +2961,7 @@ ___ • **utf8Data**: *string* -*Defined in [types.ts:175](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L175)* +*Defined in [types.ts:420](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L420)*
@@ -1410,7 +2973,7 @@ protocol: requestOptions should be either null or an object specifying additiona passed to http.request or https.request. This can be used to pass a custom agent to enable WebSocketClient usage from behind an HTTP or HTTPS proxy server using koichik/node-tunnel or similar. clientConfig: The client configs documented here: https://github.com/theturtle32/WebSocket-Node/blob/master/docs/WebSocketClient.md -reconnectAfter: time in milliseconds after which to attempt to reconnect to WS server after an error occurred (default: 5000) +reconnectDelay: time in milliseconds after which to attempt to reconnect to WS server after an error occurred (default: 5000) ## Hierarchy @@ -1423,7 +2986,7 @@ reconnectAfter: time in milliseconds after which to attempt to reconnect to WS s * [clientConfig](#optional-clientconfig) * [headers](#optional-headers) * [protocol](#optional-protocol) -* [reconnectAfter](#optional-reconnectafter) +* [reconnectDelay](#optional-reconnectdelay) * [timeout](#optional-timeout) ## Properties @@ -1432,7 +2995,7 @@ reconnectAfter: time in milliseconds after which to attempt to reconnect to WS s • **clientConfig**? : *[ClientConfig](#interface-clientconfig)* -*Defined in [types.ts:32](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L32)* +*Defined in [types.ts:34](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L34)* ___ @@ -1440,7 +3003,7 @@ ___ • **headers**? : *undefined | `__type`* -*Defined in [types.ts:30](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L30)* +*Defined in [types.ts:32](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L32)* ___ @@ -1448,15 +3011,15 @@ ___ • **protocol**? : *undefined | string* -*Defined in [types.ts:31](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L31)* +*Defined in [types.ts:33](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L33)* ___ -### `Optional` reconnectAfter +### `Optional` reconnectDelay -• **reconnectAfter**? : *undefined | number* +• **reconnectDelay**? : *undefined | number* -*Defined in [types.ts:33](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L33)* +*Defined in [types.ts:35](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L35)* ___ @@ -1464,7 +3027,7 @@ ___ • **timeout**? : *undefined | number* -*Defined in [types.ts:29](https://github.com/0xProject/0x-mesh/blob/3c0943a/rpc/clients/typescript/src/types.ts#L29)* +*Defined in [types.ts:31](https://github.com/0xProject/0x-mesh/blob/47da994/rpc/clients/typescript/src/types.ts#L31)*
diff --git a/docs/rpc_api.md b/docs/rpc_api.md index 36c6555b2..e5862e913 100644 --- a/docs/rpc_api.md +++ b/docs/rpc_api.md @@ -1,4 +1,4 @@ -[![Version](https://img.shields.io/badge/version-development-orange.svg)](https://github.com/0xProject/0x-mesh/releases) +[![Version](https://img.shields.io/badge/version-8.1.0-orange.svg)](https://github.com/0xProject/0x-mesh/releases) # 0x Mesh JSON-RPC API Documentation diff --git a/rpc/clients/typescript/package.json b/rpc/clients/typescript/package.json index d33fd5bdc..9fcbf9745 100644 --- a/rpc/clients/typescript/package.json +++ b/rpc/clients/typescript/package.json @@ -1,6 +1,6 @@ { "name": "@0x/mesh-rpc-client", - "version": "development", + "version": "8.1.0", "engines": { "node": ">=6.12" }, From 7ab84de2cbcdd100c0f93bc3cf284a33d7cffc5c Mon Sep 17 00:00:00 2001 From: Alex Browne Date: Fri, 10 Jan 2020 14:58:26 -0800 Subject: [PATCH 50/50] Fix browser README --- docs/browser/README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/browser/README.md b/docs/browser/README.md index 7a83b5c06..6a8517657 100644 --- a/docs/browser/README.md +++ b/docs/browser/README.md @@ -1,7 +1,5 @@ # @0x/mesh-browser -## @0x/mesh-browser - TypeScript and JavaScript bindings for running Mesh directly in the browser. ## Installation