|
|
|
@@ -1,25 +1,5 @@
|
|
|
|
|
# Interface: GanacheProvider
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Methods
|
|
|
|
|
|
|
|
|
|
### sendAsync
|
|
|
|
|
|
|
|
|
|
▸ **sendAsync**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:14](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L14)*
|
|
|
|
|
|
|
|
|
|
**Parameters:**
|
|
|
|
|
|
|
|
|
|
Name | Type |
|
|
|
|
|
------ | ------ |
|
|
|
|
|
`payload` | [JSONRPCRequestPayload](#class-jsonrpcrequestpayload) |
|
|
|
|
|
`callback` | [JSONRPCErrorCallback](#jsonrpcerrorcallback) |
|
|
|
|
|
|
|
|
|
|
**Returns:** *void*
|
|
|
|
|
|
|
|
|
|
<hr />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -37,7 +17,7 @@ Name | Type |
|
|
|
|
|
|
|
|
|
|
• **assetProxyOwner**: *string*
|
|
|
|
|
|
|
|
|
|
*Defined in [contract-addresses/src/index.ts:9](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/contract-addresses/src/index.ts#L9)*
|
|
|
|
|
*Defined in [contract-addresses/src/index.ts:9](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L9)*
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
@@ -45,7 +25,7 @@ ___
|
|
|
|
|
|
|
|
|
|
• **coordinator**: *string*
|
|
|
|
|
|
|
|
|
|
*Defined in [contract-addresses/src/index.ts:14](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/contract-addresses/src/index.ts#L14)*
|
|
|
|
|
*Defined in [contract-addresses/src/index.ts:14](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L14)*
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
@@ -53,7 +33,7 @@ ___
|
|
|
|
|
|
|
|
|
|
• **coordinatorRegistry**: *string*
|
|
|
|
|
|
|
|
|
|
*Defined in [contract-addresses/src/index.ts:13](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/contract-addresses/src/index.ts#L13)*
|
|
|
|
|
*Defined in [contract-addresses/src/index.ts:13](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L13)*
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
@@ -61,7 +41,7 @@ ___
|
|
|
|
|
|
|
|
|
|
• **devUtils**: *string*
|
|
|
|
|
|
|
|
|
|
*Defined in [contract-addresses/src/index.ts:18](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/contract-addresses/src/index.ts#L18)*
|
|
|
|
|
*Defined in [contract-addresses/src/index.ts:18](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L18)*
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
@@ -69,7 +49,7 @@ ___
|
|
|
|
|
|
|
|
|
|
• **dutchAuction**: *string*
|
|
|
|
|
|
|
|
|
|
*Defined in [contract-addresses/src/index.ts:12](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/contract-addresses/src/index.ts#L12)*
|
|
|
|
|
*Defined in [contract-addresses/src/index.ts:12](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L12)*
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
@@ -77,7 +57,7 @@ ___
|
|
|
|
|
|
|
|
|
|
• **erc1155Proxy**: *string*
|
|
|
|
|
|
|
|
|
|
*Defined in [contract-addresses/src/index.ts:17](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/contract-addresses/src/index.ts#L17)*
|
|
|
|
|
*Defined in [contract-addresses/src/index.ts:17](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L17)*
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
@@ -85,7 +65,7 @@ ___
|
|
|
|
|
|
|
|
|
|
• **erc20Proxy**: *string*
|
|
|
|
|
|
|
|
|
|
*Defined in [contract-addresses/src/index.ts:4](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/contract-addresses/src/index.ts#L4)*
|
|
|
|
|
*Defined in [contract-addresses/src/index.ts:4](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L4)*
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
@@ -93,7 +73,7 @@ ___
|
|
|
|
|
|
|
|
|
|
• **erc721Proxy**: *string*
|
|
|
|
|
|
|
|
|
|
*Defined in [contract-addresses/src/index.ts:5](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/contract-addresses/src/index.ts#L5)*
|
|
|
|
|
*Defined in [contract-addresses/src/index.ts:5](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L5)*
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
@@ -101,7 +81,7 @@ ___
|
|
|
|
|
|
|
|
|
|
• **etherToken**: *string*
|
|
|
|
|
|
|
|
|
|
*Defined in [contract-addresses/src/index.ts:7](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/contract-addresses/src/index.ts#L7)*
|
|
|
|
|
*Defined in [contract-addresses/src/index.ts:7](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L7)*
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
@@ -109,7 +89,7 @@ ___
|
|
|
|
|
|
|
|
|
|
• **exchange**: *string*
|
|
|
|
|
|
|
|
|
|
*Defined in [contract-addresses/src/index.ts:8](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/contract-addresses/src/index.ts#L8)*
|
|
|
|
|
*Defined in [contract-addresses/src/index.ts:8](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L8)*
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
@@ -117,7 +97,7 @@ ___
|
|
|
|
|
|
|
|
|
|
• **forwarder**: *string*
|
|
|
|
|
|
|
|
|
|
*Defined in [contract-addresses/src/index.ts:10](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/contract-addresses/src/index.ts#L10)*
|
|
|
|
|
*Defined in [contract-addresses/src/index.ts:10](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L10)*
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
@@ -125,7 +105,7 @@ ___
|
|
|
|
|
|
|
|
|
|
• **multiAssetProxy**: *string*
|
|
|
|
|
|
|
|
|
|
*Defined in [contract-addresses/src/index.ts:15](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/contract-addresses/src/index.ts#L15)*
|
|
|
|
|
*Defined in [contract-addresses/src/index.ts:15](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L15)*
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
@@ -133,7 +113,7 @@ ___
|
|
|
|
|
|
|
|
|
|
• **orderValidator**: *string*
|
|
|
|
|
|
|
|
|
|
*Defined in [contract-addresses/src/index.ts:11](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/contract-addresses/src/index.ts#L11)*
|
|
|
|
|
*Defined in [contract-addresses/src/index.ts:11](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L11)*
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
@@ -141,7 +121,7 @@ ___
|
|
|
|
|
|
|
|
|
|
• **staticCallProxy**: *string*
|
|
|
|
|
|
|
|
|
|
*Defined in [contract-addresses/src/index.ts:16](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/contract-addresses/src/index.ts#L16)*
|
|
|
|
|
*Defined in [contract-addresses/src/index.ts:16](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L16)*
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
@@ -149,7 +129,7 @@ ___
|
|
|
|
|
|
|
|
|
|
• **zrxToken**: *string*
|
|
|
|
|
|
|
|
|
|
*Defined in [contract-addresses/src/index.ts:6](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/contract-addresses/src/index.ts#L6)*
|
|
|
|
|
*Defined in [contract-addresses/src/index.ts:6](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L6)*
|
|
|
|
|
|
|
|
|
|
<hr />
|
|
|
|
|
|
|
|
|
@@ -198,7 +178,7 @@ ___
|
|
|
|
|
|
|
|
|
|
• **isEIP1193**: *boolean*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:73](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L73)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:73](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L73)*
|
|
|
|
|
|
|
|
|
|
## Methods
|
|
|
|
|
|
|
|
|
@@ -206,7 +186,7 @@ ___
|
|
|
|
|
|
|
|
|
|
▸ **on**(`event`: [EIP1193Event](#eip1193event), `listener`: function): *this*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:75](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L75)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:75](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L75)*
|
|
|
|
|
|
|
|
|
|
**Parameters:**
|
|
|
|
|
|
|
|
|
@@ -230,7 +210,7 @@ ___
|
|
|
|
|
|
|
|
|
|
▸ **send**(`method`: string, `params?`: any[]): *`Promise<any>`*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:74](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L74)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:74](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L74)*
|
|
|
|
|
|
|
|
|
|
**Parameters:**
|
|
|
|
|
|
|
|
|
@@ -255,8 +235,28 @@ Name | Type |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Interface: GanacheProvider
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Methods
|
|
|
|
|
|
|
|
|
|
### sendAsync
|
|
|
|
|
|
|
|
|
|
▸ **sendAsync**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:14](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L14)*
|
|
|
|
|
|
|
|
|
|
**Parameters:**
|
|
|
|
|
|
|
|
|
|
Name | Type |
|
|
|
|
|
------ | ------ |
|
|
|
|
|
`payload` | [JSONRPCRequestPayload](#class-jsonrpcrequestpayload) |
|
|
|
|
|
`callback` | [JSONRPCErrorCallback](#jsonrpcerrorcallback) |
|
|
|
|
|
|
|
|
|
|
**Returns:** *void*
|
|
|
|
|
|
|
|
|
|
<hr />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Interface: JSONRPCRequestPayload
|
|
|
|
@@ -268,7 +268,7 @@ Name | Type |
|
|
|
|
|
|
|
|
|
|
• **id**: *number*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:324](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L324)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:330](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L330)*
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
@@ -276,7 +276,7 @@ ___
|
|
|
|
|
|
|
|
|
|
• **jsonrpc**: *string*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:325](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L325)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:331](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L331)*
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
@@ -284,7 +284,7 @@ ___
|
|
|
|
|
|
|
|
|
|
• **method**: *string*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:323](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L323)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:329](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L329)*
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
@@ -292,7 +292,7 @@ ___
|
|
|
|
|
|
|
|
|
|
• **params**: *any[]*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:322](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L322)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:328](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L328)*
|
|
|
|
|
|
|
|
|
|
<hr />
|
|
|
|
|
|
|
|
|
@@ -305,7 +305,7 @@ ___
|
|
|
|
|
|
|
|
|
|
• **code**: *number*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:330](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L330)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:336](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L336)*
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
@@ -313,7 +313,7 @@ ___
|
|
|
|
|
|
|
|
|
|
• **message**: *string*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:329](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L329)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:335](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L335)*
|
|
|
|
|
|
|
|
|
|
<hr />
|
|
|
|
|
|
|
|
|
@@ -326,7 +326,7 @@ ___
|
|
|
|
|
|
|
|
|
|
• **error**? : *[JSONRPCResponseError](#class-jsonrpcresponseerror)*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:337](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L337)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:343](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L343)*
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
@@ -334,7 +334,7 @@ ___
|
|
|
|
|
|
|
|
|
|
• **id**: *number*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:335](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L335)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:341](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L341)*
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
@@ -342,7 +342,7 @@ ___
|
|
|
|
|
|
|
|
|
|
• **jsonrpc**: *string*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:336](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L336)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:342](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L342)*
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
@@ -350,7 +350,7 @@ ___
|
|
|
|
|
|
|
|
|
|
• **result**: *any*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:334](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L334)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:340](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L340)*
|
|
|
|
|
|
|
|
|
|
<hr />
|
|
|
|
|
|
|
|
|
@@ -389,6 +389,8 @@ ___
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -403,7 +405,7 @@ ___
|
|
|
|
|
|
|
|
|
|
*Inherited from [CallTxDataBase](#interface-calltxdatabase).[data](#optional-data)*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:387](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L387)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:393](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L393)*
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
@@ -411,7 +413,7 @@ ___
|
|
|
|
|
|
|
|
|
|
• **from**: *string*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:392](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L392)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:398](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L398)*
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
@@ -421,7 +423,7 @@ ___
|
|
|
|
|
|
|
|
|
|
*Inherited from [CallTxDataBase](#interface-calltxdatabase).[gas](#optional-gas)*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:385](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L385)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:391](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L391)*
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
@@ -431,7 +433,7 @@ ___
|
|
|
|
|
|
|
|
|
|
*Inherited from [CallTxDataBase](#interface-calltxdatabase).[gasPrice](#optional-gasprice)*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:386](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L386)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:392](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L392)*
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
@@ -441,7 +443,7 @@ ___
|
|
|
|
|
|
|
|
|
|
*Inherited from [CallTxDataBase](#interface-calltxdatabase).[nonce](#optional-nonce)*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:388](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L388)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:394](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L394)*
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
@@ -451,7 +453,7 @@ ___
|
|
|
|
|
|
|
|
|
|
*Inherited from [CallTxDataBase](#interface-calltxdatabase).[to](#optional-to)*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:383](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L383)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:389](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L389)*
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
@@ -461,7 +463,7 @@ ___
|
|
|
|
|
|
|
|
|
|
*Inherited from [CallTxDataBase](#interface-calltxdatabase).[value](#optional-value)*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:384](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L384)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:390](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L390)*
|
|
|
|
|
|
|
|
|
|
<hr />
|
|
|
|
|
|
|
|
|
@@ -476,7 +478,7 @@ ___
|
|
|
|
|
|
|
|
|
|
*Inherited from [CallTxDataBase](#interface-calltxdatabase).[data](#optional-data)*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:387](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L387)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:393](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L393)*
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
@@ -486,7 +488,7 @@ ___
|
|
|
|
|
|
|
|
|
|
*Inherited from [TxData](#interface-txdata).[from](#from)*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:392](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L392)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:398](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L398)*
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
@@ -496,7 +498,7 @@ ___
|
|
|
|
|
|
|
|
|
|
*Inherited from [CallTxDataBase](#interface-calltxdatabase).[gas](#optional-gas)*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:385](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L385)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:391](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L391)*
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
@@ -506,7 +508,7 @@ ___
|
|
|
|
|
|
|
|
|
|
*Inherited from [CallTxDataBase](#interface-calltxdatabase).[gasPrice](#optional-gasprice)*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:386](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L386)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:392](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L392)*
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
@@ -516,7 +518,7 @@ ___
|
|
|
|
|
|
|
|
|
|
*Inherited from [CallTxDataBase](#interface-calltxdatabase).[nonce](#optional-nonce)*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:388](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L388)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:394](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L394)*
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
@@ -526,7 +528,7 @@ ___
|
|
|
|
|
|
|
|
|
|
*Inherited from [CallTxDataBase](#interface-calltxdatabase).[to](#optional-to)*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:383](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L383)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:389](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L389)*
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
@@ -536,7 +538,7 @@ ___
|
|
|
|
|
|
|
|
|
|
*Overrides [CallTxDataBase](_ethereum_types_src_index_.calltxdatabase.md).[value](#optional-value)*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:434](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L434)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:442](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L442)*
|
|
|
|
|
|
|
|
|
|
<hr />
|
|
|
|
|
|
|
|
|
@@ -553,7 +555,7 @@ This interface allowed sending synchonous requests, support for which was later
|
|
|
|
|
|
|
|
|
|
▸ **send**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md)): *[JSONRPCResponsePayload](#class-jsonrpcresponsepayload)*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:45](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L45)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:45](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L45)*
|
|
|
|
|
|
|
|
|
|
**Parameters:**
|
|
|
|
|
|
|
|
|
@@ -569,7 +571,7 @@ ___
|
|
|
|
|
|
|
|
|
|
▸ **sendAsync**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:44](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L44)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:44](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L44)*
|
|
|
|
|
|
|
|
|
|
**Parameters:**
|
|
|
|
|
|
|
|
|
@@ -595,7 +597,7 @@ before the first attempts to conform to EIP1193
|
|
|
|
|
|
|
|
|
|
▸ **send**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:54](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L54)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:54](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L54)*
|
|
|
|
|
|
|
|
|
|
**Parameters:**
|
|
|
|
|
|
|
|
|
@@ -621,7 +623,7 @@ however it does not conform entirely.
|
|
|
|
|
|
|
|
|
|
▸ **send**(`method`: string, `params?`: any[]): *`Promise<any>`*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:63](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L63)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:63](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L63)*
|
|
|
|
|
|
|
|
|
|
**Parameters:**
|
|
|
|
|
|
|
|
|
@@ -647,7 +649,7 @@ add here
|
|
|
|
|
|
|
|
|
|
• **isMetaMask**? : *undefined | false | true*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:31](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L31)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:31](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L31)*
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
@@ -655,7 +657,7 @@ ___
|
|
|
|
|
|
|
|
|
|
• **isParity**? : *undefined | false | true*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:32](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L32)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:32](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L32)*
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
@@ -663,7 +665,7 @@ ___
|
|
|
|
|
|
|
|
|
|
• **isZeroExProvider**? : *undefined | false | true*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:30](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L30)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:30](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L30)*
|
|
|
|
|
|
|
|
|
|
## Methods
|
|
|
|
|
|
|
|
|
@@ -671,7 +673,7 @@ ___
|
|
|
|
|
|
|
|
|
|
▸ **enable**(): *`Promise<void>`*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:34](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L34)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:34](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L34)*
|
|
|
|
|
|
|
|
|
|
**Returns:** *`Promise<void>`*
|
|
|
|
|
|
|
|
|
@@ -681,7 +683,7 @@ ___
|
|
|
|
|
|
|
|
|
|
▸ **sendAsync**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:35](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L35)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:35](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L35)*
|
|
|
|
|
|
|
|
|
|
**Parameters:**
|
|
|
|
|
|
|
|
|
@@ -698,7 +700,7 @@ ___
|
|
|
|
|
|
|
|
|
|
▸ **stop**(): *void*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:33](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L33)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:33](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L33)*
|
|
|
|
|
|
|
|
|
|
**Returns:** *void*
|
|
|
|
|
|
|
|
|
@@ -707,63 +709,13 @@ ___
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Functions
|
|
|
|
|
|
|
|
|
|
### runMigrationsAsync
|
|
|
|
|
|
|
|
|
|
▸ **runMigrationsAsync**(`supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `TxData`): *`Promise<ContractAddresses>`*
|
|
|
|
|
|
|
|
|
|
*Defined in [migrations/src/migration.ts:48](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/migrations/src/migration.ts#L48)*
|
|
|
|
|
|
|
|
|
|
Creates and deploys all the contracts that are required for the latest
|
|
|
|
|
version of the 0x protocol.
|
|
|
|
|
|
|
|
|
|
**Parameters:**
|
|
|
|
|
|
|
|
|
|
Name | Type | Description |
|
|
|
|
|
------ | ------ | ------ |
|
|
|
|
|
`supportedProvider` | [SupportedProvider](#supportedprovider) | Web3 provider instance. Your provider instance should connect to the testnet you want to deploy to. |
|
|
|
|
|
`txDefaults` | `TxData` | Default transaction values to use when deploying contracts (e.g., specify the desired contract creator with the `from` parameter). |
|
|
|
|
|
|
|
|
|
|
**Returns:** *`Promise<ContractAddresses>`*
|
|
|
|
|
|
|
|
|
|
The addresses of the contracts that were deployed.
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
|
### runMigrationsOnceAsync
|
|
|
|
|
|
|
|
|
|
▸ **runMigrationsOnceAsync**(`provider`: `Web3ProviderEngine`, `txDefaults`: `TxData`): *`Promise<ContractAddresses>`*
|
|
|
|
|
|
|
|
|
|
*Defined in [migrations/src/migration.ts:324](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/migrations/src/migration.ts#L324)*
|
|
|
|
|
|
|
|
|
|
Exactly like runMigrationsAsync but will only run the migrations the first
|
|
|
|
|
time it is called. Any subsequent calls will return the cached contract
|
|
|
|
|
addresses.
|
|
|
|
|
|
|
|
|
|
**Parameters:**
|
|
|
|
|
|
|
|
|
|
Name | Type | Description |
|
|
|
|
|
------ | ------ | ------ |
|
|
|
|
|
`provider` | `Web3ProviderEngine` | Web3 provider instance. Your provider instance should connect to the testnet you want to deploy to. |
|
|
|
|
|
`txDefaults` | `TxData` | Default transaction values to use when deploying contracts (e.g., specify the desired contract creator with the `from` parameter). |
|
|
|
|
|
|
|
|
|
|
**Returns:** *`Promise<ContractAddresses>`*
|
|
|
|
|
|
|
|
|
|
The addresses of the contracts that were deployed.
|
|
|
|
|
|
|
|
|
|
<hr />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Functions
|
|
|
|
|
|
|
|
|
|
### getContractAddressesForNetworkOrThrow
|
|
|
|
|
|
|
|
|
|
▸ **getContractAddressesForNetworkOrThrow**(`networkId`: [NetworkId](#enumeration-networkid)): *[ContractAddresses](#interface-contractaddresses)*
|
|
|
|
|
|
|
|
|
|
*Defined in [contract-addresses/src/index.ts:128](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/contract-addresses/src/index.ts#L128)*
|
|
|
|
|
*Defined in [contract-addresses/src/index.ts:128](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L128)*
|
|
|
|
|
|
|
|
|
|
Used to get addresses of contracts that have been deployed to either the
|
|
|
|
|
Ethereum mainnet or a supported testnet. Throws if there are no known
|
|
|
|
@@ -780,28 +732,6 @@ Name | Type | Description |
|
|
|
|
|
The set of addresses for contracts which have been deployed on the
|
|
|
|
|
given networkId.
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
|
### getNetworkIdByExchangeAddressOrThrow
|
|
|
|
|
|
|
|
|
|
▸ **getNetworkIdByExchangeAddressOrThrow**(`exchangeAddress`: string): *[NetworkId](#enumeration-networkid)*
|
|
|
|
|
|
|
|
|
|
*Defined in [contract-addresses/src/index.ts:142](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/contract-addresses/src/index.ts#L142)*
|
|
|
|
|
|
|
|
|
|
Uses a given exchange address to look up the network id that the exchange contract is deployed
|
|
|
|
|
on. Only works for Ethereum mainnet or a supported testnet. Throws if the exchange address
|
|
|
|
|
does not correspond to a known deployed exchange contract.
|
|
|
|
|
|
|
|
|
|
**Parameters:**
|
|
|
|
|
|
|
|
|
|
Name | Type | Description |
|
|
|
|
|
------ | ------ | ------ |
|
|
|
|
|
`exchangeAddress` | string | The exchange address of concern |
|
|
|
|
|
|
|
|
|
|
**Returns:** *[NetworkId](#enumeration-networkid)*
|
|
|
|
|
|
|
|
|
|
The network ID on which the exchange contract is deployed
|
|
|
|
|
|
|
|
|
|
<hr />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -819,11 +749,13 @@ The network ID on which the exchange contract is deployed
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### EIP1193Event
|
|
|
|
|
|
|
|
|
|
Ƭ **EIP1193Event**: *"accountsChanged" | "networkChanged" | "close" | "connect" | "notification"*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:70](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L70)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:70](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L70)*
|
|
|
|
|
|
|
|
|
|
Interface for providers that conform to EIP 1193
|
|
|
|
|
Source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1193.md
|
|
|
|
@@ -840,7 +772,7 @@ ___
|
|
|
|
|
|
|
|
|
|
Ƭ **JSONRPCErrorCallback**: *function*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:3](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L3)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:3](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L3)*
|
|
|
|
|
|
|
|
|
|
#### Type declaration:
|
|
|
|
|
|
|
|
|
@@ -869,7 +801,7 @@ ___
|
|
|
|
|
|
|
|
|
|
Ƭ **SupportedProvider**: *[Web3JsProvider](_ethereum_types_src_index_.md#web3jsprovider) | [GanacheProvider](#interface-ganacheprovider) | [EIP1193Provider](#interface-eip1193provider) | [ZeroExProvider](#interface-zeroexprovider)*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:9](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L9)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:9](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L9)*
|
|
|
|
|
|
|
|
|
|
Do not create your own provider. Use an existing provider from a Web3 or ProviderEngine library
|
|
|
|
|
Read more about Providers in the guides section of the 0x docs.
|
|
|
|
@@ -884,7 +816,57 @@ ___
|
|
|
|
|
|
|
|
|
|
Ƭ **Web3JsProvider**: *[Web3JsV1Provider](#interface-web3jsv1provider) | [Web3JsV2Provider](#interface-web3jsv2provider) | [Web3JsV3Provider](#interface-web3jsv3provider)*
|
|
|
|
|
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:11](https://github.com/0xProject/0x-monorepo/blob/23602ec6b/packages/ethereum-types/src/index.ts#L11)*
|
|
|
|
|
*Defined in [ethereum-types/src/index.ts:11](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L11)*
|
|
|
|
|
|
|
|
|
|
<hr />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Functions
|
|
|
|
|
|
|
|
|
|
### runMigrationsAsync
|
|
|
|
|
|
|
|
|
|
▸ **runMigrationsAsync**(`supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `TxData`): *`Promise<ContractAddresses>`*
|
|
|
|
|
|
|
|
|
|
*Defined in [migrations/src/migration.ts:48](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/migrations/src/migration.ts#L48)*
|
|
|
|
|
|
|
|
|
|
Creates and deploys all the contracts that are required for the latest
|
|
|
|
|
version of the 0x protocol.
|
|
|
|
|
|
|
|
|
|
**Parameters:**
|
|
|
|
|
|
|
|
|
|
Name | Type | Description |
|
|
|
|
|
------ | ------ | ------ |
|
|
|
|
|
`supportedProvider` | [SupportedProvider](#supportedprovider) | Web3 provider instance. Your provider instance should connect to the testnet you want to deploy to. |
|
|
|
|
|
`txDefaults` | `TxData` | Default transaction values to use when deploying contracts (e.g., specify the desired contract creator with the `from` parameter). |
|
|
|
|
|
|
|
|
|
|
**Returns:** *`Promise<ContractAddresses>`*
|
|
|
|
|
|
|
|
|
|
The addresses of the contracts that were deployed.
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
|
### runMigrationsOnceAsync
|
|
|
|
|
|
|
|
|
|
▸ **runMigrationsOnceAsync**(`provider`: `Web3ProviderEngine`, `txDefaults`: `TxData`): *`Promise<ContractAddresses>`*
|
|
|
|
|
|
|
|
|
|
*Defined in [migrations/src/migration.ts:335](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/migrations/src/migration.ts#L335)*
|
|
|
|
|
|
|
|
|
|
Exactly like runMigrationsAsync but will only run the migrations the first
|
|
|
|
|
time it is called. Any subsequent calls will return the cached contract
|
|
|
|
|
addresses.
|
|
|
|
|
|
|
|
|
|
**Parameters:**
|
|
|
|
|
|
|
|
|
|
Name | Type | Description |
|
|
|
|
|
------ | ------ | ------ |
|
|
|
|
|
`provider` | `Web3ProviderEngine` | Web3 provider instance. Your provider instance should connect to the testnet you want to deploy to. |
|
|
|
|
|
`txDefaults` | `TxData` | Default transaction values to use when deploying contracts (e.g., specify the desired contract creator with the `from` parameter). |
|
|
|
|
|
|
|
|
|
|
**Returns:** *`Promise<ContractAddresses>`*
|
|
|
|
|
|
|
|
|
|
The addresses of the contracts that were deployed.
|
|
|
|
|
|
|
|
|
|
<hr />
|
|
|
|
|
|
|
|
|
|