# Class: ContractWrappers
The ContractWrappers class contains smart contract wrappers helpful when building on 0x protocol.
## Constructors
\+ **new ContractWrappers**(`supportedProvider`: [SupportedProvider](#supportedprovider), `config`: [ContractWrappersConfig](#interface-contractwrappersconfig)): *[ContractWrappers](#class-contractwrappers)*
*Defined in [contract-wrappers/src/contract_wrappers.ts:53](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/contract_wrappers.ts#L53)*
Instantiates a new ContractWrappers instance.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`supportedProvider` | [SupportedProvider](#supportedprovider) | The Provider instance you would like the contract-wrappers library to use for interacting with the Ethereum network. |
`config` | [ContractWrappersConfig](#interface-contractwrappersconfig) | The configuration object. Look up the type for the description. |
**Returns:** *[ContractWrappers](#class-contractwrappers)*
An instance of the ContractWrappers class.
## Properties
### contractAddresses
• **contractAddresses**: *`ContractAddresses`*
*Defined in [contract-wrappers/src/contract_wrappers.ts:26](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/contract_wrappers.ts#L26)*
An index of the default contract addresses for this chain.
___
### coordinator
• **coordinator**: *[CoordinatorContract](#class-coordinatorcontract)*
*Defined in [contract-wrappers/src/contract_wrappers.ts:47](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/contract_wrappers.ts#L47)*
An instance of the CoordinatorContract class containing methods for interacting with the Coordinator extension contract.
___
### devUtils
• **devUtils**: *[DevUtilsContract](#class-devutilscontract)*
*Defined in [contract-wrappers/src/contract_wrappers.ts:43](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/contract_wrappers.ts#L43)*
An instance of the DevUtilsContract class containing methods for interacting with the DevUtils smart contract.
___
### exchange
• **exchange**: *[ExchangeContract](#class-exchangecontract)*
*Defined in [contract-wrappers/src/contract_wrappers.ts:30](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/contract_wrappers.ts#L30)*
An instance of the ExchangeContract class containing methods for interacting with the 0x Exchange smart contract.
___
### forwarder
• **forwarder**: *[ForwarderContract](#class-forwardercontract)*
*Defined in [contract-wrappers/src/contract_wrappers.ts:39](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/contract_wrappers.ts#L39)*
An instance of the ForwarderContract class containing methods for interacting with any Forwarder smart contract.
___
### staking
• **staking**: *[StakingContract](#class-stakingcontract)*
*Defined in [contract-wrappers/src/contract_wrappers.ts:51](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/contract_wrappers.ts#L51)*
An instance of the StakingContract class containing methods for interacting with the Staking contracts.
___
### weth9
• **weth9**: *[WETH9Contract](#class-weth9contract)*
*Defined in [contract-wrappers/src/contract_wrappers.ts:35](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/contract_wrappers.ts#L35)*
An instance of the WETH9Contract class containing methods for interacting with the
WETH9 smart contract.
## Methods
### getAbiDecoder
▸ **getAbiDecoder**(): *`AbiDecoder`*
*Defined in [contract-wrappers/src/contract_wrappers.ts:110](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/contract_wrappers.ts#L110)*
Get the abi decoder instance currently used by contract-wrappers
**Returns:** *`AbiDecoder`*
AbiDecoder instance
___
### getProvider
▸ **getProvider**(): *[SupportedProvider](#supportedprovider)*
*Defined in [contract-wrappers/src/contract_wrappers.ts:103](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/contract_wrappers.ts#L103)*
Get the provider instance currently used by contract-wrappers
**Returns:** *[SupportedProvider](#supportedprovider)*
Web3 provider instance
___
### unsubscribeAll
▸ **unsubscribeAll**(): *void*
*Defined in [contract-wrappers/src/contract_wrappers.ts:95](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/contract_wrappers.ts#L95)*
Unsubscribes from all subscriptions for all contracts.
**Returns:** *void*
# Class: CoordinatorContract
## Constructors
\+ **new CoordinatorContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[CoordinatorContract](#class-coordinatorcontract)*
*Overrides void*
*Defined in [contract-wrappers/src/generated-wrappers/coordinator.ts:962](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/coordinator.ts#L962)*
**Parameters:**
Name | Type | Default |
------ | ------ | ------ |
`address` | string | - |
`supportedProvider` | [SupportedProvider](#supportedprovider) | - |
`txDefaults?` | `Partial` | - |
`logDecodeDependencies?` | undefined \| object | - |
`deployedBytecode` | string \| undefined | CoordinatorContract.deployedBytecode |
**Returns:** *[CoordinatorContract](#class-coordinatorcontract)*
## Properties
### `Optional` _deployedBytecodeIfExists
• **_deployedBytecodeIfExists**? : *`Buffer`*
Defined in base-contract/lib/src/index.d.ts:34
___
### abi
• **abi**: *[ContractAbi](#contractabi)*
Defined in base-contract/lib/src/index.d.ts:30
___
### address
• **address**: *string*
Defined in base-contract/lib/src/index.d.ts:31
___
Args
• **constructorArgs**: *any[]*
Defined in base-contract/lib/src/index.d.ts:33
___
### contractName
• **contractName**: *string*
Defined in base-contract/lib/src/index.d.ts:32
___
### `Static` contractName
▪ **contractName**: *string* = "Coordinator"
*Defined in [contract-wrappers/src/generated-wrappers/coordinator.ts:46](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/coordinator.ts#L46)*
## Methods
### EIP712_COORDINATOR_APPROVAL_SCHEMA_HASH
▸ **EIP712_COORDINATOR_APPROVAL_SCHEMA_HASH**(): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/coordinator.ts:580](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/coordinator.ts#L580)*
**Returns:** *`ContractFunctionObj`*
___
### EIP712_COORDINATOR_DOMAIN_HASH
▸ **EIP712_COORDINATOR_DOMAIN_HASH**(): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/coordinator.ts:600](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/coordinator.ts#L600)*
**Returns:** *`ContractFunctionObj`*
___
### EIP712_COORDINATOR_DOMAIN_NAME
▸ **EIP712_COORDINATOR_DOMAIN_NAME**(): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/coordinator.ts:620](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/coordinator.ts#L620)*
**Returns:** *`ContractFunctionObj`*
___
### EIP712_COORDINATOR_DOMAIN_VERSION
▸ **EIP712_COORDINATOR_DOMAIN_VERSION**(): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/coordinator.ts:640](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/coordinator.ts#L640)*
**Returns:** *`ContractFunctionObj`*
___
### EIP712_EXCHANGE_DOMAIN_HASH
▸ **EIP712_EXCHANGE_DOMAIN_HASH**(): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/coordinator.ts:660](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/coordinator.ts#L660)*
**Returns:** *`ContractFunctionObj`*
___
### assertValidCoordinatorApprovals
▸ **assertValidCoordinatorApprovals**(`transaction`: object, `txOrigin`: string, `transactionSignature`: string, `approvalSignatures`: string[]): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/coordinator.ts:692](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/coordinator.ts#L692)*
Validates that the 0x transaction has been approved by all of the feeRecipients
that correspond to each order in the transaction's Exchange calldata.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`transaction` | object | 0x transaction containing salt, signerAddress, and data. |
`txOrigin` | string | Required signer of Ethereum transaction calling this function. |
`transactionSignature` | string | Proof that the transaction has been signed by the signer. |
`approvalSignatures` | string[] | Array of signatures that correspond to the feeRecipients of each order in the transaction's Exchange calldata. |
**Returns:** *`ContractFunctionObj`*
___
### decodeOrdersFromFillData
▸ **decodeOrdersFromFillData**(`data`: string): *`ContractFunctionObj>`*
*Defined in [contract-wrappers/src/generated-wrappers/coordinator.ts:738](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/coordinator.ts#L738)*
Decodes the orders from Exchange calldata representing any fill method.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`data` | string | Exchange calldata representing a fill method. |
**Returns:** *`ContractFunctionObj>`*
orders The orders from the Exchange calldata.
___
### executeTransaction
▸ **executeTransaction**(`transaction`: object, `txOrigin`: string, `transactionSignature`: string, `approvalSignatures`: string[]): *`ContractTxFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/coordinator.ts:832](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/coordinator.ts#L832)*
Executes a 0x transaction that has been signed by the feeRecipients that correspond to
each order in the transaction's Exchange calldata.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`transaction` | object | 0x transaction containing salt, signerAddress, and data. |
`txOrigin` | string | Required signer of Ethereum transaction calling this function. |
`transactionSignature` | string | Proof that the transaction has been signed by the signer. |
`approvalSignatures` | string[] | Array of signatures that correspond to the feeRecipients of each order in the transaction's Exchange calldata. |
**Returns:** *`ContractTxFunctionObj`*
___
### getABIDecodedReturnData
▸ **getABIDecodedReturnData**<**T**>(`methodName`: string, `callData`: string): *`T`*
*Defined in [contract-wrappers/src/generated-wrappers/coordinator.ts:565](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/coordinator.ts#L565)*
**Type parameters:**
▪ **T**
**Parameters:**
Name | Type |
------ | ------ |
`methodName` | string |
`callData` | string |
**Returns:** *`T`*
___
### getABIDecodedTransactionData
▸ **getABIDecodedTransactionData**<**T**>(`methodName`: string, `callData`: string): *`T`*
*Defined in [contract-wrappers/src/generated-wrappers/coordinator.ts:557](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/coordinator.ts#L557)*
**Type parameters:**
▪ **T**
**Parameters:**
Name | Type |
------ | ------ |
`methodName` | string |
`callData` | string |
**Returns:** *`T`*
___
### getCoordinatorApprovalHash
▸ **getCoordinatorApprovalHash**(`approval`: object): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/coordinator.ts:905](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/coordinator.ts#L905)*
Calculates the EIP712 hash of the Coordinator approval mesasage using the domain
separator of this contract.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`approval` | object | Coordinator approval message containing the transaction hash, and transaction signature. |
**Returns:** *`ContractFunctionObj`*
approvalHash EIP712 hash of the Coordinator approval message with the domain separator of this contract.
___
### getFunctionSignature
▸ **getFunctionSignature**(`methodName`: string): *string*
*Defined in [contract-wrappers/src/generated-wrappers/coordinator.ts:550](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/coordinator.ts#L550)*
**Parameters:**
Name | Type |
------ | ------ |
`methodName` | string |
**Returns:** *string*
___
### getSelector
▸ **getSelector**(`methodName`: string): *string*
*Defined in [contract-wrappers/src/generated-wrappers/coordinator.ts:573](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/coordinator.ts#L573)*
**Parameters:**
Name | Type |
------ | ------ |
`methodName` | string |
**Returns:** *string*
___
### getSignerAddress
▸ **getSignerAddress**(`hash`: string, `signature`: string): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/coordinator.ts:936](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/coordinator.ts#L936)*
Recovers the address of a signer given a hash and signature.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`hash` | string | Any 32 byte hash. |
`signature` | string | Proof that the hash has been signed by signer. |
**Returns:** *`ContractFunctionObj`*
signerAddress Address of the signer.
___
### `Static` ABI
▸ **ABI**(): *[ContractAbi](#contractabi)*
*Defined in [contract-wrappers/src/generated-wrappers/coordinator.ts:177](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/coordinator.ts#L177)*
**Returns:** *[ContractAbi](#contractabi)*
The contract ABI
___
### `Static` deployAsync
▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `exchange`: string, `chainId`: `BigNumber`): *`Promise`*
*Defined in [contract-wrappers/src/generated-wrappers/coordinator.ts:127](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/coordinator.ts#L127)*
**Parameters:**
Name | Type |
------ | ------ |
`bytecode` | string |
`abi` | [ContractAbi](#contractabi) |
`supportedProvider` | [SupportedProvider](#supportedprovider) |
`txDefaults` | `Partial` |
`logDecodeDependencies` | object |
`exchange` | string |
`chainId` | `BigNumber` |
**Returns:** *`Promise`*
___
### `Static` deployFrom0xArtifactAsync
▸ **deployFrom0xArtifactAsync**(`artifact`: `ContractArtifact` | `SimpleContractArtifact`, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `exchange`: string, `chainId`: `BigNumber`): *`Promise`*
*Defined in [contract-wrappers/src/generated-wrappers/coordinator.ts:48](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/coordinator.ts#L48)*
**Parameters:**
Name | Type |
------ | ------ |
`artifact` | `ContractArtifact` \| `SimpleContractArtifact` |
`supportedProvider` | [SupportedProvider](#supportedprovider) |
`txDefaults` | `Partial` |
`logDecodeDependencies` | object |
`exchange` | string |
`chainId` | `BigNumber` |
**Returns:** *`Promise`*
___
### `Static` deployWithLibrariesFrom0xArtifactAsync
▸ **deployWithLibrariesFrom0xArtifactAsync**(`artifact`: `ContractArtifact`, `libraryArtifacts`: object, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `exchange`: string, `chainId`: `BigNumber`): *`Promise`*
*Defined in [contract-wrappers/src/generated-wrappers/coordinator.ts:84](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/coordinator.ts#L84)*
**Parameters:**
Name | Type |
------ | ------ |
`artifact` | `ContractArtifact` |
`libraryArtifacts` | object |
`supportedProvider` | [SupportedProvider](#supportedprovider) |
`txDefaults` | `Partial` |
`logDecodeDependencies` | object |
`exchange` | string |
`chainId` | `BigNumber` |
**Returns:** *`Promise`*
___
### `Static` strictArgumentEncodingCheck
▸ **strictArgumentEncodingCheck**(`inputAbi`: `DataItem`[], `args`: any[]): *string*
Defined in base-contract/lib/src/index.d.ts:44
**Parameters:**
Name | Type |
------ | ------ |
`inputAbi` | `DataItem`[] |
`args` | any[] |
**Returns:** *string*
# Class: DevUtilsContract
## Constructors
\+ **new DevUtilsContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[DevUtilsContract](#class-devutilscontract)*
*Overrides void*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:3257](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L3257)*
**Parameters:**
Name | Type | Default |
------ | ------ | ------ |
`address` | string | - |
`supportedProvider` | [SupportedProvider](#supportedprovider) | - |
`txDefaults?` | `Partial` | - |
`logDecodeDependencies?` | undefined \| object | - |
`deployedBytecode` | string \| undefined | DevUtilsContract.deployedBytecode |
**Returns:** *[DevUtilsContract](#class-devutilscontract)*
## Properties
### `Optional` _deployedBytecodeIfExists
• **_deployedBytecodeIfExists**? : *`Buffer`*
Defined in base-contract/lib/src/index.d.ts:34
___
### abi
• **abi**: *[ContractAbi](#contractabi)*
Defined in base-contract/lib/src/index.d.ts:30
___
### address
• **address**: *string*
Defined in base-contract/lib/src/index.d.ts:31
___
Args
• **constructorArgs**: *any[]*
Defined in base-contract/lib/src/index.d.ts:33
___
### contractName
• **contractName**: *string*
Defined in base-contract/lib/src/index.d.ts:32
___
### `Static` contractName
▪ **contractName**: *string* = "DevUtils"
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:46](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L46)*
## Methods
### EIP712_EXCHANGE_DOMAIN_HASH
▸ **EIP712_EXCHANGE_DOMAIN_HASH**(): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:1597](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L1597)*
**Returns:** *`ContractFunctionObj`*
___
### chaiBridgeAddress
▸ **chaiBridgeAddress**(): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:1617](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L1617)*
**Returns:** *`ContractFunctionObj`*
___
### decodeAssetProxyId
▸ **decodeAssetProxyId**(`assetData`: string): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:1643](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L1643)*
Decode AssetProxy identifier
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`assetData` | string | AssetProxy-compliant asset data describing an ERC-20, ERC- 721, ERC1155, or MultiAsset asset. |
**Returns:** *`ContractFunctionObj`*
The AssetProxy identifier
___
### decodeERC1155AssetData
▸ **decodeERC1155AssetData**(`assetData`: string): *`ContractFunctionObj<[string, string, BigNumber[], BigNumber[], string]>`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:1675](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L1675)*
Decode ERC-1155 asset data from the format described in the AssetProxy contract specification.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`assetData` | string | AssetProxy-compliant asset data describing an ERC-1155 set of assets. |
**Returns:** *`ContractFunctionObj<[string, string, BigNumber[], BigNumber[], string]>`*
The ERC-1155 AssetProxy identifier, the address of the ERC-1155 contract hosting the assets, an array of the identifiers of the assets to be traded, an array of asset amounts to be traded, and callback data. Each element of the arrays corresponds to the same-indexed element of the other array. Return values specified as `memory` are returned as pointers to locations within the memory of the input parameter `assetData`.
___
### decodeERC20AssetData
▸ **decodeERC20AssetData**(`assetData`: string): *`ContractFunctionObj<[string, string]>`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:1713](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L1713)*
Decode ERC-20 asset data from the format described in the AssetProxy contract specification.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`assetData` | string | AssetProxy-compliant asset data describing an ERC-20 asset. |
**Returns:** *`ContractFunctionObj<[string, string]>`*
The AssetProxy identifier, and the address of the ERC-20 contract hosting this asset.
___
### decodeERC20BridgeAssetData
▸ **decodeERC20BridgeAssetData**(`assetData`: string): *`ContractFunctionObj<[string, string, string, string]>`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:1745](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L1745)*
Decode ERC20Bridge asset data from the format described in the AssetProxy contract specification.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`assetData` | string | AssetProxy-compliant asset data describing an ERC20Bridge asset |
**Returns:** *`ContractFunctionObj<[string, string, string, string]>`*
The ERC20BridgeProxy identifier, the address of the ERC20 token to transfer, the address of the bridge contract, and extra data to be passed to the bridge contract.
___
### decodeERC721AssetData
▸ **decodeERC721AssetData**(`assetData`: string): *`ContractFunctionObj<[string, string, BigNumber]>`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:1780](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L1780)*
Decode ERC-721 asset data from the format described in the AssetProxy contract specification.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`assetData` | string | AssetProxy-compliant asset data describing an ERC-721 asset. |
**Returns:** *`ContractFunctionObj<[string, string, BigNumber]>`*
The ERC-721 AssetProxy identifier, the address of the ERC-721 contract hosting this asset, and the identifier of the specific asset to be traded.
___
### decodeMultiAssetData
▸ **decodeMultiAssetData**(`assetData`: string): *`ContractFunctionObj<[string, BigNumber[], string[]]>`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:1814](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L1814)*
Decode multi-asset data from the format described in the AssetProxy contract specification.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`assetData` | string | AssetProxy-compliant data describing a multi-asset basket. |
**Returns:** *`ContractFunctionObj<[string, BigNumber[], string[]]>`*
The Multi-Asset AssetProxy identifier, an array of the amounts of the assets to be traded, and an array of the AssetProxy-compliant data describing each asset to be traded. Each element of the arrays corresponds to the same-indexed element of the other array.
___
### decodeStaticCallAssetData
▸ **decodeStaticCallAssetData**(`assetData`: string): *`ContractFunctionObj<[string, string, string, string]>`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:1849](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L1849)*
Decode StaticCall asset data from the format described in the AssetProxy contract specification.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`assetData` | string | AssetProxy-compliant asset data describing a StaticCall asset |
**Returns:** *`ContractFunctionObj<[string, string, string, string]>`*
The StaticCall AssetProxy identifier, the target address of the StaticCAll, the data to be passed to the target address, and the expected Keccak-256 hash of the static call return data.
___
### decodeZeroExTransactionData
▸ **decodeZeroExTransactionData**(`transactionData`: string): *`ContractFunctionObj<[string, Array, BigNumber[], string[]]>`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:1884](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L1884)*
Decodes the call data for an Exchange contract method call.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`transactionData` | string | ABI-encoded calldata for an Exchange contract method call. |
**Returns:** *`ContractFunctionObj<[string, Array, BigNumber[], string[]]>`*
The name of the function called, and the parameters it was given. For single-order fills and cancels, the arrays will have just one element.
___
### dydxBridgeAddress
▸ **dydxBridgeAddress**(): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:1981](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L1981)*
**Returns:** *`ContractFunctionObj`*
___
### encodeERC1155AssetData
▸ **encodeERC1155AssetData**(`tokenAddress`: string, `tokenIds`: `BigNumber`[], `tokenValues`: `BigNumber`[], `callbackData`: string): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:2011](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L2011)*
Encode ERC-1155 asset data into the format described in the AssetProxy contract specification.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`tokenAddress` | string | The address of the ERC-1155 contract hosting the asset(s) to be traded. |
`tokenIds` | `BigNumber`[] | The identifiers of the specific assets to be traded. |
`tokenValues` | `BigNumber`[] | The amounts of each asset to be traded. |
`callbackData` | string | Data to be passed to receiving contracts when a transfer is performed. |
**Returns:** *`ContractFunctionObj`*
AssetProxy-compliant asset data describing the set of assets.
___
### encodeERC20AssetData
▸ **encodeERC20AssetData**(`tokenAddress`: string): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:2056](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L2056)*
Encode ERC-20 asset data into the format described in the AssetProxy contract specification.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`tokenAddress` | string | The address of the ERC-20 contract hosting the asset to be traded. |
**Returns:** *`ContractFunctionObj`*
AssetProxy-compliant data describing the asset.
___
### encodeERC721AssetData
▸ **encodeERC721AssetData**(`tokenAddress`: string, `tokenId`: `BigNumber`): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:2089](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L2089)*
Encode ERC-721 asset data into the format described in the AssetProxy specification.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`tokenAddress` | string | The address of the ERC-721 contract hosting the asset to be traded. |
`tokenId` | `BigNumber` | The identifier of the specific asset to be traded. |
**Returns:** *`ContractFunctionObj`*
AssetProxy-compliant asset data describing the asset.
___
### encodeMultiAssetData
▸ **encodeMultiAssetData**(`amounts`: `BigNumber`[], `nestedAssetData`: string[]): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:2123](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L2123)*
Encode data for multiple assets, per the AssetProxy contract specification.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`amounts` | `BigNumber`[] | The amounts of each asset to be traded. |
`nestedAssetData` | string[] | AssetProxy-compliant data describing each asset to be traded. |
**Returns:** *`ContractFunctionObj`*
AssetProxy-compliant data describing the set of assets.
___
### encodeStaticCallAssetData
▸ **encodeStaticCallAssetData**(`staticCallTargetAddress`: string, `staticCallData`: string, `expectedReturnDataHash`: string): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:2159](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L2159)*
Encode StaticCall asset data into the format described in the AssetProxy contract specification.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`staticCallTargetAddress` | string | Target address of StaticCall. |
`staticCallData` | string | Data that will be passed to staticCallTargetAddress in the StaticCall. |
`expectedReturnDataHash` | string | Expected Keccak-256 hash of the StaticCall return data. |
**Returns:** *`ContractFunctionObj`*
AssetProxy-compliant asset data describing the set of assets.
___
### erc1155ProxyAddress
▸ **erc1155ProxyAddress**(): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:2195](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L2195)*
**Returns:** *`ContractFunctionObj`*
___
### erc20ProxyAddress
▸ **erc20ProxyAddress**(): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:2215](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L2215)*
**Returns:** *`ContractFunctionObj`*
___
### erc721ProxyAddress
▸ **erc721ProxyAddress**(): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:2235](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L2235)*
**Returns:** *`ContractFunctionObj`*
___
### exchangeAddress
▸ **exchangeAddress**(): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:2255](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L2255)*
**Returns:** *`ContractFunctionObj`*
___
### getABIDecodedReturnData
▸ **getABIDecodedReturnData**<**T**>(`methodName`: string, `callData`: string): *`T`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:1582](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L1582)*
**Type parameters:**
▪ **T**
**Parameters:**
Name | Type |
------ | ------ |
`methodName` | string |
`callData` | string |
**Returns:** *`T`*
___
### getABIDecodedTransactionData
▸ **getABIDecodedTransactionData**<**T**>(`methodName`: string, `callData`: string): *`T`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:1574](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L1574)*
**Type parameters:**
▪ **T**
**Parameters:**
Name | Type |
------ | ------ |
`methodName` | string |
`callData` | string |
**Returns:** *`T`*
___
### getAssetProxyAllowance
▸ **getAssetProxyAllowance**(`ownerAddress`: string, `assetData`: string): *`ContractTxFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:2282](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L2282)*
Returns the number of asset(s) (described by assetData) that the corresponding AssetProxy contract is authorized to spend. When the asset data contains multiple assets (eg for Multi-Asset), the return value indicates how many complete "baskets" of those assets may be spent by all of the corresponding AssetProxy contracts.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`ownerAddress` | string | Owner of the assets specified by assetData. |
`assetData` | string | Details of asset, encoded per the AssetProxy contract specification. |
**Returns:** *`ContractTxFunctionObj`*
Number of assets (or asset baskets) that the corresponding AssetProxy is authorized to spend.
___
### getBalance
▸ **getBalance**(`ownerAddress`: string, `assetData`: string): *`ContractTxFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:2337](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L2337)*
Returns the owner's balance of the assets(s) specified in assetData. When the asset data contains multiple assets (eg in ERC1155 or Multi-Asset), the return value indicates how many complete "baskets" of those assets are owned by owner.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`ownerAddress` | string | Owner of the assets specified by assetData. |
`assetData` | string | Details of asset, encoded per the AssetProxy contract specification. |
**Returns:** *`ContractTxFunctionObj`*
Number of assets (or asset baskets) held by owner.
___
### getBalanceAndAssetProxyAllowance
▸ **getBalanceAndAssetProxyAllowance**(`ownerAddress`: string, `assetData`: string): *`ContractTxFunctionObj<[BigNumber, BigNumber]>`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:2392](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L2392)*
Calls getBalance() and getAllowance() for assetData.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`ownerAddress` | string | Owner of the assets specified by assetData. |
`assetData` | string | Details of asset, encoded per the AssetProxy contract specification. |
**Returns:** *`ContractTxFunctionObj<[BigNumber, BigNumber]>`*
Number of assets (or asset baskets) held by owner, and number of assets (or asset baskets) that the corresponding AssetProxy is authorized to spend.
___
### getBatchAssetProxyAllowances
▸ **getBatchAssetProxyAllowances**(`ownerAddress`: string, `assetData`: string[]): *`ContractTxFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:2453](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L2453)*
Calls getAssetProxyAllowance() for each element of assetData.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`ownerAddress` | string | Owner of the assets specified by assetData. |
`assetData` | string[] | Array of asset details, each encoded per the AssetProxy contract specification. |
**Returns:** *`ContractTxFunctionObj`*
An array of asset allowances from getAllowance(), with each element corresponding to the same-indexed element in the assetData input.
___
### getBatchBalances
▸ **getBatchBalances**(`ownerAddress`: string, `assetData`: string[]): *`ContractTxFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:2508](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L2508)*
Calls getBalance() for each element of assetData.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`ownerAddress` | string | Owner of the assets specified by assetData. |
`assetData` | string[] | Array of asset details, each encoded per the AssetProxy contract specification. |
**Returns:** *`ContractTxFunctionObj`*
Array of asset balances from getBalance(), with each element corresponding to the same-indexed element in the assetData input.
___
### getBatchBalancesAndAssetProxyAllowances
▸ **getBatchBalancesAndAssetProxyAllowances**(`ownerAddress`: string, `assetData`: string[]): *`ContractTxFunctionObj<[BigNumber[], BigNumber[]]>`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:2563](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L2563)*
Calls getBatchBalances() and getBatchAllowances() for each element of assetData.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`ownerAddress` | string | Owner of the assets specified by assetData. |
`assetData` | string[] | Array of asset details, each encoded per the AssetProxy contract specification. |
**Returns:** *`ContractTxFunctionObj<[BigNumber[], BigNumber[]]>`*
An array of asset balances from getBalance(), and an array of asset allowances from getAllowance(), with each element corresponding to the same-indexed element in the assetData input.
___
### getEthBalances
▸ **getEthBalances**(`addresses`: string[]): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:2622](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L2622)*
Batch fetches ETH balances
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`addresses` | string[] | Array of addresses. |
**Returns:** *`ContractFunctionObj`*
Array of ETH balances.
___
### getFunctionSignature
▸ **getFunctionSignature**(`methodName`: string): *string*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:1567](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L1567)*
**Parameters:**
Name | Type |
------ | ------ |
`methodName` | string |
**Returns:** *string*
___
### getOrderHash
▸ **getOrderHash**(`order`: object, `chainId`: `BigNumber`, `exchange`: string): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:2643](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L2643)*
**Parameters:**
Name | Type |
------ | ------ |
`order` | object |
`chainId` | `BigNumber` |
`exchange` | string |
**Returns:** *`ContractFunctionObj`*
___
### getOrderRelevantState
▸ **getOrderRelevantState**(`order`: object, `signature`: string): *`ContractTxFunctionObj<[object, BigNumber, boolean]>`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:2699](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L2699)*
Fetches all order-relevant information needed to validate if the supplied order is fillable.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`order` | object | The order structure. |
`signature` | string | Signature provided by maker that proves the order's authenticity. `0x01` can always be provided if the signature does not need to be validated. |
**Returns:** *`ContractTxFunctionObj<[object, BigNumber, boolean]>`*
The orderInfo (hash, status, and `takerAssetAmount` already filled for the given order), fillableTakerAssetAmount (amount of the order's `takerAssetAmount` that is fillable given all on-chain state), and isValidSignature (validity of the provided signature). NOTE: If the `takerAssetData` encodes data for multiple assets, `fillableTakerAssetAmount` will represent a "scaled" amount, meaning it must be multiplied by all the individual asset amounts within the `takerAssetData` to get the final amount of each asset that can be filled.
___
### getOrderRelevantStates
▸ **getOrderRelevantStates**(`orders`: `Array`, `signatures`: string[]): *`ContractTxFunctionObj<[Array, BigNumber[], boolean[]]>`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:2787](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L2787)*
Fetches all order-relevant information needed to validate if the supplied orders are fillable.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`orders` | `Array` | Array of order structures. |
`signatures` | string[] | Array of signatures provided by makers that prove the authenticity of the orders. `0x01` can always be provided if a signature does not need to be validated. |
**Returns:** *`ContractTxFunctionObj<[Array, BigNumber[], boolean[]]>`*
The ordersInfo (array of the hash, status, and `takerAssetAmount` already filled for each order), fillableTakerAssetAmounts (array of amounts for each order's `takerAssetAmount` that is fillable given all on-chain state), and isValidSignature (array containing the validity of each provided signature). NOTE: If the `takerAssetData` encodes data for multiple assets, each element of `fillableTakerAssetAmounts` will represent a "scaled" amount, meaning it must be multiplied by all the individual asset amounts within the `takerAssetData` to get the final amount of each asset that can be filled.
___
### getSelector
▸ **getSelector**(`methodName`: string): *string*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:1590](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L1590)*
**Parameters:**
Name | Type |
------ | ------ |
`methodName` | string |
**Returns:** *string*
___
### getSimulatedOrderMakerTransferResults
▸ **getSimulatedOrderMakerTransferResults**(`order`: object, `takerAddress`: string, `takerAssetFillAmount`: `BigNumber`): *`ContractTxFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:2883](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L2883)*
Simulates the maker transfers within an order and returns the index of the first failed transfer.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`order` | object | The order to simulate transfers for. |
`takerAddress` | string | The address of the taker that will fill the order. |
`takerAssetFillAmount` | `BigNumber` | The amount of takerAsset that the taker wished to fill. |
**Returns:** *`ContractTxFunctionObj`*
The index of the first failed transfer (or 4 if all transfers are successful).
___
### getSimulatedOrderTransferResults
▸ **getSimulatedOrderTransferResults**(`order`: object, `takerAddress`: string, `takerAssetFillAmount`: `BigNumber`): *`ContractTxFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:2964](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L2964)*
Simulates all of the transfers within an order and returns the index of the first failed transfer.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`order` | object | The order to simulate transfers for. |
`takerAddress` | string | The address of the taker that will fill the order. |
`takerAssetFillAmount` | `BigNumber` | The amount of takerAsset that the taker wished to fill. |
**Returns:** *`ContractTxFunctionObj`*
The index of the first failed transfer (or 4 if all transfers are successful).
___
### getSimulatedOrdersTransferResults
▸ **getSimulatedOrdersTransferResults**(`orders`: `Array`, `takerAddresses`: string[], `takerAssetFillAmounts`: `BigNumber`[]): *`ContractTxFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:3046](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L3046)*
Simulates all of the transfers for each given order and returns the indices of each first failed transfer.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`orders` | `Array` | Array of orders to individually simulate transfers for. |
`takerAddresses` | string[] | Array of addresses of takers that will fill each order. |
`takerAssetFillAmounts` | `BigNumber`[] | Array of amounts of takerAsset that will be filled for each order. |
**Returns:** *`ContractTxFunctionObj`*
The indices of the first failed transfer (or 4 if all transfers are successful) for each order.
___
### getTransactionHash
▸ **getTransactionHash**(`transaction`: object, `chainId`: `BigNumber`, `exchange`: string): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:3115](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L3115)*
**Parameters:**
Name | Type |
------ | ------ |
`transaction` | object |
`chainId` | `BigNumber` |
`exchange` | string |
**Returns:** *`ContractFunctionObj`*
___
### getTransferableAssetAmount
▸ **getTransferableAssetAmount**(`ownerAddress`: string, `assetData`: string): *`ContractTxFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:3160](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L3160)*
Gets the amount of an asset transferable by the maker of an order.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`ownerAddress` | string | Address of the owner of the asset. |
`assetData` | string | Description of tokens, per the AssetProxy contract specification. |
**Returns:** *`ContractTxFunctionObj`*
The amount of the asset tranferable by the owner. NOTE: If the `assetData` encodes data for multiple assets, the `transferableAssetAmount` will represent the amount of times the entire `assetData` can be transferred. To calculate the total individual transferable amounts, this scaled `transferableAmount` must be multiplied by the individual asset amounts located within the `assetData`.
___
### revertIfInvalidAssetData
▸ **revertIfInvalidAssetData**(`assetData`: string): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:3212](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L3212)*
Reverts if assetData is not of a valid format for its given proxy id.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`assetData` | string | AssetProxy compliant asset data. |
**Returns:** *`ContractFunctionObj`*
___
### staticCallProxyAddress
▸ **staticCallProxyAddress**(): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:3238](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L3238)*
**Returns:** *`ContractFunctionObj`*
___
### `Static` ABI
▸ **ABI**(): *[ContractAbi](#contractabi)*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:182](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L182)*
**Returns:** *[ContractAbi](#contractabi)*
The contract ABI
___
### `Static` deployAsync
▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `exchange_`: string, `chaiBridge_`: string, `dydxBridge_`: string): *`Promise`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:131](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L131)*
**Parameters:**
Name | Type |
------ | ------ |
`bytecode` | string |
`abi` | [ContractAbi](#contractabi) |
`supportedProvider` | [SupportedProvider](#supportedprovider) |
`txDefaults` | `Partial` |
`logDecodeDependencies` | object |
`exchange_` | string |
`chaiBridge_` | string |
`dydxBridge_` | string |
**Returns:** *`Promise`*
___
### `Static` deployFrom0xArtifactAsync
▸ **deployFrom0xArtifactAsync**(`artifact`: `ContractArtifact` | `SimpleContractArtifact`, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `exchange_`: string, `chaiBridge_`: string, `dydxBridge_`: string): *`Promise`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:48](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L48)*
**Parameters:**
Name | Type |
------ | ------ |
`artifact` | `ContractArtifact` \| `SimpleContractArtifact` |
`supportedProvider` | [SupportedProvider](#supportedprovider) |
`txDefaults` | `Partial` |
`logDecodeDependencies` | object |
`exchange_` | string |
`chaiBridge_` | string |
`dydxBridge_` | string |
**Returns:** *`Promise`*
___
### `Static` deployWithLibrariesFrom0xArtifactAsync
▸ **deployWithLibrariesFrom0xArtifactAsync**(`artifact`: `ContractArtifact`, `libraryArtifacts`: object, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `exchange_`: string, `chaiBridge_`: string, `dydxBridge_`: string): *`Promise`*
*Defined in [contract-wrappers/src/generated-wrappers/dev_utils.ts:86](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/dev_utils.ts#L86)*
**Parameters:**
Name | Type |
------ | ------ |
`artifact` | `ContractArtifact` |
`libraryArtifacts` | object |
`supportedProvider` | [SupportedProvider](#supportedprovider) |
`txDefaults` | `Partial` |
`logDecodeDependencies` | object |
`exchange_` | string |
`chaiBridge_` | string |
`dydxBridge_` | string |
**Returns:** *`Promise`*
___
### `Static` strictArgumentEncodingCheck
▸ **strictArgumentEncodingCheck**(`inputAbi`: `DataItem`[], `args`: any[]): *string*
Defined in base-contract/lib/src/index.d.ts:44
**Parameters:**
Name | Type |
------ | ------ |
`inputAbi` | `DataItem`[] |
`args` | any[] |
**Returns:** *string*
# Class: ERC20BridgeSamplerContract
## Constructors
\+ **new ERC20BridgeSamplerContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[ERC20BridgeSamplerContract](#class-erc20bridgesamplercontract)*
*Overrides void*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts:1610](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts#L1610)*
**Parameters:**
Name | Type | Default |
------ | ------ | ------ |
`address` | string | - |
`supportedProvider` | [SupportedProvider](#supportedprovider) | - |
`txDefaults?` | `Partial` | - |
`logDecodeDependencies?` | undefined \| object | - |
`deployedBytecode` | string \| undefined | ERC20BridgeSamplerContract.deployedBytecode |
**Returns:** *[ERC20BridgeSamplerContract](#class-erc20bridgesamplercontract)*
## Properties
### `Optional` _deployedBytecodeIfExists
• **_deployedBytecodeIfExists**? : *`Buffer`*
Defined in base-contract/lib/src/index.d.ts:34
___
### abi
• **abi**: *[ContractAbi](#contractabi)*
Defined in base-contract/lib/src/index.d.ts:30
___
### address
• **address**: *string*
Defined in base-contract/lib/src/index.d.ts:31
___
Args
• **constructorArgs**: *any[]*
Defined in base-contract/lib/src/index.d.ts:33
___
### contractName
• **contractName**: *string*
Defined in base-contract/lib/src/index.d.ts:32
___
### `Static` contractName
▪ **contractName**: *string* = "ERC20BridgeSampler"
*Defined in [contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts:45](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts#L45)*
## Methods
### batchCall
▸ **batchCall**(`callDatas`: string[]): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts:890](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts#L890)*
Call multiple public functions on this contract in a single transaction.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`callDatas` | string[] | ABI-encoded call data for each function call. |
**Returns:** *`ContractFunctionObj`*
callResults ABI-encoded results data for each call.
___
### getABIDecodedReturnData
▸ **getABIDecodedReturnData**<**T**>(`methodName`: string, `callData`: string): *`T`*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts:870](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts#L870)*
**Type parameters:**
▪ **T**
**Parameters:**
Name | Type |
------ | ------ |
`methodName` | string |
`callData` | string |
**Returns:** *`T`*
___
### getABIDecodedTransactionData
▸ **getABIDecodedTransactionData**<**T**>(`methodName`: string, `callData`: string): *`T`*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts:862](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts#L862)*
**Type parameters:**
▪ **T**
**Parameters:**
Name | Type |
------ | ------ |
`methodName` | string |
`callData` | string |
**Returns:** *`T`*
___
### getFunctionSignature
▸ **getFunctionSignature**(`methodName`: string): *string*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts:855](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts#L855)*
**Parameters:**
Name | Type |
------ | ------ |
`methodName` | string |
**Returns:** *string*
___
### getLiquidityProviderFromRegistry
▸ **getLiquidityProviderFromRegistry**(`registryAddress`: string, `takerToken`: string, `makerToken`: string): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts:919](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts#L919)*
Returns the address of a liquidity provider for the given market
(takerToken, makerToken), from a registry of liquidity providers.
Returns address(0) if no such provider exists in the registry.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`registryAddress` | string | - |
`takerToken` | string | Taker asset managed by liquidity provider. |
`makerToken` | string | Maker asset managed by liquidity provider. |
**Returns:** *`ContractFunctionObj`*
providerAddress Address of the liquidity provider.
___
### getOrderFillableMakerAssetAmounts
▸ **getOrderFillableMakerAssetAmounts**(`orders`: `Array`, `orderSignatures`: string[], `devUtilsAddress`: string): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts:958](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts#L958)*
Queries the fillable taker asset amounts of native orders.
Effectively ignores orders that have empty signatures or
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`orders` | `Array` | Native orders to query. |
`orderSignatures` | string[] | Signatures for each respective order in `orders`. |
`devUtilsAddress` | string | Address to the DevUtils contract. |
**Returns:** *`ContractFunctionObj`*
orderFillableMakerAssetAmounts How much maker asset can be filled by each order in `orders`.
___
### getOrderFillableTakerAssetAmounts
▸ **getOrderFillableTakerAssetAmounts**(`orders`: `Array`, `orderSignatures`: string[], `devUtilsAddress`: string): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts:1014](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts#L1014)*
Queries the fillable taker asset amounts of native orders.
Effectively ignores orders that have empty signatures or
maker/taker asset amounts (returning 0).
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`orders` | `Array` | Native orders to query. |
`orderSignatures` | string[] | Signatures for each respective order in `orders`. |
`devUtilsAddress` | string | Address to the DevUtils contract. |
**Returns:** *`ContractFunctionObj`*
orderFillableTakerAssetAmounts How much taker asset can be filled by each order in `orders`.
___
### getSelector
▸ **getSelector**(`methodName`: string): *string*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts:878](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts#L878)*
**Parameters:**
Name | Type |
------ | ------ |
`methodName` | string |
**Returns:** *string*
___
### sampleBuysFromCurve
▸ **sampleBuysFromCurve**(`curveAddress`: string, `fromTokenIdx`: `BigNumber`, `toTokenIdx`: `BigNumber`, `makerTokenAmounts`: `BigNumber`[]): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts:1069](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts#L1069)*
Sample buy quotes from Curve.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`curveAddress` | string | Address of the Curve contract. |
`fromTokenIdx` | `BigNumber` | Index of the taker token (what to sell). |
`toTokenIdx` | `BigNumber` | Index of the maker token (what to buy). |
`makerTokenAmounts` | `BigNumber`[] | Maker token buy amount for each sample. |
**Returns:** *`ContractFunctionObj`*
takerTokenAmounts Taker amounts sold at each maker token amount.
___
### sampleBuysFromEth2Dai
▸ **sampleBuysFromEth2Dai**(`takerToken`: string, `makerToken`: string, `makerTokenAmounts`: `BigNumber`[]): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts:1109](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts#L1109)*
Sample buy quotes from Eth2Dai/Oasis.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`takerToken` | string | Address of the taker token (what to sell). |
`makerToken` | string | Address of the maker token (what to buy). |
`makerTokenAmounts` | `BigNumber`[] | - |
**Returns:** *`ContractFunctionObj`*
takerTokenAmounts Taker amounts sold at each maker token amount.
___
### sampleBuysFromKyberNetwork
▸ **sampleBuysFromKyberNetwork**(`takerToken`: string, `makerToken`: string, `makerTokenAmounts`: `BigNumber`[], `opts`: object): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts:1148](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts#L1148)*
Sample buy quotes from Kyber.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`takerToken` | string | Address of the taker token (what to sell). |
`makerToken` | string | Address of the maker token (what to buy). |
`makerTokenAmounts` | `BigNumber`[] | Maker token buy amount for each sample. |
`opts` | object | `FakeBuyOptions` specifying target slippage and max iterations. |
**Returns:** *`ContractFunctionObj`*
takerTokenAmounts Taker amounts sold at each maker token amount.
___
### sampleBuysFromLiquidityProviderRegistry
▸ **sampleBuysFromLiquidityProviderRegistry**(`registryAddress`: string, `takerToken`: string, `makerToken`: string, `makerTokenAmounts`: `BigNumber`[], `opts`: object): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts:1191](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts#L1191)*
Sample buy quotes from an arbitrary on-chain liquidity provider.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`registryAddress` | string | Address of the liquidity provider registry contract. |
`takerToken` | string | Address of the taker token (what to sell). |
`makerToken` | string | Address of the maker token (what to buy). |
`makerTokenAmounts` | `BigNumber`[] | Maker token buy amount for each sample. |
`opts` | object | `FakeBuyOptions` specifying target slippage and max iterations. |
**Returns:** *`ContractFunctionObj`*
takerTokenAmounts Taker amounts sold at each maker token amount.
___
### sampleBuysFromUniswap
▸ **sampleBuysFromUniswap**(`takerToken`: string, `makerToken`: string, `makerTokenAmounts`: `BigNumber`[]): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts:1236](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts#L1236)*
Sample buy quotes from Uniswap.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`takerToken` | string | Address of the taker token (what to sell). |
`makerToken` | string | Address of the maker token (what to buy). |
`makerTokenAmounts` | `BigNumber`[] | Maker token sell amount for each sample. |
**Returns:** *`ContractFunctionObj`*
takerTokenAmounts Taker amounts sold at each maker token amount.
___
### sampleBuysFromUniswapV2
▸ **sampleBuysFromUniswapV2**(`path`: string[], `makerTokenAmounts`: `BigNumber`[]): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts:1273](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts#L1273)*
Sample buy quotes from UniswapV2.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`path` | string[] | Token route. Should be takerToken -> makerToken. |
`makerTokenAmounts` | `BigNumber`[] | Maker token buy amount for each sample. |
**Returns:** *`ContractFunctionObj`*
takerTokenAmounts Taker amounts sold at each maker token amount.
___
### sampleSellsFromCurve
▸ **sampleSellsFromCurve**(`curveAddress`: string, `fromTokenIdx`: `BigNumber`, `toTokenIdx`: `BigNumber`, `takerTokenAmounts`: `BigNumber`[]): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts:1303](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts#L1303)*
Sample sell quotes from Curve.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`curveAddress` | string | Address of the Curve contract. |
`fromTokenIdx` | `BigNumber` | Index of the taker token (what to sell). |
`toTokenIdx` | `BigNumber` | Index of the maker token (what to buy). |
`takerTokenAmounts` | `BigNumber`[] | Taker token sell amount for each sample. |
**Returns:** *`ContractFunctionObj`*
makerTokenAmounts Maker amounts bought at each taker token amount.
___
### sampleSellsFromEth2Dai
▸ **sampleSellsFromEth2Dai**(`takerToken`: string, `makerToken`: string, `takerTokenAmounts`: `BigNumber`[]): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts:1344](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts#L1344)*
Sample sell quotes from Eth2Dai/Oasis.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`takerToken` | string | Address of the taker token (what to sell). |
`makerToken` | string | Address of the maker token (what to buy). |
`takerTokenAmounts` | `BigNumber`[] | Taker token sell amount for each sample. |
**Returns:** *`ContractFunctionObj`*
makerTokenAmounts Maker amounts bought at each taker token amount.
___
### sampleSellsFromEth2DaiHop
▸ **sampleSellsFromEth2DaiHop**(`takerToken`: string, `makerToken`: string, `intermediateToken`: string, `takerTokenAmounts`: `BigNumber`[]): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts:1384](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts#L1384)*
Sample sell quotes from Eth2Dai/Oasis using a hop to an intermediate token.
I.e WBTC/DAI via ETH or WBTC/ETH via DAI
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`takerToken` | string | Address of the taker token (what to sell). |
`makerToken` | string | Address of the maker token (what to buy). |
`intermediateToken` | string | Address of the token to hop to. |
`takerTokenAmounts` | `BigNumber`[] | Taker token sell amount for each sample. |
**Returns:** *`ContractFunctionObj`*
makerTokenAmounts Maker amounts bought at each taker token amount.
___
### sampleSellsFromKyberNetwork
▸ **sampleSellsFromKyberNetwork**(`takerToken`: string, `makerToken`: string, `takerTokenAmounts`: `BigNumber`[]): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts:1425](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts#L1425)*
Sample sell quotes from Kyber.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`takerToken` | string | Address of the taker token (what to sell). |
`makerToken` | string | Address of the maker token (what to buy). |
`takerTokenAmounts` | `BigNumber`[] | Taker token sell amount for each sample. |
**Returns:** *`ContractFunctionObj`*
makerTokenAmounts Maker amounts bought at each taker token amount.
___
### sampleSellsFromLiquidityProviderRegistry
▸ **sampleSellsFromLiquidityProviderRegistry**(`registryAddress`: string, `takerToken`: string, `makerToken`: string, `takerTokenAmounts`: `BigNumber`[]): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts:1464](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts#L1464)*
Sample sell quotes from an arbitrary on-chain liquidity provider.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`registryAddress` | string | Address of the liquidity provider registry contract. |
`takerToken` | string | Address of the taker token (what to sell). |
`makerToken` | string | Address of the maker token (what to buy). |
`takerTokenAmounts` | `BigNumber`[] | Taker token sell amount for each sample. |
**Returns:** *`ContractFunctionObj`*
makerTokenAmounts Maker amounts bought at each taker token amount.
___
### sampleSellsFromMultiBridge
▸ **sampleSellsFromMultiBridge**(`multibridge`: string, `takerToken`: string, `intermediateToken`: string, `makerToken`: string, `takerTokenAmounts`: `BigNumber`[]): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts:1508](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts#L1508)*
Sample sell quotes from MultiBridge.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`multibridge` | string | Address of the MultiBridge contract. |
`takerToken` | string | Address of the taker token (what to sell). |
`intermediateToken` | string | The address of the intermediate token to use in an indirect route. |
`makerToken` | string | Address of the maker token (what to buy). |
`takerTokenAmounts` | `BigNumber`[] | Taker token sell amount for each sample. |
**Returns:** *`ContractFunctionObj`*
makerTokenAmounts Maker amounts bought at each taker token amount.
___
### sampleSellsFromUniswap
▸ **sampleSellsFromUniswap**(`takerToken`: string, `makerToken`: string, `takerTokenAmounts`: `BigNumber`[]): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts:1552](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts#L1552)*
Sample sell quotes from Uniswap.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`takerToken` | string | Address of the taker token (what to sell). |
`makerToken` | string | Address of the maker token (what to buy). |
`takerTokenAmounts` | `BigNumber`[] | Taker token sell amount for each sample. |
**Returns:** *`ContractFunctionObj`*
makerTokenAmounts Maker amounts bought at each taker token amount.
___
### sampleSellsFromUniswapV2
▸ **sampleSellsFromUniswapV2**(`path`: string[], `takerTokenAmounts`: `BigNumber`[]): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts:1589](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts#L1589)*
Sample sell quotes from UniswapV2.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`path` | string[] | Token route. Should be takerToken -> makerToken |
`takerTokenAmounts` | `BigNumber`[] | Taker token sell amount for each sample. |
**Returns:** *`ContractFunctionObj`*
makerTokenAmounts Maker amounts bought at each taker token amount.
___
### `Static` ABI
▸ **ABI**(): *[ContractAbi](#contractabi)*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts:162](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts#L162)*
**Returns:** *[ContractAbi](#contractabi)*
The contract ABI
___
### `Static` deployAsync
▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts:118](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts#L118)*
**Parameters:**
Name | Type |
------ | ------ |
`bytecode` | string |
`abi` | [ContractAbi](#contractabi) |
`supportedProvider` | [SupportedProvider](#supportedprovider) |
`txDefaults` | `Partial` |
`logDecodeDependencies` | object |
**Returns:** *`Promise`*
___
### `Static` deployFrom0xArtifactAsync
▸ **deployFrom0xArtifactAsync**(`artifact`: `ContractArtifact` | `SimpleContractArtifact`, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts:47](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts#L47)*
**Parameters:**
Name | Type |
------ | ------ |
`artifact` | `ContractArtifact` \| `SimpleContractArtifact` |
`supportedProvider` | [SupportedProvider](#supportedprovider) |
`txDefaults` | `Partial` |
`logDecodeDependencies` | object |
**Returns:** *`Promise`*
___
### `Static` deployWithLibrariesFrom0xArtifactAsync
▸ **deployWithLibrariesFrom0xArtifactAsync**(`artifact`: `ContractArtifact`, `libraryArtifacts`: object, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts:79](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_bridge_sampler.ts#L79)*
**Parameters:**
Name | Type |
------ | ------ |
`artifact` | `ContractArtifact` |
`libraryArtifacts` | object |
`supportedProvider` | [SupportedProvider](#supportedprovider) |
`txDefaults` | `Partial` |
`logDecodeDependencies` | object |
**Returns:** *`Promise`*
___
### `Static` strictArgumentEncodingCheck
▸ **strictArgumentEncodingCheck**(`inputAbi`: `DataItem`[], `args`: any[]): *string*
Defined in base-contract/lib/src/index.d.ts:44
**Parameters:**
Name | Type |
------ | ------ |
`inputAbi` | `DataItem`[] |
`args` | any[] |
**Returns:** *string*
# Class: ERC20TokenContract
## Constructors
\+ **new ERC20TokenContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[ERC20TokenContract](#class-erc20tokencontract)*
*Overrides void*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_token.ts:735](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_token.ts#L735)*
**Parameters:**
Name | Type | Default |
------ | ------ | ------ |
`address` | string | - |
`supportedProvider` | [SupportedProvider](#supportedprovider) | - |
`txDefaults?` | `Partial` | - |
`logDecodeDependencies?` | undefined \| object | - |
`deployedBytecode` | string \| undefined | ERC20TokenContract.deployedBytecode |
**Returns:** *[ERC20TokenContract](#class-erc20tokencontract)*
## Properties
### `Optional` _deployedBytecodeIfExists
• **_deployedBytecodeIfExists**? : *`Buffer`*
Defined in base-contract/lib/src/index.d.ts:34
___
### abi
• **abi**: *[ContractAbi](#contractabi)*
Defined in base-contract/lib/src/index.d.ts:30
___
### address
• **address**: *string*
Defined in base-contract/lib/src/index.d.ts:31
___
Args
• **constructorArgs**: *any[]*
Defined in base-contract/lib/src/index.d.ts:33
___
### contractName
• **contractName**: *string*
Defined in base-contract/lib/src/index.d.ts:32
___
### `Static` contractName
▪ **contractName**: *string* = "ERC20Token"
*Defined in [contract-wrappers/src/generated-wrappers/erc20_token.ts:66](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_token.ts#L66)*
## Methods
### allowance
▸ **allowance**(`_owner`: string, `_spender`: string): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_token.ts:428](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_token.ts#L428)*
**Parameters:**
Name | Type |
------ | ------ |
`_owner` | string |
`_spender` | string |
**Returns:** *`ContractFunctionObj`*
___
### approve
▸ **approve**(`_spender`: string, `_value`: `BigNumber`): *`ContractTxFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_token.ts:456](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_token.ts#L456)*
`msg.sender` approves `_spender` to spend `_value` tokens
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`_spender` | string | The address of the account able to transfer the tokens |
`_value` | `BigNumber` | The amount of wei to be approved for transfer |
**Returns:** *`ContractTxFunctionObj`*
Always true if the call has enough gas to complete execution
___
### balanceOf
▸ **balanceOf**(`_owner`: string): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_token.ts:509](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_token.ts#L509)*
Query the balance of owner
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`_owner` | string | The address from which the balance will be retrieved |
**Returns:** *`ContractFunctionObj`*
Balance of owner
___
### getABIDecodedReturnData
▸ **getABIDecodedReturnData**<**T**>(`methodName`: string, `callData`: string): *`T`*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_token.ts:413](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_token.ts#L413)*
**Type parameters:**
▪ **T**
**Parameters:**
Name | Type |
------ | ------ |
`methodName` | string |
`callData` | string |
**Returns:** *`T`*
___
### getABIDecodedTransactionData
▸ **getABIDecodedTransactionData**<**T**>(`methodName`: string, `callData`: string): *`T`*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_token.ts:405](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_token.ts#L405)*
**Type parameters:**
▪ **T**
**Parameters:**
Name | Type |
------ | ------ |
`methodName` | string |
`callData` | string |
**Returns:** *`T`*
___
### getFunctionSignature
▸ **getFunctionSignature**(`methodName`: string): *string*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_token.ts:398](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_token.ts#L398)*
**Parameters:**
Name | Type |
------ | ------ |
`methodName` | string |
**Returns:** *string*
___
### getLogsAsync
▸ **getLogsAsync**<**ArgsType**>(`eventName`: [ERC20TokenEvents](#enumeration-erc20tokenevents), `blockRange`: `BlockRange`, `indexFilterValues`: `IndexedFilterValues`): *`Promise>>`*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_token.ts:719](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_token.ts#L719)*
Gets historical logs without creating a subscription
**Type parameters:**
▪ **ArgsType**: *[ERC20TokenEventArgs](#erc20tokeneventargs)*
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`eventName` | [ERC20TokenEvents](#enumeration-erc20tokenevents) | The ERC20Token contract event you would like to subscribe to. |
`blockRange` | `BlockRange` | Block range to get logs from. |
`indexFilterValues` | `IndexedFilterValues` | An object where the keys are indexed args returned by the event and the value is the value you are interested in. E.g `{_from: aUserAddressHex}` |
**Returns:** *`Promise>>`*
Array of logs that match the parameters
___
### getSelector
▸ **getSelector**(`methodName`: string): *string*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_token.ts:421](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_token.ts#L421)*
**Parameters:**
Name | Type |
------ | ------ |
`methodName` | string |
**Returns:** *string*
___
### subscribe
▸ **subscribe**<**ArgsType**>(`eventName`: [ERC20TokenEvents](#enumeration-erc20tokenevents), `indexFilterValues`: `IndexedFilterValues`, `callback`: [EventCallback](#eventcallback)‹*`ArgsType`*›, `isVerbose`: boolean, `blockPollingIntervalMs?`: undefined | number): *string*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_token.ts:674](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_token.ts#L674)*
Subscribe to an event type emitted by the ERC20Token contract.
**Type parameters:**
▪ **ArgsType**: *[ERC20TokenEventArgs](#erc20tokeneventargs)*
**Parameters:**
Name | Type | Default | Description |
------ | ------ | ------ | ------ |
`eventName` | [ERC20TokenEvents](#enumeration-erc20tokenevents) | - | The ERC20Token contract event you would like to subscribe to. |
`indexFilterValues` | `IndexedFilterValues` | - | An object where the keys are indexed args returned by the event and the value is the value you are interested in. E.g `{maker: aUserAddressHex}` |
`callback` | [EventCallback](#eventcallback)‹*`ArgsType`*› | - | Callback that gets called when a log is added/removed |
`isVerbose` | boolean | false | Enable verbose subscription warnings (e.g recoverable network issues encountered) |
`blockPollingIntervalMs?` | undefined \| number | - | - |
**Returns:** *string*
Subscription token used later to unsubscribe
___
### totalSupply
▸ **totalSupply**(): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_token.ts:534](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_token.ts#L534)*
Query total supply of token
**Returns:** *`ContractFunctionObj`*
Total supply of token
___
### transfer
▸ **transfer**(`_to`: string, `_value`: `BigNumber`): *`ContractTxFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_token.ts:560](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_token.ts#L560)*
send `value` token to `to` from `msg.sender`
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`_to` | string | The address of the recipient |
`_value` | `BigNumber` | The amount of token to be transferred |
**Returns:** *`ContractTxFunctionObj`*
True if transfer was successful
___
### transferFrom
▸ **transferFrom**(`_from`: string, `_to`: string, `_value`: `BigNumber`): *`ContractTxFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_token.ts:615](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_token.ts#L615)*
send `value` token to `to` from `from` on the condition it is approved by `from`
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`_from` | string | The address of the sender |
`_to` | string | The address of the recipient |
`_value` | `BigNumber` | The amount of token to be transferred |
**Returns:** *`ContractTxFunctionObj`*
True if transfer was successful
___
### unsubscribe
▸ **unsubscribe**(`subscriptionToken`: string): *void*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_token.ts:700](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_token.ts#L700)*
Cancel a subscription
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`subscriptionToken` | string | Subscription token returned by `subscribe()` |
**Returns:** *void*
___
### unsubscribeAll
▸ **unsubscribeAll**(): *void*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_token.ts:707](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_token.ts#L707)*
Cancels all existing subscriptions
**Returns:** *void*
___
### `Static` ABI
▸ **ABI**(): *[ContractAbi](#contractabi)*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_token.ts:172](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_token.ts#L172)*
**Returns:** *[ContractAbi](#contractabi)*
The contract ABI
___
### `Static` deployAsync
▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_token.ts:128](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_token.ts#L128)*
**Parameters:**
Name | Type |
------ | ------ |
`bytecode` | string |
`abi` | [ContractAbi](#contractabi) |
`supportedProvider` | [SupportedProvider](#supportedprovider) |
`txDefaults` | `Partial` |
`logDecodeDependencies` | object |
**Returns:** *`Promise`*
___
### `Static` deployFrom0xArtifactAsync
▸ **deployFrom0xArtifactAsync**(`artifact`: `ContractArtifact` | `SimpleContractArtifact`, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_token.ts:69](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_token.ts#L69)*
**Parameters:**
Name | Type |
------ | ------ |
`artifact` | `ContractArtifact` \| `SimpleContractArtifact` |
`supportedProvider` | [SupportedProvider](#supportedprovider) |
`txDefaults` | `Partial` |
`logDecodeDependencies` | object |
**Returns:** *`Promise`*
___
### `Static` deployWithLibrariesFrom0xArtifactAsync
▸ **deployWithLibrariesFrom0xArtifactAsync**(`artifact`: `ContractArtifact`, `libraryArtifacts`: object, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`*
*Defined in [contract-wrappers/src/generated-wrappers/erc20_token.ts:95](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc20_token.ts#L95)*
**Parameters:**
Name | Type |
------ | ------ |
`artifact` | `ContractArtifact` |
`libraryArtifacts` | object |
`supportedProvider` | [SupportedProvider](#supportedprovider) |
`txDefaults` | `Partial` |
`logDecodeDependencies` | object |
**Returns:** *`Promise`*
___
### `Static` strictArgumentEncodingCheck
▸ **strictArgumentEncodingCheck**(`inputAbi`: `DataItem`[], `args`: any[]): *string*
Defined in base-contract/lib/src/index.d.ts:44
**Parameters:**
Name | Type |
------ | ------ |
`inputAbi` | `DataItem`[] |
`args` | any[] |
**Returns:** *string*
# Class: ERC721TokenContract
## Constructors
\+ **new ERC721TokenContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[ERC721TokenContract](#class-erc721tokencontract)*
*Overrides void*
*Defined in [contract-wrappers/src/generated-wrappers/erc721_token.ts:995](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc721_token.ts#L995)*
**Parameters:**
Name | Type | Default |
------ | ------ | ------ |
`address` | string | - |
`supportedProvider` | [SupportedProvider](#supportedprovider) | - |
`txDefaults?` | `Partial` | - |
`logDecodeDependencies?` | undefined \| object | - |
`deployedBytecode` | string \| undefined | ERC721TokenContract.deployedBytecode |
**Returns:** *[ERC721TokenContract](#class-erc721tokencontract)*
## Properties
### `Optional` _deployedBytecodeIfExists
• **_deployedBytecodeIfExists**? : *`Buffer`*
Defined in base-contract/lib/src/index.d.ts:34
___
### abi
• **abi**: *[ContractAbi](#contractabi)*
Defined in base-contract/lib/src/index.d.ts:30
___
### address
• **address**: *string*
Defined in base-contract/lib/src/index.d.ts:31
___
Args
• **constructorArgs**: *any[]*
Defined in base-contract/lib/src/index.d.ts:33
___
### contractName
• **contractName**: *string*
Defined in base-contract/lib/src/index.d.ts:32
___
### `Static` contractName
▪ **contractName**: *string* = "ERC721Token"
*Defined in [contract-wrappers/src/generated-wrappers/erc721_token.ts:76](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc721_token.ts#L76)*
## Methods
### approve
▸ **approve**(`_approved`: string, `_tokenId`: `BigNumber`): *`ContractTxFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/erc721_token.ts:525](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc721_token.ts#L525)*
The zero address indicates there is no approved address.
Throws unless `msg.sender` is the current NFT owner, or an authorized
operator of the current owner.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`_approved` | string | The new approved NFT controller |
`_tokenId` | `BigNumber` | The NFT to approve |
**Returns:** *`ContractTxFunctionObj`*
___
### balanceOf
▸ **balanceOf**(`_owner`: string): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/erc721_token.ts:579](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc721_token.ts#L579)*
NFTs assigned to the zero address are considered invalid, and this
function throws for queries about the zero address.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`_owner` | string | An address for whom to query the balance |
**Returns:** *`ContractFunctionObj`*
The number of NFTs owned by `_owner`, possibly zero
___
### getABIDecodedReturnData
▸ **getABIDecodedReturnData**<**T**>(`methodName`: string, `callData`: string): *`T`*
*Defined in [contract-wrappers/src/generated-wrappers/erc721_token.ts:503](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc721_token.ts#L503)*
**Type parameters:**
▪ **T**
**Parameters:**
Name | Type |
------ | ------ |
`methodName` | string |
`callData` | string |
**Returns:** *`T`*
___
### getABIDecodedTransactionData
▸ **getABIDecodedTransactionData**<**T**>(`methodName`: string, `callData`: string): *`T`*
*Defined in [contract-wrappers/src/generated-wrappers/erc721_token.ts:495](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc721_token.ts#L495)*
**Type parameters:**
▪ **T**
**Parameters:**
Name | Type |
------ | ------ |
`methodName` | string |
`callData` | string |
**Returns:** *`T`*
___
### getApproved
▸ **getApproved**(`_tokenId`: `BigNumber`): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/erc721_token.ts:605](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc721_token.ts#L605)*
Throws if `_tokenId` is not a valid NFT.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`_tokenId` | `BigNumber` | The NFT to find the approved address for |
**Returns:** *`ContractFunctionObj`*
The approved address for this NFT, or the zero address if there is none
___
### getFunctionSignature
▸ **getFunctionSignature**(`methodName`: string): *string*
*Defined in [contract-wrappers/src/generated-wrappers/erc721_token.ts:488](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc721_token.ts#L488)*
**Parameters:**
Name | Type |
------ | ------ |
`methodName` | string |
**Returns:** *string*
___
### getLogsAsync
▸ **getLogsAsync**<**ArgsType**>(`eventName`: [ERC721TokenEvents](#enumeration-erc721tokenevents), `blockRange`: `BlockRange`, `indexFilterValues`: `IndexedFilterValues`): *`Promise>>`*
*Defined in [contract-wrappers/src/generated-wrappers/erc721_token.ts:979](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc721_token.ts#L979)*
Gets historical logs without creating a subscription
**Type parameters:**
▪ **ArgsType**: *[ERC721TokenEventArgs](#erc721tokeneventargs)*
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`eventName` | [ERC721TokenEvents](#enumeration-erc721tokenevents) | The ERC721Token contract event you would like to subscribe to. |
`blockRange` | `BlockRange` | Block range to get logs from. |
`indexFilterValues` | `IndexedFilterValues` | An object where the keys are indexed args returned by the event and the value is the value you are interested in. E.g `{_from: aUserAddressHex}` |
**Returns:** *`Promise>>`*
Array of logs that match the parameters
___
### getSelector
▸ **getSelector**(`methodName`: string): *string*
*Defined in [contract-wrappers/src/generated-wrappers/erc721_token.ts:511](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc721_token.ts#L511)*
**Parameters:**
Name | Type |
------ | ------ |
`methodName` | string |
**Returns:** *string*
___
### isApprovedForAll
▸ **isApprovedForAll**(`_owner`: string, `_operator`: string): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/erc721_token.ts:626](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc721_token.ts#L626)*
**Parameters:**
Name | Type |
------ | ------ |
`_owner` | string |
`_operator` | string |
**Returns:** *`ContractFunctionObj`*
___
### ownerOf
▸ **ownerOf**(`_tokenId`: `BigNumber`): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/erc721_token.ts:654](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc721_token.ts#L654)*
NFTs assigned to zero address are considered invalid, and queries
about them do throw.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`_tokenId` | `BigNumber` | The identifier for an NFT |
**Returns:** *`ContractFunctionObj`*
The address of the owner of the NFT
___
### safeTransferFrom1
▸ **safeTransferFrom1**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`): *`ContractTxFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/erc721_token.ts:682](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc721_token.ts#L682)*
This works identically to the other function with an extra data parameter,
except this function just sets data to "".
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`_from` | string | The current owner of the NFT |
`_to` | string | The new owner |
`_tokenId` | `BigNumber` | The NFT to transfer |
**Returns:** *`ContractTxFunctionObj`*
___
### safeTransferFrom2
▸ **safeTransferFrom2**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `_data`: string): *`ContractTxFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/erc721_token.ts:748](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc721_token.ts#L748)*
Throws unless `msg.sender` is the current owner, an authorized
operator, or the approved address for this NFT. Throws if `_from` is
not the current owner. Throws if `_to` is the zero address. Throws if
`_tokenId` is not a valid NFT. When transfer is complete, this function
checks if `_to` is a smart contract (code size > 0). If so, it calls
`onERC721Received` on `_to` and throws if the return value is not
`bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`_from` | string | The current owner of the NFT |
`_to` | string | The new owner |
`_tokenId` | `BigNumber` | The NFT to transfer |
`_data` | string | Additional data with no specified format, sent in call to `_to` |
**Returns:** *`ContractTxFunctionObj`*
___
### setApprovalForAll
▸ **setApprovalForAll**(`_operator`: string, `_approved`: boolean): *`ContractTxFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/erc721_token.ts:814](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc721_token.ts#L814)*
Emits the ApprovalForAll event. The contract MUST allow
multiple operators per owner.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`_operator` | string | Address to add to the set of authorized operators |
`_approved` | boolean | True if the operator is approved, false to revoke approval |
**Returns:** *`ContractTxFunctionObj`*
___
### subscribe
▸ **subscribe**<**ArgsType**>(`eventName`: [ERC721TokenEvents](#enumeration-erc721tokenevents), `indexFilterValues`: `IndexedFilterValues`, `callback`: [EventCallback](#eventcallback)‹*`ArgsType`*›, `isVerbose`: boolean, `blockPollingIntervalMs?`: undefined | number): *string*
*Defined in [contract-wrappers/src/generated-wrappers/erc721_token.ts:934](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc721_token.ts#L934)*
Subscribe to an event type emitted by the ERC721Token contract.
**Type parameters:**
▪ **ArgsType**: *[ERC721TokenEventArgs](#erc721tokeneventargs)*
**Parameters:**
Name | Type | Default | Description |
------ | ------ | ------ | ------ |
`eventName` | [ERC721TokenEvents](#enumeration-erc721tokenevents) | - | The ERC721Token contract event you would like to subscribe to. |
`indexFilterValues` | `IndexedFilterValues` | - | An object where the keys are indexed args returned by the event and the value is the value you are interested in. E.g `{maker: aUserAddressHex}` |
`callback` | [EventCallback](#eventcallback)‹*`ArgsType`*› | - | Callback that gets called when a log is added/removed |
`isVerbose` | boolean | false | Enable verbose subscription warnings (e.g recoverable network issues encountered) |
`blockPollingIntervalMs?` | undefined \| number | - | - |
**Returns:** *string*
Subscription token used later to unsubscribe
___
### transferFrom
▸ **transferFrom**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`): *`ContractTxFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/erc721_token.ts:871](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc721_token.ts#L871)*
Throws unless `msg.sender` is the current owner, an authorized
operator, or the approved address for this NFT. Throws if `_from` is
not the current owner. Throws if `_to` is the zero address. Throws if
`_tokenId` is not a valid NFT.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`_from` | string | The current owner of the NFT |
`_to` | string | The new owner |
`_tokenId` | `BigNumber` | The NFT to transfer |
**Returns:** *`ContractTxFunctionObj`*
___
### unsubscribe
▸ **unsubscribe**(`subscriptionToken`: string): *void*
*Defined in [contract-wrappers/src/generated-wrappers/erc721_token.ts:960](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc721_token.ts#L960)*
Cancel a subscription
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`subscriptionToken` | string | Subscription token returned by `subscribe()` |
**Returns:** *void*
___
### unsubscribeAll
▸ **unsubscribeAll**(): *void*
*Defined in [contract-wrappers/src/generated-wrappers/erc721_token.ts:967](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc721_token.ts#L967)*
Cancels all existing subscriptions
**Returns:** *void*
___
### `Static` ABI
▸ **ABI**(): *[ContractAbi](#contractabi)*
*Defined in [contract-wrappers/src/generated-wrappers/erc721_token.ts:182](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc721_token.ts#L182)*
**Returns:** *[ContractAbi](#contractabi)*
The contract ABI
___
### `Static` deployAsync
▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`*
*Defined in [contract-wrappers/src/generated-wrappers/erc721_token.ts:138](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc721_token.ts#L138)*
**Parameters:**
Name | Type |
------ | ------ |
`bytecode` | string |
`abi` | [ContractAbi](#contractabi) |
`supportedProvider` | [SupportedProvider](#supportedprovider) |
`txDefaults` | `Partial` |
`logDecodeDependencies` | object |
**Returns:** *`Promise`*
___
### `Static` deployFrom0xArtifactAsync
▸ **deployFrom0xArtifactAsync**(`artifact`: `ContractArtifact` | `SimpleContractArtifact`, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`*
*Defined in [contract-wrappers/src/generated-wrappers/erc721_token.ts:79](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc721_token.ts#L79)*
**Parameters:**
Name | Type |
------ | ------ |
`artifact` | `ContractArtifact` \| `SimpleContractArtifact` |
`supportedProvider` | [SupportedProvider](#supportedprovider) |
`txDefaults` | `Partial` |
`logDecodeDependencies` | object |
**Returns:** *`Promise`*
___
### `Static` deployWithLibrariesFrom0xArtifactAsync
▸ **deployWithLibrariesFrom0xArtifactAsync**(`artifact`: `ContractArtifact`, `libraryArtifacts`: object, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`*
*Defined in [contract-wrappers/src/generated-wrappers/erc721_token.ts:105](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/erc721_token.ts#L105)*
**Parameters:**
Name | Type |
------ | ------ |
`artifact` | `ContractArtifact` |
`libraryArtifacts` | object |
`supportedProvider` | [SupportedProvider](#supportedprovider) |
`txDefaults` | `Partial` |
`logDecodeDependencies` | object |
**Returns:** *`Promise`*
___
### `Static` strictArgumentEncodingCheck
▸ **strictArgumentEncodingCheck**(`inputAbi`: `DataItem`[], `args`: any[]): *string*
Defined in base-contract/lib/src/index.d.ts:44
**Parameters:**
Name | Type |
------ | ------ |
`inputAbi` | `DataItem`[] |
`args` | any[] |
**Returns:** *string*
# Class: ExchangeContract
## Constructors
\+ **new ExchangeContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[ExchangeContract](#class-exchangecontract)*
*Overrides void*
*Defined in [contract-wrappers/src/generated-wrappers/exchange.ts:6007](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/exchange.ts#L6007)*
**Parameters:**
Name | Type | Default |
------ | ------ | ------ |
`address` | string | - |
`supportedProvider` | [SupportedProvider](#supportedprovider) | - |
`txDefaults?` | `Partial` | - |
`logDecodeDependencies?` | undefined \| object | - |
`deployedBytecode` | string \| undefined | ExchangeContract.deployedBytecode |
**Returns:** *[ExchangeContract](#class-exchangecontract)*
## Properties
### `Optional` _deployedBytecodeIfExists
• **_deployedBytecodeIfExists**? : *`Buffer`*
Defined in base-contract/lib/src/index.d.ts:34
___
### abi
• **abi**: *[ContractAbi](#contractabi)*
Defined in base-contract/lib/src/index.d.ts:30
___
### address
• **address**: *string*
Defined in base-contract/lib/src/index.d.ts:31
___
Args
• **constructorArgs**: *any[]*
Defined in base-contract/lib/src/index.d.ts:33
___
### contractName
• **contractName**: *string*
Defined in base-contract/lib/src/index.d.ts:32
___
### `Static` contractName
▪ **contractName**: *string* = "Exchange"
*Defined in [contract-wrappers/src/generated-wrappers/exchange.ts:132](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/exchange.ts#L132)*
## Methods
### EIP1271_MAGIC_VALUE
▸ **EIP1271_MAGIC_VALUE**(): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/exchange.ts:3228](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/exchange.ts#L3228)*
**Returns:** *`ContractFunctionObj`*
___
### EIP712_EXCHANGE_DOMAIN_HASH
▸ **EIP712_EXCHANGE_DOMAIN_HASH**(): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/exchange.ts:3248](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/exchange.ts#L3248)*
**Returns:** *`ContractFunctionObj`*
___
### allowedValidators
▸ **allowedValidators**(`index_0`: string, `index_1`: string): *`ContractFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/exchange.ts:3268](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/exchange.ts#L3268)*
**Parameters:**
Name | Type |
------ | ------ |
`index_0` | string |
`index_1` | string |
**Returns:** *`ContractFunctionObj`*
___
### batchCancelOrders
▸ **batchCancelOrders**(`orders`: `Array`): *`ContractTxFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/exchange.ts:3294](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/exchange.ts#L3294)*
Executes multiple calls of cancelOrder.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`orders` | `Array` | Array of order specifications. |
**Returns:** *`ContractTxFunctionObj`*
___
### batchExecuteTransactions
▸ **batchExecuteTransactions**(`transactions`: `Array`, `signatures`: string[]): *`ContractTxFunctionObj`*
*Defined in [contract-wrappers/src/generated-wrappers/exchange.ts:3366](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/exchange.ts#L3366)*
Executes a batch of Exchange method calls in the context of signer(s).
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`transactions` | `Array` | Array of 0x transaction structures. |
`signatures` | string[] | Array of proofs that transactions have been signed by signer(s). |
**Returns:** *`ContractTxFunctionObj`*
returnData Array containing ABI encoded return data for each of the underlying Exchange function calls.
___
### batchFillOrKillOrders
▸ **batchFillOrKillOrders**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[]): *`ContractTxFunctionObj>`*
*Defined in [contract-wrappers/src/generated-wrappers/exchange.ts:3431](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/exchange.ts#L3431)*
Executes multiple calls of fillOrKillOrder.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`orders` | `Array` | Array of order specifications. |
`takerAssetFillAmounts` | `BigNumber`[] | Array of desired amounts of takerAsset to sell in orders. |
`signatures` | string[] | Proofs that orders have been created by makers. |
**Returns:** *`ContractTxFunctionObj>`*
fillResults Array of amounts filled and fees paid by makers and taker.
___
### batchFillOrders
▸ **batchFillOrders**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[]): *`ContractTxFunctionObj>`*
*Defined in [contract-wrappers/src/generated-wrappers/exchange.ts:3535](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/exchange.ts#L3535)*
Executes multiple calls of fillOrder.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`orders` | `Array` | Array of order specifications. |
`takerAssetFillAmounts` | `BigNumber`[] | Array of desired amounts of takerAsset to sell in orders. |
`signatures` | string[] | Proofs that orders have been created by makers. |
**Returns:** *`ContractTxFunctionObj>`*
fillResults Array of amounts filled and fees paid by makers and taker.
___
### batchFillOrdersNoThrow
▸ **batchFillOrdersNoThrow**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[]): *`ContractTxFunctionObj>`*
*Defined in [contract-wrappers/src/generated-wrappers/exchange.ts:3639](https://github.com/0xProject/0x-monorepo/blob/b1b9949e7/packages/contract-wrappers/src/generated-wrappers/exchange.ts#L3639)*
Executes multiple calls of fillOrder. If any fill reverts, the error is caught and ignored.
**Parameters:**
Name | Type | Description |
------ | ------ | ------ |
`orders` | `Array` | Array of order specifications. |
`takerAssetFillAmounts` | `BigNumber`[] | Array of desired amounts of takerAsset to sell in orders. |
`signatures` | string[] | Proofs that orders have been created by makers. |
**Returns:** *`ContractTxFunctionObj>`*
fillResults Array of amounts filled and fees paid by makers and taker.
___
### batchMatchOrders
▸ **batchMatchOrders**(`leftOrders`: `Array`, `rightOrders`: `Array